Application Development and Automation 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: 
Read only

reports

Former Member
0 Likes
776

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
746

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

6 REPLIES 6
Read only

Former Member
0 Likes
747

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

Read only

Former Member
0 Likes
746

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

Read only

Former Member
0 Likes
746

<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.

Read only

Former Member
0 Likes
746

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

Read only

Former Member
0 Likes
746

Hi Alex,

Use

message S(e4) with 'Service data not available for the Purchase document'.

S- for status

Regards,

Vivek

Reward if helps.

Read only

Former Member
0 Likes
746

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.