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

Refreshing the list.

Former Member
0 Likes
913

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
894

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.

8 REPLIES 8
Read only

Former Member
0 Likes
895

Hi,


case sy-ucomm.
WHEN 'BACK'.
leave program.
endcase.

Thanks,

Sriram POnna.

Read only

Former Member
0 Likes
894

Hi ,

Use Leave Program statement in Back button.

&**********Reward Point if helpful*********************&

Read only

0 Likes
894

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.

Read only

0 Likes
894

try setting PF status and then write a code for the BACK button like this.

START-OF-SELECTION.

SET PF-STATUS 'EUSRN'.

Thanks

Nayan

Read only

Former Member
0 Likes
894

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.

Read only

Former Member
0 Likes
894

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

Read only

Former Member
0 Likes
894

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.

Read only

Former Member
0 Likes
894

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