cancel
Showing results for 
Search instead for 
Did you mean: 

Calling "BAPI_SALESORDER_CREATEFROMDAT2" BAPI from XI

Former Member
0 Kudos

Hi,

I want to create a sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT2". I did configuration in TWO ways, either one not working.

Option 1: Called BAPI with RFC receiver adapter and commint control handled in communication channel.

Option 2: Wrote a custom wrapper to call Commit BAPI followed by Sales order create BAPI.

In both cases, getting success message , but sales order is not commitng to database. When I do manual testing using SE37, it works fine.

Any ideas?

Message was edited by: Venkat

Accepted Solutions (0)

Answers (4)

Answers (4)

dirk_roeckmann
Participant
0 Kudos

Hi Venkat,

both ways you mentioned, work. I did it in several projects. In the wrapper case, where I did the BAPI_TRANSACTION_COMMIT, I set the WAIT parameter.

Did you do that, too?

regards

Dirk

Former Member
0 Kudos

Hi Venkat,

Have a look at these similar threads..

Please go thru them as they deal with the same issue.

cheers,

Prashanth

P.S : Please mark helpful answers

Former Member
0 Kudos

Hi Venkat,

From SP14 or 15 you don't have to write a wrapper to commit. In the receiver adapter enable the Commit paramter.

Mathew

stefan_grube
Active Contributor
0 Kudos

> Option 2: Wrote a custom wrapper to call Commit BAPI

> followed by Sales order create BAPI.

Do you describe that correct?

The commit BAPI has to be the last.

Regards

Stefan

Former Member
0 Kudos

Yes, I defined at the end.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>Option 1: Called BAPI with RFC receiver adapter and commint control handled in communication channel.

this should work in standard

>>>>Option 2: Wrote a custom wrapper to call Commit BAPI followed by Sales order create BAPI.

are you sure the <b>BAPI_TRANSACTION_COMMIT</b> is being correctly invoked?

if not you can always try debugging the call

/people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-

but it seems that you're not commiting it

Regards,

michal