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

Former Member
0 Likes
328

Hi, Experts

I´m using the BAPI_ACC_DOCUMENT_POST to simulate the accounting of a incoming invoice via TA FB60. I´m in a 4.6C version.

I have replicated the data via the TA se37 and in this way the bapi returns the document generated, but if I execute the source code with the same data, the bapi, donu2019t take into account the currency items and throws the message Balance in transaction currency

I read that it will be necessary to read the number ranges, determinate the document number that is going to be generated via the FM GET_NUMBER_TEXT , and use that number in the bapi,.

My object type is BKPFF. How can I know the parameters of de FM, NR_RANGE_NR , OBJECTu2026?

Thanks in advance.

Regards.

Mariluz.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
268

Start trace via ST05 with buffer tables option checked, run FB60 and create a document. End the trace, and look for NRIV and TNRO tables if I remember well. You should find what you look for.