SAP MS_CREATE_SERVICE_ENTRY_MULTI Function Module for Create service entry sheet with multiple account assignment
MS_CREATE_SERVICE_ENTRY_MULTI is a standard ms create service entry multi 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 service entry sheet with multiple account assignment 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 ms create service entry multi FM, simply by entering the name MS_CREATE_SERVICE_ENTRY_MULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: MLSR
Program Name: SAPLMLSR
Main Program: SAPLMLSR
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function MS_CREATE_SERVICE_ENTRY_MULTI 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 'MS_CREATE_SERVICE_ENTRY_MULTI'"Create service entry sheet with multiple account assignment.
EXPORTING
* I_WITH_UPDATE = ' ' "
* I_AUTHORITY_CHECK = ' ' "Authorization Check
* I_TESTRUN = ' ' "
* I_BUDATUM = 00000000 "Posting Date in the Document
* BAPI_MODE = "Checkbox
TABLES
T_ESSR = "Entry Sheets
* T_ESLL = "Service Lines
* T_ESKL = "
* T_ESKN = "Account Assignments
* T_MESSR = "Notifications
* T_H_TEXT = "Long Text: Entry Sheet Header
* T_S_TEXTS = "
EXCEPTIONS
ERROR_INPUT = 1 ERROR_UPDATE = 2
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_SAPLMLSR_001 User Exit: Control of Service Entry Mode
EXIT_SAPLMLSR_010 Set Entry Sheet Header Data
EXIT_SAPLMLSR_020 Transfer of Data to Entry Sheet User Screen
EXIT_SAPLMLSR_021 Adoption of Data from Entry Sheet User Screen
IMPORTING Parameters details for MS_CREATE_SERVICE_ENTRY_MULTI
I_WITH_UPDATE -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTHORITY_CHECK - Authorization Check
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TESTRUN -
Data type: BAPI2091-TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUDATUM - Posting Date in the Document
Data type: ESSR-BUDATDefault: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)
BAPI_MODE - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MS_CREATE_SERVICE_ENTRY_MULTI
T_ESSR - Entry Sheets
Data type: ESSROptional: No
Call by Reference: No ( called with pass by value option)
T_ESLL - Service Lines
Data type: ESLLOptional: Yes
Call by Reference: Yes
T_ESKL -
Data type: ESKLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ESKN - Account Assignments
Data type: ESKNOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MESSR - Notifications
Data type: EESSROptional: Yes
Call by Reference: No ( called with pass by value option)
T_H_TEXT - Long Text: Entry Sheet Header
Data type: SRV_TEXTOptional: Yes
Call by Reference: Yes
T_S_TEXTS -
Data type: SRV_TEXTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_UPDATE - Error During Update
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MS_CREATE_SERVICE_ENTRY_MULTI 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_t_essr | TYPE STANDARD TABLE OF ESSR, " | |||
lv_error_input | TYPE ESSR, " | |||
lv_i_with_update | TYPE FLAG, " SPACE | |||
lt_t_esll | TYPE STANDARD TABLE OF ESLL, " | |||
lv_error_update | TYPE ESLL, " | |||
lv_i_authority_check | TYPE FLAG, " SPACE | |||
lt_t_eskl | TYPE STANDARD TABLE OF ESKL, " | |||
lv_i_testrun | TYPE BAPI2091-TESTRUN, " SPACE | |||
lt_t_eskn | TYPE STANDARD TABLE OF ESKN, " | |||
lv_i_budatum | TYPE ESSR-BUDAT, " 00000000 | |||
lt_t_messr | TYPE STANDARD TABLE OF EESSR, " | |||
lv_bapi_mode | TYPE XFELD, " | |||
lt_t_h_text | TYPE STANDARD TABLE OF SRV_TEXT, " | |||
lt_t_s_texts | TYPE STANDARD TABLE OF SRV_TEXT. " |
  CALL FUNCTION 'MS_CREATE_SERVICE_ENTRY_MULTI' "Create service entry sheet with multiple account assignment |
EXPORTING | ||
I_WITH_UPDATE | = lv_i_with_update | |
I_AUTHORITY_CHECK | = lv_i_authority_check | |
I_TESTRUN | = lv_i_testrun | |
I_BUDATUM | = lv_i_budatum | |
BAPI_MODE | = lv_bapi_mode | |
TABLES | ||
T_ESSR | = lt_t_essr | |
T_ESLL | = lt_t_esll | |
T_ESKL | = lt_t_eskl | |
T_ESKN | = lt_t_eskn | |
T_MESSR | = lt_t_messr | |
T_H_TEXT | = lt_t_h_text | |
T_S_TEXTS | = lt_t_s_texts | |
EXCEPTIONS | ||
ERROR_INPUT = 1 | ||
ERROR_UPDATE = 2 | ||
. " MS_CREATE_SERVICE_ENTRY_MULTI |
ABAP code using 7.40 inline data declarations to call FM MS_CREATE_SERVICE_ENTRY_MULTI
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.DATA(ld_i_with_update) | = ' '. | |||
DATA(ld_i_authority_check) | = ' '. | |||
"SELECT single TESTRUN FROM BAPI2091 INTO @DATA(ld_i_testrun). | ||||
DATA(ld_i_testrun) | = ' '. | |||
"SELECT single BUDAT FROM ESSR INTO @DATA(ld_i_budatum). | ||||
DATA(ld_i_budatum) | = 00000000. | |||
Search for further information about these or an SAP related objects