SAP Function Modules

CALL_SCREEN_613 SAP Function module - Calling screen 0153







CALL_SCREEN_613 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 CALL_SCREEN_613 into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CALL_SCREEN_613 - CALL SCREEN 613





CALL FUNCTION 'CALL_SCREEN_613' "Calling screen 0153
  EXPORTING
    i_lgnum =                   " linv-lgnum    Warehouse id
    i_lgtyp =                   " linv-lgtyp    Storage type
    i_lgpla =                   " linv-lgpla    Storage type
    i_lenum =                   " linv-lenum    Storage unit number
    i_letyp =                   " linv-letyp    Storage unit type
    i_matnr =                   " linv-matnr    Material
    i_menga =                   " linv-menga    Counted quantity in alternative unit of measure
    i_altme =                   " linv-altme    Alternative unit of measure for stockkeeping uni
    i_kznul =                   " rl04i-kznul   Indicator: storage bin empty
    i_maktx =                   " makt-maktx    Material description
    i_tcode =                   " sy-tcode      Current transaction code
    i_clgpla =                  " rlmob-clgpla  Storage bin
  IMPORTING
    e_ulgnum =                  " linv-lgnum    Warehouse id
    e_ulgtyp =                  " linv-lgtyp    Storage type
    e_ulgpla =                  " linv-lgpla    Storage bin
    e_clgpla =                  " rlmob-clgpla  Storage bin
    e_menga =                   " linv-menga    Counted quantity in alternative unit of measure
    e_altme =                   " linv-altme    Alternative unit of measure for stockkeeping uni
    e_kznul =                   " rl04i-kznul   Indicator: storage bin empty
    e_screen_fcode =            " sy-ucomm      Function key pressed by user
    .  "  CALL_SCREEN_613

ABAP code example for Function Module CALL_SCREEN_613





The ABAP code below is a full code listing to execute function module CALL_SCREEN_613 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_e_ulgnum  TYPE LINV-LGNUM ,
ld_e_ulgtyp  TYPE LINV-LGTYP ,
ld_e_ulgpla  TYPE LINV-LGPLA ,
ld_e_clgpla  TYPE RLMOB-CLGPLA ,
ld_e_menga  TYPE LINV-MENGA ,
ld_e_altme  TYPE LINV-ALTME ,
ld_e_kznul  TYPE RL04I-KZNUL ,
ld_e_screen_fcode  TYPE SY-UCOMM .


SELECT single LGNUM
FROM LINV
INTO @DATA(ld_i_lgnum).


SELECT single LGTYP
FROM LINV
INTO @DATA(ld_i_lgtyp).


SELECT single LGPLA
FROM LINV
INTO @DATA(ld_i_lgpla).


SELECT single LENUM
FROM LINV
INTO @DATA(ld_i_lenum).


SELECT single LETYP
FROM LINV
INTO @DATA(ld_i_letyp).


SELECT single MATNR
FROM LINV
INTO @DATA(ld_i_matnr).


SELECT single MENGA
FROM LINV
INTO @DATA(ld_i_menga).


SELECT single ALTME
FROM LINV
INTO @DATA(ld_i_altme).


DATA(ld_i_kznul) = some text here

SELECT single MAKTX
FROM MAKT
INTO @DATA(ld_i_maktx).

DATA(ld_i_tcode) = 'some text here'.

DATA(ld_i_clgpla) = some text here . CALL FUNCTION 'CALL_SCREEN_613' EXPORTING i_lgnum = ld_i_lgnum i_lgtyp = ld_i_lgtyp i_lgpla = ld_i_lgpla i_lenum = ld_i_lenum i_letyp = ld_i_letyp i_matnr = ld_i_matnr i_menga = ld_i_menga i_altme = ld_i_altme i_kznul = ld_i_kznul i_maktx = ld_i_maktx i_tcode = ld_i_tcode i_clgpla = ld_i_clgpla IMPORTING e_ulgnum = ld_e_ulgnum e_ulgtyp = ld_e_ulgtyp e_ulgpla = ld_e_ulgpla e_clgpla = ld_e_clgpla e_menga = ld_e_menga e_altme = ld_e_altme e_kznul = ld_e_kznul e_screen_fcode = ld_e_screen_fcode . " CALL_SCREEN_613
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_e_ulgnum  TYPE LINV-LGNUM ,
ld_i_lgnum  TYPE LINV-LGNUM ,
ld_e_ulgtyp  TYPE LINV-LGTYP ,
ld_i_lgtyp  TYPE LINV-LGTYP ,
ld_e_ulgpla  TYPE LINV-LGPLA ,
ld_i_lgpla  TYPE LINV-LGPLA ,
ld_e_clgpla  TYPE RLMOB-CLGPLA ,
ld_i_lenum  TYPE LINV-LENUM ,
ld_e_menga  TYPE LINV-MENGA ,
ld_i_letyp  TYPE LINV-LETYP ,
ld_e_altme  TYPE LINV-ALTME ,
ld_i_matnr  TYPE LINV-MATNR ,
ld_e_kznul  TYPE RL04I-KZNUL ,
ld_i_menga  TYPE LINV-MENGA ,
ld_e_screen_fcode  TYPE SY-UCOMM ,
ld_i_altme  TYPE LINV-ALTME ,
ld_i_kznul  TYPE RL04I-KZNUL ,
ld_i_maktx  TYPE MAKT-MAKTX ,
ld_i_tcode  TYPE SY-TCODE ,
ld_i_clgpla  TYPE RLMOB-CLGPLA .


SELECT single LGNUM
FROM LINV
INTO ld_i_lgnum.


SELECT single LGTYP
FROM LINV
INTO ld_i_lgtyp.


SELECT single LGPLA
FROM LINV
INTO ld_i_lgpla.


SELECT single LENUM
FROM LINV
INTO ld_i_lenum.


SELECT single LETYP
FROM LINV
INTO ld_i_letyp.


SELECT single MATNR
FROM LINV
INTO ld_i_matnr.


SELECT single MENGA
FROM LINV
INTO ld_i_menga.


SELECT single ALTME
FROM LINV
INTO ld_i_altme.


ld_i_kznul = some text here

SELECT single MAKTX
FROM MAKT
INTO ld_i_maktx.

ld_i_tcode = 'some text here'.

ld_i_clgpla = some text here

SAP Documentation for FM CALL_SCREEN_613


This function calls screen number 0153 (Inventory count).

EXAMPLE ...See here for full SAP fm documentation









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 CALL_SCREEN_613 or its description.