Skip to Content


Hi there,

I'm trying to use the function SD_SALESDOCUMENT_CREATE within a WebDynpro Application.

I've read, that I have to call the BAPI_TRANSACTION_COMMIT after executing SD_SALESDOCUMENT_CREATE.

But when I execute it, nothing seems so be commited and there is no new salesdocument saved.

Is there anything special needs to be considered?

I just execute SD_SALESDOCUMENT_CREATE and after this I execute BAPI_TRANSACTION_COMMIT.

Thanks ahead,


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2014 at 02:40 PM

    That should do it. Check the return values from the SD document create BAPI. Maybe there is a reason why the document isn't created?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Bernd Speckmann

      Web Dynpro Java has a session concept and I know for a fact that first calling a remote enabled function module or BAPI and then calling BAPI_TRANSACTION_COMMIT as a separate RFC call works just fine. It might be required to have BAPI_TRANSACTION_COMMIT in the same model, though. There must be some other reason for what you are seeing. Can you share the exact version of your AS JAVA and AS ABAP stacks, including SP levels, patch levels, etc. Is the problem that you are not able to retrieve the document after calling commit? If not, it should be sufficient to use the WAIT = 'X' parameter for BAPI_TRANSACTION_COMMIT. If still not working, you should create a customer incident to SAP support and let them investigate, maybe there is something broken in your AS JAVA.