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

Several message levels + sorting in application log

marcin_cholewczuk
Active Contributor
0 Likes
2,256

Hi all,

I want to show some messages from my report. To do this I'm using FMs:

- BAL_LOG_CREATE

- BAL_LOG_MSG_ADD

- BAL_DSP_LOG_DISPLAY

and it works fine.

What I want to achive now is to get messages in several levels. It should look for example like this


Main object message 1
  Subobject message 1.1
  Subobject message 1.2
  Subobject message 1.3
Main object message 2
  Subobject message 2.1
    Subsubobject message 2.1.1
    Subsubobject message 2.1.2
  Subobject message 2.2

There is this field DETLEVEL in message, but when I set it to '1' for first level, '2' for second and so on, it makes no difference. My result looks as it looked.

Other thing is field ALSORT. Does anyone know how to use it?

Best regards

Marcin Cholewczuk

6 REPLIES 6
Read only

Former Member
0 Likes
1,298

Hi

Try to check the demo program SBAL_DEMO_04_DETLEVEL

Max

Read only

0 Likes
1,298

Hi Max,

Thanks for tip. My problem with detail level is solved but with sorting remains.

Best regards

Marcin Cholewczuk

Read only

0 Likes
1,298

Hi

There are many demo programs (all have the name starts with SBAL) try to see them

Max

Edited by: max bianchi on Aug 9, 2011 10:01 AM

Read only

0 Likes
1,298

Hi,

Yeah, now I know I went through all of them with searchterm ALSORT and found nothing.

BR

Marcin Cholewczuk

Read only

0 Likes
1,298

Sorry

I've tried to check the sap help, but no informatiom about that field

[http://help.sap.com/saphelp_nw70/helpdata/en/d3/1fa03940fab918e10000000a114084/frameset.htm]

Max

Read only

0 Likes
1,298

In the end I've added additional sort field to my internal table.

BR

Marcin Cholewczuk