cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Issue

former_member249399
Active Participant
0 Kudos

Hi .

working on IDOC to file scenario

source Structure :

CONS

  id

  ....

  CUST

  field of cust

Target Structure:

NODEA

NODEB

    NODEA

requirement is that depend on id field ill get output.

If id is not available all CUST data ill available in NODE A

if id is available all CONS data will be under NODE B and CUST data Under NODE A.

View Entire Topic
former_member249399
Active Participant
0 Kudos

HI Mark,

PFA input xml file.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

Replace the constant with Z1WHCUSTC. It should produce two boxes.

Regards,

Mark

former_member249399
Active Participant
0 Kudos

Hi Mark,

I am not getting two  box if two  Z1WHCONS with  single Z1WHCUSTC and cons_contr_id  is not available.

or if there is combination of nodes. like

Z1WHCONS with  two  Z1WHCUSTC and no cons_contr_id

Z1WHCONS with  two  Z1WHCUSTC and cons_contr_id

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

Yes, it is not as easy as it seems. You need to find a unique key to make this work. I'll get back to you on this.

Here is the mapping I have:

For box (NodeA):

For mixPlt

For mixPlt-box

Test:

Specific fields for mixPlt-box can use this logic:

Sample Test:

Regards,

Mark

former_member249399
Active Participant
0 Kudos

Hi Mark,

But in LINE Node , not getting corresponding data.need any condition on it?

Regards,

Ranjana

markangelo_dihiansan
Active Contributor
0 Kudos

Yes, it needs a condition. What should be the logic for it?

former_member249399
Active Participant
0 Kudos

HI Mark,

line data of Z1WHCUSTC should under BOX when id is not available,

line data of Z1WHCUSTC should under MIXPLT BOX when id is available.

I tried but not gettig it.

Thanks.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

Line for mixPlt:

Line for NodeA

Example:

Regards,

Mark

former_member249399
Active Participant
0 Kudos

Hi Mark,

I am getting below issue when testing same file. I followed the same steps as mentioned above.

Harish
Active Contributor
0 Kudos

Hi Rank,

I think you need to apply the same mapping rule of line node to box node as well (with remove context at the end). as if you do not get line the box node should not be generated.

regards,

Harish

former_member249399
Active Participant
0 Kudos

No Harish, I tried that option but getting same issue.

Harish
Active Contributor
0 Kudos

Can you provide the display queue at if function for box node?

former_member249399
Active Participant
0 Kudos

Hi Harish, Pleaes find above Queue at Box.

Harish
Active Contributor
0 Kudos

Hi Ranj,

this is look ok, can you also provide the screen shot of line field (at if without else).

regards,

Harish

former_member249399
Active Participant
0 Kudos

Hi Harish,

please find above queue for BOX-Line at if without else.

Harish
Active Contributor
0 Kudos

Hi Ranj,

The problem is input to the if function. The condition has one three context and value has 6. and you need same no of context to apply the function.

The other problem is blue suppress. please check the property of ifwithout else, the check box for keep suppress should be unchecked.

regards,

Harish

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

In your if-else statement, uncheck the keep suppress option.

Regards,

Mark