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

AT SELECTION-SCREEN problem

Former Member
0 Likes
408

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.

1 REPLY 1
Read only

Former Member
0 Likes
319

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