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.

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (3)

Answers (3)

former_member249399
Active Participant
0 Kudos

Hi Mark,

I am facing issue when ,apping Comment part in this interface.

http://scn.sap.com/thread/3580498

thanks,

Ranj.

former_member249399
Active Participant
0 Kudos

Hi ,

PFA attached files.

there are BOX node and Maixplt node under which BOX node is available.

Only BOX field available if CUST_CONTR_ID is available.

if  CUST_CONTR_ID is available then MIXPLT with BOX will available. I am not getting multiple nodes in output.

MIXPLT fiels are from  CONS node and BOX fields are from CUSTC node.


markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

Aside from using the exists function, you need to pass it in an ifWithoutElse. Do not use createIf for your requirement. See screenshot;

For NodeA:

For NodeB:

Sample test:

3 Z1WHCONS, second one does not have CONS_CONTR_ID

This is just an example. I do not have the complete scenario so in this case, only the parent nodes got created.

Regards,

Mark

former_member249399
Active Participant
0 Kudos


HI Mark,

Thanks for your valuable input.

But If there are two Z1WHCUSTC nodes under Z1WHCONS Node without cons_contr_id , i am getting only one BOX node , it should be 2 BOX.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ranj,

Please provide us with a sample input/output XML.

Regards,

Mark

former_member188885
Active Participant
0 Kudos

Hi Ranj,

Try using the exist function. It should help. Map the target field, if ID exists/not exists depending upon your requirement.

Regards,

Lavanya R.

former_member249399
Active Participant
0 Kudos

I tried that option , but getting single Node . but for Multiple occurences of data NODE should repeat.

Let me know whether condition on NODE level or field level.

Only Node A Should not exist if ID is available.

it should be

NODE B

  NODE A

former_member190624
Active Contributor
0 Kudos

Hi Ranj,

Provide source and target structure / XML format , so that we can provide more inputs .

Thanks

Hari.