cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Requirement

Former Member
0 Kudos

Hi,

I have a small requirement regarding Graphical Mapping at PI 7.0. My source structure is 1: Unbounded and My Traget Structure is having 1:0 occurances. So, I just want to pass the Particular Data only to the target side. For example from the sorce XML I'm getting Multiple Company details . But I just want to pass the particular company details (single) to the target side.

I have used the folowing functions for achive the requirement.

Soorce Filed --> EQUALS to some Constant -- then I'm using IF THEN ELSE function and I have used the CREATE IF Function.

Else I have mapped with other contant.

But This is working If i got the particular Company details at the First Nodeitself otherwise But I just want to check the entire source file and then If My required Company Number exists in the sorce file then only I just want to pass the particular company details to the target side and I just want to skip the Rest of the Company details in the mapping itself.

Please suggest me to solve this problem.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Check this blog to get an idea, how you can achieve this:

/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Jain,

You would have to use node functions and do some trial and error, try using remove contexts soon after the source field.

Also like others suggested change the context along with remove context function. it should work, its a simple req.

Regards,

Pavan

Former Member
0 Kudos

Hi

Change the context of source to the message type.... and then try it.....

Test in the mapping itself.. and check if u r giving the record other then 1st also.. the target is created.

Let us know the result

Babu

Former Member
0 Kudos

Hi,

Select the source Company code field and right click change the context next level or another level. then all the values with come into under one queue then you will get the output.

ex:

Root

Root1

Companycode

now by default companycode context is Root1 then change to Root context. or you can change otherway also context after Company code field use the RemoveContext fucntion then also you will get the output..

If the result did not show output then after If then else use the SplitByValue function. But each field level same conadition you need to put and need to map all the fields then only output result you can see.

Regards,

Venu.