cancel
Showing results for 
Search instead for 
Did you mean: 

explicit COMMIT WORK?

peter_jarsunek
Participant
0 Kudos

Hi guys,

I try to create a reservation in IS-U using the BAPI_RESERVATION_CREATE via XI and the RFC Adapter. The BAPI itself doesn't contain COMMIT WORK. I have read somewhere, that XI posts COMMIT WORK automatically after calling the BAPI via RFC.

Any experiences with this?

Do I have to create new BAPI with teh COMMIT WORK statement?

Thanx, Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Peter,

you have to wrape the RFC BAPI_RESERVATION_CREATE in

an own RFC-Function. In this function you have to

make commit work. Without commit work it will not

work.

regards,

Ly-Na Phu

peter_jarsunek
Participant
0 Kudos

So XI can not (or does not) post the commit?

MichalKrawczyk
Active Contributor
0 Kudos

Hi Peter,

no it can't but you can easily do it yourself with a wrapper

https://websmp104.sap-ag.de/~sapdownload/011000358700000328352005E/HowtouseBAPandccBPM.pdf

this document is a very good how to

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

also the good thing when you use a wrapper

is that you can also include some of the logic

inside the wrapper that would take too mych time to develop in java or would be too slow to maintain inside XI...

and since wrappers are based on BAPIs you don't loose

the bapi the standard...

in my weblog:

/people/michal.krawczyk2/blog/2005/05/09/how-to-call-a-bapi-asynchronously-from-xi--with-qrfc

FM Z_BAPI_GOODSMVT_CREATE_BGROUND

is such a wrapper for bapi

Regards,

michal