SAP Function Modules

CIF_RESOURCE_SEND4 SAP Function module







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

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


Pattern for FM CIF_RESOURCE_SEND4 - CIF RESOURCE SEND4





CALL FUNCTION 'CIF_RESOURCE_SEND4' "
  EXPORTING
    is_ctrlparams =             " cifctrlpar
*   iv_change_mode = SPACE      " rcrukz-ukz
* TABLES
*   it_res =                    " cifres4
*   it_resx =                   " cifresx4
*   it_restxt =                 " cifrest
*   extensionout =              " cifbparex
*   it_tlo_head =               " crcapa_tlo_head
*   it_tlo_data =               " crcapa_tlo_data
    .  "  CIF_RESOURCE_SEND4

ABAP code example for Function Module CIF_RESOURCE_SEND4





The ABAP code below is a full code listing to execute function module CIF_RESOURCE_SEND4 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:
it_it_res  TYPE STANDARD TABLE OF CIFRES4,"TABLES PARAM
wa_it_res  LIKE LINE OF it_it_res ,
it_it_resx  TYPE STANDARD TABLE OF CIFRESX4,"TABLES PARAM
wa_it_resx  LIKE LINE OF it_it_resx ,
it_it_restxt  TYPE STANDARD TABLE OF CIFREST,"TABLES PARAM
wa_it_restxt  LIKE LINE OF it_it_restxt ,
it_extensionout  TYPE STANDARD TABLE OF CIFBPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout ,
it_it_tlo_head  TYPE STANDARD TABLE OF CRCAPA_TLO_HEAD,"TABLES PARAM
wa_it_tlo_head  LIKE LINE OF it_it_tlo_head ,
it_it_tlo_data  TYPE STANDARD TABLE OF CRCAPA_TLO_DATA,"TABLES PARAM
wa_it_tlo_data  LIKE LINE OF it_it_tlo_data .

DATA(ld_is_ctrlparams) = 'Check type of data required'.

DATA(ld_iv_change_mode) = some text here

"populate fields of struture and append to itab
append wa_it_res to it_it_res.

"populate fields of struture and append to itab
append wa_it_resx to it_it_resx.

"populate fields of struture and append to itab
append wa_it_restxt to it_it_restxt.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_it_tlo_head to it_it_tlo_head.

"populate fields of struture and append to itab
append wa_it_tlo_data to it_it_tlo_data. . CALL FUNCTION 'CIF_RESOURCE_SEND4' EXPORTING is_ctrlparams = ld_is_ctrlparams * iv_change_mode = ld_iv_change_mode * TABLES * it_res = it_it_res * it_resx = it_it_resx * it_restxt = it_it_restxt * extensionout = it_extensionout * it_tlo_head = it_it_tlo_head * it_tlo_data = it_it_tlo_data . " CIF_RESOURCE_SEND4
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_is_ctrlparams  TYPE CIFCTRLPAR ,
it_it_res  TYPE STANDARD TABLE OF CIFRES4 ,
wa_it_res  LIKE LINE OF it_it_res,
ld_iv_change_mode  TYPE RCRUKZ-UKZ ,
it_it_resx  TYPE STANDARD TABLE OF CIFRESX4 ,
wa_it_resx  LIKE LINE OF it_it_resx,
it_it_restxt  TYPE STANDARD TABLE OF CIFREST ,
wa_it_restxt  LIKE LINE OF it_it_restxt,
it_extensionout  TYPE STANDARD TABLE OF CIFBPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout,
it_it_tlo_head  TYPE STANDARD TABLE OF CRCAPA_TLO_HEAD ,
wa_it_tlo_head  LIKE LINE OF it_it_tlo_head,
it_it_tlo_data  TYPE STANDARD TABLE OF CRCAPA_TLO_DATA ,
wa_it_tlo_data  LIKE LINE OF it_it_tlo_data.

ld_is_ctrlparams = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_res to it_it_res.

ld_iv_change_mode = some text here

"populate fields of struture and append to itab
append wa_it_resx to it_it_resx.

"populate fields of struture and append to itab
append wa_it_restxt to it_it_restxt.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_it_tlo_head to it_it_tlo_head.

"populate fields of struture and append to itab
append wa_it_tlo_data to it_it_tlo_data.

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