Skip to Content
0

Bapi_acc_document_post

May 17, 2017 at 09:32 AM

143

avatar image
Former Member

I'm using BAPi_ACC_DOCUMENT_POST to post a document in FI.

Also used BAPI_TRANSACTION_COMMIT with wait = 'X'.

My issue is when i execute the program status is "Doc no : "1460000154" posted successfully".

When i check in FB03 the assignment field is not populating with my requirement i.e UTR no.

This is working fine in debugging mode but i execute the program directly BSEG-ZUONR field is not populating.

Kindly help in solving the issue.

Pls someone answer..

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Eli Klovski
May 18, 2017 at 06:50 AM
0

Hi,

That's very strange. I can think only of two hypothetical reasons:

a) you have a substitution which puts the value of ZUONR to blank

b) you have a setting in OBCY which causes ZUONR to empty itself

Of course, all this is hardly probable, but possible in theory.

Regards,

Eli

P.S. If this is not the case, you have to debug your program, but not only till the moment, where you fill BAPI parameters, but till the update of tables itself. There, you would see if the values somehow are erased and what was the reason for this.

Share
10 |10000 characters needed characters left characters exceeded
Bastiaan Jansen May 29, 2017 at 02:50 PM
0

are you making the exact same posting while debugging/direct execution? Same accounts etc?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jun 02, 2017 at 05:29 AM
0

Hi Sudhakar,

Check if you are using field ALLOC_NMBR in BAPI.

Share
10 |10000 characters needed characters left characters exceeded