cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing MAPPING_TRACE from function module

Former Member
0 Kudos

Hi,

We are trying to capture the MAPPING_TRACE from SXMB_MONI into the alert text.

We don't want to call the alert framework directly from the mapping, and we don't want to use the BPM container.

We are able to generate text dynamically into the Alert Category.

My goal is to write a function module, which will take the MSG_GUID of MONI, and will return the MAPPING_TRACE.

Is there any way to do this?

Regards,

Puloma.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member181962
Active Contributor
0 Kudos
Former Member
0 Kudos

The following link might be helpful for you. Refer part2 in the document.

http://ecohub.sdn.sap.com/irj/scn/index?rid=/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9&overr...

Enabling mapping trace and a RFC as mentioned in the blog might serve your requirement.

Former Member
0 Kudos

Hi,

Yes, I am looking for something along these lines.

But as you must already have noticed, none of the tables mentioned in the article have any field for Trace or Log.

This is what I need to capture in my Function.

Regards,

Puloma

Former Member
0 Kudos

The error information will be stored in SXMSPERRO2 table and I think you can include this table in the program to fetch the error details.

Refer the following links for more help on RFC programming part-

http://wiki.sdn.sap.com/wiki/display/Snippets/PIMonitoringFunctionality-FetchingDatafromSXMB_MONIStandardTables-PartI

http://wiki.sdn.sap.com/wiki/display/Snippets/PIMonitoringFunctionality-FetchingDatafromSXMB_MONIStandardTables-PartII

http://wiki.sdn.sap.com/wiki/display/Snippets/PIMonitoringFunctionality-FetchingDatafromSXMB_MONIStandardTables-PartIII

former_member181962
Active Contributor
0 Kudos

Check this link:

http://help.sap.com/saphelp_erp2004/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm

Make use of the addInfo and addWarning methods to add to the trace.

Regards,

Ravi

sorry..please ignore..i have not read your question properly.

Edited by: Ravi Kanth Talagana on Nov 17, 2009 3:32 PM

Former Member
0 Kudos

Hi,

The link you have provided is to add trace to the mapping.

My aim is to capture this trace (after message has been processed) , populate through a function module in ABAP.

This FM should return the trace for an existing message GUID.

Regards,

Puloma.