Application Development 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: 

problem win alv grid report

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi

After the error msg code the following:

CASE sy-ucomm.

WHEN '<ur push button name>'.

leave to screen 0.

ENDCASE.

Thanks

Vasudha

Former Member
0 Kudos

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

0 Kudos

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.