SAP Function Modules

CIF_MATREL_SEND_BUF SAP Function module







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

Associated Function Group: CFBGRFCBUF
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM CIF_MATREL_SEND_BUF - CIF MATREL SEND BUF





CALL FUNCTION 'CIF_MATREL_SEND_BUF' "
  EXPORTING
    is_ctrlparams =             " cifctrlpar    Control Parameters for Data Transfers
*   iv_relname =                " cifrelname    Name of Master Data Hierarchy
*   iv_appltype =               " cif_mdrel_appl_type  Application Type of a Master Data Hierarchy
  TABLES
    it_matrel =                 " cif_relmat    Master Data Hierarchy: Link Between Products
    it_matrelx =                " cif_relmatx   Master Data Hierarchy: Selection Structure
*   it_matrelcus =              " cif_relmatcus  Master Data Hierarchy: Customer Enhancement Structure: Product
*   it_enqueue_args =           " cif_imod      Basis Table of Integration Model for APO Interface
    .  "  CIF_MATREL_SEND_BUF

ABAP code example for Function Module CIF_MATREL_SEND_BUF





The ABAP code below is a full code listing to execute function module CIF_MATREL_SEND_BUF 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_matrel  TYPE STANDARD TABLE OF CIF_RELMAT,"TABLES PARAM
wa_it_matrel  LIKE LINE OF it_it_matrel ,
it_it_matrelx  TYPE STANDARD TABLE OF CIF_RELMATX,"TABLES PARAM
wa_it_matrelx  LIKE LINE OF it_it_matrelx ,
it_it_matrelcus  TYPE STANDARD TABLE OF CIF_RELMATCUS,"TABLES PARAM
wa_it_matrelcus  LIKE LINE OF it_it_matrelcus ,
it_it_enqueue_args  TYPE STANDARD TABLE OF CIF_IMOD,"TABLES PARAM
wa_it_enqueue_args  LIKE LINE OF it_it_enqueue_args .

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

"populate fields of struture and append to itab
append wa_it_matrel to it_it_matrel.

"populate fields of struture and append to itab
append wa_it_matrelx to it_it_matrelx.

"populate fields of struture and append to itab
append wa_it_matrelcus to it_it_matrelcus.

"populate fields of struture and append to itab
append wa_it_enqueue_args to it_it_enqueue_args. . CALL FUNCTION 'CIF_MATREL_SEND_BUF' EXPORTING is_ctrlparams = ld_is_ctrlparams * iv_relname = ld_iv_relname * iv_appltype = ld_iv_appltype TABLES it_matrel = it_it_matrel it_matrelx = it_it_matrelx * it_matrelcus = it_it_matrelcus * it_enqueue_args = it_it_enqueue_args . " CIF_MATREL_SEND_BUF
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_matrel  TYPE STANDARD TABLE OF CIF_RELMAT ,
wa_it_matrel  LIKE LINE OF it_it_matrel,
ld_iv_relname  TYPE CIFRELNAME ,
it_it_matrelx  TYPE STANDARD TABLE OF CIF_RELMATX ,
wa_it_matrelx  LIKE LINE OF it_it_matrelx,
ld_iv_appltype  TYPE CIF_MDREL_APPL_TYPE ,
it_it_matrelcus  TYPE STANDARD TABLE OF CIF_RELMATCUS ,
wa_it_matrelcus  LIKE LINE OF it_it_matrelcus,
it_it_enqueue_args  TYPE STANDARD TABLE OF CIF_IMOD ,
wa_it_enqueue_args  LIKE LINE OF it_it_enqueue_args.

ld_is_ctrlparams = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_matrel to it_it_matrel.
ld_iv_relname = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_matrelx to it_it_matrelx.
ld_iv_appltype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_matrelcus to it_it_matrelcus.

"populate fields of struture and append to itab
append wa_it_enqueue_args to it_it_enqueue_args.

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