cancel
Showing results for 
Search instead for 
Did you mean: 

File to RFC error handling

Former Member
0 Kudos

Hi ,

I am doing a file to RFC interface, what is the best way to hadle errors in this scenario.We have the RFC as synchronous which sends the response back but I know the file cannot capture the response,or is it best to handle it on SAP side? if so how, please help

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

First solution:

Ref : http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29

Second solution:

I think it would be better you go with Proxy(that can be synchronous and can send response). I prefer to go with Proxies.

/people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

Thanks,

Answers (2)

Answers (2)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

you have two solution

best is simulate async scenario where the file is the request and lets say generic_response the response structure.

in this case you will have

1) SI_request_oa with the file structure as request and the generic_response as respnse

2) RFC structure.

*Scenario *

this scenario will send the file data to RFC and the RFC will response back to PI but pi does no send the response to any system, just for monitoring. this will allow you to track the request and the response in PI.

the generic_response structure should look like

generic_response

---response

-


sistem

-


errorCode

-


message

you will have to define two mapping one for request and a second one for the response (RFC response and generic_response structure)

in the interface mapping define the SI_request_oa as source structure and the RFC as target structure.dont forget to assign mapping in request and response tab.

once you active all changes in ESR, configure the ID as a normal async scenario.

Scenario 2

the other possible scenario is send a asyc message to SAP and no response is send back to PI.so, you could save the response in an auxiliary table in SAP if you wish but is not the best.

i reccomend you the first solution.

Thanks

Former Member
0 Kudos

Any replies appreciated

Former Member
0 Kudos

I tried doing the 1st scenario Rodrigo mentioned but I could see only the request msg in MONI and did not see any response msg in MONI from the RFC,

Any other replies appreciated

deepak_shah
Contributor
0 Kudos

Hi,

Please refer the link below

http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without%20BPM)

Regards,

Deepak

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

another possibility is my wiki

http://wiki.sdn.sap.com/wiki/display/XI/Sync-AsyncwithoutccBPM

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use File to RFC to File with BPM .

Basically u are doing async(File) -


> Sync(RFC) -


> async(File) bridge pattern.

Follow this link

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit