SAP L_LAGP_CALC_USED_CAPACITY Function Module for NOTRANSL: Berechnung der belegten Kapazität auf einem Lagerplatz









L_LAGP_CALC_USED_CAPACITY is a standard l lagp calc used capacity 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: Berechnung der belegten Kapazität auf einem Lagerplatz 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 lagp calc used capacity FM, simply by entering the name L_LAGP_CALC_USED_CAPACITY into the relevant SAP transaction such as SE37 or SE38.

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



Function L_LAGP_CALC_USED_CAPACITY 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_LAGP_CALC_USED_CAPACITY'"NOTRANSL: Berechnung der belegten Kapazität auf einem Lagerplatz
EXPORTING
I_LGNUM = "Warehouse Number / Warehouse Complex
I_LGTYP = "Storage Type
I_LGPLA = "Storage Bin

IMPORTING
E_PRPRO = "Percentage utilization
E_PRA08 = "Percentage utilization (graphic display in screens=
E_PRA09 = "Percentage utilization (graphic display in screens=
E_PRA10 = "Percentage utilization (graphic display in screens=
E_PRAUS = "Percentage bin utilization
E_PRA01 = "Percentage utilization (graphic display in screens=
E_PRA02 = "Percentage utilization (graphic display in screens=
E_PRA03 = "Percentage utilization (graphic display in screens=
E_PRA04 = "Percentage utilization (graphic display in screens=
E_PRA05 = "Percentage utilization (graphic display in screens=
E_PRA06 = "Percentage utilization (graphic display in screens=
E_PRA07 = "Percentage utilization (graphic display in screens=
.



IMPORTING Parameters details for L_LAGP_CALC_USED_CAPACITY

I_LGNUM - Warehouse Number / Warehouse Complex

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

I_LGTYP - Storage Type

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

I_LGPLA - Storage Bin

Data type: LAGP-LGPLA
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for L_LAGP_CALC_USED_CAPACITY

E_PRPRO - Percentage utilization

Data type: RL01S-PRPRO
Optional: No
Call by Reference: Yes

E_PRA08 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA08
Optional: No
Call by Reference: Yes

E_PRA09 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA09
Optional: No
Call by Reference: Yes

E_PRA10 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA10
Optional: No
Call by Reference: Yes

E_PRAUS - Percentage bin utilization

Data type: RL01S-PRAUS
Optional: No
Call by Reference: Yes

E_PRA01 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA01
Optional: No
Call by Reference: Yes

E_PRA02 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA02
Optional: No
Call by Reference: Yes

E_PRA03 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA03
Optional: No
Call by Reference: Yes

E_PRA04 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA04
Optional: No
Call by Reference: Yes

E_PRA05 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA05
Optional: No
Call by Reference: Yes

E_PRA06 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA06
Optional: No
Call by Reference: Yes

E_PRA07 - Percentage utilization (graphic display in screens=

Data type: RL01S-PRA07
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for L_LAGP_CALC_USED_CAPACITY 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_prpro  TYPE RL01S-PRPRO, "   
lv_i_lgnum  TYPE LAGP-LGNUM, "   
lv_e_pra08  TYPE RL01S-PRA08, "   
lv_e_pra09  TYPE RL01S-PRA09, "   
lv_e_pra10  TYPE RL01S-PRA10, "   
lv_e_praus  TYPE RL01S-PRAUS, "   
lv_i_lgtyp  TYPE LAGP-LGTYP, "   
lv_e_pra01  TYPE RL01S-PRA01, "   
lv_i_lgpla  TYPE LAGP-LGPLA, "   
lv_e_pra02  TYPE RL01S-PRA02, "   
lv_e_pra03  TYPE RL01S-PRA03, "   
lv_e_pra04  TYPE RL01S-PRA04, "   
lv_e_pra05  TYPE RL01S-PRA05, "   
lv_e_pra06  TYPE RL01S-PRA06, "   
lv_e_pra07  TYPE RL01S-PRA07. "   

  CALL FUNCTION 'L_LAGP_CALC_USED_CAPACITY'  "NOTRANSL: Berechnung der belegten Kapazität auf einem Lagerplatz
    EXPORTING
         I_LGNUM = lv_i_lgnum
         I_LGTYP = lv_i_lgtyp
         I_LGPLA = lv_i_lgpla
    IMPORTING
         E_PRPRO = lv_e_prpro
         E_PRA08 = lv_e_pra08
         E_PRA09 = lv_e_pra09
         E_PRA10 = lv_e_pra10
         E_PRAUS = lv_e_praus
         E_PRA01 = lv_e_pra01
         E_PRA02 = lv_e_pra02
         E_PRA03 = lv_e_pra03
         E_PRA04 = lv_e_pra04
         E_PRA05 = lv_e_pra05
         E_PRA06 = lv_e_pra06
         E_PRA07 = lv_e_pra07
. " L_LAGP_CALC_USED_CAPACITY




ABAP code using 7.40 inline data declarations to call FM L_LAGP_CALC_USED_CAPACITY

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 PRPRO FROM RL01S INTO @DATA(ld_e_prpro).
 
"SELECT single LGNUM FROM LAGP INTO @DATA(ld_i_lgnum).
 
"SELECT single PRA08 FROM RL01S INTO @DATA(ld_e_pra08).
 
"SELECT single PRA09 FROM RL01S INTO @DATA(ld_e_pra09).
 
"SELECT single PRA10 FROM RL01S INTO @DATA(ld_e_pra10).
 
"SELECT single PRAUS FROM RL01S INTO @DATA(ld_e_praus).
 
"SELECT single LGTYP FROM LAGP INTO @DATA(ld_i_lgtyp).
 
"SELECT single PRA01 FROM RL01S INTO @DATA(ld_e_pra01).
 
"SELECT single LGPLA FROM LAGP INTO @DATA(ld_i_lgpla).
 
"SELECT single PRA02 FROM RL01S INTO @DATA(ld_e_pra02).
 
"SELECT single PRA03 FROM RL01S INTO @DATA(ld_e_pra03).
 
"SELECT single PRA04 FROM RL01S INTO @DATA(ld_e_pra04).
 
"SELECT single PRA05 FROM RL01S INTO @DATA(ld_e_pra05).
 
"SELECT single PRA06 FROM RL01S INTO @DATA(ld_e_pra06).
 
"SELECT single PRA07 FROM RL01S INTO @DATA(ld_e_pra07).
 


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!