Refreshing ALV when action is triggered using button
Hello Friends,
I have a drop down list having 3 values "Last 30 Days", "Last 60 Days" and "Last 90 Days". If I select Last 30 Days and click on button "Search" it gives me record for the last 30 days. But, if I click again on "Last 60 Days" it duplicates the record that was already in. So it does not refresh the previous result. I have added the code as below to refresh ALV but, it refresh the table but not the ALV. My View name is "MY PO INVOICES" and the context node name is 'MY_PO_INV' .
DATA ln_node type REF TO if_wd_context_node.
ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
ln_node->invalidate( ).
Please let me know how do I refresth the result in the ALV display when I trigger the event.
Thks & Rgds,
Hemal
Hello All,
Thanks very much for your responses. I tried to bind the alv table. But, I think I am doing some thing wrong here. Below is my code. Please let me know where I am doing wrong. Appreciate your help.
lv_thirtydays = 'LAST 30 DAYS'.
lv_sixtydays = 'LAST 60 DAYS'.
lv_ninetydays = 'LAST 90 DAYS'.
if ZDAYS = lv_thirtydays.
lv_zpostingdate = sy-datum - 30.
ENDIF.
lv_zpostingdate_to = sy-datum.
if ZDAYS = lv_sixtydays.
lv_zpostingdate = sy-datum - 60.
ENDIF.
if ZDAYS = lv_ninetydays.
lv_zpostingdate = sy-datum - 90.
ENDIF.
ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
ln_node->invalidate( ).
LOOP AT lt_context_value_set INTO cocd_context_value_set.
lv_zcompany = cocd_context_value_set-text.
lv_zusername = username.
lv_zdays = ZDAYS.
CALL FUNCTION 'ZEBP_MY_PO_INV_SEARCH'
EXPORTING
bldat = lv_zpostingdate
bldat_to = lv_zpostingdate_to
bukrs = lv_zcompany
usnam = lv_zusername
ZDAYS = lv_zdays
tables
invsrch = zsearch.
ln_node->bind_table( zsearch ) .
SORT zsearch BY zcompany.
DATA lo_nd_get_po_inv TYPE REF TO if_wd_context_node.
lo_nd_get_po_inv = wd_context->get_child_node( name = wd_this->wdctx_my_po_inv ).
CALL METHOD lo_nd_get_po_inv->bind_table
EXPORTING
new_items = zsearch.
ENDLOOP.
Thks & Rgds,
Hemal
Similar Messages
-
Email being sent multiple times (3 times) when actions are triggered after creating an incident.
Below is the snip of "Scheduled Actions" of the created Incident.Hi Ritesh
Email is triggered based upon conditions and you set
on closer look it is 3 different email on three 3 different requirement for e.g
email triggered to reporter on new status
email trigerred to processor on Proposed solution and New status
Therefore, check the start condition for above 2 email actions and refer below blog
Sending E-Mail from Support Message
Thanks
Prakhar -
Refresh ALV View when action triggered using button
Hello Friends,
I am getting few records for one year by calling function module from wdoinit method (sy-datum - 360) as default records. I want to also give selection screen if user wants to limit to "Last 30 Days" or "Last 60 Days". (this they can select from drop down list in selection screen). So, to do this I want to refresh first the initial records that I get.
Below is the code in WD but, everytime I select the days from dropdown list it does not refresh the previous records and duplicates the old records.
refresh zsearch. clear zsearch.
data ln_node type ref to if_wd_context_node.
ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
ln_node->invalidate( ).
call function 'ZEBP_MY_PO_INV_SEARCH'
exporting
bldat = lv_zpostingdate
bldat_to = lv_zpostingdate_to
bukrs = lv_zcompany
usnam = lv_zusername
zdays = lv_zdays
change = lv_change
tables
invsrch = zsearch.
sort zsearch by zcompany.
data lo_nd_get_po_inv type ref to if_wd_context_node.
lo_nd_get_po_inv = wd_context->get_child_node( name = wd_this->wdctx_my_po_inv ).
call method lo_nd_get_po_inv->bind_table
exporting
new_items = zsearch.
Thks & Rgds,
HemalHi,
Your WD code looks ok.
Check population of results table in FM 'ZEBP_MY_PO_INV_SEARCH'.
Cheers
Nitesh -
while using alv, how can we refresh it?
if it is not first display then of course will be refreshed but how, I do not know.
Anyone that can help me?
How it is understood that it is refreshed?
When clicked a tool or button?
Thanks in advance.
Deniz.See The example COde :
REPORT Z_GET_REFRESH no standard page heading.
type-pools : slis.
tables : makt,
mara.
data : i_fieldcat type slis_t_fieldcat_alv.
CONSTANTS :
gc_refresh TYPE syucomm VALUE '&REFRESH'.
data : begin of i_makt occurs 0,
matnr like makt-matnr,
maktx like makt-maktx,
end of i_makt.
data : v_repid like sy-repid,
g_user_command type slis_formname value 'USER_COMMAND',
g_status_set type slis_formname value 'SET_PF_STATUS',
lt_event_exit TYPE slis_t_event_exit,
ls_event_exit TYPE slis_event_exit.
DATA:LC_GLAY TYPE LVC_S_GLAY.
select-options s_matnr for mara-matnr .
start-of-selection.
select matnr maktx from makt into table i_makt
where matnr in s_matnr.
end-of-selection.
Fill the fieldcatlog
perform fill_field.
Call the FM
perform call_fm.
*& Form fill_field
text
--> p1 text
<-- p2 text
FORM fill_field.
data wa_fieldcat type slis_fieldcat_alv.
clear : wa_fieldcat.
wa_fieldcat-tabname = 'I_MAKT'.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-outputlen = '18'.
wa_fieldcat-seltext_l = 'Material #'.
wa_fieldcat-col_pos = '1'.
append wa_fieldcat to i_fieldcat.
clear : wa_fieldcat.
wa_fieldcat-tabname = 'I_MAKT'.
wa_fieldcat-fieldname = 'MAKTX'.
wa_fieldcat-outputlen = '40'.
wa_fieldcat-seltext_l = 'Material Desc'.
wa_fieldcat-col_pos = '2'.
append wa_fieldcat to i_fieldcat.
ENDFORM. " fill_field
*& Form call_fm
text
--> p1 text
<-- p2 text
FORM call_fm.
v_repid = sy-repid.
LC_GLAY-EDT_CLL_CB = 'X'.
CLEAR ls_event_exit.
ls_event_exit-ucomm = gc_refresh. " Refresh
ls_event_exit-after = 'X'.
APPEND ls_event_exit TO lt_event_exit.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = g_status_set
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS = LC_GLAY
IS_LAYOUT =
IT_FIELDCAT = i_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT = lt_event_exit
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_makt
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " call_fm
FORM USER_COMMAND *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
data i_RSPARAMS like RSPARAMS occurs 0.
CASE R_UCOMM.
WHEN '&IC1'.
read table i_makt index rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD i_makt-matnr.
if not i_makt-matnr is initial.
call transaction 'MM02' and skip first screen.
endif.
when '&REFRESH'.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = v_repid
IMPORTING
SP =
TABLES
SELECTION_TABLE = i_RSPARAMS
EXCEPTIONS
NOT_FOUND = 1
NO_REPORT = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
submit z_get_refresh with selection-table i_RSPARAMS.
rs_selfield-refresh = 'X'.
ENDCASE.
MOVE '&REFRESH' TO r_ucomm.
ENDFORM.
FORM set_pf_status *
FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
DELETE Rt_extab WHERE fcode = gc_refresh.
SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
EXCLUDING Rt_extab.
*SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.
SET TITLEBAR sy-tcode.
ENDFORM.
Reward Points if it is helpful
Thanks
Seshu -
Triggering Dynamic actions when updating an Infotype using a FM
Hi all,
This is the scenario.
I am trying to run a Transfer action, (80), which updates the Infotype 0000 and Infotype 0001. When the entry in the Infotype 0001 is saved, a dynamic action is triggered and a custom infotype is updated automatically. I need to find a FM that takes care of any dynamic actins associated to an Infotype.
I tried using a BDC, but I was not successful. While using the FM HR_INFOTYPE_OPERATION, I am able to update the data into the infotyes 0000 and 0001 but the dnamic action is not triggered. Can someone please suggest a solution.
Thanks,
AmarHi,
Thanks for you r reply. Well I am new to dynamic actions, but this is the Dynamic action that has been written.
GET_DU(ZHRDUDYNCALL)
COP,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
----P9009-SEQNR=P0001-SEQNR ---***
P9009-AEDTM=P0001-AEDTM
P9009-UNAME=P0001-UNAME
P9009-DU_CD=RP50D-FIELD1
--END OF ENTRY IN TABLE PA9009--
--CREATE ENTRY IN TABLE PA9009----
SY-DATUM=SY-DATUM
GET_DU(ZHRDUDYNCALL)
DEL,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
P9009-DU_CD=RP50D-FIELD1
--END OF ENTRY IN TABLE PA9009--
The FM that I am using goes like this:
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0001'
number = lv_pernr
SUBTYPE = wa_0000-MASSN
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = lc_endda
VALIDITYBEGIN = wa_source_data-begda
RECORDNUMBER = 1
record = wa_0001
operation = 'COP'
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD = proposed_values0001
IMPORTING
RETURN = return
KEY =
Please let me know if there is anything more I need to do?
Thanks,
Amar -
When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.
Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
* Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
* Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
* Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
(3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen]. -
ALV grid refresh problem when I return from list-processing
hi,
I have made alv grid with f4 help features and i'm using row select feature.
When i click on a button in Application toolbar, the program leaves to list processing and then return to alv gridscreen.
Now the problem arises.
(1)Even if i select rows and press F8, the program does not identify the rows selected and does not give me desired output.
(2)Also, when i press F4, the selected value does not appear in the text field.
Both the cases are working fine, if i dont press button and go to list processing.
Please help!!You can use the function module as stated below -
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
ET_EXCLUDING =
E_FLG_NO_HTML =
E_CALLBACK_PROGRAM =
E_REPID =
e_grid = ref1
ES_LAYOUT_KKBLO =
ES_SEL_HIDE =
CALL METHOD ref1->check_changed_data.
This helps to get the data in the internal table refreshed as well as that on the screen so that both are in sync.
this is generally used on some event, you can also use it otherwise.
<b>
Reward if useful.</b>
Regards,
Pritha -
When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !
In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
* Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/ -
I'm working on an interactive brief, and I'm making slides where the user has to click the correct items and then a "Contine" or "Next" button appears so they can move to the next slide. Any help out there? I have been using Captivete but I do not have a lot of experience withthe Advanced Actions. I'm sure this is a pretty simple solution for all you captivate Wizards out there.
I'm using Captivate 5.5.
Thanks for any help!
heymattmannHi Matt,
Can you post some pictures of the Advanced Actions you're trying to use that aren't working? It might give people some ideas of specific ways to help you. It can be a bit frustrating to start out, since there's not a lot out there in Adobe's official stuff for Adobe Actions, but Lilybiri's blog really is a great resource.
Others might do this differently, but for your scenario, I would create 3 similar Advanced Actions, each one assigned to execute On Success for a clickbox, and three Variables to keep track of whether or not the user has clicked a particular box. There's also your next button, which starts out hidden. Make sure to name it something like NextButton so you can find it easily in the dropdown box when making your Advanced Actions.
So I might name the actions and variables: actionClickBox1, actionClickBox2, actionClickBox3, and varClickBox1, varClickBox2, varClickBox3 (when you create the variables, set their default values to 0). You can call them whatever you want, just don't reuse names anywhere else-- you will run into problems.
The idea behind the actions is that each time the user clicks a box, you change the variable for that box to keep track of the fact that it has been clicked. That part you were on the right track for. The next part of the action then checks to see if all the clickboxes have been clicked (aka, if all the variables have been changed from their original values to the new one). If they are, it shows a next button. If not, it does nothing.
From what you said, I think you were trying to add an Advanced Action to show the next button to the next button itself. This would only execute when the user clicks that button, which makes it impossible-- you'd have to click the next button in order to show the button so that you can click it... oh dear. The decision of whether or not to show the next button needs to be part of the clickbox actions, so that upon clicking the third and final box, the next button will pop up. Because it makes this decision (to show or not to show) on each clickbox, the order you click them in doesn't matter. It will only show the next button once all the variables have been changed.
You will see that the actions are all very similar, except for the variable that they change:
actionClickBox1
first tab in the conditional action:
if varClickBox1 is equal to 0 <-- default value of variables must be 0
then assign varClickBox1 with 1
second tab in the conditional action:
if varClickBox1 is equal to 1 AND
if varClickBox2 is equal to 1 AND
if varClickBox3 is equal to 1
then show NextButton
actionClickBox2
first tab in the conditional action:
if varClickBox2 is equal to 0
then assign varClickBox2 with 1
second tab in the conditional action:
if varClickBox1 is equal to 1 AND
if varClickBox2 is equal to 1 AND
if varClickBox3 is equal to 1
then show NextButton
actionClickBox3
first tab in the conditional action:
if varClickBox3 is equal to 0
then assign varClickBox3 with 1
second tab in the conditional action:
if varClickBox1 is equal to 1 AND
if varClickBox2 is equal to 1 AND
if varClickBox3 is equal to 1
then show NextButton
Hint: If you set up one of these actions and save it, you can click a button in the top right hand corner to duplicate it and then just change the few things that are different to make the next action. It saves you from having to create it three times from scratch!
Wow, this is long... I hope it isn't overwhelming in its length, and that it helps! Advanced Actions really are a cool feature once you get past their quirks... -
Hello,
I have a Mac that's fast as lightning running on the latest version of OS X. I use eBay A LOT. In the newest version of Firefox that I just downloaded when I hit the back button it takes me to the original "new tab" page. Please don't make me use Chrome or Safari, I love you guysThank you for your kind words on the Tablet, as this is the only product mentioned that is supported on this forum, The forums here are for Home Electronics and Computers, and do not reach the Sony smart phone community.
The Sony smart phone Support Forum is the place for Sony (formerly Sony Ericsson) users from around the world to get help and help others:
your very in depth suggestions and comments would best be heard at the following forum that is dedicated exclusively to the Sony smart phone community.
http://talk.sonyericsson.com/community/support -
When I try to use the Submit Form button on the Interactive PDF I created (In Design CS6), I get this message:
There is no value in form field "Program." Please put in it before proceeding.
How can I fix this and make the Submit Form button work?Are you running modified software on your phone? This error seems to be common if the firmware has been modified and you're trying to restore the phone again.
-
When I try to play some of the songs in my itunes library, I get a prompt saying the file cannot be used. When I hit the locate button, the file cannot be found. I didn't delete any songs/files and there is no common link between the missing songs.
Hello there, Paso Kid.
The following Knowledge Base articles provide some assistance with locating content in your iTunes Library:
iTunes: Finding lost media and downloads
http://support.apple.com/kb/TS1408
and
Where are my iTunes files located?
http://support.apple.com/kb/HT1391
If you have already reviewed those steps and still cannot find the songs you purchased from iTunes, delete the songs and download them again using the information in this article:
iTunes 11 for Windows: Download previous purchases from the iTunes Store
http://support.apple.com/kb/PH12491
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
I have an iphone 4 and cannot get my mute off when I am using Facetime. I can hear them, but they can't hear me. When I touch the mute button, nothing happens. Can someone please tell me how to fix this?
the mute button is a switch you need to flip, not touch. if you look at it and see color, its on.
-
I use iphone 3GS, after upgraded to ios5, my phone restart when i took picture with button and while playing music .. what happened?
Basic troubleshooting steps in the following order.
1. Reset. Press and hold both Power and Home Buttons together till Apple Logo appears.
2. Restore to a backup.
3. Backup, Restore in iTunes and setup as new. -
Love Firefox but it's annoying that if I'm using a search engine (I use lots of subscription legal search databases), when I press the back button all the data I entered in the search boxes has disappeared. I'm sure Firefox didn't use to do that?
Please do the following.<br><br>
#Click the Firefox button, go to '''Options '''| '''Options''' | '''Privacy'''.<br><br>
#In the dropdown menu at the top, change it to "'''Use custom settings for history'''"<br><br>
#Checkmark the option: "'''Remember Search and Form history'''".<br><br>
#Remove the checkmark from: "'''Clear history when Firefox closes'''".
Maybe you are looking for
-
Hi, I need to get this off my chest, as I've had it with Apple TV. And I need a rant. I've owned Apple TV for at least three years now, and have had no end of issues with it. The first issue is the well-document Samsung issue, whereby my TV and Apple
-
I have a project done using JDeveloper 10.1.3.2 and it contains a folder called lib. There are two .jar files named "adf-faces-impl" and "jsf-impl" After the migration I can see the lib folder in JDeveloper 11g but there isn't anything inside. Some f
-
Email Functionality on Click of button
Dear All, I have a requirement whereby I have to trigger an email once my Adobe a custom button is clicked. It should also be saved in the local system ( which of course, it does ). Please provide some leads on this. How do I put a custom 'Email' but
-
Firefox is extremely slow on first start up
http://www.youtube.com/watch?v=NYw4oHHGqJA That is literally how it looks in realtime when I first start firefox. No such problem in Chrome. So when I choose first link from bookmarks or fast dial, it takes minutes to load it and in the meantime fire
-
Slow MBA WiFi compared to iMac
I have an iMac 27" model late 2012. I also have a Mac Book Air 11 inch mid 2011. The two are sitting next to each other. Both are on WiFi talking to my Time Capsule. I use speedtest.net to run speed tests. The iMac reports download speed at 29 M