SAP Function Modules

CIF_DELTA3_GET_STOCKS SAP Function module







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

Associated Function Group: CID3
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CIF_DELTA3_GET_STOCKS - CIF DELTA3 GET STOCKS





CALL FUNCTION 'CIF_DELTA3_GET_STOCKS' "
* EXPORTING
*   iv_select_typ =             " cif_imod-status
*   iv_objecttype =             " cif_imod-imtyp
*   iv_logsys =                 " cif_imod-logsys
*   iv_modname =                " cif_imod-modelname
*   iv_extended =               " cif_imod-status
*   iv_struct_is_allowed =      " sy-debug
*   iv_max_stock =              " cif_aporel-cifcounter
*   iv_no_zeros = SPACE         " cif_imod-active
  IMPORTING
    ev_ret =                    " cif_imod-active
    ev_is_unicode_sys =         " sy-debug
    ev_struct_is_filled =       " sy-debug
* TABLES
*   it_flt_objects =            " cif_immatk
*   et_erglist =                " anonympara
*   it_ext_matnr =              " cifrefmats
*   it_ext_locno =              " cifrefwerk
*   et_stock_objects =          " cif_stockn
    .  "  CIF_DELTA3_GET_STOCKS

ABAP code example for Function Module CIF_DELTA3_GET_STOCKS





The ABAP code below is a full code listing to execute function module CIF_DELTA3_GET_STOCKS 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_ev_ret  TYPE CIF_IMOD-ACTIVE ,
ld_ev_is_unicode_sys  TYPE SY-DEBUG ,
ld_ev_struct_is_filled  TYPE SY-DEBUG ,
it_it_flt_objects  TYPE STANDARD TABLE OF CIF_IMMATK,"TABLES PARAM
wa_it_flt_objects  LIKE LINE OF it_it_flt_objects ,
it_et_erglist  TYPE STANDARD TABLE OF ANONYMPARA,"TABLES PARAM
wa_et_erglist  LIKE LINE OF it_et_erglist ,
it_it_ext_matnr  TYPE STANDARD TABLE OF CIFREFMATS,"TABLES PARAM
wa_it_ext_matnr  LIKE LINE OF it_it_ext_matnr ,
it_it_ext_locno  TYPE STANDARD TABLE OF CIFREFWERK,"TABLES PARAM
wa_it_ext_locno  LIKE LINE OF it_it_ext_locno ,
it_et_stock_objects  TYPE STANDARD TABLE OF CIF_STOCKN,"TABLES PARAM
wa_et_stock_objects  LIKE LINE OF it_et_stock_objects .


SELECT single STATUS
FROM CIF_IMOD
INTO @DATA(ld_iv_select_typ).


SELECT single IMTYP
FROM CIF_IMOD
INTO @DATA(ld_iv_objecttype).


SELECT single LOGSYS
FROM CIF_IMOD
INTO @DATA(ld_iv_logsys).


SELECT single MODELNAME
FROM CIF_IMOD
INTO @DATA(ld_iv_modname).


SELECT single STATUS
FROM CIF_IMOD
INTO @DATA(ld_iv_extended).

DATA(ld_iv_struct_is_allowed) = 'some text here'.

DATA(ld_iv_max_stock) = 123

SELECT single ACTIVE
FROM CIF_IMOD
INTO @DATA(ld_iv_no_zeros).


"populate fields of struture and append to itab
append wa_it_flt_objects to it_it_flt_objects.

"populate fields of struture and append to itab
append wa_et_erglist to it_et_erglist.

"populate fields of struture and append to itab
append wa_it_ext_matnr to it_it_ext_matnr.

"populate fields of struture and append to itab
append wa_it_ext_locno to it_it_ext_locno.

"populate fields of struture and append to itab
append wa_et_stock_objects to it_et_stock_objects. . CALL FUNCTION 'CIF_DELTA3_GET_STOCKS' * EXPORTING * iv_select_typ = ld_iv_select_typ * iv_objecttype = ld_iv_objecttype * iv_logsys = ld_iv_logsys * iv_modname = ld_iv_modname * iv_extended = ld_iv_extended * iv_struct_is_allowed = ld_iv_struct_is_allowed * iv_max_stock = ld_iv_max_stock * iv_no_zeros = ld_iv_no_zeros IMPORTING ev_ret = ld_ev_ret ev_is_unicode_sys = ld_ev_is_unicode_sys ev_struct_is_filled = ld_ev_struct_is_filled * TABLES * it_flt_objects = it_it_flt_objects * et_erglist = it_et_erglist * it_ext_matnr = it_it_ext_matnr * it_ext_locno = it_it_ext_locno * et_stock_objects = it_et_stock_objects . " CIF_DELTA3_GET_STOCKS
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_ev_ret  TYPE CIF_IMOD-ACTIVE ,
ld_iv_select_typ  TYPE CIF_IMOD-STATUS ,
it_it_flt_objects  TYPE STANDARD TABLE OF CIF_IMMATK ,
wa_it_flt_objects  LIKE LINE OF it_it_flt_objects,
ld_ev_is_unicode_sys  TYPE SY-DEBUG ,
ld_iv_objecttype  TYPE CIF_IMOD-IMTYP ,
it_et_erglist  TYPE STANDARD TABLE OF ANONYMPARA ,
wa_et_erglist  LIKE LINE OF it_et_erglist,
ld_ev_struct_is_filled  TYPE SY-DEBUG ,
ld_iv_logsys  TYPE CIF_IMOD-LOGSYS ,
it_it_ext_matnr  TYPE STANDARD TABLE OF CIFREFMATS ,
wa_it_ext_matnr  LIKE LINE OF it_it_ext_matnr,
ld_iv_modname  TYPE CIF_IMOD-MODELNAME ,
it_it_ext_locno  TYPE STANDARD TABLE OF CIFREFWERK ,
wa_it_ext_locno  LIKE LINE OF it_it_ext_locno,
ld_iv_extended  TYPE CIF_IMOD-STATUS ,
it_et_stock_objects  TYPE STANDARD TABLE OF CIF_STOCKN ,
wa_et_stock_objects  LIKE LINE OF it_et_stock_objects,
ld_iv_struct_is_allowed  TYPE SY-DEBUG ,
ld_iv_max_stock  TYPE CIF_APOREL-CIFCOUNTER ,
ld_iv_no_zeros  TYPE CIF_IMOD-ACTIVE .


SELECT single STATUS
FROM CIF_IMOD
INTO ld_iv_select_typ.


"populate fields of struture and append to itab
append wa_it_flt_objects to it_it_flt_objects.

SELECT single IMTYP
FROM CIF_IMOD
INTO ld_iv_objecttype.


"populate fields of struture and append to itab
append wa_et_erglist to it_et_erglist.

SELECT single LOGSYS
FROM CIF_IMOD
INTO ld_iv_logsys.


"populate fields of struture and append to itab
append wa_it_ext_matnr to it_it_ext_matnr.

SELECT single MODELNAME
FROM CIF_IMOD
INTO ld_iv_modname.


"populate fields of struture and append to itab
append wa_it_ext_locno to it_it_ext_locno.

SELECT single STATUS
FROM CIF_IMOD
INTO ld_iv_extended.


"populate fields of struture and append to itab
append wa_et_stock_objects to it_et_stock_objects.
ld_iv_struct_is_allowed = 'some text here'.

ld_iv_max_stock = 123

SELECT single ACTIVE
FROM CIF_IMOD
INTO ld_iv_no_zeros.

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