SAP MS_READ_SERVICE_PACKAGE Function Module for NOTRANSL: Lesen Leistungspaket
MS_READ_SERVICE_PACKAGE is a standard ms read service package 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: Lesen Leistungspaket 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 read service package FM, simply by entering the name MS_READ_SERVICE_PACKAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MLSH
Program Name: SAPLMLSH
Main Program: SAPLMLSH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MS_READ_SERVICE_PACKAGE 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_READ_SERVICE_PACKAGE'"NOTRANSL: Lesen Leistungspaket.
EXPORTING
* NO_COND = ' ' "
* NO_CHANGE_DOC = ' ' "
* NO_TEXT = ' ' "
TABLES
I_PACKNO = "
* I_A215 = "
* I_KONH = "
* I_KONP = "
* I_KONM = "
* I_KONW = "
* I_STXH = "Text header
* I_STXL = "Long Text
* I_CDHDR = "Change Document Header
* I_CHPOS = "Change document position
I_ESLH = "
I_ESLL = "Service Lines
* I_ESUH = "Limits
* I_ESUC = "Limits with Contract Reference
* I_ESKL = "
* I_KONV = "DOcument Condition
* I_A081 = "
* I_A082 = "
IMPORTING Parameters details for MS_READ_SERVICE_PACKAGE
NO_COND -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_CHANGE_DOC -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_TEXT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MS_READ_SERVICE_PACKAGE
I_PACKNO -
Data type: PACK_TABOptional: No
Call by Reference: No ( called with pass by value option)
I_A215 -
Data type: A215Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KONH -
Data type: KONHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KONP -
Data type: KONPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KONM -
Data type: KONMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KONW -
Data type: KONWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STXH - Text header
Data type: STXHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STXL - Long Text
Data type: STXLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CDHDR - Change Document Header
Data type: CDHDROptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHPOS - Change document position
Data type: CDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ESLH -
Data type: ESLHOptional: No
Call by Reference: No ( called with pass by value option)
I_ESLL - Service Lines
Data type: ESLLOptional: No
Call by Reference: No ( called with pass by value option)
I_ESUH - Limits
Data type: ESUHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ESUC - Limits with Contract Reference
Data type: ESUCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ESKL -
Data type: ESKLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KONV - DOcument Condition
Data type: KONVOptional: Yes
Call by Reference: No ( called with pass by value option)
I_A081 -
Data type: A081Optional: Yes
Call by Reference: No ( called with pass by value option)
I_A082 -
Data type: A082Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MS_READ_SERVICE_PACKAGE 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_no_cond | TYPE STRING, " SPACE | |||
| lt_i_packno | TYPE STANDARD TABLE OF PACK_TAB, " | |||
| lt_i_a215 | TYPE STANDARD TABLE OF A215, " | |||
| lt_i_konh | TYPE STANDARD TABLE OF KONH, " | |||
| lt_i_konp | TYPE STANDARD TABLE OF KONP, " | |||
| lt_i_konm | TYPE STANDARD TABLE OF KONM, " | |||
| lt_i_konw | TYPE STANDARD TABLE OF KONW, " | |||
| lt_i_stxh | TYPE STANDARD TABLE OF STXH, " | |||
| lt_i_stxl | TYPE STANDARD TABLE OF STXL, " | |||
| lt_i_cdhdr | TYPE STANDARD TABLE OF CDHDR, " | |||
| lt_i_chpos | TYPE STANDARD TABLE OF CDPOS, " | |||
| lt_i_eslh | TYPE STANDARD TABLE OF ESLH, " | |||
| lv_no_change_doc | TYPE ESLH, " SPACE | |||
| lt_i_esll | TYPE STANDARD TABLE OF ESLL, " | |||
| lv_no_text | TYPE ESLL, " SPACE | |||
| lt_i_esuh | TYPE STANDARD TABLE OF ESUH, " | |||
| lt_i_esuc | TYPE STANDARD TABLE OF ESUC, " | |||
| lt_i_eskl | TYPE STANDARD TABLE OF ESKL, " | |||
| lt_i_konv | TYPE STANDARD TABLE OF KONV, " | |||
| lt_i_a081 | TYPE STANDARD TABLE OF A081, " | |||
| lt_i_a082 | TYPE STANDARD TABLE OF A082. " |
|   CALL FUNCTION 'MS_READ_SERVICE_PACKAGE' "NOTRANSL: Lesen Leistungspaket |
| EXPORTING | ||
| NO_COND | = lv_no_cond | |
| NO_CHANGE_DOC | = lv_no_change_doc | |
| NO_TEXT | = lv_no_text | |
| TABLES | ||
| I_PACKNO | = lt_i_packno | |
| I_A215 | = lt_i_a215 | |
| I_KONH | = lt_i_konh | |
| I_KONP | = lt_i_konp | |
| I_KONM | = lt_i_konm | |
| I_KONW | = lt_i_konw | |
| I_STXH | = lt_i_stxh | |
| I_STXL | = lt_i_stxl | |
| I_CDHDR | = lt_i_cdhdr | |
| I_CHPOS | = lt_i_chpos | |
| I_ESLH | = lt_i_eslh | |
| I_ESLL | = lt_i_esll | |
| I_ESUH | = lt_i_esuh | |
| I_ESUC | = lt_i_esuc | |
| I_ESKL | = lt_i_eskl | |
| I_KONV | = lt_i_konv | |
| I_A081 | = lt_i_a081 | |
| I_A082 | = lt_i_a082 | |
| . " MS_READ_SERVICE_PACKAGE | ||
ABAP code using 7.40 inline data declarations to call FM MS_READ_SERVICE_PACKAGE
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_no_cond) | = ' '. | |||
| DATA(ld_no_change_doc) | = ' '. | |||
| DATA(ld_no_text) | = ' '. | |||
Search for further information about these or an SAP related objects