Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_DOCUMENT_POST - missing cash discount line items

Former Member
0 Likes
956

Hi,

I was trying to use 'BAPI_ACC_DOCUMENT_POST' and u2018BAPI_ACC_INVOICE_RECEIPT_POSTu2019 to process a non po invoice. It actually works, but the u2018cash discountu2019 line item which is normally generated automatically by FB60, for a document type like u2018KN u2026 net vendoru2019 for which the u2018net document typeu2019 flag is checked, is not created.

If I use u2018BAPI_INCOMINGINVOICE_CREATEu2019 the u2018cash discountu2019 line item is generated automatically, but I canu2019t use this bapi as it always generates a MM document too.

I already had a similar issue with the tax line items, Iu2019m caling now a bapi to calculate the tax before and add the taxlines manually.

Is this also necessary for the cash discount line item? If yes, are you aware of a bapi which calculates these lines?

Thanks for any hint,

Stefan

Hi,

I was trying to use 'BAPI_ACC_DOCUMENT_POST' and u2018BAPI_ACC_INVOICE_RECEIPT_POSTu2019 to process a non po invoice. It actually works, but the u2018cash discountu2019 line item which is normally generated automatically by FB60, for a document type like u2018KN u2026 net vendoru2019 for which the u2018net document typeu2019 flag is checked, is not created.

If I use u2018BAPI_INCOMINGINVOICE_CREATEu2019 the u2018cash discountu2019 line item is generated automatically, but I canu2019t use this bapi as it always generates a MM document too.

I already had a similar issue with the tax line items, Iu2019m caling now a bapi to calculate the tax before and add the taxlines manually.

Is this also necessary for the cash discount line item? If yes, are you aware of a bapi which calculates these lines?

Thanks for any hint,

Stefan

2 REPLIES 2
Read only

Former Member
0 Likes
703

Can you use BDC instead to perform this...or try CALCULATE_TAX_FROM_GROSSAMOUNT to calculate tax line items for individual GL items.

Regards,

Read only

0 Likes
703

Thanks, but for the taxitems I'm already using CALCULATE_TAXES_NET which works.

I was wondering whether there's a similar bapi for cash discount lines.

Actually I want to avoid BDC,... That's the official statement from SAP conderning this: "every kind of Batch Input for ENJOY transactions are not supported"