Skip to Content
avatar image
Former Member

WebService From a BAPI & Commit

Heyho!

I created a Webservice from a BAPI (From BusinessPartner, to create a BP).

There is the option to add "TransactionCommit" and "TransactionRollBack" to the Service Definition (that is what i did).

I consume the Webservice with an external Java-Application, create a BP and then call the commit.

My Problem is that the BP can't be found anymore as if it wasn't even created.

The counter for the BPs did counter++ but there is no BP to be shown.

Anyone?

regards

frank

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 03, 2008 at 03:56 AM

    HI,

    I've also noticed this issue of COMMIT/ROLLBACK not getting executed when used in the service definition option created from BAPI. Alternative will be to write a wrapper RFC inside which you'll execute the BAPI then Commit or Rollback and then expose the wrapper RFC as web services which you can execute from another application.

    Thanks,

    Dipankar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2008 at 07:11 AM

    Have you tested the switching the service to "Stateful"?

    SE80 -> <your service> -> Configuration -> Stateful Communication -> Profile "Stateful"

    Greetings,

    S.Berg

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you all for your replies,

      i solved this problem with the following:

      1)

      i created a new RFC-able FM

      2)

      I Called the BAPI-Method

      3)

      I Called 'BAPI_COMMIT_TRANSACTION'

      4)

      I generated the Webservice

      thank you

      frank