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

Info text in SO-screen

Former Member
0 Likes
557

Hi,

can someone explain or give an example

How to get the description into the selected option screen when choosing the drop down button, I want to have the description for the code presented beside

the code for example

003 <description> and description will not presented as input, just for info after the user have hit enter.

B_R

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
524

What field are you working with. The drop down boxes, or F4 help, is generated from search helps in the ABAP dictionary. These are standard search helps. Let us know which field you are working with in your select-options....example,

Select-options: s_field for <WHAT IS THIS FIELD>.

You can check out the standard search help and maybe develop a customized Z version.

Regards,

Rich Heilman

Change the line:

selection-screen comment 39(30) scr_cmt.

to

selection-screen comment 47(30) scr_cmt.

or some number bigger than 47. If smaller, you are trying to place the comment overlapping the input area. I tried this and your code worked for me.

Does this meet your needs?

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
525

What field are you working with. The drop down boxes, or F4 help, is generated from search helps in the ABAP dictionary. These are standard search helps. Let us know which field you are working with in your select-options....example,

Select-options: s_field for <WHAT IS THIS FIELD>.

You can check out the standard search help and maybe develop a customized Z version.

Regards,

Rich Heilman

Read only

0 Likes
524

Here is the code sample:

selection-screen begin of line.
selection-screen comment 1(21) text-002.
parameters: p_gname like setheadert-SETNAME.
selection-screen comment 39(30) scr_cmt.
selection-screen end   of line.

at selection-screen output .

if not p_gname is initial .
select single DESCRIPT from setheadert into scr_cmt where XXX= XXX and
ssetname = p_gname .
endif .

Regards

Raja

Read only

0 Likes
524

Change the line:

selection-screen comment 39(30) scr_cmt.

to

selection-screen comment 47(30) scr_cmt.

or some number bigger than 47. If smaller, you are trying to place the comment overlapping the input area. I tried this and your code worked for me.

Does this meet your needs?