‎2006 Jun 01 9:18 PM
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
‎2006 Jun 01 9:41 PM
‎2006 Jun 01 9:26 PM
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.
‎2006 Jun 01 9:28 PM
‎2006 Jun 01 9:31 PM
Does it help if you set sy-lsind = '1' when catching the user command?
‎2006 Jun 01 9:41 PM
‎2006 Jun 01 9:44 PM
REFRESH alv_tab.
REFRESH itab1.
REFRESH flows1.
REFRESH gt_tab.
PERFORM get_items.
PERFORM display_items.
‎2006 Jun 01 9:53 PM
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?
‎2006 Jun 01 10:03 PM
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
‎2006 Jun 02 8:08 PM
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.