cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical or UDF

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

SudhirT
Active Contributor
0 Kudos

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!