cancel
Showing results for 
Search instead for 
Did you mean: 

conditions on Mapping for IDOC

Former Member
0 Kudos

Hi,

I has the following structure of an IDOC

- <E1EDKA1 SEGMENT="1"> 1..........Unbounded

<PARVW>XXXX</PARVW>

<PARTN>YYYYY</PARTN>

where E1EDKA1 occurs 1......Unbounded at the sender side .

Based on the Values of PARVW

PARVW =RG,AG,WE

Receiver fields :

RECEIVER1

RECEIVER2

RECEIVER3

If PARVW = RG i need to map the value of PARVW to RECEIVER1

If PARVW = AG i need to map the value of PARVW to RECEIVER2

If PARVW = WE i need to map the value of PARVW to RECEIVER2

Request you to please give me the suggestions

Thanks & Regards,

Y.Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

input-PARVW and constant (RG) to equals function

output of equals to ifwithoutelse, if its wqual then pass RG value else dont map to RECEIVER1

repeat the same for other fields.

chirag

Former Member
0 Kudos

Hi,

I has tried with that...but am not getting any value for my Receiver 1

Thanks & Regards,

Y.Raj

Former Member
0 Kudos

hi u have to use proper context i think make the input context to root level. take all the value in one context.

can u tell me wat u have done exactly.

u have to repeate the same for other target fields.

chirag

Former Member
0 Kudos

Hi Chirag,

Excellent...it's really very helpful for me to resolve this issue immediately.

I has changed the context at root level and now i could able to get the proper values.

Thanks for your support all...

Regards,

Y.Raj.

Answers (1)

Answers (1)

Former Member
0 Kudos

1. Check whether u hv changed the context of PARVW to IDOC in all the three mappings.

2. u hv to use equalsS function of text category.


PARVW----------->equalsS---->if------->receiver1
Constant[a]------>           then<---PARVW

Similarly change constants for receiver2 and receiver3.

Edited by: malini balasubramaniam on Oct 16, 2008 7:30 AM