BAPI_ACC_DOCUMENT_POST
BAPI_GL*POST
1.F-59 【没有找到函数】
BAPI_ACC_DOCUMENT_POST 必须创建有借贷2 line 的凭证,
需求要参考原始的SA类型凭证, 创建一个单条的 科目 = 供应商 的凭证,
BDC
2. FB02 修改凭证行项目 FI_MASS*CHANGE
FI_ITEMS_MASS_CHANGE - 凭证行冻结
*... apply changes: CALL FUNCTION 'FI_ITEMS_MASS_CHANGE' EXPORTING s_bseg = tbseg IMPORTING errtab = it_errtab[] TABLES it_buztab = rt_buztab it_fldtab = fldtab EXCEPTIONS bdc_errors = 1 OTHERS = 2. IF sy-subrc <> 0. info_flag = 'X'. ENDIF.
3.删除F110 付款清单;
Function module DELETE_PAYMENT_PROPOSAL
DELETE_PAYMENT_RUN
4.重新运行F110 付款建议:【没有找到函数】
*&->其他函数;
CALL FUNCTION 'FI_PAYMENT_FORMAT_INDICATOR'
EXPORTING
I_COUNTRY = BUKTAB-LAND1
I_ZWELS = FKTTAB-ZWELS
IMPORTING
E_XFORMI = XFORMI.
*&5.删除付款建议 参数
CALL FUNCTION 'DELETE_PAYMENT_PARAMETERS_DB'
EXPORTING
i_laufd = f110v-laufd
i_laufi = f110v-laufi
i_check = ' '
EXCEPTIONS
deletion_not_allowed = 1
OTHERS = 2.