‎2006 Dec 05 4:44 PM
I have been given a program .
AT SELECTION-SCREEN ON s_prctr.
IF sscrfields-ucomm EQ 'ONLI' OR
sscrfields-ucomm EQ 'PRIN' OR
sscrfields-ucomm EQ 'SJOB'.
some logic was already developed.
But what ever user entered the values in selection screen parameters are not coming in the above logic to get desired results.
How can I get those values entered by user on selection screen.
Or I need to change the logic ?
&
what benefit is the "on s_prctr" option
what are sscrfields-ucomm
Could you please explain me .
YOUR HELP WILL BE APPRECIATED.
‎2006 Dec 05 4:50 PM
Hi,
1)
If you use ON ..Then that particular field alone will be validated..And if there is any message then that particular field alone will be open for input...
TABLES MARA.
PARAMETERS: P_MATNR TYPE MATNR,
P_WERKS TYPE WERKS_D.
AT SELECTION-SCREEN ON P_MATNR.
SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
IF SY-SUBRC <> 0.
MESSAGE E208(00) WITH 'INVALID MATERIAL'.
ENDIF.
2)
sscrfields-ucomm is used for getting the function codes ...
sscrfield-ucomm = 'ONLI' when the user presses F8 button on the selection screen.
Thanks,
Naren