on 10-29-2008 4:09 AM
Hi,
In my scenario IDOC may have repeated segments which different value in one filed (qualifier). For different qualifier, I want to map IDOC segment to different target field.
This is an example of my IDOC segment.
<E1EDS01>
<SUMID>10</SUMID> -
> Determine which target filed to map with
<SUMME>100</SUMME> -
> map with target field A
</E1EDS01>
<E1EDS01>
<SUMID>11</SUMID> -
> Determine which target filed to map with
<SUMME>200</SUMME> -
> map with target field B
</E1EDS01>
I already try to use if function in XI but it doesn't work because it can look up only first <SUMID> =10 and get <SUMME> = 100.
In my understanding, this could be solved by using UDF but I don't know how to write UDF code since i'm novice in JAVA language. Any example of UDF or other solution would be appreciated.
Thanks,
Pavin
>>look up only first <SUMID> =10 and get <SUMME> = 100.
Just change the context of SUMID to the root node of IDOC and you will see all the values for SUMID.
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much. It works. Point rewarded.
Regards,
Pavin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Change the context to IDOC node and then simply use IF for both the target nodes. it will pass the value based on your condition.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.