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

Question Regarding Refresh

Former Member
0 Likes
979

Hi All,

I have created an interactive report where i cud forward items to different users. So after i forward them to different users i had put up a refresh button which when clicked on cud refresh the items to new users. Now when i dont click on a report it gives me a popup saying select item. Now its working good for the first time and when i refresh after 1st forward and when i dont select any item it still gives me a popup but when i click ok it returns to the first screen(the screen where i had selected item to be forwarded for the firsttime). It shudnt go this way. It shud still stay in the present screen and cud able to forward the item...How cud i achieve this..Thanks in Advance...

Vicky

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
948

Please post your code for the 'refresh'.

8 REPLIES 8
Read only

Former Member
0 Likes
948

Is it an alv? Then for refreshing I think you just need to do this.

In the user command subroutine:

form SUB_USER_COMMAND using r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

1. rs_selfield-refresh = 'X'.

2. Do your processing and modify your internal table which you are using for ALV output. This modification od records will be output when someone clicks on that refresh button on your report.

ENDFORM.

Read only

0 Likes
948

its not an alv, just a interactive report

Read only

0 Likes
948

Does it help if you set sy-lsind = '1' when catching the user command?

Read only

Former Member
0 Likes
949

Please post your code for the 'refresh'.

Read only

0 Likes
948

REFRESH alv_tab.

REFRESH itab1.

REFRESH flows1.

REFRESH gt_tab.

PERFORM get_items.

PERFORM display_items.

Read only

0 Likes
948

Where do you have this code(in which event)?

When you display the item in your perform display_items, I am assuming your users have a choice of selecting some or all the lines you displayed using a checkbox(?) and what do they after that? Is there a pushbutton in the application toolbar? If so can you please also post the code for that function code?

Read only

0 Likes
948

Ya Srinivas,

You got it right, the users can all be selected or selected by chioice and are forwarded using a fmodule..So how do i achieve my case using this..

VIcky

Read only

0 Likes
948

Can you please post the code for 'SEND' button? You select some users and click on a button to send. In that code for that button processing, you must be calling a function module to send the emails(?). That is the code I want to look at.