Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Application Log Class

Former Member
0 Likes
1,488

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
535

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_LIST

When 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_INSTANCE

which 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_HANDLE

does.

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

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
536

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_LIST

When 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_INSTANCE

which 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_HANDLE

does.

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