Ansicht
Dokumentation
BAL_CH_DISPLAY_PROFILES -
ROGBILLS - Synchronize billing plans CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
|---------------------------------------------------------------------|
| Log display: Standard display profiles |
|---------------------------------------------------------------------|
Overview
======================================================================
You pass a Display profile, which describes the log display format, to the display module.
The Application Log provides various pre-defined display profiles which you can get with function modules (and change if necessary).
Function modules:
BAL_DSP_PROFILE_STANDARD_GET Standard profile (SLG1) for a lot of logs
BAL_DSP_PROFILE_SINGLE_LOG_GET Standard profile (SLG1) for one log
BAL_DSP_PROFILE_NO_TREE_GET Display without tree (fullscreen)
BAL_DSP_PROFILE_POPUP_GET Display without tree (popup)
BAL_DSP_PROFILE_DETLEVEL_GET Hierarchy by message DETLEVEL
Example program
Program SBAL_DEMO_04 shows various ways of displaying logs.
==>SBAL_DEMO_04 ==>SBAL_DEMO_04 coding
Standard profile (SLG1) for a lot of logs
======================================================================
Functionality
BAL_DSP_PROFILE_STANDARD_GET returns a display profile which is used in the standard Application Log display transaction
(SLG1) to display several logs at once.
In
this format, navigation tree chapter level 1 contains the log header and its data, level 2 is classified by problem class. The message text is in the message list.
The messages are not displayed until the user selects a log (or subset of a log).
Example
Program SBAL_DEMO_04_STANDARD (==>Run ==>Coding)
Standardprofil (SLG1) for one log
======================================================================
Functionality
BAL_DSP_PROFILE_SINGLE_LOG_GET returns a display profile which is used in the standard Application Log display transaction (SLG1) when only one log is to be displayed.
In this format the navigation tree chapter 1 level contains the log header and its data, level 2 is classified by problem class. The message text is in the message list.
The format is designed to show one log:
- the problem class classification is expanded
- the message list is displayed
Example
Program SBAL_DEMO_04_SINGLE_LOG (==>Run ==>Coding)
Display without tree (fullscreen)
======================================================================
Functionality
BAL_DSP_PROFILE_NO_TREE_GET returns a display profile which lists the messages in a full screen.
You see the message text in the message list.
There is no navigation tree to navigate in the set of messages in this format.
Example
Program SBAL_DEMO_04_NO_TREE (==>Run ==>Coding)
Display without tree (popup)
======================================================================
Functionality
BAL_DSP_PROFILE_POPUP_GET returns a display profile which lists the messages in a popup.
You see the message text in the message list. There is no navigation tree to navigate in the set of messages in this format.
Example
Report SBAL_DEMO_04_POPUP (==>Run ==>Coding)
Hierarchy by message DETLEVEL
======================================================================
Functionality
BAL_DSP_PROFILE_DETLEVEL_GET returns a display profile which the navigation tree creates from the message texts.
The field DETLEVEL, which you can specify in the structure BAL_S_MSG when you create a message (e.g. with function module BAL_LOG_MSG_ADD), specifies the level in the tree.
Example
A log contains the following data:
Typ DETLEVEL Meldungstext
S 1 Settlement of Airline SAP Flights
S 2 Flight 007 from Hamburg to Toronto
S 3 Invoice 17003115 created
S 3 Invoice 17003116 created
E 3 Invoice 17003117 error
E 4 Customer 1234 in document 17003117: Address data incomplete
S 3 Invoice 17003118 created
S 3 Invoice 17003119 created
S 3 Invoice 17003120 created
...
It is displayed as follows:
@5C@Settlement of Airline SAP Flights
|@5C@Flight 007 from Hamburg to Toronto
|@5B@Invoice 17003115 created
|@5B@Invoice 17003116 created
|@5C@Invoice 17003117 error
|@5C@Customer 1234 in document 17003117: Address data...
|@5B@Invoice 17003118 created
|@5B@Invoice 17003119 created
|@5B@Invoice 17003120 created
....
The error seriousness is passed upwards in the tree, i.e. if the message " Customer 1234 in document 17003117: Address data incomplete " is an error (red icon), it is passed to the higher levels.
See also program SBAL_DEMO_04_DETLEVEL (==>Run ==>Coding)
TXBHW - Original Tax Base Amount in Local Currency CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 6896 Date: 20240510 Time: 225935 sap01-206 ( 70 ms )