Skip to Content
avatar image
Former Member

exception or error reprocessing in soap to rfc synchronous scenario

Hello Experts ,

I have a requirement in which third party will send data to sap using soap to rfc synchronous scenario. They will be going to send data for customer creation. So if costumer is created in sap , then we are sending message as 'customer created' and if not then 'customer not created'. In both the cases it is in successful state in PI.

        Now what they are asking is , if response is   'customer not created' then it should stuck in error state in PI and it should be again reprocessed manually next day. How it can be achieved? Is it possible to keep it in error state and reprocess? Can we use exceptions and fault messages?

Thanks and regards ,

Nikhil Save

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Dec 16, 2014 at 10:54 AM

    Hi Nikhil,

    AFAIK - you can't restart Sync message in PI, it has to be resent from Sender.

    You can suggest to resent after few hrs / days based on the frequency at which you create the Customer in your system

    Regards,
    Azhar

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Nikhil,

      But cant we do something using exceptions?

      For the exceptions inside the RFC you can do another RFC to wrap this with the Exception tab filled. Then in the RFC wrapper you can deal with this exception logically.

      Other exceptions like timeout, the ECC is down and so on, as far as i know can't be controlled if you don't use a BPM.

      Regards.

  • Dec 16, 2014 at 11:08 AM

    Hi Nikhil,

    As Azhar said the synchronous messages can't be restarted, and this is logical, think you are using your browser and you call any URL and this fails, it has no sense that X days later the URL give you a response to your browser.

    When I use RFC's in the receiver side, i usually use an export variable type BAPIRETURN or BAPIRET2 that it contains the success of the call. Personally,  i'd rather having a tag in the WSDL of the response in which is pointed out this result.

    Hope this helps.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Inaki ,

      Thanks. but i have read some where that we can reprocess error messages using BPM . Is it true ?

      If yes , then how is it possible ?  If i will reprocess using bpm , then where would response go?

      Regards ,

      Nikhil save

  • avatar image
    Former Member
    Dec 16, 2014 at 11:40 AM

    Hi Nikhil,

    if you want to hold the response messages for particular time and then process to send them. means you can achieve by UDF mapping to the target node..Please see below thread,


    Hope it helps!

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 16, 2014 at 08:12 PM

    I think it is not possible using middle-ware. Source system has to resend "failed messages/creations".

    Add comment
    10|10000 characters needed characters exceeded