SAP Function Modules

L_CATT_MAT_IM_LAGERPLATZ SAP Function module







L_CATT_MAT_IM_LAGERPLATZ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name L_CATT_MAT_IM_LAGERPLATZ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: LCAT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM L_CATT_MAT_IM_LAGERPLATZ - L CATT MAT IM LAGERPLATZ





CALL FUNCTION 'L_CATT_MAT_IM_LAGERPLATZ' "
* EXPORTING
*   inp_bestq = ' '             " lqua-bestq
*   inp_charg = '        '      " lqua-charg
*   inp_lgnum =                 " lqua-lgnum
*   inp_lgtyp =                 " lqua-lgtyp
*   inp_lgpla =                 " lqua-lgpla
*   inp_matnr =                 " lqua-matnr
*   inp_sobkz = ' '             " lqua-sobkz
*   inp_sonum = '        '      " lqua-sonum
*   inp_werks =                 " lqua-werks
  IMPORTING
    out_meins =                 " lqua-meins
    out_verme =                 " lqua-verme
    out_anzahl_quants =         " lagp-anzqu
    .  "  L_CATT_MAT_IM_LAGERPLATZ

ABAP code example for Function Module L_CATT_MAT_IM_LAGERPLATZ





The ABAP code below is a full code listing to execute function module L_CATT_MAT_IM_LAGERPLATZ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_out_meins  TYPE LQUA-MEINS ,
ld_out_verme  TYPE LQUA-VERME ,
ld_out_anzahl_quants  TYPE LAGP-ANZQU .


SELECT single BESTQ
FROM LQUA
INTO @DATA(ld_inp_bestq).


SELECT single CHARG
FROM LQUA
INTO @DATA(ld_inp_charg).


SELECT single LGNUM
FROM LQUA
INTO @DATA(ld_inp_lgnum).


SELECT single LGTYP
FROM LQUA
INTO @DATA(ld_inp_lgtyp).


SELECT single LGPLA
FROM LQUA
INTO @DATA(ld_inp_lgpla).


SELECT single MATNR
FROM LQUA
INTO @DATA(ld_inp_matnr).


SELECT single SOBKZ
FROM LQUA
INTO @DATA(ld_inp_sobkz).


SELECT single SONUM
FROM LQUA
INTO @DATA(ld_inp_sonum).


SELECT single WERKS
FROM LQUA
INTO @DATA(ld_inp_werks).
. CALL FUNCTION 'L_CATT_MAT_IM_LAGERPLATZ' * EXPORTING * inp_bestq = ld_inp_bestq * inp_charg = ld_inp_charg * inp_lgnum = ld_inp_lgnum * inp_lgtyp = ld_inp_lgtyp * inp_lgpla = ld_inp_lgpla * inp_matnr = ld_inp_matnr * inp_sobkz = ld_inp_sobkz * inp_sonum = ld_inp_sonum * inp_werks = ld_inp_werks IMPORTING out_meins = ld_out_meins out_verme = ld_out_verme out_anzahl_quants = ld_out_anzahl_quants . " L_CATT_MAT_IM_LAGERPLATZ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_out_meins  TYPE LQUA-MEINS ,
ld_inp_bestq  TYPE LQUA-BESTQ ,
ld_out_verme  TYPE LQUA-VERME ,
ld_inp_charg  TYPE LQUA-CHARG ,
ld_out_anzahl_quants  TYPE LAGP-ANZQU ,
ld_inp_lgnum  TYPE LQUA-LGNUM ,
ld_inp_lgtyp  TYPE LQUA-LGTYP ,
ld_inp_lgpla  TYPE LQUA-LGPLA ,
ld_inp_matnr  TYPE LQUA-MATNR ,
ld_inp_sobkz  TYPE LQUA-SOBKZ ,
ld_inp_sonum  TYPE LQUA-SONUM ,
ld_inp_werks  TYPE LQUA-WERKS .


SELECT single BESTQ
FROM LQUA
INTO ld_inp_bestq.


SELECT single CHARG
FROM LQUA
INTO ld_inp_charg.


SELECT single LGNUM
FROM LQUA
INTO ld_inp_lgnum.


SELECT single LGTYP
FROM LQUA
INTO ld_inp_lgtyp.


SELECT single LGPLA
FROM LQUA
INTO ld_inp_lgpla.


SELECT single MATNR
FROM LQUA
INTO ld_inp_matnr.


SELECT single SOBKZ
FROM LQUA
INTO ld_inp_sobkz.


SELECT single SONUM
FROM LQUA
INTO ld_inp_sonum.


SELECT single WERKS
FROM LQUA
INTO ld_inp_werks.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name L_CATT_MAT_IM_LAGERPLATZ or its description.