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

Error message

Former Member
0 Likes
644

Hi Friends,

I want to get an error message when user doesn't enter any data in the selection screen.

Thanx in advance,

Venu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
618

Hi,

Check this example..

PARAMETERS: P_DATE TYPE SYDATUM.

AT SELECTION-SCREEN.

IF P_DATE IS INITIAL.

MESSAGE E000. "Give the correct message no.

ENDIF.

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
619

Hi,

Check this example..

PARAMETERS: P_DATE TYPE SYDATUM.

AT SELECTION-SCREEN.

IF P_DATE IS INITIAL.

MESSAGE E000. "Give the correct message no.

ENDIF.

Thanks,

Naren

Read only

Former Member
0 Likes
618

parameters: p_var(5) type c.

at selection-screen.

if p_var NE 'xx'.

message E000(ZZ) with 'populate the message'.

endif.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
618

Hi,

One simple way is to make the particular field as mandatory.Or if you want to check against all the fields,

if p_f1 is initial or p_f2 is initial.

message e001 with 'Enter value'.

endif.

Read only

anversha_s
Active Contributor
0 Likes
618

hi,

if p_f1 is initial.

message e001 with 'Enter value'.

endif.

regrds,

anver

pls mark all hlpful answers