CALLFUNCTION'BAPI_ACC_DOCUMENT_POST'EXPORTINGDOCUMENTHEADER= DOCUMENTHEADER"录入凭证头CUSTOMERCPD = CUSTOMERCPD"IMPORTINGOBJ_KEY=L_KEYTABLESACCOUNTGL= IT_ACCGL"总帐科目项ACCOUNTRECEIVABLE = IT_RECEI"客户项目ACCOUNTPAYABLE =IT_PAYABLE ACCOUNTTAX=IT_TAX CURRENCYAMOUNT= IT_CURAMT"货币项目CRITERIA =IT_CRIT...
与FB01 手工过账不同,BAPI 不包括 “Automatically Calculate Tax” 功能,税的科目和金额要提前确定好,放在 BAPI 的ACCOUNTTAX参数中。原文: Unlike the traditional FI posting transactions (such as FB01), the Accounting BAPIs do not include the function "Automatically Calculate Tax". The source application...
U're using CALCULATE_TAX_FROM_GROSSAMOUNT, so the amount transfered to that fm is not the base amount, but it's the gross amount
*ACCOUNTTAX = CURRENCYAMOUNT = CURRENCY_AMOUNT *CRITERIA = *VALUEFIELD = *EXTENSION1 = RETURN = RETURN *PAYMENTCARD = *CONTRACTITEM = EXTENSION2 = IT_EXTENSION2 *REALESTATE = . IF RETURN-TYPE NA 'EA'. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'. ENDIF. 如果还需要扩展...
After poring over SDN for hours together, I discovered that there was no one document which detailed the posting of FI Documents with Tax lines. This post is an endeavour to make it easier for other looking for the similar content. While posting FI documents, for example vendor invoices in ...
*---<SAPCNVE > is for Posting(Tax) with BAPI: BAPI_ACC_DOCUMENT_POST *---<SAPMSSY1> is for Test(Check) with BAPI: BAPI_ACC_DOCUMENT_CHECK clear wa_header. wa_header = im_document-header. ex_document-header-bktxt = wa_header-bktxt. ...
Solved: Hi, I try to work with BAPI_ACC_DOCUMENT_POST in order to reproduce this king of document done in FB01 Done with FB01, with none deductible account tax (one line
So, in the structure ACCOUNTTAX you have maintained the ITEMNO_ACC field as '0001' and tax account as '445660' then the amount will be in CURRENCYAMOUNT structure ITEMNO_ACC filed as '0001' and amount = 100. Does it help? Thanks, Debasish Reply Former Member In response to Former...
SAPTAXCODE⾃动计算税⾦ (BAPI_ACC_DOCUMENT_POSTCALCUL。。。CALL FUNCTION'CALCULATE_TAX_FROM_GROSSAMOUNT'EXPORTING i_bukrs = '1000' "公司代码 i_mwskz = 'X1'"税码 i_waers = 'CNY'"币种 i_wrbtr = amount "⾦额 TABLES T_MWDAT = t_tax_info.* Now I loop the t_...
*ACCOUNTTAX = CURRENCYAMOUNT = CURRENCY_AMOUNT *CRITERIA = *VALUEFIELD = *EXTENSION1 = RETURN = RETURN *PAYMENTCARD = *CONTRACTITEM = EXTENSION2 = IT_EXTENSION2 *REALESTATE = . IF RETURN-TYPE NA 'EA'. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' ...