SAP MS_READ_AND_CHECK_SERVICE Function Module for NOTRANSL: Prüfen Leistung und lesen der Leistungsdaten
MS_READ_AND_CHECK_SERVICE is a standard ms read and check service 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: Prüfen Leistung und lesen der Leistungsdaten 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 and check service FM, simply by entering the name MS_READ_AND_CHECK_SERVICE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MLSP
Program Name: SAPLMLSP
Main Program: SAPLMLSP
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MS_READ_AND_CHECK_SERVICE 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_AND_CHECK_SERVICE'"NOTRANSL: Prüfen Leistung und lesen der Leistungsdaten.
EXPORTING
ASNUM = "Service number
* LIFNR = "
* EKORG = "
* BUKRS = "Company code
* WERKS = "Plant
* WAERS = ' ' "Currency
* MENGE = 1 "Quantity
* SPRAS = SY-LANGU "Language
* PRDAT = SY-DATUM "Price reference date
* WITH_ACCOUNT = 'X' "
* WITH_TEXT = ' ' "
* WITH_PRICE = 'X' "
IMPORTING
KTEXT1 = "Service short text
MEINS = "Unit of measure
PREIS = "Price
SAKTO = "
TABLES
* LONG_DESCRIBTION = "
EXCEPTIONS
SERVICE_NOT_EXIST = 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_SAPLMLSP_001 *** As of 4.0 in Standard SAP System *** Formula Calculation
EXIT_SAPLMLSP_002 ** As of 4.0 in Std. SAP System ** User Exit: Query Whether Formula Exists
EXIT_SAPLMLSP_010 Query Whether Selection of Services from Other Systems is Allowed
EXIT_SAPLMLSP_011 Call Foreign Selection for Services
EXIT_SAPLMLSP_020 *** As of 3.1G in Standard SAP System *** Unplanned Portion/Entry Sheet
EXIT_SAPLMLSP_030 User Exit: Fill ESLL Structure Before Checks (After Entry)
EXIT_SAPLMLSP_031 Check ESLL Datat After Checking
EXIT_SAPLMLSP_040 Transfer of Data to Detail User Screen
EXIT_SAPLMLSP_041 Adoption of Data from User Screen
EXIT_SAPLMLSP_043
IMPORTING Parameters details for MS_READ_AND_CHECK_SERVICE
ASNUM - Service number
Data type: ASMD-ASNUMOptional: No
Call by Reference: No ( called with pass by value option)
LIFNR -
Data type: EKKO-LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
EKORG -
Data type: EKKO-EKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS - Company code
Data type: EKKO-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: EKPO-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
WAERS - Currency
Data type: EKKO-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MENGE - Quantity
Data type: ESLL-MENGEDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPRAS - Language
Data type: EKKO-SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRDAT - Price reference date
Data type: EKPO-PRDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_ACCOUNT -
Data type: RM11P-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_TEXT -
Data type: RM11P-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_PRICE -
Data type: RM11P-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MS_READ_AND_CHECK_SERVICE
KTEXT1 - Service short text
Data type: ESLL-KTEXT1Optional: No
Call by Reference: No ( called with pass by value option)
MEINS - Unit of measure
Data type: ESLL-MEINSOptional: No
Call by Reference: No ( called with pass by value option)
PREIS - Price
Data type: ESLL-BRTWROptional: No
Call by Reference: No ( called with pass by value option)
SAKTO -
Data type: EKKN-SAKTOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MS_READ_AND_CHECK_SERVICE
LONG_DESCRIBTION -
Data type: TLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SERVICE_NOT_EXIST - Service number does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MS_READ_AND_CHECK_SERVICE 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_asnum | TYPE ASMD-ASNUM, " | |||
| lv_ktext1 | TYPE ESLL-KTEXT1, " | |||
| lt_long_describtion | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_service_not_exist | TYPE TLINE, " | |||
| lv_lifnr | TYPE EKKO-LIFNR, " | |||
| lv_ekorg | TYPE EKKO-EKORG, " | |||
| lv_bukrs | TYPE EKKO-BUKRS, " | |||
| lv_meins | TYPE ESLL-MEINS, " | |||
| lv_werks | TYPE EKPO-WERKS, " | |||
| lv_preis | TYPE ESLL-BRTWR, " | |||
| lv_waers | TYPE EKKO-WAERS, " SPACE | |||
| lv_menge | TYPE ESLL-MENGE, " 1 | |||
| lv_sakto | TYPE EKKN-SAKTO, " | |||
| lv_spras | TYPE EKKO-SPRAS, " SY-LANGU | |||
| lv_prdat | TYPE EKPO-PRDAT, " SY-DATUM | |||
| lv_with_account | TYPE RM11P-XFELD, " 'X' | |||
| lv_with_text | TYPE RM11P-XFELD, " SPACE | |||
| lv_with_price | TYPE RM11P-XFELD. " 'X' |
|   CALL FUNCTION 'MS_READ_AND_CHECK_SERVICE' "NOTRANSL: Prüfen Leistung und lesen der Leistungsdaten |
| EXPORTING | ||
| ASNUM | = lv_asnum | |
| LIFNR | = lv_lifnr | |
| EKORG | = lv_ekorg | |
| BUKRS | = lv_bukrs | |
| WERKS | = lv_werks | |
| WAERS | = lv_waers | |
| MENGE | = lv_menge | |
| SPRAS | = lv_spras | |
| PRDAT | = lv_prdat | |
| WITH_ACCOUNT | = lv_with_account | |
| WITH_TEXT | = lv_with_text | |
| WITH_PRICE | = lv_with_price | |
| IMPORTING | ||
| KTEXT1 | = lv_ktext1 | |
| MEINS | = lv_meins | |
| PREIS | = lv_preis | |
| SAKTO | = lv_sakto | |
| TABLES | ||
| LONG_DESCRIBTION | = lt_long_describtion | |
| EXCEPTIONS | ||
| SERVICE_NOT_EXIST = 1 | ||
| . " MS_READ_AND_CHECK_SERVICE | ||
ABAP code using 7.40 inline data declarations to call FM MS_READ_AND_CHECK_SERVICE
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 ASNUM FROM ASMD INTO @DATA(ld_asnum). | ||||
| "SELECT single KTEXT1 FROM ESLL INTO @DATA(ld_ktext1). | ||||
| "SELECT single LIFNR FROM EKKO INTO @DATA(ld_lifnr). | ||||
| "SELECT single EKORG FROM EKKO INTO @DATA(ld_ekorg). | ||||
| "SELECT single BUKRS FROM EKKO INTO @DATA(ld_bukrs). | ||||
| "SELECT single MEINS FROM ESLL INTO @DATA(ld_meins). | ||||
| "SELECT single WERKS FROM EKPO INTO @DATA(ld_werks). | ||||
| "SELECT single BRTWR FROM ESLL INTO @DATA(ld_preis). | ||||
| "SELECT single WAERS FROM EKKO INTO @DATA(ld_waers). | ||||
| DATA(ld_waers) | = ' '. | |||
| "SELECT single MENGE FROM ESLL INTO @DATA(ld_menge). | ||||
| DATA(ld_menge) | = 1. | |||
| "SELECT single SAKTO FROM EKKN INTO @DATA(ld_sakto). | ||||
| "SELECT single SPRAS FROM EKKO INTO @DATA(ld_spras). | ||||
| DATA(ld_spras) | = SY-LANGU. | |||
| "SELECT single PRDAT FROM EKPO INTO @DATA(ld_prdat). | ||||
| DATA(ld_prdat) | = SY-DATUM. | |||
| "SELECT single XFELD FROM RM11P INTO @DATA(ld_with_account). | ||||
| DATA(ld_with_account) | = 'X'. | |||
| "SELECT single XFELD FROM RM11P INTO @DATA(ld_with_text). | ||||
| DATA(ld_with_text) | = ' '. | |||
| "SELECT single XFELD FROM RM11P INTO @DATA(ld_with_price). | ||||
| DATA(ld_with_price) | = 'X'. | |||
Search for further information about these or an SAP related objects