POST 函数将一次性供应商 的信息放在抬头入参上,业务需要多个一次性供应商一起做凭证时,就满足不了。 抬头入参会把所有行的一次性给一样的名称。 想起之前做的 IF_EX_ACC_DOCUMENT~CHANGE ,于是尝试了一下 ,发现可以解决 IF_EX_ACC_DOCUMENT~CHANGE "add by itl_csw 28.04.2023 15:50:49 TYPES:BEGINOF ...
LT_exten在BAPI的位置 CALLFUNCTION'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader= ls_head customercpd= ls_customer "一次性供应商 IMPORTING obj_key= lv_key TABLES accountgl= lt_glitem"总账 accountreceivable= lt_cust"客户 accountpayable= lt_vendor"供应商 accounttax= lt_tax"税 currencyamount= ...
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader = ls_head customercpd = ls_customer "一次性供应商 IMPORTING obj_key = lv_key TABLES accountgl = lt_glitem "总账 accountreceivable = lt_cust "客户 accountpayable = lt_vendor "供应商 accounttax = lt_tax "税 currencyamount = ...
order_conditions_in LIKE bapicond .DATA:ls_order_conditions_inx LIKE bapicondx .DATA: lt_return LIKE TABLE OF bapiret2.DATA: ls_return LIKE bapiret2.DATA:lv_salesdocument LIKE bapivbeln-vbeln.CLEAR ls_order_header_in.ls_order_header_in-doc_type = 'ZDJX'."订单类型ls_order_header_in-...