SAP MS_GET_EXTERNAL_ROW Function Module for









MS_GET_EXTERNAL_ROW is a standard ms get external row SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 get external row FM, simply by entering the name MS_GET_EXTERNAL_ROW into the relevant SAP transaction such as SE37 or SE38.

Function Group: MLSE
Program Name: SAPLMLSE
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MS_GET_EXTERNAL_ROW 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_GET_EXTERNAL_ROW'"
EXPORTING
I_PACKNO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_INTROW = "Internal line number

IMPORTING
E_EXTROW = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_EXTPATH = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_EXTGROUP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_EBELN = "Document Number
E_EBELP = "Document Item
E_BSTYP = "Purchase Order Category
.



IMPORTING Parameters details for MS_GET_EXTERNAL_ROW

I_PACKNO - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_INTROW - Internal line number

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

EXPORTING Parameters details for MS_GET_EXTERNAL_ROW

E_EXTROW - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_EXTPATH - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_EXTGROUP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_EBELN - Document Number

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

E_EBELP - Document Item

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

E_BSTYP - Purchase Order Category

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

Copy and paste ABAP code example for MS_GET_EXTERNAL_ROW 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_e_extrow  TYPE ESLL-EXTROW, "   
lv_i_packno  TYPE ESLL-PACKNO, "   
lv_i_introw  TYPE ESLL-INTROW, "   
lv_e_extpath  TYPE RM11P-PLN_GRP, "   
lv_e_extgroup  TYPE ESLL-EXTGROUP, "   
lv_e_ebeln  TYPE ESLH-EBELN, "   
lv_e_ebelp  TYPE ESLH-EBELP, "   
lv_e_bstyp  TYPE ESLH-BSTYP. "   

  CALL FUNCTION 'MS_GET_EXTERNAL_ROW'  "
    EXPORTING
         I_PACKNO = lv_i_packno
         I_INTROW = lv_i_introw
    IMPORTING
         E_EXTROW = lv_e_extrow
         E_EXTPATH = lv_e_extpath
         E_EXTGROUP = lv_e_extgroup
         E_EBELN = lv_e_ebeln
         E_EBELP = lv_e_ebelp
         E_BSTYP = lv_e_bstyp
. " MS_GET_EXTERNAL_ROW




ABAP code using 7.40 inline data declarations to call FM MS_GET_EXTERNAL_ROW

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 EXTROW FROM ESLL INTO @DATA(ld_e_extrow).
 
"SELECT single PACKNO FROM ESLL INTO @DATA(ld_i_packno).
 
"SELECT single INTROW FROM ESLL INTO @DATA(ld_i_introw).
 
"SELECT single PLN_GRP FROM RM11P INTO @DATA(ld_e_extpath).
 
"SELECT single EXTGROUP FROM ESLL INTO @DATA(ld_e_extgroup).
 
"SELECT single EBELN FROM ESLH INTO @DATA(ld_e_ebeln).
 
"SELECT single EBELP FROM ESLH INTO @DATA(ld_e_ebelp).
 
"SELECT single BSTYP FROM ESLH INTO @DATA(ld_e_bstyp).
 


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!