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

Msg class

Former Member
0 Likes
841

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
Read only

Former Member
0 Likes
808

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
Read only

Former Member
0 Likes
808

make that parameter OBLIGATORY

Read only

0 Likes
808

HI,

i don't want tht field as obligatory.

Read only

Former Member
0 Likes
808

PARAMETERS: pa_test TYPE char5.

AT SELECTION-SCREEN ON pa_test.

IF pa_test IS INITIAL.

MESSAGE 'Error' TYPE 'E'.

ENDIF.

Read only

Former Member
0 Likes
809

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.

Read only

Former Member
0 Likes
808

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.

Read only

Former Member
0 Likes
808

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