on 12-14-2010 5:56 PM
Hi Experts,
I am having a couple of problem while mapping two fileds in SAP PI.
1. I am mapping an IDoc filed(Source) with a file field(Target)
Now, the condition if there is no value from the source filed of Idoc say X then map with another source filed Y with the same target file filed.
But while using standard functions of SAP PI I am geeting error as boolean declaration not allowed here.
2. Another problem is while adding prefix to a target field it is always coming at the end.
Please help me out.
Thanks and regards,
Aniruddha Bhattacharya
Thanks a lot again Jose, I will try that out and regarding my second question as adding a prefix?
Many thanks,
Regards
Aniruddha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Jose, it has worked perfectly.
Regards,
Aniruddha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just using the concat standard function, but its adding the fields in the beginning.
Regards,
Aniruddha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aniruddha,
you can write a simple UDF to handle that.
The UDF will receive the two possible values for the target field, e.g., field_1 and field_2.
if (field_1 == null || field_1.equals("")) {
return field_2. } else { return field_1. }
Best regards,
JN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.