SAP L_USAGE_CAPACITY_DETERMINE Function Module for NOTRANSL: Berechnen materialabhängigen Kapazitätsverbrauch









L_USAGE_CAPACITY_DETERMINE is a standard l usage capacity determine 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: Berechnen materialabhängigen Kapazitätsverbrauch 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 l usage capacity determine FM, simply by entering the name L_USAGE_CAPACITY_DETERMINE into the relevant SAP transaction such as SE37 or SE38.

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



Function L_USAGE_CAPACITY_DETERMINE 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 'L_USAGE_CAPACITY_DETERMINE'"NOTRANSL: Berechnen materialabhängigen Kapazitätsverbrauch
EXPORTING
I_MATNR = "Mat. Master View: WMS (MARA,MARC,MLGN,MAKT,MARM,T141,T141T)
I_WERKS = "Plant
I_CHARG = "Batch Number
I_LGNUM = "Warehouse Number/Warehouse Complex
I_LGTYP = "Storage Type
I_MENGE = "Quantity
I_LETYP = "Storage Unit Type

IMPORTING
E_QKAPV = "Capacity usage of transferred material
E_LKAPA = "Capacity check for source storage type
E_KKAPV = "Capacity usage of storage unit type
E_BRGEW = "Gross Weight
E_GEWEI = "Unit of Weight
.



IMPORTING Parameters details for L_USAGE_CAPACITY_DETERMINE

I_MATNR - Mat. Master View: WMS (MARA,MARC,MLGN,MAKT,MARM,T141,T141T)

Data type: MSEG-MATNR
Optional: No
Call by Reference: Yes

I_WERKS - Plant

Data type: MSEG-WERKS
Optional: No
Call by Reference: Yes

I_CHARG - Batch Number

Data type: MSEG-CHARG
Optional: No
Call by Reference: Yes

I_LGNUM - Warehouse Number/Warehouse Complex

Data type: T331-LGNUM
Optional: No
Call by Reference: Yes

I_LGTYP - Storage Type

Data type: T331-LGTYP
Optional: No
Call by Reference: Yes

I_MENGE - Quantity

Data type: MSEG-MENGE
Optional: No
Call by Reference: Yes

I_LETYP - Storage Unit Type

Data type: LK01-LETYP
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for L_USAGE_CAPACITY_DETERMINE

E_QKAPV - Capacity usage of transferred material

Data type: LK01-QKAPV
Optional: No
Call by Reference: Yes

E_LKAPA - Capacity check for source storage type

Data type: LK01-LKAPA
Optional: No
Call by Reference: Yes

E_KKAPV - Capacity usage of storage unit type

Data type: LK01-KKAPV
Optional: No
Call by Reference: Yes

E_BRGEW - Gross Weight

Data type: LK01-BRGEW
Optional: No
Call by Reference: Yes

E_GEWEI - Unit of Weight

Data type: LK01-GEWEI
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for L_USAGE_CAPACITY_DETERMINE 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_qkapv  TYPE LK01-QKAPV, "   
lv_i_matnr  TYPE MSEG-MATNR, "   
lv_e_lkapa  TYPE LK01-LKAPA, "   
lv_i_werks  TYPE MSEG-WERKS, "   
lv_e_kkapv  TYPE LK01-KKAPV, "   
lv_i_charg  TYPE MSEG-CHARG, "   
lv_e_brgew  TYPE LK01-BRGEW, "   
lv_i_lgnum  TYPE T331-LGNUM, "   
lv_e_gewei  TYPE LK01-GEWEI, "   
lv_i_lgtyp  TYPE T331-LGTYP, "   
lv_i_menge  TYPE MSEG-MENGE, "   
lv_i_letyp  TYPE LK01-LETYP. "   

  CALL FUNCTION 'L_USAGE_CAPACITY_DETERMINE'  "NOTRANSL: Berechnen materialabhängigen Kapazitätsverbrauch
    EXPORTING
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_CHARG = lv_i_charg
         I_LGNUM = lv_i_lgnum
         I_LGTYP = lv_i_lgtyp
         I_MENGE = lv_i_menge
         I_LETYP = lv_i_letyp
    IMPORTING
         E_QKAPV = lv_e_qkapv
         E_LKAPA = lv_e_lkapa
         E_KKAPV = lv_e_kkapv
         E_BRGEW = lv_e_brgew
         E_GEWEI = lv_e_gewei
. " L_USAGE_CAPACITY_DETERMINE




ABAP code using 7.40 inline data declarations to call FM L_USAGE_CAPACITY_DETERMINE

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 QKAPV FROM LK01 INTO @DATA(ld_e_qkapv).
 
"SELECT single MATNR FROM MSEG INTO @DATA(ld_i_matnr).
 
"SELECT single LKAPA FROM LK01 INTO @DATA(ld_e_lkapa).
 
"SELECT single WERKS FROM MSEG INTO @DATA(ld_i_werks).
 
"SELECT single KKAPV FROM LK01 INTO @DATA(ld_e_kkapv).
 
"SELECT single CHARG FROM MSEG INTO @DATA(ld_i_charg).
 
"SELECT single BRGEW FROM LK01 INTO @DATA(ld_e_brgew).
 
"SELECT single LGNUM FROM T331 INTO @DATA(ld_i_lgnum).
 
"SELECT single GEWEI FROM LK01 INTO @DATA(ld_e_gewei).
 
"SELECT single LGTYP FROM T331 INTO @DATA(ld_i_lgtyp).
 
"SELECT single MENGE FROM MSEG INTO @DATA(ld_i_menge).
 
"SELECT single LETYP FROM LK01 INTO @DATA(ld_i_letyp).
 


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!