on 10-27-2009 11:21 AM
Hi experts,
I need to put a condition in Receiver Determination : send Idoc if one specific field is empty.
The issue is that when the field is empty, it is not present in the Idoc, so I constantly have an error.
Do you know how to bypass this ?
Thanks a lot in advance,
Jamal
Hi,
Check in the mapping whether the field exists using the "exists" standard function. If it doesn't exist then populate it with some other data.
Hope this helps.
Regards,
Anand Patil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have 2 options.
1.Select the end message processing without error in receiver determination.
2. Use the below xpath for empty node.(for Example)
/p1:Xpath_Emp_Details/Emp_Details [not(Dep)] = EX.
Regards,
Prakasu.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Option 1:
Ask the sender system to send some character in the field (instead of empty) which you could use in the Receiver determination.
This is only if the field is an identifier or so and doesn't bear any business data.
Option 2 (only if nothing else works)
Worst case if there is no other way then have a graphical mapping with the idoc as sender and receiver.Use mapwithDefault function and put in some value in this field.
Then you can use the assigned value in receiver determination.
If this is the First sender , then have a dummy BPM with receive and send step.
Send it to the BPM via mapping and the BPM should send it to the receiver system using conditional receiver determination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Put an XPATh condition to count the number of occurances of that field and see if it is greater than 1 , Along with the condtion to check the values of that field.
eg:
(count(/Pip3A7PurchaseOrderUpdateNotification/toRole/PartnerRoleDescription/PartnerDescription/PhysicalAddress/GlobalLocationIdentifier) = 1)
YOu can use your field XPATH in stead of what i have given as eg.
Regards,
Ravi Kanth Talagana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.