on 06-02-2008 10:13 AM
Hi experts,
I want to do the mobile format validation in mapping using the UDF. If validation fails i wanna throw the response with the error.
He implemented this with BPM. The BPM runs a transformation (mapping validation) and if that fails, responds with error.
But, is there an alternative to BPM? As runs validating fields of an interface message like the following pattern defined for the mobile field?
<xsd:element name="phoneNumber">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
7e797b8220d011dd8254e4d9ac100873
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
Thanks,
Jose.
Thanks Aashish,
But the exception to the system has to go home without sending the message to the destination system.
Currently, my solution is with BPM, but this solution is slower than without BPM.
Edited by: Jose Mª Mudarra Lara on Jun 2, 2008 3:30 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If i am not mistaken, you just want to validate the mobile number field and want to raise exception if it is not in the correct format or length or else you want.
I think for this purpose, you need to write an UDF will also help. In this UDF you can check about the mobile number format and everything and later if any of the given case fails just add the value to resulting string and send this as exception to the target system / or the system you want to send or at the same place where exception occured or you can also get out from the mapping.
Regards
Aashish Sinha
PS : reward points if helpful
Edited by: Aashish Sinha on Jun 2, 2008 3:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Iddo,
Does the LookUp I can serve to respond to a message synchronous?
I will investigate if it can be done. In this case it said.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can indeed validate the correctness of a message using a UDF, but I'm not sure about sending out a response with an error. Maybe this can be of some use to you:
/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
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.