cancel
Showing results for 
Search instead for 
Did you mean: 

Read AMON1 from live cache

Former Member
0 Kudos

HI Gurus,

I want to read AMON1 data from live cache.Could you guys help me in this.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

One option will be to make use of function modules to extarct data:

These are some FMs.

/SAPAPO/OM_ALERTMONITOR LiveCache - Alert monitor interface

/SAPAPO/OM_ALERTS_DELAY_ORDER Gets (Indirect) Alerts in Order Network

/SAPAPO/OM_ALERTS_GET_DATA Gets Alerts Saved in liveCache

/SAPAPO/OM_ALERTS_IN_ORDER_NET Gets (Indirect) Alerts in Order Network

You may find addtional in SE37 with /SAPAPO/alert search.

Regards

Datta

Former Member
0 Kudos

Hi,

Thanks for your reply. What value we ll pass in IS_GEN_PARAMS

IV_SIMSESSION

Thanks

frank_horlacher
Employee
Employee
0 Kudos

You can get the current content of the variables by calling

CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'

IMPORTING

ev_simsession = lv_simsession

es_gen_params = ls_gen_params.

The function reads the global values.

If you are calling the alert monitor in the context of an existing transaction.

If you do not use a standard transaction you need to start your own simsession.

CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_CREATE'

look for where used list of this function module how it is called.

0 Kudos

CALL FUNCTION '/SAPAPO/OM_ALERTS_GET_DATA'
EXPORTING
is_gen_params     = ls_gen_params
iv_simsession     = lv_simsession
it_peglist        = lt_pegid

it_alertid        = lt_alertid

IMPORTING
et_alerts         = lt_alerts
et_rc             = lt_rc
EXCEPTIONS
lc_connect_failed =
1
lc_com_error      =
2
lc_appl_error     =
3
OTHERS            = 4.

There is a new book on Programming in SAP APO. You might want to check that out.

http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a...