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: 

Problem in zreport on providing error message

Former Member
0 Kudos

Hi all,

i have developed a zreport, in which if someone puts any values

on selection screen (select-options), and if data is not there for

those fields, i am throwing an error message.

IF it_final is not initial.

message 'no data ' TYPE 'E'.

ENDIF.

but the problem is that after showing this error message, it becomes

out of screen, but my requirement is that after showing this error

message, the screen gets displayed.

Please suggest me the necessary changes.

1 ACCEPTED SOLUTION

former_member187748
Active Contributor
0 Kudos

Hi Shweta,

you can use these code instead

IF it_final is not initial.

message 'no data ' TYPE 'I' DISPLAY LIKE 'E'.

leave list-processing.

ENDIF.

3 REPLIES 3

former_member192023
Active Participant
0 Kudos

Hi Shweta,

Try to use:

message 'no data' type 'S' DISPLAY LIKE 'E'.

LEAVE LIST-PROCESS.

For

message 'no data ' TYPE 'E'.

0 Kudos

Hi,

IF IT_FINAL IS INITIAL .

message 'no data' type 'S'/'I'  DISPLAY LIKE  'E' .

EXIT .

ENDIF .

REGARDS

former_member187748
Active Contributor
0 Kudos

Hi Shweta,

you can use these code instead

IF it_final is not initial.

message 'no data ' TYPE 'I' DISPLAY LIKE 'E'.

leave list-processing.

ENDIF.