WGT_SAPI_0016_CREATE_0012 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 WGT_SAPI_0016_CREATE_0012 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WB2_TEW_SAPI
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WGT_SAPI_0016_CREATE_0012' "[EXPORT] Shipping Completion for Stock: Create from N/I
EXPORTING
action_mode = SPACE " wb2_tew_action_mode Classification of Subsequent Action
* recovery_mode = SPACE " wb2_sapi_recovery_mode
* call_source = SPACE " wb2_sapi_call_source
i_leading_control = " wb2_bdc_control TEW: Batch Input Control Data
billingdocument = " bapivbrksuccess-bill_doc Billing Document
header_siv_data = " sapi_siv_headersub Step API: Header Data For Sales Invoices
* extensionin = " wb2_sapi_parex_tab StepAPI: Table for Extensions
* addon_data = " komwbgt_tab Communication Structure of WBGT
i_tew_type = " wb2_tew_type Trading Execution Workbench Type
i_step = " wb2_step Step in the Business Process
i_mode = " wb2_mode Mode in the Steps of a Business Process
i_pre_step = " wb2_pre_step Prestep in a Business Process
* it_source_so = " wb2_so_data_stab
* it_source_po = " wb2_po_data_stab
* it_source_delivery = " wb2_delivery_data_stab
* it_source_tc = " wb2_tc_data_stab
* it_source_si = " wb2_si_data_stab
* it_source_md = " wb2_md_data_stab
* it_source_agency = " wb2_agency_data_stab
* it_source_agency_lst = " wb2_agency_lst_data_stab
* it_source_iv = " wb2_iv_data_stab Data From Incoming Invoices
* it_source_ac = " wb2_ac_data_stab Data From Accounting Documents
* it_source_si_lst = " wb2_si_lst_data_stab Data From SD Documents: Invoice List
* it_target_so = " wb2_so_data_stab
* it_target_po = " wb2_po_data_stab
* it_target_delivery = " wb2_delivery_data_stab
* it_target_tc = " wb2_tc_data_stab
* it_target_si = " wb2_si_data_stab
* it_target_agency = " wb2_agency_data_stab
* it_target_agency_lst = " wb2_agency_lst_data_stab
* it_target_md = " wb2_md_data_stab
* it_target_iv = " wb2_iv_data_stab Data From Incoming Invoices
* it_target_ac = " wb2_ac_data_stab Data From Accounting Documents
* it_target_si_lst = " wb2_si_lst_data_stab Data From SD Documents: Invoice List
* it_tewstep2para = " wb2_tewstep2para_stab
* it_heads_and_items = " wb2_heads_and_items_stab
* it_heads_and_items_target = " wb2_heads_and_items_stab
* it_cross_ref_data = " wb2_alv_n2m_io_ref_tab
IMPORTING
error_tew = " wb2b_error_tew
documentkeys = " sapi_doc_key_tab Sorted Tables with Document Keys
extensionout = " wb2_sapi_parex_tab StepAPI: Table for Extensions
TABLES
return = " sapi_return Return Parameter(s)
EXCEPTIONS
ERROR_OCCURRED = 1 "
CANCELED = 2 "
. " WGT_SAPI_0016_CREATE_0012
The ABAP code below is a full code listing to execute function module WGT_SAPI_0016_CREATE_0012 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).
| ld_error_tew | TYPE WB2B_ERROR_TEW , |
| ld_documentkeys | TYPE SAPI_DOC_KEY_TAB , |
| ld_extensionout | TYPE WB2_SAPI_PAREX_TAB , |
| it_return | TYPE STANDARD TABLE OF SAPI_RETURN,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
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_error_tew | TYPE WB2B_ERROR_TEW , |
| ld_action_mode | TYPE WB2_TEW_ACTION_MODE , |
| it_return | TYPE STANDARD TABLE OF SAPI_RETURN , |
| wa_return | LIKE LINE OF it_return, |
| ld_documentkeys | TYPE SAPI_DOC_KEY_TAB , |
| ld_recovery_mode | TYPE WB2_SAPI_RECOVERY_MODE , |
| ld_extensionout | TYPE WB2_SAPI_PAREX_TAB , |
| ld_call_source | TYPE WB2_SAPI_CALL_SOURCE , |
| ld_i_leading_control | TYPE WB2_BDC_CONTROL , |
| ld_billingdocument | TYPE BAPIVBRKSUCCESS-BILL_DOC , |
| ld_header_siv_data | TYPE SAPI_SIV_HEADERSUB , |
| ld_extensionin | TYPE WB2_SAPI_PAREX_TAB , |
| ld_addon_data | TYPE KOMWBGT_TAB , |
| ld_i_tew_type | TYPE WB2_TEW_TYPE , |
| ld_i_step | TYPE WB2_STEP , |
| ld_i_mode | TYPE WB2_MODE , |
| ld_i_pre_step | TYPE WB2_PRE_STEP , |
| ld_it_source_so | TYPE WB2_SO_DATA_STAB , |
| ld_it_source_po | TYPE WB2_PO_DATA_STAB , |
| ld_it_source_delivery | TYPE WB2_DELIVERY_DATA_STAB , |
| ld_it_source_tc | TYPE WB2_TC_DATA_STAB , |
| ld_it_source_si | TYPE WB2_SI_DATA_STAB , |
| ld_it_source_md | TYPE WB2_MD_DATA_STAB , |
| ld_it_source_agency | TYPE WB2_AGENCY_DATA_STAB , |
| ld_it_source_agency_lst | TYPE WB2_AGENCY_LST_DATA_STAB , |
| ld_it_source_iv | TYPE WB2_IV_DATA_STAB , |
| ld_it_source_ac | TYPE WB2_AC_DATA_STAB , |
| ld_it_source_si_lst | TYPE WB2_SI_LST_DATA_STAB , |
| ld_it_target_so | TYPE WB2_SO_DATA_STAB , |
| ld_it_target_po | TYPE WB2_PO_DATA_STAB , |
| ld_it_target_delivery | TYPE WB2_DELIVERY_DATA_STAB , |
| ld_it_target_tc | TYPE WB2_TC_DATA_STAB , |
| ld_it_target_si | TYPE WB2_SI_DATA_STAB , |
| ld_it_target_agency | TYPE WB2_AGENCY_DATA_STAB , |
| ld_it_target_agency_lst | TYPE WB2_AGENCY_LST_DATA_STAB , |
| ld_it_target_md | TYPE WB2_MD_DATA_STAB , |
| ld_it_target_iv | TYPE WB2_IV_DATA_STAB , |
| ld_it_target_ac | TYPE WB2_AC_DATA_STAB , |
| ld_it_target_si_lst | TYPE WB2_SI_LST_DATA_STAB , |
| ld_it_tewstep2para | TYPE WB2_TEWSTEP2PARA_STAB , |
| ld_it_heads_and_items | TYPE WB2_HEADS_AND_ITEMS_STAB , |
| ld_it_heads_and_items_target | TYPE WB2_HEADS_AND_ITEMS_STAB , |
| ld_it_cross_ref_data | TYPE WB2_ALV_N2M_IO_REF_TAB . |
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 WGT_SAPI_0016_CREATE_0012 or its description.
WGT_SAPI_0016_CREATE_0012 - [EXPORT] Shipping Completion for Stock: Create from N/I WGT_SAPI_0016_CANCEL - [EXPORT] Shipping Completion for Stock: cancel WGT_SAPI_0015_CREATE_0012 - [EXPORT] Shipping Completion for Back to Back: Create from N/I WGT_SAPI_0015_CANCEL - WGT_SAPI_0013_CREATE_0001 - [IMPORT] Delivery Completion: Create from Delivery Request WGT_SAPI_0013_CANCEL - [IMPORT] Delivery completion: cancel