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

SCREEN-CHECK

Former Member
0 Likes
821

Hi,

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

& workers -'WP.

8 REPLIES 8
Read only

Former Member
0 Likes
781

hi,


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

Read only

0 Likes
781

HI,

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

Read only

Former Member
0 Likes
781

START-OF-SELECTION.

IF -


.

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

EXIT.

ENDIF.

Read only

Former Member
0 Likes
781

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

Read only

0 Likes
781

HI,

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

Read only

Former Member
0 Likes
781

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

Read only

0 Likes
781

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.

Read only

0 Likes
781

issue is solved .