cancel
Showing results for 
Search instead for 
Did you mean: 

Compare two structures in BPM

Former Member
0 Kudos

I have a BPM where I get two structures one from SAP

and one from WebService.

I have to compare these two strutures

if no entry is found in web service structure for the correponding entry in SAP Structure, then call other webservice else skip

Is this possible using Loop in BPM

Thanks

John

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Prasad,

I got this strucure with data from the rfc call to SAP

001

002

003

004

005

I got this structure with data from a call to web service

001

002

003

I have these two strucures in my BPM

Now, I have to compare these two structures and get

004, 005 which are not in the web service strucure and pass this data by calling another web service

I dont know how to loop over these two structures.

Is it possible to do this

Thanks for ur help

John

Former Member
0 Kudos

Hi John,

This can be done using mapping(transformation) step in BPM.

Create a multimapping with source messages as

1. strucure with data from the rfc call to SAP

2. structure with data from a call to web service

and have a target structre as structure which needs to be sent to another webservice.

Pass all the values from both the source structures to a user defined function. You can compare the input values from both the structers with each other using java code in a userdefined function and pass only the values(004

005) which needs to be sent to another webservice to target structure.

Regards

Anand

Former Member
0 Kudos

Hi Prasad,

Suppose I have 10 records in SAP Strucure and 8 records

in Web service strutcure.

Then i have to ignore 8 records which are similar in both structures and have to get the remaining two and pass it to the lagacy system.

How do i compare this using switch...

Please help me out..

Thanks

John

former_member189324
Contributor
0 Kudos

John,

Your question is not clear..You want to compare the records with in the structure...

In that case you have to use a loop step and compare the records with in the structure,then trigger a message for the records which does not match..

Prasad

former_member189324
Contributor
0 Kudos

Hi John,

Use a Switch Step

Prasad