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

Graphical or UDF

Hi all,

My requirement is that ,in a custom IDOC if a perticular segment E1IDT01 exist then populate from the field TXT02(even if it is blank) else populate from other segment field BELNR.

my logic is if->exists->E1IDT01 and TXT02->then TXT02

Else

Belnr these are mapped to the target.

Now the problem is this is working fine when TXT02 has data,if it is empty the target is getting populated with Belnr though E1IDT01 exists.

I tried various ways if TXT02->equals(text function)=CONSTANT [] then concat TXT02 ->CONSTANT " ".This dint work .The value is still getting populated from Belnr.

Please suggest.

Thanks,

Srinivasa

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 01:05 PM

    Hi Srini,

    Just map "MapWithDefault" function to TXT02 and then try. Douple click "MapWithDefault" function and assign any value in it.

    The modifide logic will be

    if->exists->E1IDT01 and TXT02->MapWithDefault->then TXT02

    > Else

    > Belnr

    Regards,

    Sarvesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 23, 2008 at 12:44 PM

    Check Display queue in each step of the mapping. I think your condition is not satisfied always the else part is executed. Check display queue for If part. it should not be false and return the 'true' value.

    Thanks!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 12:53 PM

    hi,

    please check that if field TXT02 not having any value than what it contains, it is null value or that node does not exist.

    if it not exist than plese check the existance of TXT02 and map with constant.

    regards,

    navneet

    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.