SAP CPE_LOG_MSG_READ_MULTI_BAL Function Module for Read multiple CPE Log Messages in Application Log Format
CPE_LOG_MSG_READ_MULTI_BAL is a standard cpe log msg read multi bal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read multiple CPE Log Messages in Application Log Format processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cpe log msg read multi bal FM, simply by entering the name CPE_LOG_MSG_READ_MULTI_BAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPE_LOG
Program Name: SAPLCPE_LOG
Main Program: SAPLCPE_LOG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CPE_LOG_MSG_READ_MULTI_BAL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CPE_LOG_MSG_READ_MULTI_BAL'"Read multiple CPE Log Messages in Application Log Format.
EXPORTING
* IV_LOG_FILTER = "CPE Log - Filter Criteria
* IT_MSGID_RANGE = "Application Log: MSGID Range Table
* IT_MSGNO_RANGE = "Application Log: MSGNO Range Table
* IT_LOGICAL_KEY_RANGE = "CPE Log -Table Type for Logical Key Range
IMPORTING
ET_BAL_MSG = "CPE Table Type: Application Log Message Data
IMPORTING Parameters details for CPE_LOG_MSG_READ_MULTI_BAL
IV_LOG_FILTER - CPE Log - Filter Criteria
Data type: CPET_LOG_FILTEROptional: Yes
Call by Reference: Yes
IT_MSGID_RANGE - Application Log: MSGID Range Table
Data type: BAL_R_MSIDOptional: Yes
Call by Reference: Yes
IT_MSGNO_RANGE - Application Log: MSGNO Range Table
Data type: BAL_R_MSNOOptional: Yes
Call by Reference: Yes
IT_LOGICAL_KEY_RANGE - CPE Log -Table Type for Logical Key Range
Data type: CPET_LOGICAL_KEY_RANGE_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CPE_LOG_MSG_READ_MULTI_BAL
ET_BAL_MSG - CPE Table Type: Application Log Message Data
Data type: CPET_BAL_MSG_TABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CPE_LOG_MSG_READ_MULTI_BAL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_bal_msg | TYPE CPET_BAL_MSG_TAB, " | |||
| lv_iv_log_filter | TYPE CPET_LOG_FILTER, " | |||
| lv_it_msgid_range | TYPE BAL_R_MSID, " | |||
| lv_it_msgno_range | TYPE BAL_R_MSNO, " | |||
| lv_it_logical_key_range | TYPE CPET_LOGICAL_KEY_RANGE_TAB. " |
|   CALL FUNCTION 'CPE_LOG_MSG_READ_MULTI_BAL' "Read multiple CPE Log Messages in Application Log Format |
| EXPORTING | ||
| IV_LOG_FILTER | = lv_iv_log_filter | |
| IT_MSGID_RANGE | = lv_it_msgid_range | |
| IT_MSGNO_RANGE | = lv_it_msgno_range | |
| IT_LOGICAL_KEY_RANGE | = lv_it_logical_key_range | |
| IMPORTING | ||
| ET_BAL_MSG | = lv_et_bal_msg | |
| . " CPE_LOG_MSG_READ_MULTI_BAL | ||
ABAP code using 7.40 inline data declarations to call FM CPE_LOG_MSG_READ_MULTI_BAL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects