SAP MPO_CCMONITOR_READ_LINE_ITEMS Function Module for









MPO_CCMONITOR_READ_LINE_ITEMS is a standard mpo ccmonitor read line items SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 mpo ccmonitor read line items FM, simply by entering the name MPO_CCMONITOR_READ_LINE_ITEMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: MPO_CCMONITOR_EVALUATE
Program Name: SAPLMPO_CCMONITOR_EVALUATE
Main Program: SAPLMPO_CCMONITOR_EVALUATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MPO_CCMONITOR_READ_LINE_ITEMS 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 'MPO_CCMONITOR_READ_LINE_ITEMS'"
EXPORTING
I_KOKRS = "
* I_PERIODS = 'XXX' "
* I_CURR = 'XX ' "
* I_TIMESTMP_FROM = "
* BLOCK_DATA = "
* BLOCK_SIZE = "

TABLES
I_OBJNR = "
* I_KSTAR = "
E_DATA_TABLE = "

EXCEPTIONS
WRONG_INPUT_PARAMETERS = 1 NO_MORE_DATA = 2
.



IMPORTING Parameters details for MPO_CCMONITOR_READ_LINE_ITEMS

I_KOKRS -

Data type: TKA01-KOKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_PERIODS -

Data type: MCCMT_PERIO_SEL
Default: 'XXX'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CURR -

Data type: MCCMT_CURR_SEL
Default: 'XX '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TIMESTMP_FROM -

Data type: COEP-TIMESTMP
Optional: Yes
Call by Reference: No ( called with pass by value option)

BLOCK_DATA -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

BLOCK_SIZE -

Data type: SY-TABIX
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MPO_CCMONITOR_READ_LINE_ITEMS

I_OBJNR -

Data type: MREOM_R_OBJNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_KSTAR -

Data type: MREOM_T_KSTAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_DATA_TABLE -

Data type: MCCMT_T_COVP_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

WRONG_INPUT_PARAMETERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_MORE_DATA -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MPO_CCMONITOR_READ_LINE_ITEMS 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_i_kokrs  TYPE TKA01-KOKRS, "   
lt_i_objnr  TYPE STANDARD TABLE OF MREOM_R_OBJNR, "   
lv_wrong_input_parameters  TYPE MREOM_R_OBJNR, "   
lt_i_kstar  TYPE STANDARD TABLE OF MREOM_T_KSTAR, "   
lv_i_periods  TYPE MCCMT_PERIO_SEL, "   'XXX'
lv_no_more_data  TYPE MCCMT_PERIO_SEL, "   
lv_i_curr  TYPE MCCMT_CURR_SEL, "   'XX '
lt_e_data_table  TYPE STANDARD TABLE OF MCCMT_T_COVP_DATA, "   
lv_i_timestmp_from  TYPE COEP-TIMESTMP, "   
lv_block_data  TYPE C, "   
lv_block_size  TYPE SY-TABIX. "   

  CALL FUNCTION 'MPO_CCMONITOR_READ_LINE_ITEMS'  "
    EXPORTING
         I_KOKRS = lv_i_kokrs
         I_PERIODS = lv_i_periods
         I_CURR = lv_i_curr
         I_TIMESTMP_FROM = lv_i_timestmp_from
         BLOCK_DATA = lv_block_data
         BLOCK_SIZE = lv_block_size
    TABLES
         I_OBJNR = lt_i_objnr
         I_KSTAR = lt_i_kstar
         E_DATA_TABLE = lt_e_data_table
    EXCEPTIONS
        WRONG_INPUT_PARAMETERS = 1
        NO_MORE_DATA = 2
. " MPO_CCMONITOR_READ_LINE_ITEMS




ABAP code using 7.40 inline data declarations to call FM MPO_CCMONITOR_READ_LINE_ITEMS

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.

"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs).
 
 
 
 
DATA(ld_i_periods) = 'XXX'.
 
 
DATA(ld_i_curr) = 'XX '.
 
 
"SELECT single TIMESTMP FROM COEP INTO @DATA(ld_i_timestmp_from).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_block_size).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!