‎2007 Feb 17 6:50 AM
Hi Everybody,
Can we have Select-options in screens.
When we are going to screen and when we are going to selection-screen?
Thanks in Advance.
‎2007 Feb 17 7:00 AM
‎2007 Feb 17 7:00 AM
‎2007 Feb 17 7:01 AM
Hi,
How can I define my own F4 Input help processing for a field on the selection screen?
You can use the event AT SELECTION-SCREEN ON VALUE REQUEST FOR for defining your own input help for selection screen fields.
PARAMETER: p_Sample TYPE c LENGTH 10.
AT SELECTION-SCREEN ON VALUE REQUEST FOR p_Sample.
BREAK-POINT. " don´t forget to remove
"Do your processing here...
back to top
How can I set the initial values for SELECT OPTIONS at the start of the program?
In the event INITIALIZATION you could set the initial values for the selection screen fields. For SELECT OPTIONS you should fill the SIGN, OPTION, LOW, HIGH fields.
Eg: Set the date field with starting day of the month to last day of the month.
SELECT-OPTIONS: s_date FOR sy-datum.
INITIALIZATION.
s_date-sign = 'I'.
s_date-option = 'BT'.
date+6(2) = '01'.
s_date-low = sy-datum.
CALL FUNCTION 'LAST_DAY_OF_MONTHS'
EXPORTING
day_in = sy-datum
IMPORTING
last_day_of_month = s_date-high
EXCEPTIONS
day_in_no_date = 1.
APPEND s_date.
back to top
How can we change screen fields on run time?
The parameters and radio button selection at Selection screen can be changed as below...
parameters:
p_mypar TYPE C LENGTH 15,
rd1 TYPE flag RADIOBUTTON group g1 default 'X' MODIF ID ID1 ,
rd2 TYPE flag RADIOBUTTON group g1 MODIF ID ID2 ,
rd3 TYPE flagRADIOBUTTON group g1 MODIF ID ID3.
AT SELECTION-SCREEN output.
PERFORM sub_Output.
FORM sub_Outout.
IF p_mypar = ''.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' OR screen-group1 = 'ID2' OR screen-group1 = 'ID3' .
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM.
Thanks,
Shankar
‎2007 Feb 18 5:35 AM
Hi,
Yes we can have select-options in a screen.
In the same way that you can define a screen as a subscreen in the Screen Painter, it is now possible to define selection screens as subscreens in an ABAP program:
SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN .
...
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
SELECTION-SCREEN END OF SCREEN <scrn>.
The selection screen defined so, can be called on a screen
in a subscreen area using CALL SUBSCREEN statement .
Check this link for more clarity
http://help.sap.com/saphelp_47x200/helpdata/en/87/56d00722c011d2954a0000e8353423/frameset.htm
Regards,
Saumya