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

Selection Screen

Former Member
0 Likes
504

Hello All,

I have a program which do not have selection screen parameters. How can I add comments in the selection screen so that when the transaction code is triggered, at least there is a selection screen containing selection comments.

Thanks,

Jim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

Hi Jim,

Without any input parameters it is not possible to display selection screen,

u can try something like this if it looks ok

REPORT ychatest LINE-COUNT 30.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN : COMMENT (10) text-001 FOR FIELD p1.
PARAMETERS :  p1(10).
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  p1 = 'welcome'.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name EQ 'P1'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

5 REPLIES 5
Read only

Former Member
0 Likes
484

Hi Jim,

Without any input parameters it is not possible to display selection screen,

u can try something like this if it looks ok

REPORT ychatest LINE-COUNT 30.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN : COMMENT (10) text-001 FOR FIELD p1.
PARAMETERS :  p1(10).
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  p1 = 'welcome'.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name EQ 'P1'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Read only

Former Member
0 Likes
483

hi Jim,

There should be atleast one parameter to display the selection screen.

Regards,

Santosh

Read only

kiran_k8
Active Contributor
0 Likes
483

Hi,

selection-screen begin of block jim with frame title text-001.

select-options: p_matnr like mara-matnr,

p_mbrsh like mara-mbrsh.

selection-screen end of block jim.

you can give the text by double clicking on text-001.

This will create a selection screen with frame title(text you gave in text-001) and having the parameters as mentioned above.

K.Kiran.

Read only

kostas_tsioubris
Contributor
0 Likes
483

Hi,

maybe you should consider calling a screen and not a selection screen. Another choice is to display a popup with your comments upon start of selection event.

Kostas

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
483

Hi,

Try this.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN : COMMENT (10) text-001 FOR FIELD p1.

PARAMETERS : p1(10).

SELECTION-SCREEN END OF LINE.

initialization.

loop at screen.

if screen-name = 'P1'.

screen-active = '0'.

modify screen.

endif.

endloop.

Message was edited by:

Jayanthi Jayaraman