0

BAPI_SYSTEM_MT_GETALERTDATA called using Java is returning only 10 recent alerts. I want to find all the alerts for a given range if dates. Please let me know how we can do it.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Aman
  • 31
  • 6
  • 1
    Please provide your work and references on this so far. – ArpitBora Mar 27 '17 at 10:38
  • We are using BAPI calls to get the data from SAP into our system(Java). We are fetching the alerts from SAP system. For a given range of dates we are not able to retrieve more than 10 recent alters. The question is how can we get all the previous alerts also for the given range. – Aman Mar 27 '17 at 10:42
  • please post your code – Michael Meyer Mar 27 '17 at 13:38

1 Answers1

3

The number 10 has nothing to do with BAPI_SYSTEM_MT_GETALERTDATA FM. This parameter is called Maximum Number of Alerts Kept, and it is adjusted in CCMS alert monitoring settings, which is S_B6A_52000011 transaction.

enter image description here

It seems that you simply have such setting on the remote system and this setting cannot be changed remotely. Alerts beyond 10 are not stored at all.

Suncatcher
  • 10,355
  • 10
  • 52
  • 90
  • Thanks for the information, could you please let me know if there is anyway so that my system (JAVA) could fetch more than 10 records from SAP. For e.g. fetching from a table etc. – Aman Apr 10 '17 at 09:13
  • 1
    I don't think so. CCMS logs are stored not in tables but [in files](https://help.sap.com/saphelp_nwpi711/helpdata/en/49/8ba8e5e0a73eeee10000000a421937/content.htm), however they are useless, 'cause logs more than 10 won't be recorded at all. – Suncatcher Apr 10 '17 at 15:33