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

USING BAPI_ACC_DOCUMENT_POST WITH LOCAL AND DOCUMENT AMOUNT

Former Member
0 Likes
413

Dear all,

We use BAPI 'BAPI_ACC_DOCUMENT_POST' to post FI docuemts.

We hope input the document amount and local amount in different fields but it seems there are only document amount field.

How can I post the local amount with the BAPI?

We don't want to enter the exchange rate.

Another question is how can I get the posted document number ?

We can get the document no in version mySAP ERP 2004 but can not

get the number in mySAP ERP 2005.

Best Regards.

Lewis Hwang

1 REPLY 1
Read only

Former Member
0 Likes
346

Hi,

One way to do is, get the exchange rate, do the calculation using the document currency amount and populate the local currency amount field.

Note: Whenever you use BAPI, use BAPI_TRANSACTION_COMMIT to commit the changes.

Regards

Subramanian.