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: 

selection screen

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

t

Former Member
0 Kudos

t

paruchuri_nagesh
Active Contributor
0 Kudos

please use event at selection screen on block