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

selection screen

Former Member
0 Likes
836

i have to validate comany code (parameter)COEP-BURKS and cost center (CSKS-KOSTL) (parameter) and fiscal year (select option) (COEP-GJAHR).

If any wrong data is entered it should give error message and stay on the selection screen.

6 REPLIES 6
Read only

Former Member
0 Likes
804

Hi,

Validate each parameter with corresponding value table in AT SELECTION SCREEN event by writing select queries and giving error messages if sy-subrc ne 0.

Regards,

Sankar

Read only

Former Member
0 Likes
804

Hi,

u can use AT selection-screen. event to validate data. like:

AT SELECTION-SCREEN.

IF S_BUKRS IS INITIAL.

MESSAGE E001. "PL ENTER DATA

ENDIF.

JOGDAND MB

Read only

Former Member
0 Likes
804

Hi Vishal,

AT SELECTION-SCREEN.

IF P_BUKRS OR P_KOSTL OR P_GJAHR IS INITIAL.

MESSAGE E001(ZSD) WITH 'XXXXXXXXXXXXXXXXXXX'

LEAVE TO TRANSACTION XXXXX.

ENDIF.

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar.

Read only

Former Member
0 Likes
804

t

Read only

Former Member
0 Likes
804

t

Read only

paruchuri_nagesh
Active Contributor
0 Likes
804

please use event at selection screen on block