SAP Function Modules

MASTERIDOC_CREATE_VBKA_SEND SAP Function module







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

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


Pattern for FM MASTERIDOC_CREATE_VBKA_SEND - MASTERIDOC CREATE VBKA SEND





CALL FUNCTION 'MASTERIDOC_CREATE_VBKA_SEND' "
  EXPORTING
    ffi_bor_objecttype =        " swo_objtyp
    ffi_bor_method =            " swo_method
    fti_controldata =           " v43_bapi_control
  TABLES
    fti_clonerecipients =       " bapi_receiver
*   fti_vbkakom =               " bapi_bus1037_vbkakom_cr
*   fti_vbkakomx =              " bapi_bus1037_vbkakom_crx
*   fti_binaryrelationship =    " bapi_vbka_binrelship
*   fti_binaryrelationshipx =   " bapi_vbka_binrelshipx
*   fti_vbpa2kom =              " bapi_vbka_vbpa2kom
*   fti_vbpa2komx =             " bapi_vbka_vbpa2komx
*   fti_tlinekom =              " bapi_vbka_tlinekom
*   fti_tlinekomx =             " bapi_vbka_tlinekomx
*   ftr_appobjects =            " swotobjid
*   ftr_comdocuments =          " swotobjid
    ftr_return =                " bapiret2
    .  "  MASTERIDOC_CREATE_VBKA_SEND

ABAP code example for Function Module MASTERIDOC_CREATE_VBKA_SEND





The ABAP code below is a full code listing to execute function module MASTERIDOC_CREATE_VBKA_SEND 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_fti_clonerecipients  TYPE STANDARD TABLE OF BAPI_RECEIVER,"TABLES PARAM
wa_fti_clonerecipients  LIKE LINE OF it_fti_clonerecipients ,
it_fti_vbkakom  TYPE STANDARD TABLE OF BAPI_BUS1037_VBKAKOM_CR,"TABLES PARAM
wa_fti_vbkakom  LIKE LINE OF it_fti_vbkakom ,
it_fti_vbkakomx  TYPE STANDARD TABLE OF BAPI_BUS1037_VBKAKOM_CRX,"TABLES PARAM
wa_fti_vbkakomx  LIKE LINE OF it_fti_vbkakomx ,
it_fti_binaryrelationship  TYPE STANDARD TABLE OF BAPI_VBKA_BINRELSHIP,"TABLES PARAM
wa_fti_binaryrelationship  LIKE LINE OF it_fti_binaryrelationship ,
it_fti_binaryrelationshipx  TYPE STANDARD TABLE OF BAPI_VBKA_BINRELSHIPX,"TABLES PARAM
wa_fti_binaryrelationshipx  LIKE LINE OF it_fti_binaryrelationshipx ,
it_fti_vbpa2kom  TYPE STANDARD TABLE OF BAPI_VBKA_VBPA2KOM,"TABLES PARAM
wa_fti_vbpa2kom  LIKE LINE OF it_fti_vbpa2kom ,
it_fti_vbpa2komx  TYPE STANDARD TABLE OF BAPI_VBKA_VBPA2KOMX,"TABLES PARAM
wa_fti_vbpa2komx  LIKE LINE OF it_fti_vbpa2komx ,
it_fti_tlinekom  TYPE STANDARD TABLE OF BAPI_VBKA_TLINEKOM,"TABLES PARAM
wa_fti_tlinekom  LIKE LINE OF it_fti_tlinekom ,
it_fti_tlinekomx  TYPE STANDARD TABLE OF BAPI_VBKA_TLINEKOMX,"TABLES PARAM
wa_fti_tlinekomx  LIKE LINE OF it_fti_tlinekomx ,
it_ftr_appobjects  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_ftr_appobjects  LIKE LINE OF it_ftr_appobjects ,
it_ftr_comdocuments  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_ftr_comdocuments  LIKE LINE OF it_ftr_comdocuments ,
it_ftr_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_ftr_return  LIKE LINE OF it_ftr_return .

DATA(ld_ffi_bor_objecttype) = 'Check type of data required'.
DATA(ld_ffi_bor_method) = 'Check type of data required'.
DATA(ld_fti_controldata) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fti_clonerecipients to it_fti_clonerecipients.

"populate fields of struture and append to itab
append wa_fti_vbkakom to it_fti_vbkakom.

"populate fields of struture and append to itab
append wa_fti_vbkakomx to it_fti_vbkakomx.

"populate fields of struture and append to itab
append wa_fti_binaryrelationship to it_fti_binaryrelationship.

"populate fields of struture and append to itab
append wa_fti_binaryrelationshipx to it_fti_binaryrelationshipx.

"populate fields of struture and append to itab
append wa_fti_vbpa2kom to it_fti_vbpa2kom.

"populate fields of struture and append to itab
append wa_fti_vbpa2komx to it_fti_vbpa2komx.

"populate fields of struture and append to itab
append wa_fti_tlinekom to it_fti_tlinekom.

"populate fields of struture and append to itab
append wa_fti_tlinekomx to it_fti_tlinekomx.

"populate fields of struture and append to itab
append wa_ftr_appobjects to it_ftr_appobjects.

"populate fields of struture and append to itab
append wa_ftr_comdocuments to it_ftr_comdocuments.

"populate fields of struture and append to itab
append wa_ftr_return to it_ftr_return. . CALL FUNCTION 'MASTERIDOC_CREATE_VBKA_SEND' EXPORTING ffi_bor_objecttype = ld_ffi_bor_objecttype ffi_bor_method = ld_ffi_bor_method fti_controldata = ld_fti_controldata TABLES fti_clonerecipients = it_fti_clonerecipients * fti_vbkakom = it_fti_vbkakom * fti_vbkakomx = it_fti_vbkakomx * fti_binaryrelationship = it_fti_binaryrelationship * fti_binaryrelationshipx = it_fti_binaryrelationshipx * fti_vbpa2kom = it_fti_vbpa2kom * fti_vbpa2komx = it_fti_vbpa2komx * fti_tlinekom = it_fti_tlinekom * fti_tlinekomx = it_fti_tlinekomx * ftr_appobjects = it_ftr_appobjects * ftr_comdocuments = it_ftr_comdocuments ftr_return = it_ftr_return . " MASTERIDOC_CREATE_VBKA_SEND
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_ffi_bor_objecttype  TYPE SWO_OBJTYP ,
it_fti_clonerecipients  TYPE STANDARD TABLE OF BAPI_RECEIVER ,
wa_fti_clonerecipients  LIKE LINE OF it_fti_clonerecipients,
ld_ffi_bor_method  TYPE SWO_METHOD ,
it_fti_vbkakom  TYPE STANDARD TABLE OF BAPI_BUS1037_VBKAKOM_CR ,
wa_fti_vbkakom  LIKE LINE OF it_fti_vbkakom,
ld_fti_controldata  TYPE V43_BAPI_CONTROL ,
it_fti_vbkakomx  TYPE STANDARD TABLE OF BAPI_BUS1037_VBKAKOM_CRX ,
wa_fti_vbkakomx  LIKE LINE OF it_fti_vbkakomx,
it_fti_binaryrelationship  TYPE STANDARD TABLE OF BAPI_VBKA_BINRELSHIP ,
wa_fti_binaryrelationship  LIKE LINE OF it_fti_binaryrelationship,
it_fti_binaryrelationshipx  TYPE STANDARD TABLE OF BAPI_VBKA_BINRELSHIPX ,
wa_fti_binaryrelationshipx  LIKE LINE OF it_fti_binaryrelationshipx,
it_fti_vbpa2kom  TYPE STANDARD TABLE OF BAPI_VBKA_VBPA2KOM ,
wa_fti_vbpa2kom  LIKE LINE OF it_fti_vbpa2kom,
it_fti_vbpa2komx  TYPE STANDARD TABLE OF BAPI_VBKA_VBPA2KOMX ,
wa_fti_vbpa2komx  LIKE LINE OF it_fti_vbpa2komx,
it_fti_tlinekom  TYPE STANDARD TABLE OF BAPI_VBKA_TLINEKOM ,
wa_fti_tlinekom  LIKE LINE OF it_fti_tlinekom,
it_fti_tlinekomx  TYPE STANDARD TABLE OF BAPI_VBKA_TLINEKOMX ,
wa_fti_tlinekomx  LIKE LINE OF it_fti_tlinekomx,
it_ftr_appobjects  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_ftr_appobjects  LIKE LINE OF it_ftr_appobjects,
it_ftr_comdocuments  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_ftr_comdocuments  LIKE LINE OF it_ftr_comdocuments,
it_ftr_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_ftr_return  LIKE LINE OF it_ftr_return.

ld_ffi_bor_objecttype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fti_clonerecipients to it_fti_clonerecipients.
ld_ffi_bor_method = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fti_vbkakom to it_fti_vbkakom.
ld_fti_controldata = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fti_vbkakomx to it_fti_vbkakomx.

"populate fields of struture and append to itab
append wa_fti_binaryrelationship to it_fti_binaryrelationship.

"populate fields of struture and append to itab
append wa_fti_binaryrelationshipx to it_fti_binaryrelationshipx.

"populate fields of struture and append to itab
append wa_fti_vbpa2kom to it_fti_vbpa2kom.

"populate fields of struture and append to itab
append wa_fti_vbpa2komx to it_fti_vbpa2komx.

"populate fields of struture and append to itab
append wa_fti_tlinekom to it_fti_tlinekom.

"populate fields of struture and append to itab
append wa_fti_tlinekomx to it_fti_tlinekomx.

"populate fields of struture and append to itab
append wa_ftr_appobjects to it_ftr_appobjects.

"populate fields of struture and append to itab
append wa_ftr_comdocuments to it_ftr_comdocuments.

"populate fields of struture and append to itab
append wa_ftr_return to it_ftr_return.

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