Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on 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


    Add a 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.


  • Posted on 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.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.