on 02-02-2012 6:26 AM
HI,
We had a very typical requirement for our client.
Scenarios is IDOC to multiple files else consider a simple file to file scenario.
Source structure contains some 5 fields and the target also remains the same 5 fields.
Assume SERNO presents in both structures.
The issue here is i need to check for a Target SERNO field should accept only numerical value, there is a possibilty of coming alphanumeric and sometimes with specialcharacter appended numeric. i have developed a udf which allows only numeric.
The mapping is getting failed if alphanumeric or special character exists in that field.
But, the client requires an alert mentioning that this mapping is failed due to the problem in Source SERNO field so that he can easily debug and resubmit those idocs.
I want to know is it possible to raise alerts at field levels.
Thanks,
--Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore,
As per the requirement this scenario will fail at mapping level. You will get a failure in SXMB_MONI. Kindly create an Alert for this particular interface and mention the proper details in that. It will generate the Alert stating the error at that particular field SERNO.
use t-code: ALRTCATDEF
Regards,
Nutan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you havd implemented ALERT frame work already in PI then it covers this kind of errors, if you want send alert to only this interface then create one more alert category it covers mapping errors.
or
you can use receiver mail adapter, in mapping level if condition faills the call receiver mail adapter,dont throw error message in mapping.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
This is a new development and we dont hve any Alert framework right now exist, i believe even the alert category its not possibel to drill down to the field level.
if its possible could you please elaborate.
We have many fileds to check as similarly defined above example SERNO, so if the alerts are triggered @ filed level that are failed that will be a great..
My Ultimate requirement is to notify client that due to this field the mapping was occured and alert should throw some light on to locate the error at the field level.
Please suggest how to procced..
Thanks,
--Kishore
Hi Kishore,
In your UDF use Java functions to add custom message to Error Log/Trace and raise exception in UDF.
Ex: A mapping exception occured while mapping SERNO to the target field.
This will be captured by your Alert Category Container Variables which basically raise an Alert for Mapping.
Use this to all other fields for which you want to implement such custom error messaging.
-BR
Praveen K
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.