2008 Jun 25 5:04 AM
Hi Friends,
Currently i am working on interactive report.
in this report basically i am getting alv grid as output, if user double clicks any line of this grid it will go for a list in this list i have two pushbuttons save and refresh.
when i press refresh button the list refreshes, but my main issue is if i go back it is one again comming back to list, but fo r me i should get the selection screen.
Can any one suggest.
2008 Jun 25 5:07 AM
Hi,
case sy-ucomm.
WHEN 'BACK'.
leave program.
endcase.
Thanks,
Sriram POnna.
Hi Friends,
Currently i am working on interactive report.
in this report basically i am getting alv grid as output, if user double clicks any line of this grid it will go for a list in this list i have two pushbuttons save and refresh.
when i press refresh button the list refreshes, but my main issue is if i go back it is one again comming back to list, but fo r me i should get the selection screen.
Can any one suggest.
2008 Jun 25 5:07 AM
Hi,
case sy-ucomm.
WHEN 'BACK'.
leave program.
endcase.
Thanks,
Sriram POnna.
2008 Jun 25 5:11 AM
Hi ,
Use Leave Program statement in Back button.
&**********Reward Point if helpful*********************&
2008 Jun 25 5:18 AM
but i am not using BACK as pushbutton.
it is in standard tool bar.
if i use BACK in case statement it is not working.
Kindly suggest.
2008 Jun 25 5:23 AM
try setting PF status and then write a code for the BACK button like this.
START-OF-SELECTION.
SET PF-STATUS 'EUSRN'.
Thanks
Nayan
2008 Jun 25 5:21 AM
hi,
MODULE exit_command INPUT.
IF g_ok_code = 'BACK' OR
g_ok_code = 'RW' OR
g_ok_code = 'EXIT'.
CLEAR : g_screen_active_9001,
g_screen_active_9002,
g_status,
g_wa_outtab.
IF sy-dynnr = 9000.
LEAVE PROGRAM.
ELSE .
LEAVE TO SCREEN 0.
ENDIF.
ENDIF.
ENDMODULE.
You can use this.
hope this helps you.
plz reward if useful.
thanks,
dhanashri.
2008 Jun 25 5:25 AM
Hi,
In this case in the Secondary list You can Make sy-lsind = 0.
I mean In The AT LINE-SELECTION Event You Just Make SY-LSIND = 0.
Now if you go back it will show the selection Screen.
Thanks,
Sujit
2008 Jun 25 5:26 AM
Hi,
For this use submit.
case sy-ucomm.
when 'back'.
submit 'program name' via selection screen.
and even if u want to pass the value to it u can pass it.
for that refer F1 help for submit statement.
Thanks,
Arunprasad.P
Reward if useful.
2008 Jun 25 5:32 AM
Hi Niki,
Here BACK is the function code for F3 button. You cannot directly use BACK. It would be a combination of SY-
UCOMM and LEAVE PROGRAM STATEMENT. It should be done as follows:
Case SY-UCOMM.
when 'BACK'.
leave program.
endcase.
Leave program gets back to the Selection Screen.
Hope This Helps You.
Regards,
Chandra Sekhar
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |