Skip to Content
avatar image
Former Member

Mapping Requirement

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 06, 2010 at 12:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2010 at 02:11 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2010 at 04:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2010 at 10:15 PM

    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

    Add comment
    10|10000 characters needed characters exceeded