cancel
Showing results for 
Search instead for 
Did you mean: 

How to Raise Alerts from the fields of Mapping?

former_member238007
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Kishore,

maybe this blog will help you:

Features: Generate customized exeptions in graphical mapping.

Regards,

Konrad

Former Member
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

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

former_member238007
Contributor
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Kishore,

If you send alert email it would not give complete error descirtion in subject.

I would suggest you to go for Receiver mail adapter then you enter subject with SERNO but you shold avoind mapping error then supress the record then only mail would deliver to receipient.

Regards,

Raj

Former Member
0 Kudos

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