cancel
Showing results for 
Search instead for 
Did you mean: 

WebService From a BAPI & Commit

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member4529
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

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

Greetings,

S.Berg

Former Member
0 Kudos

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