cancel
Showing results for 
Search instead for 
Did you mean: 

FILE->XI3.0->SAP

Former Member
0 Kudos

HI,

I have problem i have configured system for

FIle->file adapter

XI3.0

SAP->rfc adapter

My scenario should create sales order through

BAPI_SALESORDER_CREATEFROMDAT1

I can see the xml messsage proccessed successfuly in

SXMB_MONI,

but sales order is not getting created in SAP.

Regards,

Tuhin

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Then probably something is wrong with your input parameters. Remember that external debugging is user dependent. (need same user for debugging as for the RFC call) Have you tried to manually call the BAPI with SE37 with the same parameters as for the RFC call and check the BAPIRETURN messages?

=> Johan

Former Member
0 Kudos

HI Johan,

I tried to post document with same set of data its working fine but when i Use the XI its not posting it.

I m using same user for debugging but its never reached .However status in SXMB_MONI is Still processed sucessfully flag.The return payload is not showing document number created it only shows same data which i have passed.

Thanks ,

Tuhin

Former Member
0 Kudos

HI all,

Thank u very much for many replies but still issue is not solved.

yes this bapi is doing commit automatically so that is not the issue i have checked with number range also number is not cousumed .

I have set external break point in SAP system in BAPI but that break point is not getting reached thats what i feel.

Regards,

Tuhin

Former Member
0 Kudos

Hello Tuhin

Most BAPIs does not issue a commit but require the calling application to handle transaction control. If you want to call a BAPI via the RFC adapter you usually have to wrap the BAPI call in a RFC enabled FM of your own which should handle the commit or rollback based on the return parameters from the BAPI. Then you call your own FM from the RFC adapter.

=> Johan

Former Member
0 Kudos

and moreover you can set external breakpoint, to debug bapi, to see if the data from file is coming the desired way and sales order is created accordingly.

regards

Satish

Former Member
0 Kudos

You can confirm this by verifying your Number range objects for the Sales Order. If these numbers are consumed, but you do not see a document, you can be certain that the BAPI Commit is the reason why you do not see your Sales Order.

-Feroz

Boris_Rubarth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

first check if the BAPI does the commit work itself: typical BAPIs for writing data do not do that. Just run a test in transaction SE37 with your data and then check if the salesorder was created. If not, the BAPI can not be used directly with RFC adapter.

Hope that helps, regards

Boris

cdumont69
Contributor
0 Kudos

Hi,

In first time you can trace the RFC call in SAP to see if XI use it.

Regards.

Former Member
0 Kudos

Hi,

You can look into Integration Monitoring on Runtime Workbench. Maybe you see an error there.

And Check your sm59 Destination.

Is there a connection to R/3 when you test the Destination ?

You also can try to restart the RFC-Adapter.

Regards,

Robin