02-22-2014 5:42 AM
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.
02-22-2014 6:02 AM
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.
02-22-2014 5:55 AM
Hi Shweta,
Try to use:
message 'no data' type 'S' DISPLAY LIKE 'E'.
LEAVE LIST-PROCESS.
For
message 'no data ' TYPE 'E'.
02-22-2014 5:59 AM
Hi,
IF IT_FINAL IS INITIAL .
message 'no data' type 'S'/'I' DISPLAY LIKE 'E' .
EXIT .
ENDIF .
REGARDS
02-22-2014 6:02 AM
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.