Application Development 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: 

SCREEN-CHECK

Former Member
0 Kudos

Hi,

how can i make a check in selection -screen for payroll-area staff -'SP'

& workers -'WP.

8 REPLIES 8

Former Member
0 Kudos

hi,


Use 'AT SELECTION-SCREEN on <fieldname>'.

0 Kudos

HI,

how can i fixed user-id with payroll-area SP & 'WP' AT the selection-screen.

Former Member
0 Kudos

START-OF-SELECTION.

IF -


.

MESSAGE i000(su) WITH 'Parameter payroll area differs from SP'.

EXIT.

ENDIF.

Former Member
0 Kudos

Here is an Example code for validation,

using AT SELECTION SCREEN Event screen validations can be done.

DATA: sflight_tab TYPE TABLE OF sflight,

sflight_wa LIKE LINE OF sflight_tab.

-Selection screens

PARAMETERS p_carrid TYPE spfli-carrid.

SELECTION-SCREEN BEGIN OF SCREEN 500.

SELECT-OPTIONS s_conn FOR sflight_wa-connid.

DATA s_conn_wa LIKE LINE OF s_conn.

SELECTION-SCREEN END OF SCREEN 500.

-Handling selection screen events ,Here you can give the vaildation.

AT SELECTION-SCREEN ON p_carrid.

IF p_carrid IS INITIAL.

MESSAGE 'Please enter a value' TYPE 'E'.

ENDIF.

Regards,

Midhun Abraham

0 Kudos

HI,

Actually we want to give authorization for payroll-area 'SP' & 'WP' for different users.

Former Member
0 Kudos

hey,

You can get the username using sy-uname and then check for the authorisations of the that user in the selection screen.

Regards,

Midhun Abraham

0 Kudos

HI,

can u tell me code for this

for ex...if i have user pclit & i want to give authorization him for only payroll-ares WP.

0 Kudos

issue is solved .