cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi_acc_document_post

Former Member
0 Kudos

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..

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member219217
Active Participant
0 Kudos

Hi Sudhakar,

Check if you are using field ALLOC_NMBR in BAPI.

Former Member
0 Kudos

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

iklovski
Active Contributor
0 Kudos

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.