on 12-12-2008 11:16 AM
Hi,
In my report ,one selection screen is threre.after selecting the data,if the itab does not contain any data
i have to display the error message.the code is like.
IF gi_output[] IS INITIAL.
MESSAGE e007(zs) .
leave list-processing.
ENDIF.
But my problem is the error message is coming on next screen
I want the error message on my selection screen.
Hi Priya,
As i suggested you must be populating the output table some where in start-of-selection or end-of-selection
so before that please do this: check v_error is initial.
and where ever you are filling the output table using select statement there inside your if statement insert a else and equate v_error = const.
This will not bother your performance issues too.
Edited by: Swetha on Dec 12, 2008 5:47 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Put that code in At Selection-screen event.
at selection-screen.
IF gi_output[] IS INITIAL.
MESSAGE e007(zs) .
leave list-processing.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create a variable say
data: v_error type string,
const type c value 'X'. " create constant
before your call to i_output after end of selection code this.
check v_error is initial.
now
IF gi_output[] IS INITIAL.
MESSAGE e007(zs) .
leave list-processing.
else.
v_error = const. " this will retain screen and gives error on same screen
ENDIF.
Hope this works, Try.
Swetha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.