on 02-19-2007 11:30 AM
Hi,
Need ur help in creating UDF, i have source fields in Order IDOC under subsegment EDP35 of EDP01 segment.
QUALZ
CUSADD
CUSADD_BEZ
and target fields:
RT
RU
RC
ET
I tried graphical maping as follows:
1) If Qualz = 001 and CUSADD exists then RT else Constant
2) If Qualz = 004 and CUSADD exists then ET else Constant
3) If Qualz = 001 and CUSADD_BEZ exists then RC else Constant
4) If Qualz = 004 and CUSADD_BEZ exists then RU else Constant
It is not throwing any mapping error but the values containing in the fields are not populating properly, as CUSADD & CUSADD_BEZ fields are repeating based on EDP01 segment.
Can any body suggest me a suitable UDF plz?
regards
As others have mentioned above, writing a UDF may still result in the same issue. But if it helps I have written a weblog regarding context changes with UDFs. You could possibly take from it what you need and include your own logic to finish the rest. Good luck, hope it helps.
/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi
Message was edited by:
Harrison Holland
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
do a splitbyvalue before creating doing a creatif function for the target nodes... Hope this helps you........
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya ,
I guess you have to change the context. You rigth mouse click in grahical mapping and see that the context changes in your queue of both sourec fields are the same.
I think you will have the same problems using UDF.
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi vijaya,
you need to write a UDF using Context or Queue based on our requiremnt and loop the array and populate the values and pass via ResultList.
Reward points
Regards
Sreram.G.Reddy
Message was edited by:
Sreeram Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
as I told a UDF will probably NOT solve your mapping.
As I told use right-mouse ( in the graphical mapping field) --> queue an "debug" your mapping. Therefor create first a test-message in tab "test".
Play a litte with this; you will find it out
The other suggestion is to create a simplified version. Create a data-type that is similar to the IDOC (same hierachy but DO NOT use all IDOC fields. This ist irritating you)
Maybe splitByValue could also be a solution.
Is the hierarchy of the IDOC you wrote correct?
Is the occurance of the fields you compare the same?
Regards Mario
Message was edited by:
Mario Müller
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.