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

Can any body help in IDoc field handling

Hi every body,

i am working Idoc( INVOIC01) to File scenario, which is related to Invoice processing. i got one problem as below,

there is one segment E1EDP01 under that i am having several E1EDP02. Each E1EDP02 may have different QUALF(qualifier). now i should check weather qualifier equals to 002 or not, if Qualifier is 002, then i will map the field(ZEILE) under qualifier 002 to target element. the problem here is some times though qualifier is 002 the source element ( ZEILE ) will not populate in the IDoc.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 10:27 AM

    Hi,

    When you work with Idoc, I suggest to you to use function "Exist" with a "IfThenElse", in order to check if source field exist. Else you will have an error during the running of your mapping (due to a Null.Exception)

    Regards

    Mickael

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      <i>the problem here is some times though qualifier is 002 the source element ( ZEILE ) will not populate in the IDoc.</i>

      Is it that when you have multiple Qualifiers it only adds the first one tot he Idoc and not the others.

      Please can you check on your context and see if it's correct??

      Regards

      Vijaya

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 10:54 AM

    Hi Madhu,

    If it is a case of multiple qualifiers, then can try this. I am assuming that the Qualf 002 occurs only once in E1EDP02.

    Qualf = 002 --> Exists >sort >Copy Value(0)--> if true,then ZEILE.

    The idea here is that the output of the EXISTS contains either true or false. So you sort to get the "True" as first value of the array and then you use the Copy value to pick only the first value of the array. In case, your target field is mandatory, then use If then else. Put some CONSTANT for the else condition.

    I hope this helps ur cause!!

    Regard,

    Vikram

    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.