IT干货网

【ABAP系列】SAP ABAP MIR7预制凭证BAPI

flyfish 2022年03月17日 SAP 152 0

以下为正文

做预制凭证有两个BAPI:

BAPI_INCOMINGINVOICE_PARK 和 BAPI_INCOMINGINVOICE_CREATE

连个的区别是:第一个只做发票预制,第二个是发票和过账一块做。

下面简单说说BAPI_INCOMINGINVOICE_PARK发票预制

做发票有四种业务

1. Park as Invoice (HEADERDATA-INVOICE_IND = X, ITEMDATA-DE-CRE_IND = SPACE)

2. Park as Credit Memo (HEADERDATA-INVOICE_IND = SPACE, ITEMDATA-DE-CRE_IND = SPACE)

3. Park as Subsequent Debit (HEADERDATA-INVOICE_IND = X, ITEMDATA-DE-CRE_IND = X)

4. Park as Subsequent Credit (HEADERDATA-INVOICE_IND = SPACE, ITEMDATA-DE-CRE_IND = X)

然后现在遇到一个问题

退货的凭证,做发票传BAPI报错,不知道如何处理。

现在只能做收货的发票。


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

【ABAP系列】SAP ABAP 的替代和校验