SAP RM_LIS_STATISTICS_COMP Function Module for NOTRANSL: Verbuchung des LIS für die Warenbewegung der Komponenten









RM_LIS_STATISTICS_COMP is a standard rm lis statistics comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Verbuchung des LIS für die Warenbewegung der Komponenten 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 rm lis statistics comp FM, simply by entering the name RM_LIS_STATISTICS_COMP into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_LIS_STATISTICS_COMP 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 'RM_LIS_STATISTICS_COMP'"NOTRANSL: Verbuchung des LIS für die Warenbewegung der Komponenten
EXPORTING
P_AUFNR = "Cost Collector for Production Process PROCNR
P_BUDAT = "Number of Planned Order
* P_PLNUM = "Number of Planned Order
* P_KDAUF = "Sales Order Number
* P_KDPOS = "Item Number in Sales Order
* P_PSPNR = "Production Lot (WBS Element)

TABLES
IMSEG = "MMIM: Input Structure for General FM to Post Goods Movement
EMSEG = "MMIM: Output Structure For General FM To Post Goods Movement

EXCEPTIONS
NOT_FOUND = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLBARM_001 Customer Exit: RM_BACKFLUSH_CHECK
EXIT_SAPLBARM_002 Customer Exit: RM_BACKFLUSH_GO
EXIT_SAPLBARM_003 Customer Exit: RM_CANCEL_BACKFLUSH_CHECK
EXIT_SAPLBARM_004 Customer Exit: RM_CANCEL_BACKFLUSH_GO

IMPORTING Parameters details for RM_LIS_STATISTICS_COMP

P_AUFNR - Cost Collector for Production Process PROCNR

Data type: PKOSA-AUFNR
Optional: No
Call by Reference: Yes

P_BUDAT - Number of Planned Order

Data type: BUDAT
Optional: No
Call by Reference: Yes

P_PLNUM - Number of Planned Order

Data type: PLNUM
Optional: Yes
Call by Reference: Yes

P_KDAUF - Sales Order Number

Data type: KDAUF
Optional: Yes
Call by Reference: Yes

P_KDPOS - Item Number in Sales Order

Data type: KDPOS
Optional: Yes
Call by Reference: Yes

P_PSPNR - Production Lot (WBS Element)

Data type: REM_PSPNR
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RM_LIS_STATISTICS_COMP

IMSEG - MMIM: Input Structure for General FM to Post Goods Movement

Data type: IMSEG
Optional: No
Call by Reference: Yes

EMSEG - MMIM: Output Structure For General FM To Post Goods Movement

Data type: EMSEG
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND - Order not found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RM_LIS_STATISTICS_COMP 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:
lt_imseg  TYPE STANDARD TABLE OF IMSEG, "   
lv_p_aufnr  TYPE PKOSA-AUFNR, "   
lv_not_found  TYPE PKOSA, "   
lt_emseg  TYPE STANDARD TABLE OF EMSEG, "   
lv_p_budat  TYPE BUDAT, "   
lv_p_plnum  TYPE PLNUM, "   
lv_p_kdauf  TYPE KDAUF, "   
lv_p_kdpos  TYPE KDPOS, "   
lv_p_pspnr  TYPE REM_PSPNR. "   

  CALL FUNCTION 'RM_LIS_STATISTICS_COMP'  "NOTRANSL: Verbuchung des LIS für die Warenbewegung der Komponenten
    EXPORTING
         P_AUFNR = lv_p_aufnr
         P_BUDAT = lv_p_budat
         P_PLNUM = lv_p_plnum
         P_KDAUF = lv_p_kdauf
         P_KDPOS = lv_p_kdpos
         P_PSPNR = lv_p_pspnr
    TABLES
         IMSEG = lt_imseg
         EMSEG = lt_emseg
    EXCEPTIONS
        NOT_FOUND = 1
. " RM_LIS_STATISTICS_COMP




ABAP code using 7.40 inline data declarations to call FM RM_LIS_STATISTICS_COMP

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 AUFNR FROM PKOSA INTO @DATA(ld_p_aufnr).
 
 
 
 
 
 
 
 


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!