Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem exposing BAPI_SALESORDER_CREATEFROMDAT2 as a webservice

Former Member
0 Likes
514

Hello Experts,

We have exposed BAPI_SALESORDER_CREATEFROMDAT2 as a webservice, and it returns the SO Documnet number once we invoke this. How ever it getting archived because SAP needs BAPI_TRANSACTION_COMMIT, for it to be saved in the data base.

We have tried exposing both BAPI's in a single webservice and tried calling the operations one after other.Altough we dont get any errors, sales order is still in archive state.

Please help..

Thanks,

Srikanth

4 REPLIES 4
Read only

Former Member
0 Likes
476

hi,

did u solve this problem?

if it solved ....

please give me the code

thanks&regards

srinivas,

Read only

0 Likes
476

Hello Srinivas,

Insted of using webservice we have started using a java code which directly creates a SO in to SAP.

If you want that, I can send you accross.

Thanks & Regards,

Srikanth

Read only

0 Likes
476

We had the same issue & got around it by reating a new Z_BAPI* which was a simple "wrapper"

around the BAPI_SALESORDER_CREATEFROMDAT2 and COMMIT BAPI's & then this works

perfectly for a webservice as you know only need to call one BAPI

Cheers,

Robert

Read only

Former Member
0 Likes
476

Thanks for all the support we have started using a Java code insted of calling BAPI as webservice