Skip to Content
author's profile photo Former Member
Former Member

Doubt Regarding Mapping Logic

Hi All,

I have to fulfill the logic like following-- Idoc to File scenario

If there is no TDID field means i have to pass Constant

If there is a TDID field exists means, i have to check the qualifier like, if TDID = ZH05 then i have to mapp TDLINE and this is at header level and need to repeat it at receiver side. so used COPy function.

Check this Mapping screen

http://img186.imageshack.us/img186/2835/mapp.jpg

Every thing is fine, the problem is if there is no ZH05 qualifier in TDID means, Mapping is failing

It shlnt fail that time and it shld pass Constant.

I used like this, and always it is passing Constant even though there is ZH05 in this.

http://img525.imageshack.us/img525/7000/mapp1.jpg

Please suggest me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 03, 2009 at 09:32 PM

    Hi Vamsi,

    You may need to use FormatNum or oneuseasmany function here. Copyvalue might have issues when the value comes as suppress. So try to use them and see.

    Regards,

    ---Satish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      U may try it,

      If Qualf=(ZH05) -


      >Format By Example -If - Then -> TDLINE


      >Mapwith Default->Concat ->Split by value ->Output

      Put the Segment header of TDLINE -/ \---else(Pass Constant) Segment value on -/

      which u want to copy to the output

      Thanks,

      Sudhansu

      Edited by: Sudhansukumar Behera on Sep 4, 2009 4:05 PM

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 03:41 AM

    Hi,

    Try with this:

    http://www.imagenonline.com/img_a178441.gif

    Regards

    Ivan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 05:58 AM

    Hi Satish,

    I have also faced such mapping and I did it:

    if(TDID= ZH05) THEN TDLINE(USEONEASMANY) ELSE CONSTANT

    and in USEONEASMANY

    1st parameter as TDLINE

    2nd parameter as how many times TDLINE has to appear that field or header

    3rd parameter for context change

    I believe this will solve the issue.Just try it out.

    Thanks and Regards,

    Nutan

    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.