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

2020-11-16 09:59:26 浏览数 (1)

正文部分

做预制凭证有两个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报错,不知道如何处理。

现在只能做收货的发票。

0 人点赞