cancel
Showing results for 
Search instead for 
Did you mean: 

How to get SM66 output on itab

harishankar714
Participant
0 Kudos

hi ppl,

I need to get the RED work processes on to a report program.

Help me out.

Answers appreciated and rewarded.

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello harishankar7145_9

SM66 builds the list of work processes in BUILD_SYSTEM_LIST routine of RSMON000_ALV_NEW. First it gets the list of servers with

server_list = cl_system_info=>get_server_list( only_active_server = 0 ).

Then it loops through the list of servers and it gets work processes for each server in BUILD_LIST_OF_SERVER routine with

      worker_list = server_info->get_worker_list( with_application_info = 1
                                                  with_cpu = 1 "with_cpu
                                                  only_active_worker = only_active_worker ).

Finally it converts the list of work processes to the output format with

  worker_list_disp =
    worker_list_handler=>conv_list_for_display( EXPORTING worker_list = worker_list
                                                          restricted_view = restricted_view ).

It shouldn't be that difficult to replicate this logic in your custom report.

Best regards

Dominik Tylczynski

Answers (1)

Answers (1)

Patrick_vN
Active Contributor
0 Kudos

Have you tried debugging the transaction to see where/how the data is collected?

I think there is a class CL_SERVER_INFO that can be used to find the active processes for a server. And once you have the data, you'd just have to limit it to the records that are relevant for your case.