‎2007 Apr 25 9:13 AM
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
‎2007 Apr 25 9:17 AM
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.
‎2007 Apr 25 9:17 AM
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.
‎2007 Apr 25 9:20 AM
hi Jim,
There should be atleast one parameter to display the selection screen.
Regards,
Santosh
‎2007 Apr 25 9:21 AM
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.
‎2007 Apr 25 9:31 AM
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
‎2007 Apr 25 9:32 AM
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