Skip to Content
avatar image
Former Member

Bapi_acc_document_post

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 18, 2017 at 06:50 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 02:50 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 02, 2017 at 05:29 AM

    Hi Sudhakar,

    Check if you are using field ALLOC_NMBR in BAPI.

    Add comment
    10|10000 characters needed characters exceeded