cancel
Showing results for 
Search instead for 
Did you mean: 

use of BPM for processing XML message

former_member187447
Participant
0 Kudos

I have got a requirement for updating X-number and X- status into the SAP system from a non SAP system. I am getting the message which contains both these values in the form of xml and using HTTP and should be posted as 2 different IDOCs at the SAP system.

But the requirement is to post the X-number first and once it is updated X-status should be posted based on the number.

Assuming that X-number is available first and the status next in the non SAP system can we use BPM and if so how what needs to be done to make sure status doesnt update before number.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kalyan,

You can follow the below steps.

1. Receive

2.Transformation(Mapp the X-number to Idoc)

3.Synchronous send (Calling IDOC)

4.Switch(Check the condition here)

if True

5.Transformation(Update the status to the output file)

6.Send

if False

Resend the message

Regards,

Leela

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos

Hi,

Proceed as follows:

1) Receive the X-message

2) have a transformation step....and map only the x-number into the target IDOC

3) have a synchronous send step....why a sync send....because in that you can get the confirmation for success/failure of your x-number upload....this is only if you want a confirmation...this will make sure that your x-number is updated first.....

4) now if you do not want to have a response back then...have a transformation step to map the x-status to your IDOC...then have a async send step...

5)

a)If sync send used: then you can have a condition like check the status of upload of x-number and if successful then send the x-status.

b) if failure then you can resend the x-number message.

c) if async send then you can directly send your x-status message.

Steps 3, 5(a), 5(b) can be avoided if async commn is used. If you want that your BPM runs somewhat faster then you can avoid the transformation steps....instead you can use the mappings in the respective interface detemination.

Regards,

Abhishek.