SAP LXDCC_CALL_SCREEN_152 Function Module for Call screen 0152









LXDCC_CALL_SCREEN_152 is a standard lxdcc call screen 152 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call screen 0152 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 lxdcc call screen 152 FM, simply by entering the name LXDCC_CALL_SCREEN_152 into the relevant SAP transaction such as SE37 or SE38.

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



Function LXDCC_CALL_SCREEN_152 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 'LXDCC_CALL_SCREEN_152'"Call screen 0152
EXPORTING
I_LINV = "
* I_ERROR_CODE = "Error code flag
I_TCODE = "Current transaction code
I_QUINV = "Inventory by quant indicator
I_RLMOB_CLENUM = "Bar code field for storage unit number
I_PROCESSED = "Item processed
I_TOTAL_LINES = "Total lines
I_INV_INDEX = "Inventory index
* I_POS_MANAGED = "
* I_SCREEN_FCODE = "Screens, function code triggered by PAI

IMPORTING
E_LINV = "
E_QUINV = "Inventory by quant indicator
E_SCREEN_FCODE = "function key pressed by user
E_RLMOB_CLENUM = "Bar code field for storage unit number

CHANGING
* C_NEWITEM = "

EXCEPTIONS
FAIL_IN_PHYSICAL_SCREEN_NUMBER = 1
.



IMPORTING Parameters details for LXDCC_CALL_SCREEN_152

I_LINV -

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

I_ERROR_CODE - Error code flag

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

I_TCODE - Current transaction code

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

I_QUINV - Inventory by quant indicator

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

I_RLMOB_CLENUM - Bar code field for storage unit number

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

I_PROCESSED - Item processed

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

I_TOTAL_LINES - Total lines

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

I_INV_INDEX - Inventory index

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

I_POS_MANAGED -

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

I_SCREEN_FCODE - Screens, function code triggered by PAI

Data type: SY-UCOMM
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for LXDCC_CALL_SCREEN_152

E_LINV -

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

E_QUINV - Inventory by quant indicator

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

E_SCREEN_FCODE - function key pressed by user

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

E_RLMOB_CLENUM - Bar code field for storage unit number

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

CHANGING Parameters details for LXDCC_CALL_SCREEN_152

C_NEWITEM -

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

EXCEPTIONS details

FAIL_IN_PHYSICAL_SCREEN_NUMBER -

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

Copy and paste ABAP code example for LXDCC_CALL_SCREEN_152 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_linv  TYPE E1LINVX, "   
lv_i_linv  TYPE E1LINVX, "   
lv_c_newitem  TYPE C, "   
lv_fail_in_physical_screen_number  TYPE C, "   
lv_i_error_code  TYPE XFELD, "   
lv_e_quinv  TYPE LINV-QUINV, "   
lv_i_tcode  TYPE SY-TCODE, "   
lv_i_quinv  TYPE LINV-QUINV, "   
lv_e_screen_fcode  TYPE SY-UCOMM, "   
lv_e_rlmob_clenum  TYPE RLMOB-CLENUM, "   
lv_i_rlmob_clenum  TYPE RLMOB-CLENUM, "   
lv_i_processed  TYPE C, "   
lv_i_total_lines  TYPE I, "   
lv_i_inv_index  TYPE I, "   
lv_i_pos_managed  TYPE C, "   
lv_i_screen_fcode  TYPE SY-UCOMM. "   

  CALL FUNCTION 'LXDCC_CALL_SCREEN_152'  "Call screen 0152
    EXPORTING
         I_LINV = lv_i_linv
         I_ERROR_CODE = lv_i_error_code
         I_TCODE = lv_i_tcode
         I_QUINV = lv_i_quinv
         I_RLMOB_CLENUM = lv_i_rlmob_clenum
         I_PROCESSED = lv_i_processed
         I_TOTAL_LINES = lv_i_total_lines
         I_INV_INDEX = lv_i_inv_index
         I_POS_MANAGED = lv_i_pos_managed
         I_SCREEN_FCODE = lv_i_screen_fcode
    IMPORTING
         E_LINV = lv_e_linv
         E_QUINV = lv_e_quinv
         E_SCREEN_FCODE = lv_e_screen_fcode
         E_RLMOB_CLENUM = lv_e_rlmob_clenum
    CHANGING
         C_NEWITEM = lv_c_newitem
    EXCEPTIONS
        FAIL_IN_PHYSICAL_SCREEN_NUMBER = 1
. " LXDCC_CALL_SCREEN_152




ABAP code using 7.40 inline data declarations to call FM LXDCC_CALL_SCREEN_152

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 QUINV FROM LINV INTO @DATA(ld_e_quinv).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
 
"SELECT single QUINV FROM LINV INTO @DATA(ld_i_quinv).
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_e_screen_fcode).
 
"SELECT single CLENUM FROM RLMOB INTO @DATA(ld_e_rlmob_clenum).
 
"SELECT single CLENUM FROM RLMOB INTO @DATA(ld_i_rlmob_clenum).
 
 
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_i_screen_fcode).
 


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!