Skip to Content

checking the IF Condition in graphical mapping under message mapping

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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 05:14 PM

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

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

    Then you can use cancat with E1EDKA1-TITLE.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2010 at 04:51 PM


    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 THE REMOVE CONTEXT to your target field.

    Hope it helps!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.