CL_CRM_MASS_LOG_READER - Reads the Log Information from the database

Vendor Master (General Section)   ABAP Short Reference  
This documentation is copyright by SAP AG.

Functionality

This class is responsible for reading the Mass Change messages from the application log.

The class differentiates between two types of messages:

  • Procedure messages
    These messsages come from the procedure (template). Message categories include:
    - error messages (for example errors of individual BOL entities)
    - information messages (such as: "4 Contract Headers Found")
  • Generated messages
    These are special messages that are generated by the engine.They are very basic messages and they summarize whether the changes have been applied successfully or not.
    Specifically, they are messages 540 and 541 of the CRM_MASS message class.

Users of this class can make use of the following methods:

  • GET_INSTANCE
    Provide a log number and get an instance of this class. The instances are created per provided log number.
  • READ_LOG_HEADER
    Read the log header of this log entry. It contains the necessary fields for the Mass Change functionality
  • READ_PROCEDURE_MESSAGES
    Read the procedure messages that were previously logged.
  • READ_GENERATED_MESSAGES
    Read the generated messages that were previously logged.

Relationships

Example

DATA lr_instance TYPE REF TO CL_CRM_MASS_LOG_READER.
    DATA lv_log_number TYPE BALOGNR VALUE '00000000000000949878'.
    DATA lt_procedure_messages TYPE CRMT_MAS_PROCEDURE_MESSAGE_TAB.

    lr_instance = cl_crm_mass_log_reader=>get_instance( lv_log_number ).
    lt_procedure_messages = lr_instance->get_procedure_messages( ).

Notes

Further information



ABAP Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.


Length: 2241 Date: 20120526 Time: 110544     triton ( 50 ms )