SAP LGORT_INITIAL Function Module for NOTRANSL: Prüfung, ob Lagerort gefüllt ist









LGORT_INITIAL is a standard lgort initial 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üfung, ob Lagerort gefüllt ist 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 lgort initial FM, simply by entering the name LGORT_INITIAL into the relevant SAP transaction such as SE37 or SE38.

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



Function LGORT_INITIAL 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 'LGORT_INITIAL'"NOTRANSL: Prüfung, ob Lagerort gefüllt ist
EXPORTING
LAGERORT = "Storage Location
LAGERORT_OLD = "Storage Location
OMARD = "Storage Location Data for Material
* P_KZ_NO_WARN = ' ' "For message type conversion
OMLGN = "Material Data for Each Warehouse Number
OMLGT = "Material Data for Each Storage Type
* FLG_UEBERNAHME = ' ' "Propose Field Content from the Reference

CHANGING
WMARD = "Storage Location Data for Material
WMLGN = "Material Data for Each Warehouse Number
WMLGT = "Material Data for Each Storage Type

EXCEPTIONS
LGORT_INITIAL = 1
.



IMPORTING Parameters details for LGORT_INITIAL

LAGERORT - Storage Location

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

LAGERORT_OLD - Storage Location

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

OMARD - Storage Location Data for Material

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

P_KZ_NO_WARN - For message type conversion

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

OMLGN - Material Data for Each Warehouse Number

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

OMLGT - Material Data for Each Storage Type

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

FLG_UEBERNAHME - Propose Field Content from the Reference

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

CHANGING Parameters details for LGORT_INITIAL

WMARD - Storage Location Data for Material

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

WMLGN - Material Data for Each Warehouse Number

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

WMLGT - Material Data for Each Storage Type

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

EXCEPTIONS details

LGORT_INITIAL -

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

Copy and paste ABAP code example for LGORT_INITIAL 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_wmard  TYPE MARD, "   
lv_lagerort  TYPE RMMG1-LGORT, "   
lv_lgort_initial  TYPE RMMG1, "   
lv_wmlgn  TYPE MLGN, "   
lv_lagerort_old  TYPE RMMG1-LGORT, "   
lv_omard  TYPE MARD, "   
lv_wmlgt  TYPE MLGT, "   
lv_p_kz_no_warn  TYPE RMMG08_012-MSGTYP, "   SPACE
lv_omlgn  TYPE MLGN, "   
lv_omlgt  TYPE MLGT, "   
lv_flg_uebernahme  TYPE T130F-KZREF. "   SPACE

  CALL FUNCTION 'LGORT_INITIAL'  "NOTRANSL: Prüfung, ob Lagerort gefüllt ist
    EXPORTING
         LAGERORT = lv_lagerort
         LAGERORT_OLD = lv_lagerort_old
         OMARD = lv_omard
         P_KZ_NO_WARN = lv_p_kz_no_warn
         OMLGN = lv_omlgn
         OMLGT = lv_omlgt
         FLG_UEBERNAHME = lv_flg_uebernahme
    CHANGING
         WMARD = lv_wmard
         WMLGN = lv_wmlgn
         WMLGT = lv_wmlgt
    EXCEPTIONS
        LGORT_INITIAL = 1
. " LGORT_INITIAL




ABAP code using 7.40 inline data declarations to call FM LGORT_INITIAL

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 LGORT FROM RMMG1 INTO @DATA(ld_lagerort).
 
 
 
"SELECT single LGORT FROM RMMG1 INTO @DATA(ld_lagerort_old).
 
 
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_kz_no_warn).
DATA(ld_p_kz_no_warn) = ' '.
 
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme).
DATA(ld_flg_uebernahme) = ' '.
 


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!