‎2006 Dec 14 5:08 AM
Hi all,
i got one code like
START-OF-SELECTION.
PERFORM GET_DATA1.
if it_ekko[] is initial.
message e000(e4) with 'Service data not available for the Purchase document'.
*set screen 1000.
else.
PERFORM GET_DATA.
PERFORM PROCESS_DATA.
PERFORM DISPLAY_DATA.
endif.
if i give the code like this wht happens is if i_ekko is empty i will get an error screen apart from selection-screen saying tht 'Service data not available for the Purchase document'
My requirement is
I want to get the message 'Service data not available for the Purchase document' in the same selection-screen.Pls give me a logic for this with a sample code.
Thanks in advance
‎2006 Dec 14 5:11 AM
Hi,
If you want to get this is selection screen then
specify ...your code in AT SELECTION SCREEN event
AT SELECTION-SCREEN.
PERFORM GET_DATA1.
if it_ekko[] is initial.
message e000(e4) with 'Service data not available for the Purchase document'.
*set screen 1000.
endif.
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM PROCESS_DATA.
PERFORM DISPLAY_DATA.
*REWARD if this helps
‎2006 Dec 14 5:11 AM
Hi,
If you want to get this is selection screen then
specify ...your code in AT SELECTION SCREEN event
AT SELECTION-SCREEN.
PERFORM GET_DATA1.
if it_ekko[] is initial.
message e000(e4) with 'Service data not available for the Purchase document'.
*set screen 1000.
endif.
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM PROCESS_DATA.
PERFORM DISPLAY_DATA.
*REWARD if this helps
‎2006 Dec 14 5:12 AM
message e000(e4) with 'Service data not available for the Purchase document'
in this message if u use S000(e4) ur message will be displayed in the same screen in the status bar.
if u use I000(e4) u will get a pop up in the same screen
‎2006 Dec 14 5:12 AM
<b>message S000(e4) with 'Service data not available for the Purchase document'.</b>
JUs write 'S' instead of E.
U will get it.
Please mark points if useful.
‎2006 Dec 14 5:12 AM
Hi ,
What i understand is that you want to get the selection screen back so that you can execute the program with another set of data .
If my understanding is correct , then test the condition in AT SELECTION-SCREEN event.
try this code
AT SELECTION-SCREEN
PERFORM GET_DATA1.
if it_ekko[] is initial.
message e000(e4) with 'Service data not available for the Purchase document'.
*set screen 1000.
ENDIF
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM PROCESS_DATA.
PERFORM DISPLAY_DATA.
endif.In case of query please revert back.
Regards
Arun
Reward point if found helplful
‎2006 Dec 14 5:12 AM
Hi Alex,
Use
message S(e4) with 'Service data not available for the Purchase document'.
S- for status
Regards,
Vivek
Reward if helps.
‎2006 Dec 14 5:16 AM
hi...
give the code as follows..
START-OF-SELECTION.
PERFORM GET_DATA1.
if it_ekko[] is initial.
message e000(e4) .
*set screen 1000.
else.
here i've jus removed that.. with 'Service data not available for the Purchase document'..after ur error message.
try it this way. else it's better for u to give as a information msg rather than error msg,as i've given below.
OR
try:
START-OF-SELECTION.
PERFORM GET_DATA1.
if it_ekko[] is initial.
<b>message i000(e4) .</b> "give the message as an information message.
*set screen 1000.
else.
by giving as information msg, it'll pop up in the selction screen itself. once enter,again ur selction parameters becomes available for u to enter ur inputs.
<b>'Service data not available for the Purchase document'</b> is wat u hav mentioned in ur message class rite(beside e4)!!
try all this..
if useful,reward points.
all the best.