SAP MASTER_IDOC_CREATE_LPIEQU Function Module for Create master IDoc for LPIEQU









MASTER_IDOC_CREATE_LPIEQU is a standard master idoc create lpiequ SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create master IDoc for LPIEQU 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 master idoc create lpiequ FM, simply by entering the name MASTER_IDOC_CREATE_LPIEQU into the relevant SAP transaction such as SE37 or SE38.

Function Group: CPC9
Program Name: SAPLCPC9
Main Program: SAPLCPC9
Appliation area: C
Release date: 29-Jan-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MASTER_IDOC_CREATE_LPIEQU 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 'MASTER_IDOC_CREATE_LPIEQU'"Create master IDoc for LPIEQU
EXPORTING
OPT_SYS = "
MESSAGE_TYPE = "
* DATE_FR = "
* DATE_TO = "

IMPORTING
CREATED_EQU_IDOCS = "Number of IDocs created

TABLES
EQU_KEY = "

EXCEPTIONS
ENTRY_NOT_FOUND = 1
.



IMPORTING Parameters details for MASTER_IDOC_CREATE_LPIEQU

OPT_SYS -

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

MESSAGE_TYPE -

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

DATE_FR -

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

DATE_TO -

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

EXPORTING Parameters details for MASTER_IDOC_CREATE_LPIEQU

CREATED_EQU_IDOCS - Number of IDocs created

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

TABLES Parameters details for MASTER_IDOC_CREATE_LPIEQU

EQU_KEY -

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

EXCEPTIONS details

ENTRY_NOT_FOUND -

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

Copy and paste ABAP code example for MASTER_IDOC_CREATE_LPIEQU 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_equ_key  TYPE STANDARD TABLE OF EQUK_KEY, "   
lv_opt_sys  TYPE TBDLST-LOGSYS, "   
lv_entry_not_found  TYPE TBDLST, "   
lv_created_equ_idocs  TYPE SY-TABIX, "   
lv_message_type  TYPE TBDME-MESTYP, "   
lv_date_fr  TYPE SY-DATUM, "   
lv_date_to  TYPE SY-DATUM. "   

  CALL FUNCTION 'MASTER_IDOC_CREATE_LPIEQU'  "Create master IDoc for LPIEQU
    EXPORTING
         OPT_SYS = lv_opt_sys
         MESSAGE_TYPE = lv_message_type
         DATE_FR = lv_date_fr
         DATE_TO = lv_date_to
    IMPORTING
         CREATED_EQU_IDOCS = lv_created_equ_idocs
    TABLES
         EQU_KEY = lt_equ_key
    EXCEPTIONS
        ENTRY_NOT_FOUND = 1
. " MASTER_IDOC_CREATE_LPIEQU




ABAP code using 7.40 inline data declarations to call FM MASTER_IDOC_CREATE_LPIEQU

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 LOGSYS FROM TBDLST INTO @DATA(ld_opt_sys).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_created_equ_idocs).
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_message_type).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date_fr).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date_to).
 


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!