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

Screen back tracking using classes in ALV display

Former Member
0 Likes
379

Hi All,

I have a requirement wherein i am displaying ALV using class CL_SALV_TABLE and there i have added new buttons on

application toolbar and the reporting provided is interactive.

The Requirement is that there is a button on application toolbar EXIT and once i click on it the control should return back to

selection screen What are the ways by which i can implement it if suppose i am onto detailed list ?

Regards,

Parag

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
339

hi,

now since you have added new button on the application toolbar... so just by simply adding new buttons on the application toolbar wont do anything... so what you need to do is that you need to attach a function code to that button..... and then you need to write the code for that desire function code.... you can use the sy-subrc in that case.... like you can use a case statement or an if condition and check the same ... once that triggered you can execute you code ...

also in code you can use " set screen 0" to return to the point from where that screen poped up or you can even call any screen using " call screen dynnr " or if you want to exit that screen ..

you can use :

LEAVE SCREEN.

or

LEAVE TO SCREEN Next Screen.

if you are using list processing then you can use " leave to list-processing"

hope this will help you!!

thanks & regards,

Punit Raval.

1 REPLY 1
Read only

Former Member
0 Likes
340

hi,

now since you have added new button on the application toolbar... so just by simply adding new buttons on the application toolbar wont do anything... so what you need to do is that you need to attach a function code to that button..... and then you need to write the code for that desire function code.... you can use the sy-subrc in that case.... like you can use a case statement or an if condition and check the same ... once that triggered you can execute you code ...

also in code you can use " set screen 0" to return to the point from where that screen poped up or you can even call any screen using " call screen dynnr " or if you want to exit that screen ..

you can use :

LEAVE SCREEN.

or

LEAVE TO SCREEN Next Screen.

if you are using list processing then you can use " leave to list-processing"

hope this will help you!!

thanks & regards,

Punit Raval.