Get Sales order detail : partner item condition configure 抓取訂單詳細資料
* Assign View
I_BAPI_VIEW-HEADER = 'X'.
I_BAPI_VIEW-ITEM = 'X'.
I_BAPI_VIEW-SDSCHEDULE = 'X'.
I_BAPI_VIEW-BUSINESS = 'X'.
I_BAPI_VIEW-PARTNER = 'X'.
I_BAPI_VIEW-ADDRESS = 'X'.
I_BAPI_VIEW-STATUS_H = 'X'.
I_BAPI_VIEW-STATUS_I = 'X'.
I_BAPI_VIEW-SDCOND = 'X'.
I_BAPI_VIEW-SDCOND_ADD = 'X'.
I_BAPI_VIEW-CONFIGURE = 'X'.
I_BAPI_VIEW-TEXT = 'X'.
I_BAPI_VIEW-FLOW = 'X'.
* I_BAPI_VIEW-BILLPLAN = 'X'.
* I_BAPI_VIEW-CREDCARD = 'X'.
* Assign Sales Doc.
*********************************************************
* SALES_DOCUMENTS-VBELN = VBAK-VBELN.
SALES_DOCUMENTS-VBELN = '0000000014'.
APPEND SALES_DOCUMENTS. CLEAR SALES_DOCUMENTS.
CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
EXPORTING
I_BAPI_VIEW = I_BAPI_VIEW
TABLES
SALES_DOCUMENTS = SALES_DOCUMENTS
ORDER_HEADERS_OUT = ORDER_HEADERS_OUT
ORDER_ITEMS_OUT = ORDER_ITEMS_OUT
ORDER_SCHEDULES_OUT = ORDER_SCHEDULES_OUT
ORDER_BUSINESS_OUT = ORDER_BUSINESS_OUT
ORDER_PARTNERS_OUT = ORDER_PARTNERS_OUT
ORDER_ADDRESS_OUT = ORDER_ADDRESS_OUT
ORDER_STATUSHEADERS_OUT = ORDER_STATUSHEADERS_OUT
ORDER_STATUSITEMS_OUT = ORDER_STATUSITEMS_OUT
ORDER_CONDITIONS_OUT = ORDER_CONDITIONS_OUT
ORDER_COND_HEAD = ORDER_COND_HEAD
ORDER_COND_ITEM = ORDER_COND_ITEM
ORDER_COND_QTY_SCALE = ORDER_COND_QTY_SCALE
ORDER_COND_VAL_SCALE = ORDER_COND_VAL_SCALE
ORDER_CONTRACTS_OUT = ORDER_CONTRACTS_OUT
ORDER_TEXTHEADERS_OUT = ORDER_TEXTHEADERS_OUT
ORDER_TEXTLINES_OUT = ORDER_TEXTLINES_OUT
ORDER_FLOWS_OUT = ORDER_FLOWS_OUT
ORDER_CFGS_CUREFS_OUT = ORDER_CFGS_CUREFS_OUT
ORDER_CFGS_CUCFGS_OUT = ORDER_CFGS_CUCFGS_OUT
ORDER_CFGS_CUINS_OUT = ORDER_CFGS_CUINS_OUT
ORDER_CFGS_CUPRTS_OUT = ORDER_CFGS_CUPRTS_OUT
ORDER_CFGS_CUVALS_OUT = ORDER_CFGS_CUVALS_OUT
ORDER_CFGS_CUBLBS_OUT = ORDER_CFGS_CUBLBS_OUT
ORDER_CFGS_CUVKS_OUT = ORDER_CFGS_CUVKS_OUT.
* ORDER_BILLINGPLANS_OUT = ''
* ORDER_BILLINGDATES_OUT = ''
* ORDER_CREDITCARDS_OUT = ''
* EXTENSIONOUT = ''.
沒有留言:
張貼留言