SAP MS_SERVICE_ENTRY Function Module for Maintenance of service entry sheet









MS_SERVICE_ENTRY is a standard ms service entry SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintenance of service entry sheet 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 service entry FM, simply by entering the name MS_SERVICE_ENTRY 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_SERVICE_ENTRY 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_SERVICE_ENTRY'"Maintenance of service entry sheet
EXPORTING
I_EKKO = "PO header
* I_COPY_PLAN = ' ' "
* I_COPY_PROZ = 100 "
* I_WITHOUT_HEAD = ' ' "
* I_BUDAT = SY-DATLO "
* I_COPY_SPEC = "
* I_REF_TYPE = ' ' "
* I_PDATUM = SY-DATLO "
I_EKPO = "Purchase order item
* I_STATUS = ' ' "Status (H,V,A)
I_ESSR = "Entry sheet
* I_WITHOUT_SCREEN = ' ' "Dialog
* I_PREISANZ = ' ' "Authorization to Display Price Data
* I_AENDANZ = ' ' "Change display authorization
* I_TRTYP = ' ' "Transaction category V/A
* I_MAX_SCORE = "

IMPORTING
E_FUNCTION = "Function
E_ESSR = "Entry sheet
E_UPDKZ = "Indicator 'changed2

TABLES
* T_SUBCRIT = "

EXCEPTIONS
FATAL_ERROR = 1 STATUS_WRONG = 2 CANCEL = 3
.




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_SERVICE_ENTRY

I_EKKO - PO header

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

I_COPY_PLAN -

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

I_COPY_PROZ -

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

I_WITHOUT_HEAD -

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

I_BUDAT -

Data type: RM11R-BUDAT
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COPY_SPEC -

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

I_REF_TYPE -

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

I_PDATUM -

Data type: ESSR-LBLDT
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EKPO - Purchase order item

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

I_STATUS - Status (H,V,A)

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

I_ESSR - Entry sheet

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

I_WITHOUT_SCREEN - Dialog

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

I_PREISANZ - Authorization to Display Price Data

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

I_AENDANZ - Change display authorization

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

I_TRTYP - Transaction category V/A

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

I_MAX_SCORE -

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

EXPORTING Parameters details for MS_SERVICE_ENTRY

E_FUNCTION - Function

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

E_ESSR - Entry sheet

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

E_UPDKZ - Indicator 'changed2

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

TABLES Parameters details for MS_SERVICE_ENTRY

T_SUBCRIT -

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

EXCEPTIONS details

FATAL_ERROR - General error exit

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

STATUS_WRONG - Incorrect status

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

CANCEL -

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

Copy and paste ABAP code example for MS_SERVICE_ENTRY 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_ekko  TYPE EKKO, "   
lt_t_subcrit  TYPE STANDARD TABLE OF SUB_CRIT, "   
lv_e_function  TYPE SUB_CRIT, "   
lv_fatal_error  TYPE SUB_CRIT, "   
lv_i_copy_plan  TYPE SUB_CRIT, "   SPACE
lv_i_copy_proz  TYPE SUB_CRIT, "   100
lv_i_without_head  TYPE SUB_CRIT, "   SPACE
lv_i_budat  TYPE RM11R-BUDAT, "   SY-DATLO
lv_i_copy_spec  TYPE TMP_SPEC-SPEC_NO, "   
lv_i_ref_type  TYPE TMP_SPEC, "   SPACE
lv_i_pdatum  TYPE ESSR-LBLDT, "   SY-DATLO
lv_e_essr  TYPE ESSR, "   
lv_i_ekpo  TYPE EKPO, "   
lv_status_wrong  TYPE EKPO, "   
lv_cancel  TYPE EKPO, "   
lv_e_updkz  TYPE EKPO, "   
lv_i_status  TYPE EKPO, "   SPACE
lv_i_essr  TYPE ESSR, "   
lv_i_without_screen  TYPE ESSR, "   SPACE
lv_i_preisanz  TYPE ESSR, "   SPACE
lv_i_aendanz  TYPE ESSR, "   SPACE
lv_i_trtyp  TYPE ESSR, "   SPACE
lv_i_max_score  TYPE T147-MAXBW. "   

  CALL FUNCTION 'MS_SERVICE_ENTRY'  "Maintenance of service entry sheet
    EXPORTING
         I_EKKO = lv_i_ekko
         I_COPY_PLAN = lv_i_copy_plan
         I_COPY_PROZ = lv_i_copy_proz
         I_WITHOUT_HEAD = lv_i_without_head
         I_BUDAT = lv_i_budat
         I_COPY_SPEC = lv_i_copy_spec
         I_REF_TYPE = lv_i_ref_type
         I_PDATUM = lv_i_pdatum
         I_EKPO = lv_i_ekpo
         I_STATUS = lv_i_status
         I_ESSR = lv_i_essr
         I_WITHOUT_SCREEN = lv_i_without_screen
         I_PREISANZ = lv_i_preisanz
         I_AENDANZ = lv_i_aendanz
         I_TRTYP = lv_i_trtyp
         I_MAX_SCORE = lv_i_max_score
    IMPORTING
         E_FUNCTION = lv_e_function
         E_ESSR = lv_e_essr
         E_UPDKZ = lv_e_updkz
    TABLES
         T_SUBCRIT = lt_t_subcrit
    EXCEPTIONS
        FATAL_ERROR = 1
        STATUS_WRONG = 2
        CANCEL = 3
. " MS_SERVICE_ENTRY




ABAP code using 7.40 inline data declarations to call FM MS_SERVICE_ENTRY

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_copy_plan) = ' '.
 
DATA(ld_i_copy_proz) = 100.
 
DATA(ld_i_without_head) = ' '.
 
"SELECT single BUDAT FROM RM11R INTO @DATA(ld_i_budat).
DATA(ld_i_budat) = SY-DATLO.
 
"SELECT single SPEC_NO FROM TMP_SPEC INTO @DATA(ld_i_copy_spec).
 
DATA(ld_i_ref_type) = ' '.
 
"SELECT single LBLDT FROM ESSR INTO @DATA(ld_i_pdatum).
DATA(ld_i_pdatum) = SY-DATLO.
 
 
 
 
 
 
DATA(ld_i_status) = ' '.
 
 
DATA(ld_i_without_screen) = ' '.
 
DATA(ld_i_preisanz) = ' '.
 
DATA(ld_i_aendanz) = ' '.
 
DATA(ld_i_trtyp) = ' '.
 
"SELECT single MAXBW FROM T147 INTO @DATA(ld_i_max_score).
 


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!