Application Development 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: 

How to display selection text in the output(list screen)?

Former Member
0 Kudos

I have a select-options variable "so_matnr".

I have maintained selection-text for the same "Material No.".

Now in the output I need to display the above selection-text.

I cannot use literals for some reason.

How to access this selection-text? Where is it stored?

3 REPLIES 3

Former Member
0 Kudos

You can write TOP OF the Page Code in User Command as below.

DATA: ls_line TYPE slis_listheader.
 
 CLEAR ls_line.
 ls_line-typ = 'H'.
 ls_line-info = 'Report Name'.
 APPEND ls_line TO lt_top_of_page.
 CLEAR ls_line.

 ls_line-typ = 'S'.
 CONCATENATE s_matnr-low '-' INTO ls_line-info SEPARATED BY ' '.
 CONCATENATE 'Material' ls_line-info INTO ls_line-info SEPARATED BY ':'.
 APPEND ls_line TO lt_top_of_page.
 CLEAR ls_line.


former_member284740
Participant
0 Kudos

Have a look at function PRINT_SELECTIONS