‎2008 Nov 05 9:36 AM
I am using a dynamic table for displaying the output in ALV list.If there is no data then I am using a standard message class to display error message ' No output'.
The logic is,
IF <gi_dynitab> IS INITIAL.
MESSAGE s007 .
ENDIF.
but when there is no data it is not displaying this message.
Is the logic correct? is there any other way to display it?
Or I have to again change the settings ? if yes, how?
‎2008 Nov 05 9:37 AM
‎2008 Nov 05 9:43 AM
This logic was working for me previously.
IF <gi_dynitab> IS INITIAL.
MESSAGE s007 .
ENDIF.
Edited by: Reshma Vaidya on Nov 5, 2008 10:43 AM
‎2008 Nov 05 9:45 AM
Hi,
Its right. Try to debug and find the reason.
u can use like this also.
MESSAGE ID 'AB' TYPE 'S' NUMBER '050'.Also check whether that message class and message exists or not.
Rhea.
‎2008 Nov 05 9:47 AM
You should be using MESSAGE e007 instead of MESSAGE s007, to raise an error message and stop the processing. A success message is ignored at runtime, and the processing just continues.