LCRM_BILL_DOCU01 202 CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader = is_achd * CUSTOMERCPD = contractheader = is_cah IMPORTING obj_type = e_obj_type obj_key = e_obj_key obj_sys = e_obj_sys TABLES accountgl = it_gl accountreceivable = it_deb accountpayable = it_...
CALL FUNCTION ‘BAPI_ACC_DOCUMENT_REV_CHECK’ EXPORTING REVERSAL = W_REVERSAL BUS_ACT = ‘RFBU’ TABLES RETURN = WT_RETURN. . BREAK-POINT. LOOP AT WT_RETURN INTO WA_RETURN WHERE TYPE CA ‘EA’. P_SUBRC = 4. EXIT. ENDLOOP. ④BAPI_ACC_DOCUMENT_REV_POST会计凭证冲销 REPORT RODERICK. ...
3、使用BAPI_ACC_DOCUMENT_POST参数表EXTENSION2,将扩展字段传入 详细步骤如下: 1、创建结构,se11,很简单,不再赘述,如下图: 2、SE19实现BADI增强ACC_DOCUMENT 通过ACC_DOCUMENT help文档知道,方法CHANGE用来完成字段的扩展,还有一个需要注意的是参考业务类型,这个一定要选对,不然执行BAPI的时候不会调...
SAP TAX CODE 自动计算税金(BAPI_ACC_DOCUMENT_POST CALCULATE_TAX_FROM_GROSSAMOUNT) CALLFUNCTION'CALCULATE_TAX_FROM_GROSSAMOUNT'EXPORTINGi_bukrs='1000'"公司代码i_mwskz ='X1'"税码i_waers ='CNY'"币种i_wrbtr = amount"金额TABLEST_MWDAT=t_tax_info.*Now I loop the t_tax_info table in order ...
我们在使用BAPI_ACC_DOCUMENT_POST进行凭证过账测试时(也包括重新封装一个凭证过账函数开发过程中),需要注意一点,测试时需要和另外一个函数一起测试,方可以正常产生凭证(如果只是测试BAPI_ACC_DOCUMENT_POST,则函数会提示凭证过账成功,却查不到凭证),具体步骤如下: 在SE37中选择菜单“功能模块-执行-测试序列”,分别...
For the F-47 posting, it only post to 1 line item whereby BAPI "BAPI_ACC_DOCUMENT_POST" have to post in 2 lines for balance the account. Here are the steps to
Dear Expert We have a requirement for creating COPA document through BAPI_ACC_DOCUMENT_POST, but system is creating both accounting document as well
FICO模块:FB01创建会计凭证:BAPI_ACC_DOCUMENT_POST检查会计凭证:BAPI_ACC_DOCUMENT_CHECKFB02修改会计凭证:FI_ITEMS_MASS_CHANGEFB08过账冲销会计凭证:BAPI_ACC_DOCUMENT_REV_POST会计:冲销凭证:BAPI_ACC_ACT_POSTINGS_REVERSE会计:过帐票据凭证冲销:BAPI_ACC_BILLING_REV_POST会计:核算冲销:BAPI_ACC_DOCUMENT_REV_CHE...
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader = lwa_header TABLES accountgl = it_accountgl accountreceivable = lt_ar currencyamount = lt_curr return = lt_return. COMMIT WORK. DATA: bt_return LIKE bapiret2. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X' IMPOR...
而BAPI_ACC_DOCUMENT_POST 并没有提供这些字段。所以需要走增强。 首先肯定是想到的extension2 字段 "创建凭证 CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader = gs_bkpf TABLES accountgl = gt_account accountreceivable = gt_customer ...