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 - Discount Calculation not happening.

Former Member
0 Likes
1,805

Hi,

I'm using BAPI_ACC_DOCUMENT_POST to post Vendor Accounting document .

In FB01 if we put Discount base, the discount is automatically calculated from payment term and a new GL line is created with the discount amount and the original GL line value is adjusted automatically whilie saving.

But this is not happening when I create AP document using the BAPI, the discount is not calculated.

Please let me know if you have any idea how to do it.

Thanks,

Surendra Maggi.

Hi,

I'm using BAPI_ACC_DOCUMENT_POST to post Vendor Accounting document .

In FB01 if we put Discount base, the discount is automatically calculated from payment term and a new GL line is created with the discount amount and the original GL line value is adjusted automatically whilie saving.

But this is not happening when I create AP document using the BAPI, the discount is not calculated.

Please let me know if you have any idea how to do it.

Thanks,

Surendra Maggi.

5 REPLIES 5
Read only

Former Member
0 Likes
1,226

Hi Surendra,

Is the Payment Term assigned to the AP document? Or is there a link between the two? Have you checked that? From the above post, it seems like the discount is not getting calculated from the payment term for the AP document. Or maybe you can ask your abaper (if you are functional) to debug this bapi for AP documents and check what exactly is happening.

Read only

Former Member
0 Likes
1,226

Hi A N,

Payment term assigned to the AP document, but the BAPI is not posting the discount line item.

I am a ABAPER and looking for feasibility of BAPI usage for adding discount line item in the accounting document.

Read only

0 Likes
1,226

Hi Surendra

If you are an ABAPER, its best to discuss this with your functional consultant about the requirement and the functionality.

Read only

Former Member
0 Likes
1,226

Hello Surendra,

There are different BAPI's available for vendor account posting. Each one will have its own functionality. Check with functional and analysis or study about the BAPI and understand if it will suit your

requirement. These links might be helpful. Have a look at it.

http://scn.sap.com/thread/1451467

http://scn.sap.com/docs/DOC-25959 (Indirectly might help you - More information on cash discount)

Thanks.

Read only

Former Member
0 Likes
1,226

Hi,

I have tried this long back. I think this should work for the BAPI BAPI_ACC_DOCUMENT_POST aswell.

I think prerequisite is Vendor must be subjected to withholding tax.

If the error exists, post the logic in your next message.