SAP Function Modules

CO_VA_KBED_APO_PUT SAP Function module







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

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


Pattern for FM CO_VA_KBED_APO_PUT - CO VA KBED APO PUT





CALL FUNCTION 'CO_VA_KBED_APO_PUT' "
* EXPORTING
*   iv_ciftrigger =             " cifctrlpar-ciftrigger  Trigger of Data Transfer Using CIF
*   iv_ordertrigger =           " cifctrlpar-ciftrigger
*   i_destination =             " cif_dest-logsys
  TABLES
    it_kbedbt =                 " kbedb
    et_r3req =                  " cif_r3req
    it_apoorder =               " caufvdb
    it_afvgbt =                 " afvgb
    it_r3ord =                  " cif_r3ord
    et_r3reqx =                 " cif_r3reqx
    .  "  CO_VA_KBED_APO_PUT

ABAP code example for Function Module CO_VA_KBED_APO_PUT





The ABAP code below is a full code listing to execute function module CO_VA_KBED_APO_PUT 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_kbedbt  TYPE STANDARD TABLE OF KBEDB,"TABLES PARAM
wa_it_kbedbt  LIKE LINE OF it_it_kbedbt ,
it_et_r3req  TYPE STANDARD TABLE OF CIF_R3REQ,"TABLES PARAM
wa_et_r3req  LIKE LINE OF it_et_r3req ,
it_it_apoorder  TYPE STANDARD TABLE OF CAUFVDB,"TABLES PARAM
wa_it_apoorder  LIKE LINE OF it_it_apoorder ,
it_it_afvgbt  TYPE STANDARD TABLE OF AFVGB,"TABLES PARAM
wa_it_afvgbt  LIKE LINE OF it_it_afvgbt ,
it_it_r3ord  TYPE STANDARD TABLE OF CIF_R3ORD,"TABLES PARAM
wa_it_r3ord  LIKE LINE OF it_it_r3ord ,
it_et_r3reqx  TYPE STANDARD TABLE OF CIF_R3REQX,"TABLES PARAM
wa_et_r3reqx  LIKE LINE OF it_et_r3reqx .


DATA(ld_iv_ciftrigger) = some text here

DATA(ld_iv_ordertrigger) = some text here

DATA(ld_i_destination) = some text here

"populate fields of struture and append to itab
append wa_it_kbedbt to it_it_kbedbt.

"populate fields of struture and append to itab
append wa_et_r3req to it_et_r3req.

"populate fields of struture and append to itab
append wa_it_apoorder to it_it_apoorder.

"populate fields of struture and append to itab
append wa_it_afvgbt to it_it_afvgbt.

"populate fields of struture and append to itab
append wa_it_r3ord to it_it_r3ord.

"populate fields of struture and append to itab
append wa_et_r3reqx to it_et_r3reqx. . CALL FUNCTION 'CO_VA_KBED_APO_PUT' * EXPORTING * iv_ciftrigger = ld_iv_ciftrigger * iv_ordertrigger = ld_iv_ordertrigger * i_destination = ld_i_destination TABLES it_kbedbt = it_it_kbedbt et_r3req = it_et_r3req it_apoorder = it_it_apoorder it_afvgbt = it_it_afvgbt it_r3ord = it_it_r3ord et_r3reqx = it_et_r3reqx . " CO_VA_KBED_APO_PUT
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_iv_ciftrigger  TYPE CIFCTRLPAR-CIFTRIGGER ,
it_it_kbedbt  TYPE STANDARD TABLE OF KBEDB ,
wa_it_kbedbt  LIKE LINE OF it_it_kbedbt,
ld_iv_ordertrigger  TYPE CIFCTRLPAR-CIFTRIGGER ,
it_et_r3req  TYPE STANDARD TABLE OF CIF_R3REQ ,
wa_et_r3req  LIKE LINE OF it_et_r3req,
ld_i_destination  TYPE CIF_DEST-LOGSYS ,
it_it_apoorder  TYPE STANDARD TABLE OF CAUFVDB ,
wa_it_apoorder  LIKE LINE OF it_it_apoorder,
it_it_afvgbt  TYPE STANDARD TABLE OF AFVGB ,
wa_it_afvgbt  LIKE LINE OF it_it_afvgbt,
it_it_r3ord  TYPE STANDARD TABLE OF CIF_R3ORD ,
wa_it_r3ord  LIKE LINE OF it_it_r3ord,
it_et_r3reqx  TYPE STANDARD TABLE OF CIF_R3REQX ,
wa_et_r3reqx  LIKE LINE OF it_et_r3reqx.


ld_iv_ciftrigger = some text here

"populate fields of struture and append to itab
append wa_it_kbedbt to it_it_kbedbt.

ld_iv_ordertrigger = some text here

"populate fields of struture and append to itab
append wa_et_r3req to it_et_r3req.

ld_i_destination = some text here

"populate fields of struture and append to itab
append wa_it_apoorder to it_it_apoorder.

"populate fields of struture and append to itab
append wa_it_afvgbt to it_it_afvgbt.

"populate fields of struture and append to itab
append wa_it_r3ord to it_it_r3ord.

"populate fields of struture and append to itab
append wa_et_r3reqx to it_et_r3reqx.

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