Skip to Content
avatar image
Former Member

File to RFC error handling

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 25, 2011 at 06:38 AM

    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,

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2011 at 08:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2011 at 08:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded