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: 

Msg class

Former Member
0 Kudos

Hi all,

On selection screen if the parameter field is left blank, i want to display a message

and make tht parameter active.without continuing the program execution.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

sample code:

parameter : p_test(10).

at selection-screen.

if p_test is initial.

message i000(00) with 'Parmater value is blank'.

endif.

reward appropriate points.

regards,

SImi.

6 REPLIES 6

Former Member
0 Kudos

make that parameter OBLIGATORY

0 Kudos

HI,

i don't want tht field as obligatory.

Former Member
0 Kudos

PARAMETERS: pa_test TYPE char5.

AT SELECTION-SCREEN ON pa_test.

IF pa_test IS INITIAL.

MESSAGE 'Error' TYPE 'E'.

ENDIF.

Former Member
0 Kudos

sample code:

parameter : p_test(10).

at selection-screen.

if p_test is initial.

message i000(00) with 'Parmater value is blank'.

endif.

reward appropriate points.

regards,

SImi.

Former Member
0 Kudos

obligatory is one way.

or another way

in at selection-screen on <field>

u can check whether field is blank or not

if it is blank u can raise an error msg and u can stop there it self.

Former Member
0 Kudos

make the parameter field as mandatory(Oblligatory).

or

write validations in at selection screen events

i.e. at selection screen on filed

in that if the parameter field is blank then write the error message