Saving Layout's attributes after refresh ALV
Hello,
I use CL_SALV_TABLE class for ALV printing.
I start the ALV with Layout variant which has sort & other attributes.
From the ALV screen I run other screens and when I go back to ALV screen,
I refresh the ALV table --> gr_table->refresh( ), to have updated data.
The problem is that after refreshing the table, it forgets the Layout attributes and
Don't sort as it requires in the specified layout.
What I have to do for save the layout attributes?
Thank you for your help,
Fariba
If you set
wa_layout-NO_TOOLBAR = 1.
it won't work
but try
wa_layout-NO_TOOLBAR = 'X'.
- it works
Similar Messages
-
After refreshing ALV display, set it to the current cell that was modified.
Hello Experts,
I am currently using cl_gui_alv_grid for my ALV grid display. I have 1 editable column
which lets users input values. Now, When users press 'ENTER' in the keyboard I refresh
the ALV display to reflect the changes done. But the display always "moves back" to the first column
so it is tiresome to find the current cell that was modified. My question is, how do I set the ALV
display to just "stay put" in the current cell that was modified after pressing 'ENTER'?
Hope you can help me guys.Thank you and take care!Check this link
ALV scroll bar -
Indent changing is possible but changes are not reflecting after refresh
Hello all,
I am facing one issue with alignment in the BEX. i need to changed the the result rows. initally the indent is 2 , am changing it to 1 and saving as existing report. after refreshing the workbook. the changes are not reflecting. can anybody provide me some inputs on these. any help is appreciated.Hi Priya,
You need to Implement the following SNOTE's for these changes.
Union Budget 2015: As per Finance Bill 2015, the Government has implemented amendments to existing sections and introduced new sections in the Income Tax Act. Changes have been made in the following topics:
Tax Surcharge Rate
Increase in Conveyance Allowance
Section 80
Sukanya Samriddhi Scheme: The Government has launched this new deposit scheme for the minor girl child. This is a savings scheme that can be opened by the natural (biological) or legal guardian of a girl child aged below 10 years. Related Notes:
2139208 - Union Budget Changes – 2015
2138605 - Sec80C: Sukanya Samriddhi Scheme
Upcoming Developments:
PF Admin Charges Revision
Professional Tax for Mizoram & Nagaland states
Average Rate of Tax
Regards,
Venkat Polisetty -
How can a default to a particular saved layout when using
REUSE_ALV_GRID_DISPLAY? I tried using the is_variant parameter but that doesn't seem to work.
Thank you for any help.Make sure that you give all data for the variant. Also, I think that the name is case-sensitive. So make sure you check that.
data: variant type disvariant.
* Set layout variant
variant-report = sy-repid.
variant-username = sy-uname.
variant-variant = p_var.
Regards,
Rich Heilman -
How to put Layouts in selection screen for ALV
Dear All,
I have developed an ALV report . The users will create many layouts and save it. The requirement is that:
In the selection screen , they need to get the list of saved layouts and select one from that so that they need not have to select layout after running the report.
That means .. they want to select the layout before running the report.
Hope that you understood my problem and will help me out...
Thanking you,
ShankarHi,
PARAMETERS P_LAYOUT LIKE DISVARIANT-VARIANT.
INITIALIZATION.
*Get Default display variant
PERFORM F100_DISPLAY_DEFAULT_VARIANTS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LAYOUT.
*Value Help for Layouts
PERFORM F1001_VALUE_REQUEST.
*& Form F100_DISPLAY_DEFAULT_VARIANTS
Initializing ALV Values *
FORM f100_display_default_variants.
w_variant-report = sy-repid.
w_variant-handle = c_handle.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = c_a
CHANGING
cs_variant = w_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc EQ 0.
p_layout = w_variant-variant.
ENDIF.
ENDFORM.
*& Form F1001_VALUE_REQUEST
Get the values for the layout.
form F1001_VALUE_REQUEST.
DATA: lv_exit TYPE c,
lw_variant LIKE w_variant.
w_variant-report = sy-repid.
w_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = w_variant
i_save = c_a
IMPORTING
e_exit = lv_exit
es_variant = lw_variant
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc IS INITIAL.
IF lv_exit IS INITIAL.
p_layout = lw_variant-variant.
ENDIF.
ELSE.
MESSAGE i029."No layouts found
ENDIF.
endform. " F1001_VALUE_REQUEST
Hope this helps.
Regards,
J.Jayanthi -
Problem in refreshing ALV data in container (OOALV)
Hello Experts, Good Day.
I am developing a Modulepool program which is having two screens, one (101) is for Entering data (used TC with wizard) then saves it in database table and another screen (102) is to display saved data. Now I am facing problem in second screen (102).
The problem I am facing is when I am displaying/calling 102 screen for multiple times, the internal table is getting updated but the previous ALV data is not getting updated/modified.
I have searched the forum and found some methods/procedures for refreshing the data but I am not able to achieve this.
Methods I found and Problems with them:
1. FREE the Container and Grid objects usng FREE( ) method.
If I free boht the Container and Grid objects data getting updated but another all the columns are getting displayed twice for second time, thrice for third time and so on... I have coded for this in PBO of 102 Screen.
If I Free only Grid object, totally the table is getting disappeared when I display ALV Second time.
2. When I use Refresh the table using CALL METHOD LR_GRID->REFRESH_TABLE_DISPLAY( ) then only second time the ALV is getting refreshed but if I display further it is displaying 2nd ALV data from 3rd time onwards (not getting updated from 3rd time).
Coded as below in PBO OF 102 Screen:
IF LR_GRID IS BOUND.
CALL METHOD LR_GRID->REFRESH_TABLE_DISPLAY( ).
ENDIF.
CREATE OBJECT LR_GRID
EXPORTING
I_PARENT = LR_CONT
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
3. When I use FLUSH method: this is not at all working out, I have called this after displaying ALV in PBO.
CALL METHOD CL_GUI_CFW=>FLUSH( ).
CALL METHOD CL_GUI_CFW=>DISPATCH( ).
My code to display ALV which is written in PBO of 102 is attached, please find the attachment.
Experts, please let me know where I am going wrong. I wish to know the solution in all the above ways. Please help me.
Thanks & Regards,
VijayLR_GRID->SET_TABLE_FOR_FIRST_DISPLAY(
* EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER = 'X'
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME = 'ZGVK_MP_DEMO'
* IS_VARIANT =
* I_SAVE = 'X'
* I_DEFAULT = 'X'
* IS_LAYOUT =
CHANGING
IT_OUTTAB = GT_DATA[]
IT_FIELDCATALOG = LT_FCAT
* IT_SORT =
* IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4 ).
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to maintain selected row in adf table displayed after refresh
Hi,
I am using jdev 11g
I my jsf page I have a table with multiple rows.
When i scroll and click on one of the rows its selected but if the page is refreshed the row is always selected but not displayed.
I need to be able to maintain the selected row after the refresh of the page, so my table will look like its already scrolled to the selected row..
I tried to use the attribute displayRow="selected" but it won't do the trick.
Any hints
EmileHi Branislav,
Kindly answer the following if you may.
Is there a way to refresh the table after the selectListner is fired.
Automatically when i select the table i need to refresh it.
Why after refresh the selected row changes skin.
Regards -
How to not getting record in table after refreshing my page?
Hi,
I am using jdev 11.1.1.2.3
My problem is,.. i am performing deleting operation my table for deleting record in that time it is deleted,
But in my problem is after refreshing the page record is coming back.
I am performing delete operation using bindings
can any one help me..
Thank You..Hi,
Actually i create global components insert delete,commit,first,next these all are icons in my template page
when i am using any master table click on those icons i perform operations
for bindings
insert:#{backingBeanScope.AdminCountryBean.addNewCountry}
savecall:#{AdminMainActionBean.pofAdminAction}
cancelcall:#{bindings.Delete.execute}
For inserting and saving i write bean class deleting i am not following any programmatic approach.... -
HI
I WANT TO REFREAH ALV AFTER I PRES ON BUTTON.
WHEN I USE REUSE_ALV_GRID_DISPLAY
IN USER-COMMAND I USE
FORM USER_COMMAND USING P_UCOMM TYPE SYUCOMM
P_SELFIELD TYPE SLIS_SELFIELD.
P_SELFIELD-REFRESH = 'X'
how can i refresh when i use class
CL_SALV_TABLE?
thanks
have nice dayhi yossi,
check these links..
Refresh in ALV.
Alv Grid and Refresh Button
ALV grid Refresh.
http://www.sap-img.com/abap/how-to-refresh-alv-list-grid-once-it-is-displayed.htm
http://sap.ittoolbox.com/groups/career/SAP-CAREER/refresh-alv-report-421919
Re: Refresh ALV with a new value
Re: Update/refresh ALV grid -
Keeping current record after refreshing iterator (iterator refresh)
Greetings,
I'm using the following code to refresh a master iterator, so that when data is saved\edited it is automatically refreshed in the user interface. I'm using BC for the model layer.
public String commandButton_save_action() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("Commit");
OperationBinding operationBinding2 =
bindings.getOperationBinding("Execute");
System.out.println("Now @ Global bean ... going to ...");
operationBinding.execute();
operationBinding2.execute();
// It should be a error page
if (!operationBinding.getErrors().isEmpty()) {
return null;
// Refresh main view object
DCBindingContainer bc =
(DCBindingContainer)FacesContext.getCurrentInstance().getExternalContext().getRe
questMap().get("bindings");
FirstCareAppModuleImpl fc =
(FirstCareAppModuleImpl)bc.findDataControl("FirstCareAppModuleDataControl").getD
ataProvider();
ViewObject vo_SitSocProf = fc.findViewObject("EpisodiosMain");
vo_SitSocProf.executeQuery();
System.out.println(" All done. Ciao ");
return "back";
I just want to refresh data from database and still show the current record. This is always taking me to the first record in the iterator.
The issue is: How to show the current record after the refresh? If the above
code is not correct, or not the most adequate, please don't hesitate and tell
me.
Thanks.You can do this as follow:
1) In your ApplicationModule (e.g ScottAM) define function:
public void refreshView(){
getMainViewObject().executeQuery();
2) Expose this function to client
3) In your manage bean define:
public String commandButton_save_action() {
String dc = "#{data.ScottAMDataControl.dataProvider}";
FacesContext ctx = FacesContext.getCurrentInstance();
ValueBinding vb = ctx.getApplication().createValueBinding(dc);
ScottAM am = (ScottAM)vb.getValue(ctx);
am.refreshView()
return null;
Note, that this solution will set you on the first row after invoke. -
Description Resource Path Location Type
Design mode: Error during component layout. Choose Design > Refresh to refresh design mode. etPlayer.mxml /etPlayer/src Unknown Problem
Refreshing wont work..
any ideas?Some elements can cause the design view to break, it recently happened to me and this was my solution.
I began by commenting out most of the visual elements from code and going back and forth to design view to try and get it working.
Finally I narrowed it down to the "ToggleButtonBar" component. After I commented this line out the design view was up and running.
This might not be the solution but it will get you back up and running. -
Flash doens't load external resources after refresh in Windows Firefox
Hi guys,
We're encountering a weird problem here. Implementing a Flash header that fades in&out through some external assets via XML... Works fine in all browsers on Windows & Mac, except, after refreshing the page in Firefox for Windows (XP, 7,...) it doesn't load the external resources anymore and we get a blank SWF. Monitored this in Firebug.
Flash Player has the latest version. We also have this problem on a local host.
It probably has something to do with caching, but the strange thing is that it only goes wrong in FF on a Windows machine. Also works fine again after a hard refresh.
Thoughts?
Thanks.
BR,
LexUPDATE: Removing wmode: transparent from the Flash attributes seems to fix it.. Weird. Unfortunately this attribute is really necessary for the lay-out..
-
Focus on next navigatble item in ADF Table after refresh
Hi,
How to set the focus in the ADF table to next navigable item after Table Refresh.
I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
To get the updated values I refresh the Table. It shows the updated values correctly.
After refresh the contorl/focus moves to the Table header.
Instead We would like to have the focus on the next navigable Item in the Table.
Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
Thanks,
SatyaHi Arun,
I did that but it doesn't seems to be working as it need to refresh its own column.
eg:
Row COL1 COL2
R1: Rxxxx Val1
R2: Lxxxx Val2
R3: Exxxx Val3
R4: Fxxxx Val4
When I modify Val1 Val4 need to be calculated using val1-val3/val2
I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
But If I refresh the COL2 it doesn't change the value in row R4
I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
Thanks,
Satya -
Activitis in satellite Systems after Refresh
Dears,
In our landscape we have Three system in which Quality system is refreshed every third month with Production system.Now issue is we have completed solman implementation in this landscape with these three systems as satellaite and system refresh needs to be done next week.
Now I want to know what activities i should in quality so that it could work properly after refresh in solman like in system montoring,service desk and all activities.
Users and RFC's will be saved by exporting them.Now except it what should be done.
ShivamOur experience was that there were usually problems with the connections with Solution Manager, even if they were saved and restored. The best approach we found was after the system refresh, we would delete the generated RFC's and user-id's in the SolMan system and in the QA system. We would also delete the entries for the systems in transaction SMT1. Then, we would go back to transaction SMSY and regenerate the RFC connections. Afterward, the configuration in STMS would be checked and redistributed across the transport domain.
-
Excel Table with SharePoint Data Connection - Manual Text Entry Misaligned After Refresh
Greetings!
I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel workbook to be able
to enter text manually in the workbook to associate local information with the line-items coming from the SharePoint list. To do this, I've added extra columns to the end of the table.
The user can enter information in the appropriate cells in the "extra" columns at the end of the table, but when I refresh the data connection, the addition of a new list item on the SharePoint side results in the user's manually entered text getting
out of alignment with the row it's supposed to be associated with.
Example
Column 1(SP)
Column 2(Extra)
Row 1
Item 1
Row 2
Item 2
Text entered for Item 2
Row 3
Item 3
Then, if I add a new item to the list in SharePoint, for example, something that would appear between the original items 1 & 2, after refreshing the table, I get the following:
Column 1(SP)
Column 2(Extra)
Row 1
Item 1
Row 2
New Item 1.5
Text entered for Item 2
Row 3
Item 2
Row 4
Item 3
The table's data connection is set to insert rows for new items, and I could swear I had this working properly once upon a time...but I can't seem to make it work now.
Any thoughts on what would cause this?
Thanks in advance!Hi Eric,
>>but it seems that by extending the table itself to encompass both the SharePoint-sourced columns and the additional columns, that an association would be created between all columns for a given row in the table, no?<<
From my understanding, the answer is no.
Another example:
I have an additional column named "Column2" and an external column named "ID" (see "before").
After I add a new record and refresh this table, Excel will keep the last row in "column2" and add an empty cell in the second last row. (See "After")
If I delete the eighth data and refresh this table, Excel will still keep the last row and remove the last second cell.
In your case, if you insert a new record in the middle of the data and refresh this table, Excel will synchronized the external data and add a new cell in the additional column in the second last row.
From my understanding, Excel will always change the second last row to suit for deleting or adding record.
Hope this helps.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Voice Memos (iPhone app) doesn't sync to iTunes
"Include voice memos" is checked in iTunes but they don't sync, no playlist is made. The files are too large to email. Is there another way to make this happen? I've only just begun using the application in the past few days. Other notes: I have a
-
Oraclevm-template.sh not running successfully in Tools VM
Hi all, I´m trying to run Peoplesfot FSCM 9.1 Vm Template in VBox. Database Server seems to be well configured and running (I can connect from another windows VBox) but I´m having problems with webserver and appserver. I´m new to this so would need s
-
Cannot organize files manually in a folder
I am having a problem with a file arrangement in finder (running on Mavericks). So here is a brief explanation: when I open a folder conatining some files, then select those files, go to the "view" menu, then "arrange by" and choose for example "by n
-
I downloaded FF4 and now can't open any pop-ups from any sites.
When I click on a link, the little pop-up blocker appears. If I hold "control" and click the link, it opens up a new blank tab. I've turned off both the "block pop-up windows" in the Options tab and Adblock Plus but that hasn't done anything. Any sug
-
Hi All, I have ECC5.0 systems We have to install EP 6.0,WAS 6.40 java version.NWDS 2.0.11, We have the folowing scenario before us:- 1)Have to use ITS 2)Have to Install and run Business package for CRM 60.2 3)Have some custom Webdynpro development go