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

Wrong MEssage

Former Member
0 Likes
338

Hi Guys I am working on a program, when a user execute that program

it will show up a dilaogue box, and if the user hits the green check button it will go ahead and do the rest of the part but if he clicks on the 'X' button ..he should get a message "Not yet done". but in my case if the user hits the cross button then also he is getting the same message which he is supposed to get if he hits the green button i.e " Done" rather than "Not yet done"...followoing is my code, can you please tell me where I am doind wrong:

READ TABLE W_RETURN WITH KEY TYPE = 'S'

IF SY-SUBRC EQ 0.

write:/ 1. "Success"

READ TABLE W_RETURN WITH KEY TYPE ='W'.

IF SY-SUBRC = 0.

Write:/ 2. "warning".

ElSE.

write:/3. "successfully done".

ENDIF.

SET SCREEN 0.

LEAVE SCREEN.

ELSE.

write:/4 "got error".

ENDIF.

Thanks,

Rajeev

Edited by: Rajeev Gupta on May 1, 2008 7:18 PM

2 REPLIES 2
Read only

Former Member
0 Likes
322

check the return which value is having in type.

i hope its having value other than 'S' when green button is hit.

thats the reason its displaying "not yet done"

bye

Read only

Former Member
0 Likes
322

solved it by myself. !!!