11-09-2007 9:40 AM
Hi guys,
I am displaying a alv report in a grid layput.I have a customised button on the toolbar.When a select a row and click the button,if the selected is correct it will do something in the background.If i select a correct row and click the button it is working fine.When a select a wrong row i m displaying a error message.After the error message is displayed i m clicking again same button on the toolbar again then i m leaving to the sap main screen from the alv layout screen.What should I do?Any suggestions please.
Thanks,
dp.
11-09-2007 9:43 AM
Hi
After the error msg code the following:
CASE sy-ucomm.
WHEN '<ur push button name>'.
leave to screen 0.
ENDCASE.
Thanks
Vasudha
11-09-2007 9:47 AM
HI
you had writen code nicely
but after error message
write the code like it should return to initial screen like
LEAVE TO SCREEN 0
11-09-2007 10:01 AM
Hi Naresh,
When first time i select a row and select the button i m getting a error message .After the error message is displayed still i can see the row looks selected on the report.When i click again the button normally it should give me a error message again instead it is leaving the report screen.