Table - populate one table with data from the list of another table

Hello All,
I am a newbie in Swing and am a book and few tutorials old.
I am trying to achieve the following:
(1) I populate Table1 (a JTable) with a list of data - each row consists of several columns. And I have a Table2 (also JTable) that is in the beginning empty.
Both the tables (Table1 and Table2) are showed in the window.
(2) Lets say, there's a button (JButton) in between the two tables.
Now if I Select a row from Table1 and press the button, this row will be sent/copied to Table2.
And this way I can choose different rows and pass the data to Table2.
I have manages to make Table1 and put data in it ... but for the rest, I don't know where and how to begin.
Would appreciate some ideas and tips.
Thank you.

Since you are using a button to start the copy process you don't need to worry about a ListSelectionListener or a MouseListener. You need to create a button with an ActionListener that does the following:
a) Create an Array based on the size of the number of columns in the table
b) get the index of the selected row
c) populate the Array with data from the TableModel by using the table.getModel().getValueAt(...) method for each
d) Now you can add the row of data to the other JTable by updating its model.
DefaultTableModel model2 = (DefaultTableModel)table2.getMode();
model.addRow( theArray );

Similar Messages

  • Transfer a table with data from 1 client to another client

    Hi experts please focus on this issue.  what is table maintainance generator? what is the main advantages of it.
    how can we transfer a table with data from 1 client to another client.
    Thanks  in advance
    vamsi.

    Table maintenance generator can be generated via se11 on your table.
    The advantage is that the table can manaully be updated via SM30.
    If you want to transport to another client the table content, I think you can :
    - Generate a transport request in SM30 ( Transport button)
    - use SCC1 to transport from a client to another.
    Regards,
    Erwan

  • How to create a form which has browse option ? Then how to upload the data from the excel file to table in Oracle DB?

    Hi Everyone,
    I am new to Oracle forms. I have a requirement where user wants a form which can be used to browse a excel file from his/her system. Also after browsing the file the user should be able to load the data from the file to a table in the Oracle DB.
    Any help pointers would be appreciated.
    Thanks,
    Satya
    Message was edited by: user12098633

    Hi Marcus,
    I am using EBS (E- Business Suite) ERP and version is 11.5.10.2
    My database version is as below
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE
    11.2.0.3.0
    Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I want to move csv file via EBS only. Average size of this will be max 600-700 bytes.
    Program should be in pl/sql package or concurrent program or custom .fmb (d2k forms) or custom .rdf (d2k report) or through alert. I am not using samba.

  • I accidentally deleted the admin user and it wiped out everything, luckily it wasn't much, but is my computer going to be completely overloaded with data from the last user? for example, i had to redownload microsoft 2011 do i have little space now?

    i accidentally deleted the admin user and it wiped out everything, luckily it wasn't much, but is my computer going to be completely overloaded with data from the last user? for example, i had to redownload microsoft 2011 do i have little space now?

    i accidentally deleted the admin user and it wiped out everything, luckily it wasn't much, but is my computer going to be completely overloaded with data from the last user? for example, i had to redownload microsoft 2011 do i have little space now?

  • The problem here is i am not able to get the data from the list

    hi all,
    i have the following code
    EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
    enrichedProductCatalogue1.setAssetCount(2);
    enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
    enrichedProductCatalogue1.setBlockingReason("Compatability");
    ArrayList<String> availableActionsList = new ArrayList<String>();
    availableActionsList.add(EnrichedProductConstants.ADD.toString());
    availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
    enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
    BundleProduct bundleProduct = null;
    Product product = new Product();
    product = new Product();
    product.setProductName("International");
    product.setProductClassName("International");
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);
    bundleProduct = new BundleProduct();
    bundleProduct.setCommercialProduct(product);
    enrichedProductCatalogue1.setBundleProduct(bundleProduct);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    here i have an list called listOfEnrichProducts.
    here i am adding two objects of enrichedProductCatalogue.
    which contains a object called BundleProduct.
    which has a reference for Product class.
    here this product class has a list which contains objects of another class called UiCategory.
    the problem here is i am not able to get the data from the list which contains UiCategory objects .
    the following is the UI
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{pageFlowScope.sample1}"
    binding="#{pageFlowScope.sampleManagedBean.dataTable}"
    partialTriggers="apimethods ::apimethods">
    <af:column sortable="false" headerText="ProductName" id="c2">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
    </af:column>
    <af:column sortable="false" headerText="ProductClass" id="c12">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
    </af:column>
    <!--
    <af:column sortable="false" headerText="UICategoryName" id="c32">
    <af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
    <af:outputText value="#{item.categoryName}" id="ot119"/>
    </af:forEach>
    </af:column>
    -->
    <af:column sortable="false" headerText="AssetCount" id="c22">
    <af:outputText value="#{row.assetCount}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="blockingReason" id="c3">
    <af:outputText value="#{row.blockingReason}" id="ot2"/>
    </af:column>
    <af:column sortable="false" headerText="blockingProduct" id="c4">
    <af:outputText value="#{row.blockingProduct}" id="ot3"/>
    </af:column>
    <!--<af:column sortable="false" headerText="availaibleActions" id="c1">
    <af:commandButton text="#{row.availaibleActions}" id="cb1"
    actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
    partialSubmit="true">
    <af:setPropertyListener from="#{row.availaibleActions}"
    to="#{pageFlowScope.avalibleaction}" type="action"/>
    </af:commandButton>
    </af:column>-->
    </af:table>
    Can anyone pls give some solution ...

    Hi Frank,
    value="#{pageFlowScope.sample1}"
    here sample is
    Map<String, Object> flowScope1 =
    ADFContext.getCurrent().getPageFlowScope();
    flowScope.put("sample1", listOfEnrichProducts);
    this is not the problem . i am able to get all the values except the following .
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • Update multiple rows with datas from the same table

    i have a table like
    name version value1 value2
    2 A 4,31 3,5
    3 A 3,45 10
    2 B 6,97 12
    4 B 12 16
    so name + version is unique
    i have to update the datas value1 and value2 ( version A) with the datas from version B where the name ( VersionA) = name version B
    i.e the result should be
    name version value1 value2
    2 A 6,97 12
    3 A 3,45 10
    2 B 6,97 12
    4 B 12 16
    is it possible to do this in sql? ( sql. 8.1)

    ... if your table does not contain exactly what you expect you could get:
    'single row sub-query returns more than one row'
    To prevent that, put a unique index on (name, version). If this combination is not always unique, you will need to cater for the possibility in the update statement.

  • How do I populate a popup window with data from the parent window

    I am brand new to JSF so please help me. I have a JSF page where users enter some search criteria and it displays the results in a matrix table. I need to have a PRINT button or link on this page that pops up a new window that displays the same data but in a printer-friendly format.
    The parent page is already created and works fine. Now, what is the best way to populate the same data in the popup? The data is stored in a hashmap and retrived by a managed bean with session scope. Below is the XHTML code for displaying the table in the parent page.
    <tbody>
                             <c:forEach items="#{inventoryManagedBean.inventoryColors}" var="row">
                                  <tr id="matrixColor">
                                       <c:forEach items="#{inventoryManagedBean.sizeList}" var="column" varStatus="cellStatus">
                                            <c:if test="#{cellStatus.index == 0}">
                                                 <th width="70px"><h:graphicImage value="../graphics/styles/#{row.color}.jpg"
                                                      alt="#{row.color}" width="70" height="40"></h:graphicImage></th>
                                                 <th width="100px"><h:outputText value="#{row.colorDescription}" />
                                                 <h:outputText value="#{row.color}" /></th>
                                            </c:if>
                                            <td width="70px"><c:if
                                                 test="#{inventoryManagedBean.inventoryMap[row.color][column.size] != null}">
                                                 <c:if test="#{inventoryManagedBean.inventoryMap[row.color][column.size].label != '-1'}">
                                                      <span class="matrixText"><h:outputText
                                                           value="#{inventoryManagedBean.inventoryMap[row.color][column.size].label}"
                                                           title="#{inventoryManagedBean.inventoryMap[row.color][column.size].title}" /> </span>
                                                      <t:htmlTag value="br" rendered="#{userManageBean.user.loggedIn}" />
                                                      <a4j:region renderRegionOnly="false">
                                                           <h:inputText
                                                                value="#{inventoryManagedBean.inventoryMap[row.color][column.size].quantityOrdered}"
                                                                rendered="#{userManageBean.user.loggedIn}" maxlength="6" size="6">
                                                           </h:inputText>
                                                      </a4j:region>
                                                 </c:if>
                                                 <h:outputText value="Call"
                                                      rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size].label == '-1'}" />
                                            </c:if> <h:outputText value="N/A"
                                                 rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size] == null}" /></td>
                                       </c:forEach>
                                  </tr>
                             </c:forEach>

    call javascript window.open("pagename"); & add some printer button there,
    and put rendered attribute to button & in backing bean generate boolean getter setter for variable use same variable in jsp printer button in rendered attribute, in bean constructor pass some parameter throuh jsp page,
    if parameter is match then it rendered attribute to true for button else not,
    it means that in parent window you can not see printer button, but in same window in popup you will see printer button,
    good luck
    <h:commandButton rendered="#{bean.renderedButton}"/>
    bean
    private boolean renderedButton= false;(generate getter setter)
    also pass parameter from UI to bean constructor

  • How do I update all the records in a table from the contents of another table?

    Ok some situation information, I have a pervasive database that runs our accounting software that I am pulling a product list from.  I have that list stored in a table in SQL.  From time to time we update the records in the pervasive database and
    I want to be able to pull those changes into the SQL table.  I don't want to drop the table and recreate it because if a product is no longer active in the pervasive database it will not be returned by the query (if I return all the products even the
    inactive ones I will get thousands of records rather than just a few hundred) and I do not want to loose the products from the table that are now inactive.  
    So what I want to be able to do is pull the list from pervasive, compare it to the list that exists in SQL and update any changed records, add any new records, and leave any now missing records alone(missing from the pervasive list but present in the SQL
    list).  I have no trouble pulling the records from pervasive (now) but I am a little stumped on how to do the rest.  I am not sure if this is a situation to use MERGE or not.  I also do not really need this to be done on a regular basis as the
    changes do not happen often enough for that, the ability to manually trigger it would be enough.
    Any help would be appreciated.
    David

    Hi David,
    lets say you want to go with the lookup transformation.
    lets say u want to move the data from server A table A1 to Server B table B1
    What you need to do is the following:
    Cofigure the Lookup options as follows:
    - In general -> Specify how to handle rows with no macthing entries -> "Redirect Rows to no Match Output"
    -  In Connection -> Set the ole db connection to the Server B and select the table B you want to lookup the values in your case the table where you want to input the changes 
    -  In columns -> link the product column from table A to product column in table B. And do not select any rows to output.
    - now your component is ready next you need to input. so when u connect your lookup to the destination component You will get an option to select which output you want to use - use "Lookup No Match Output".
    this will actually just allow you to add only new items only to the table B.
    Teddy Bejjani - BI Specialist @ Netways

  • Update a Temp table from the values of another table (Best Approach)

    Hi 
    Can anyone help me out to find a solution for the requirement mentioned below.
    I have a temp table like I have mentioned below. Column Period Name will have values like "Current Year", Two Years Before", Three Years Before" , YTD etc.
    Table: Period Count :
    DECLARE @PeriodCount TABLE(RowID INT IDENTITY(1,1),InterventionID INT,Name Nvarchar(500),StartDate DateTime,EndDate DateTime,PeriodName Nvarchar(100),RowDisplayOrder INT)
    In my second temp table(@Report) I have 30 unique Rownames. Now I need to update the figures of the columns like "OneYear Before", Two Years Before", Three Years Before " and all with the matching "InterventionID from the above table.
    ie: Update the figures of the below table (TwoYearsBefore,Three YearsBefore ) and all with the matching interventionID from the first table.
    Note: Field RowName is common in both the tables.
    Table :@Report
    DECLARE @Report TABLE(
    SectionDisplayOrder INT,
    SectionName NVARCHAR(MAX),
    SectionCode NVARCHAR(MAX),
    SectionPeriod NVarchar(Max),
    RowName NVARCHAR(MAX),
    DisplayFormat NVARCHAR(50),
    Uom NVARCHAR(50),
    IsBold BIT,
    Padding INT,
    IsPositiveVariance BIT,
    ThreeYearsBefore FLOAT,
    TwoYearsBefore FLOAT,
    OneYearBefore FLOAT,
    TwelveMonths FLOAT,
    [Target] FLOAT,
    Ytd FLOAT,
    Month1 FLOAT,
    Month2 FLOAT,
    Month3 FLOAT,
    Month4 FLOAT,
    Month5 FLOAT,
    Month6 FLOAT,
    Month7 FLOAT,
    Month8 FLOAT,
    Month9 FLOAT,
    Month10 FLOAT,
    Month11 FLOAT,
    Month12 FLOAT
    INSERT INTO @Report
    select
    DISTINCT
    NULL,
    ' Maintenance',
    'fractoryMaintenance',
    NULL,
    P.Name,
    'N0',
    'no',
    0,
    0,
    0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    from @PeriodCount P
    Thanks in advance.
    pep

    RowName
    ThreeYearsBefore
    TwoYearsBefore
    OneYearBefore
    TwelveMonths
    Target
    Ytd
    Month1
    Month2
    Month3
    Cross Over - Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Floor Tiles - Mechanical Damages
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Floor Tiles - Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Floor Tiles - Replaced
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Cleaned
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Mechanical Damages
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Replaced
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Straightening
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall - Wool Stuffed
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Burner Block - Replaced
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Top Blocks - Cover Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Top Blocks - Mechanical Damages
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Top Blocks - Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Top Blocks - Replaced
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Flue Wall Top Blocks - Wool Stuffed
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Head Wall - Cleaned
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Head Wall - Cover Repaired
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Head Wall - Full Sealed
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Head Wall - Replaced
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    Head Wall - Wool Stuffed
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL

  • Start with dates from the past in the planning book

    I want to maintain some figures from the last 14 days in the past.
    And I want the planning book to show these 14 days, when I open the planning book.
    (I do not want to scroll back).
    In my Data view i have to define a Time Bucket profile for the future. (system demand)
    This profile I has defined with one day.
    The Time Bucket profile for the past are 21 days.
    When I start the planning book with the view, I see only one column with todays date.
    I want to see the past 14 days, and therefore I have to scroll back.
    Is it possible to start with the last 14 days?
    - By setting the Period information in the Data view tab?
    - By other settings?
    - By macro?

    Hi Per,
    You need to go for a developing an ABAP report. The development calls for updating the planning start date in the data view design mode.
    You can use function modules /SAPAPO/MSDP_PB_READ_DVIEW and /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB.
    So the logic could be as follows:
    1. First develop a FM which will determine the planning start date as per your requirements. This has to be with respect to the system date. So this Function module should in effect subtract 14 days from system date and store in a date field.
    2. Using the FM  /SAPAPO/MSDP_PB_READ_DVIEW, this date can be updated in the data view / PLanning start date field.
    3. Using FM /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB, you can save and generate the data view.
    After developing the program you need to schedule this in background so that the planning start date is calculated and stored automatically.
    You need to take care of one thing though. In case there are any macros developed in the data view/macro book, the start dates for macro execution will be changed as well. You need to tweak those as per your requirements.
    Hope this helps.
    Regards,
    Ashutosh

  • How can EBS 12.1.3 upgraded from 11.5.10 be refreshed with data from the live 11.5.10

    Hello Gurus,
    Early this year we upgraded an 11i EBS system to a 12.1.3 for testing and now accounting wants the data in the new 12i system to be refreshed with the most recent data from PROD (11i). Is this possible wihtout going through the entire upgrade process?
    Thanks
    Mathias

    Hi Mathias,
    For details about this concurrent program, please refer to:
    SLA: Upgrade Historical Subledger Transaction Accounting Program (XLAONDEUPG) (Doc ID 1376752.1)
    R12.0 and R12.1: FAQ for the SLA Upgrade: SLA Pre-Upgrade, Post-Upgrade, and Hot Patch (Doc ID 604893.1)
    New Functionality for SLA Upgrade Process for R12.1.2 (Doc ID 980112.1)
    What Do You Need To Know For A Successful Upgrade Of Oracle Payables? [VIDEO] (Doc ID 1471844.1)
    Thanks,
    Hussein

  • How to populate a ComboBox with data from a WebService

    I have a simple application that has a DataGrid that gets its
    data from a web service. I would prefer to put that data into a
    ComboBox instead of a DataGrid. My web service returns objects.
    Anyone have any idea how to do that?
    <mx:DataGrid id="dgProjects"
    dataProvider="{ws.getProjects.lastResult}" >
    .....<mx:columns>
    ..........<mx:DataGridColumn dataField="projectID"
    headerText="Project ID" width="100"/>
    ..........<mx:DataGridColumn headerText="Project Name"
    dataField="projectName"/>
    ..........<mx:DataGridColumn headerText="Doc UNID"
    dataField="docUNID" visible="false"/>
    .....</mx:columns>
    </mx:DataGrid>

    I tried that but it doesn't work. However, I just found part
    of the solution and that was to add labelField="projectName".
    That worked. Now, I want to glue together projectID with
    projectName and a dash between them. So I changed it to labelField
    = "projectID - ProjectName" and that causes the combo box to
    display [Object] [object].
    Any ideas how to glue those items together?

  • Sorting by last 12 months in a Chart with data from the last 24 months

    Hi Guru's
    I am trying to create a Trend chart which will show the trend percentage vs previous year.
    In the X -axis I have Month wich is currently sorted by Jan, Feb, Mar etc ...Dec.
    The problem is that I want to show the last 12 months instead, but since I need data for the last 24 months to do so, I am having problems with the chart to show correct sorting.
    If this month is Oct 2011, I would want the chart to show the follwoing in the x axis:
    Oct10, Nov10, Dec10, Jan11,Feb11, Mar11, Arp11, May11, Jun11, Jul11, Aug11, Sep11.
    The problem is that in order for me to create the diff between previous year/month, the chart will either show last 24 months or 12 months thus causing the previous years values to disapear.
    So far I have managed to create a variable that will tell the age of the values in a month. The Chart is filtered and will now only contain data for the last 24 months. I have a variable which calculates the diff for each month agains previuos years values.
    So far so god, but how can I solve so that values are are included in the chart and sorted by the last 12 months?

    I discovered the solution, appereantly it was as easy as using the IN operator:
    =[Year] Where ([vAgeMonths] <= 12) In ([Time].[Short month])
    Now I am able to sort this by year and then month. Sometimes it helps tinkering a bit and a sollution will reveal it self.

  • How can i store the data from the list to MS-Access?

    Hi all,
    We all know that from alv it is possible to export data to Ms-excel or word or text file. Can anyone tell me how can i store the data from alv or reports to Ms-Access?
    Thanks in Advance,
    Abhijit

    Hi,
    If you want that without code, i suppose there is a option in MS-Access to import data from Excel, so you have to first export to excel and then import to Access.
    If you want to code it yourself then have a look at FM TABLE_EXPORT_TO_MSACCESS, as said in Exporting Data from R/3 to MS ACCESS
    You can also see the search results in SCN for [export data to MS-Access (45 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=exportdatato+MS-Access&cat=sdn_all].
    Regards
    Karthik D

Maybe you are looking for