cancel
Showing results for 
Search instead for 
Did you mean: 

checking the IF Condition in graphical mapping under message mapping

venkatasap
Participant
0 Kudos

Hi Sap All.

in an Idoc to webservice Interface,i have got a requirement where in the message mapping there is a segment called E1EDKA1

here this E1EDKA1 segment will be repeating for multiple times so i need too checkfor every E1EDKA1 if E1EDK01-PARVW = x if yes then i need to CONCAT the corresponding E1EDKA1-title to the E1EDK01-BELNR which occurs only for one time in the IDOC then map to target field which occurs under the header of the target structure.

here i used if then standard function with if E1EDKA1-PARVW = X then E1EDKA1 TITLE ,E1EDK01-BELNR ->CONCAT ->map to target field under header.

but when i click on Display queue function of IF THEN its only concatenating the first occurance E1EDKA1-TITLE to E1EDK01 -BELNR and then passing to target irrespective of "TRUE" or "FALSE".

will be waiting for the best solution for this.

regards.

Varma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Keep your current map, use following logic to replace E1EDK01 -BELNR


 E1EDK01 -BELNR ------------------------------>
 E1EDKA1-TITLE(raise Context to IDOC)  ---->UseOneAsMany--->
 E1EDKA1-TITLE-------------------------------->

Then you can use cancat with E1EDKA1-TITLE.

Regards

Liang

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Varma,

Use the below logic



Use IF THEN Without else

Pass the below logic to IF PART

PARVW(change context to IDOC) , eQuals, Constant( whatever you want to pass)

Pass the below logic to THEN PART

BELNR ,CONCAT, TITLE(change context to IDOC)


PASS THE OUTPUT OF IF THEN to REMOVE CONTEXT 
PASS THE OUTPUT OF THE REMOVE CONTEXT to your target field.

Hope it helps!

venkatasap
Participant
0 Kudos

Hi Raj.

Thanks for your response.

your help in this regard is appreciated,it helped me a lot.

regards.

Varma.

justin_santhanam
Active Contributor
0 Kudos

I'm glad, it helped you!

raj.