on 09-14-2010 10:31 AM
Hi All
I have to do a validation inside my mapping and if the validation fails I have to fail the mapping and throw an error.
How can I fail a mpping in SAP PI (7.1)
Thnaks
Sourabh
You can throw an exception in your mapping, that will fail the message
throw new RuntimeException("Reason");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
take a look to this blog, but dont pay attension to abap code just mmaping part
/people/ravi.gupta4/blog/2010/02/04/automating-cancellation-of-a-failed-message-in-xi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the validation is "Rule based" then your should handle the failure inside PI Mapping as part of the mapping rules in XI. (UDF is an option). for example if a value in the source XML message is not equal to X then raise exception and fail mapping.
If this is a structure change then the practice is to perform structure validation in the adapter itself (XML validation,Fie adapter sender validation,ItemField,Etc. the Serviceinterfacestructure will assist you in the process (Can try and use Enumeration inside the DT itself)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Plz have a look:
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can do ur validation inside mapping UDF. If validation fails then u can raise an exception through ur java code and this exception will subsequently fail the mapping.
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 | |
10 | |
10 | |
9 | |
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.