‎2006 Sep 14 2:37 PM
Hi all -
About to commence new implementation of NW2004s. ECC, Sol. Mgr. and BI in-scope. XI and EP out of scope. Have to construct some generic exception handling for custom programs (i.e. interfaces that run batch). Specifically, the handling of messaging of different types (E.g. writing to appl. log, email, paging, etc.) and cleanup on exceptions. Anyone out there designed/implemented such an infra-structure and can provide design/code? (Note, I am familiar with class-based exception handling, what I require is a generic framework to handle all exceptions, message appropriately and clean-up if necessary.) Can Sol. Mgr monitor application logs and message (Email/page/etc.) based on messages written to application log?
Also, is there an application log class now available in 6.40 to replace FMs in FG SBAL (Application Log: Collect Messages).
Thanks for your help,
Pat
‎2006 Sep 14 11:52 PM
Hello Pat
I cannot provide you with an entire "message handling framework" but at least I can tell you which class I frequently use for message handling and logging:
CL_RECA_MESSAGE_LISTWhen you create an instance (CF_RECA_MESSAGE_LIST=>CREATE) you can link the instance to a log object.
A very nice feature of this class is method
ADD_FROM_INSTANCEwhich is particularly useful if you have a composition of objects which all send messages and you want to collect all these messages in the "outermost" instance.
If you are familiar with logging it will be clear what method
GET_HANDLEdoes.
The sample report SBAL_DEMO_04_CONTROL shows how to display a log in an ALV control.
Hope I could give you some insights.
Regards
Uwe
‎2006 Sep 14 11:52 PM
Hello Pat
I cannot provide you with an entire "message handling framework" but at least I can tell you which class I frequently use for message handling and logging:
CL_RECA_MESSAGE_LISTWhen you create an instance (CF_RECA_MESSAGE_LIST=>CREATE) you can link the instance to a log object.
A very nice feature of this class is method
ADD_FROM_INSTANCEwhich is particularly useful if you have a composition of objects which all send messages and you want to collect all these messages in the "outermost" instance.
If you are familiar with logging it will be clear what method
GET_HANDLEdoes.
The sample report SBAL_DEMO_04_CONTROL shows how to display a log in an ALV control.
Hope I could give you some insights.
Regards
Uwe