Functions between separate tables?

Hi
I would like to have 2 different / separate tables but a functions operating with data in each other.
The first table contains the amount of people. In the second there are prices. I would like to have a function in the second table that does this: [amount of people] * [price] so I can calculate the total amount of money paid and divide it by the amount of people so they will know how much to pay.
Is it possible to do it or I have to put all the data in one table? If it could be in 2 tables it would be much much clearer (yes, I know that I can format one table so it looks like there are two but actually having two is easier and quicker).
Thank you!

Hi,
Both current and historical data are always stored within the same table. There is no option to create separate tables for each that are managed by OWM.
However, you do have the option to use dbms_wm.PurgeTable which can be used to purge a set of data, and optionally store it in a archive table. But, after that is done the data is no longer under Workspace manager's control or the versioning environment. From the description that you gave, I am unsure if this would be sufficient to satisfy your requirements. I am guessing not, but wanted to make you aware of the functionality.
Regards,
Ben

Similar Messages

  • Will there performance improvement over separate tables vs single table with multiple partitions?

    Will there performance improvement over separate tables vs single table with multiple partitions? Is advisable to have separate tables than having a single big table with partitions? Can we expect same performance having single big table with partitions? What is the recommendation approach in HANA?

    Suren,
    first off a friendly reminder: SCN is a public forum and for you as an SAP employee there are multiple internal forums/communities/JAM groups available. You may want to consider this.
    Concerning your question:
    You didn't tell us what you want to do with your table or your set of tables.
    As tables are not only storage units but usually bear semantics - read: if data is stored in one table it means something else than the same data in a different table - partitioned tables cannot simply be substituted by multiple tables.
    Looked at it on a storage technology level, table partitions are practically the same as tables. Each partition has got its own delta store & can be loaded and displaced to/from memory independent from the others.
    Generally speaking there shouldn't be too many performance differences between a partitioned table and multiple tables.
    However, when dealing with partitioned tables, the additional step of determining the partition to work on is always required. If computing the result of the partitioning function takes a major share in your total runtime (which is unlikely) then partitioned tables could have a negative performance impact.
    Having said this: as with all performance related questions, to get a conclusive answer you need to measure the times required for both alternatives.
    - Lars

  • Update partner function in KNVP table using FM sd_customer-maintain_all

    Hi All,
    I have to update Partner Function ‘PARVW’  in KNVP table using FM sd_customer_maintain_all.
    I had already created a BDC program for updating which is running successfully.
    But  my requirement is to create a BAPI using FM customermaintain_all.
    Ex:  Tcode VD02
              KUNNR          PARVW             KUNN2
    Old data      123          Z1          70006666
              123          Z2          70007777
    Req. output      123          Z1          70006666
              123          Z1          70007777
    PARVW ‘Z2’  should not exist after updation.
    When updating, I am getting the error message to my inbox as
    “ Error Info...   F2 802: System error in table KNVP ”
    The above error is triggered while committing work after execution of  ‘SD_CUSTOMER_MAINTAIN_ALL’.
    The options I tried while looping at internal table containing kunnr, parvw & kunn2
    CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
    EXPORTING
        I_KNA1                              = w_kna1
      I_KNB1                              =
        I_KNVV                              = w_knvv
      I_BAPIADDR1                         =
      I_BAPIADDR2                         =
      I_MAINTAIN_ADDRESS_BY_KNA1          = ' '
      I_KNB1_REFERENCE                    = ' '
      I_FORCE_EXTERNAL_NUMBER_RANGE       = ' '
      I_NO_BANK_MASTER_UPDATE             = ' '
      I_CUSTOMER_IS_CONSUMER              = ' '
      I_RAISE_NO_BTE                      = ' '
        PI_POSTFLAG                         = 'X'
      PI_CAM_CHANGED                      = ' '
      PI_ADD_ON_DATA                      =
      I_FROM_CUSTOMERMASTER               = ' '
    IMPORTING
      E_KUNNR                             =
      O_KNA1                              =
      E_SD_CUST_1321_DONE                 =
    TABLES
      T_XKNAS                             =
      T_XKNBK                             =
      T_XKNB5                             =
      T_XKNEX                             =
      T_XKNVA                             =
      T_XKNVD                             =
      T_XKNVI                             =
      T_XKNVK                             =
      T_XKNVL                             =
        T_XKNVP                             = I_XKNVP
      T_XKNZA                             =
      T_YKNAS                             =
      T_YKNBK                             =
      T_YKNB5                             =
      T_YKNEX                             =
      T_YKNVA                             =
      T_YKNVD                             =
      T_YKNVI                             =
      T_YKNVK                             =
      T_YKNVL                             =
        T_YKNVP                             = i_yknvp ***
      T_YKNZA                             =
      T_UPD_TXT                           =
    EXCEPTIONS
        CLIENT_ERROR                        = 1
      KNA1_INCOMPLETE                     = 2
      KNB1_INCOMPLETE                     = 3
      KNB5_INCOMPLETE                     = 4
      KNVV_INCOMPLETE                     = 5
      KUNNR_NOT_UNIQUE                    = 6
      SALES_AREA_NOT_UNIQUE               = 7
      SALES_AREA_NOT_VALID                = 8
      INSERT_UPDATE_CONFLICT              = 9
      NUMBER_ASSIGNMENT_ERROR             = 10
      NUMBER_NOT_IN_RANGE                 = 11
      NUMBER_RANGE_NOT_EXTERN             = 12
      NUMBER_RANGE_NOT_INTERN             = 13
      ACCOUNT_GROUP_NOT_VALID             = 14
      PARNR_INVALID                       = 15
      BANK_ADDRESS_INVALID                = 16
      TAX_DATA_NOT_VALID                  = 17
      NO_AUTHORITY                        = 18
      COMPANY_CODE_NOT_UNIQUE             = 19
      DUNNING_DATA_NOT_VALID              = 20
      KNB1_REFERENCE_INVALID              = 21
      CAM_ERROR                           = 22
        OTHERS                              = 23.
    IF sy-subrc eq ‘0’.
    Commit work and wait.
    Endif.
    All above tables have a field called ‘KZ’ which has options
    U-update
    D-delete
    I-insert
    E-………(I don’t know)
    Ex: T_XKNVP structure = KNVP Structure + Field ‘KZ’.
    Documentation for this FM is not Available in English or German
    1.  I tried sending Z2  KZ as ‘D’ first &  Z1 with KZ as ‘I’ with business partner of Z2 (KUNN2)
         as single update.
    Ex: T_XKNP table
    KUNNR          PARVW             KUNN2          KZ
    123          Z2          70007777     D
    123          Z1          70007777     I
    2.  I tried it as a separate delete record and insert record i.e calling the FM twice .
    3.  I tried passing table  T_YKNVP with old partner data + TXKNVP table new partner data
    Ex: T_YKNP table
    KUNNR          PARVW             KUNN2          KZ
    123          Z2          70007777     U or space (I tried both one after another)
    4. All combinations for field ‘KZ’  are tried.
    Please help me to overcome this problem.
    I )   I need which parameters are to be passed to FM for updating partner function in KNVP table .
    II)   Do I need to pass structure I_KNA1 or I_KNVV to FM ? (Blank or with values corresponding to   
         partner function ).
    III)  Any sample code which can guide me.
    Even a small hint or clue from you will certainly help me.
    Thanks in Advance.
    AJAX

    i have the same problem. I need to update the partner function PARVW thru a program that i created. I tried to use this FM but it didn't work. Anyone knows another FM that i can use to update the KNVP table?

  • DECODE versus creating a separate table and doing a join

    Hi,
    This question is on what Oracle does internally for the decode function on a field value.
    I have two options:
    (i) use the decode function to do a quick and dirty SQL statement
    (ii) create a table that has the results what that decode will do, and do a join with that table.
    I tend to shy away from using decode in SQL, since I hate the idea of putting business information into an SQL statement, and also I thought using functions of any kind slowed SQL down, and that one should limit it as much as possible "standard" SQL.
    Is the gain from using a separate table real, illusory or is it worse than using DECODE?
    Thanks,
    Regards,
    Srini

    Thanks for all the responses. I talked with my DBA and decided to go with the table option rather than the decode option. Here are the reasons.
    1. Mixing business information in your program is never a good idea (this of course goes beyond just SQL/Oracle, applying to all programming). This is related to what you mentioned, Kevin. I don't want to restrict the names in my tables simply because I have hard-coded something into my program. Over a period of time, this would result in a minefield of decodes.
    2. I forgot to mention - the decode would be in my 'where' clause - that is why I had the question on speed. It seemed to me that if the system had to translate each field, it could obviously not take advantage of any indexing the column had, and would be slower. Cartesian products are bad enough, we don't want a computation to be tacked on to it as well, right?
    Regards,
    Srini

  • How to compare data between two tables?

    Hi,
    My team is trying to develop a SAP data migration tool (DMT) using ABAP.
    One of the functionalities in the DMT is to validate the data in the staging area against the loaded SAP data.
    The tables in the stagin area are customer tables (i.e. user-defined tables starting with Y, Z).
    How do I compare the data in the staging area against data that are loaded into SAP tables? Are there some built-in SAP functions to do this? Or, are there some better ways of doing this (e.g. instead of comparing against data in the SAP tables, we compare with some INTERNAL tables)?
    Any help would be greatly appreciated, thanks!

    Hi Kian,
    Use <b>SCMP</b> transaction to compare data between two tables and you can not use this for comparing internal tables.
    Thanks,
    Vinay

  • What is the purpose or functions of these tables?

    Dear Experts,
    Briefly, could you explain what is the purpose or function of these tables:
    1. INOB - link between internal number and object. Is internal number = internal order number? related to project? purpose?
    2. AUSP -  Characteristic values - what characteristics? all? purpose?
    3. CABN - Characteristic : what is the purpose of this table?
    4. KLAH - Class header data : what is purpose of Class ?
    Are these cross-application like MM+SD etc or application area-specific eg MM only?
    Sorry, but i have no strong functional knowledge in these aspects. Please enlighten me.
    Thanks in advance.
    regards
    Bass

    1. INOB - link between internal number and object. Is internal number = internal order number? related to project? purpose?
    It is a linking table for internal number and object for characterstics tables.It is not relate to project.
    2. AUSP - Characteristic values - what characteristics? all? purpose?
    It will show what are the objects in class and internal characterstics.Details it will not show and it shows only numbers
    For e.gSuppose you have provided some values in Characterstics like qty 10,20..and colour ...red ,while..,Sytem will show these details in this table.
    3. CABN - Characteristic : what is the purpose of this table?
    It will show the type of characterstic is this numeric or  character
    4. KLAH - Class header data : what is purpose of Class ?
    This is also linking table.Thease are cross application tables MM+SD +PP as charactersics used in all process.

  • SAP GRC 10.1 AMF No data selected when adding duplicate fields from separate tables for configurable data sources

    Hi There,
    In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
    We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
    The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
    Below is an example:
    Basic data source with just one currency reference field EBAN-WAERS.
    When you run the Ad-Hoc Query you receive data.
    Basic data source with second currency reference field EKKO-WAERS.
    When you run the Ad-Hoc Query no data is found.
    Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
    Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
    Thanking you in advance.
    Regards
    Gary Khan

    Hi
    following are the  error messages from dump
    hrtText
       There is already a line with the same key.
    hat happened?
       Error in ABAP application program.
       The current ABAP program "SAPLCKMS" had to be terminated because one of the
       statements could not be executed.
       This is probably due to an error in the ABAP program.
    rror analysis
       You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
        which you declared
       with a UNIQUE KEY. However, there was already an entry with the
       same key.
       This may have been in an INSERT or MOVE statement, or within a
       SELECT ... INTO statement.
       In particular, you cannot insert more than one initial line into a
       table with a unique key using the INSERT INITIAL LINE... statement.
    rigger Location of Runtime Error
       Program                                 SAPLCKMS
       Include                                 LCKMSF01
       Row                                     226
       Module type                             (FORM)
       Module Name                             DYNAMIC_PERIOD_CLOSING
    Source code where dump ocured
    222
    223           APPEND ht_ckmlpp TO t_add_ckmlpp.
    224           APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
    225           INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
    >>>>           INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
    227         ENDWHILE.
    Also I guess there is problem with material ledger in R/3 side
    I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
    Thanks
    Navneet

  • How to compare BLOB data in 9i between 2 tables

    Hi
    I need to compare data between two tables (which are the same structure across two schemas) which has BLOB data.
    I am using 9i so cannot use some of the new functionality provided in 10g and 11g.
    I was hoping I could, rather primatively, use the dbms_utility.get_hash_value function and compare has values.
    Running this works:
    select
    dbms_utility.get_hash_value( to_char('1'), 0, 1073741824 )
    from dual
    DBMS_UTILITY.GET_HASH_VALUE(TO
                         201884475but this doesn't:
    select
    dbms_utility.get_hash_value( to_blob('1'), 0, 1073741824 )
    from dual
    ORA-06553: PLS-306: wrong number or types of arguments in call to 'GET_HASH_VALUE'Is there anyway to manage this?
    Thanks

    Or
    SQL> select   dbms_utility.get_hash_value (
                utl_raw.cast_to_varchar2 (to_blob ('1')),
                0,
                1073741824
             ) hash_value
      from   dual
    HASH_VALUE
    833483443
    1 row selected.

  • How do I make data from one Table flow into a separate Table

    How do I make data from one Table flow into a separate Table in iworks numbers?

    Great stuff Yvan,
    KOENIG Yvan wrote:
    Here you may see the way to transfer the contents of a column of Table A in a column of Table B
    I used two kinds of formulas.
    In the cell A2 of Table B
    the formula is :
    =Table A :: $B2
    It may be :
    =Table A :: $B
    Apply Fill Down
    Copy paste it in cell A1 which is in a header row.
    This formula does its duty but it’s not robust enough and will not survive to a Sort.
    This is why in B2, I inserted a more robust formula :
    =OFFSET(Table A :: $A$1,ROW()-1,2)
    You will find details about the functions used in Numbers User Guide delivered with every copy of iWork ‘08
    Yvan KOENIG (VALLAURIS, France) samedi 6 août 2011 17:45:22
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
    The first suggestion was the simple answer I needed,
    Thank you

  • Make the relationship in between multiple table storage's tables will affect the performance

    Hi,
    i'm going to develop business application,the product ID needs to be generic one and it should automatically generate the unique id(like identity in sql ) but,it has to be generate in formatted way 
    for example the ID would be "cityCode+areaCode+uniqueNumber" . here, cityCode and areaCode are going to maintain in separate table. while generate the product id, going to find the cityCode table and AreaCode table the generate  unique
    number by merge all the respective information.
    1) while doing all this will affect the performance Azure table storage performance and  web application ?
    2) making multiple relationship among multi-Table Storage will decrease the performance ?. 

    Hello,
    When you say tables, are referring to Azure Storage Tables or Relational Databases?
    Please note Windows Azure tables do not function in the same manner as tables in a relational database since they do not make use of relationships or have schemas.
    And if you are referring to relational databases, the latency in performance would depend on the logic used to generate the unique ID.
    You should be able to use the logic in an On-Prem SQL database and check for the latency.
    Regards,
    Malar.

  • How to build "Greater/less or Equal" relationships between two tables?

    Hi,
    Is there any straightforward approachs to realize the following kind of relationships between two tables?
    Table1.process_end_date >= Table2.work_start_date and
    Table1.process_end_date <= Table2.work_end_date
    BTW, there's no common columns for these two tables to do simple joins (inner, outter...).
    Thanks.
    Regards,
    Qilong 

    Sure.
    Table.SelectRows filters a given table (in this case Table2) based on a function provided as the second argument.
    (table2Row) => is the start of our filter function. It defines a function that takes one argument, called table2Row. Each row of Table2 will be passed to this function. If the function returns true, the row will be kept. If the function returns false,
    the row will be filtered out.
    The right hand side of the => is the filter expression. Because we're adding the custom column to Table1, we can reference a field in the current row of Table1 using square brackets (e.g. [process_end_date]). To reference the fields in the current row
    of Table2, we have to index into the table2Row variable passed to our function (e.g. table2Row[work_start_date]).
    Hope that helps.
    Ehren

  • Need to import 60+ CSVs to separate tables (can I bulk import or loop?)

    Hi all,
    I have 60+ CSV files which I would like to create to a separate table.
    To make things easier, let's say that these are named 1, 2, 3, 4, .... n.
    I am currently using Oracle SQL Developer.
    Is there a way to write a script or perform a bulk create so that I create different tables (i.e. 1, 2, 3, 4, ... n)?
    Because I'm thinking it would be very time consuming to use the normal 'import data' function for each file... also there is a possibility that more files need to be loaded.
    Otherwise, is it possible to write some sort of 'script' which references a directory on my hard drive and then loops through to create the tables as well?
    Would be great if anyone could point me to some reference materials.
    Thanks

    I agree with Hoek, if the structure of the files is the same, then just use a single External Table definition and use the Alter Table statement to change the "location" (which is the filename) dynamically at run-time before you then query the file and insert the contents into your table(s).
    http://www.morganslibrary.org/reference/externaltab.html
    Example:
    I have a file on my server in a folder c:\mydata called text.csv which is a comma seperated file...
    1,"Fred",200
    2,"Bob",300
    3,"Jim",50As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS "c:\mydata";
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser;Note: creates a directory object, pointing to a directory on the server and must exist on the server (it doesn't create the physical directory).
    As myuser:
    SQL> CREATE TABLE ext_test
      2    (id      NUMBER,
      3     empname VARCHAR2(20),
      4     rate    NUMBER)
      5  ORGANIZATION EXTERNAL
      6    (TYPE ORACLE_LOADER
      7     DEFAULT DIRECTORY TEST_DIR
      8     ACCESS PARAMETERS
      9       (RECORDS DELIMITED BY NEWLINE
    10        FIELDS TERMINATED BY ","
    11        OPTIONALLY ENCLOSED BY '"'
    12        (id,
    13         empname,
    14         rate
    15        )
    16       )
    17     LOCATION ('test.csv')
    18    );
    Table created.
    SQL> select * from ext_test;
            ID EMPNAME                    RATE
             1 Fred                        200
             2 Bob                         300
             3 Jim                          50
    SQL>
    {code}
    And to alter the location...
    {code}
    SQL> begin
      2    execute immediate 'alter table ext_test location(''test'||to_char(sysdate-1,'YYYYMMDD')||'.csv'')';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1* select dbms_metadata.get_ddl('TABLE', 'EXT_TEST', USER) from dual
    SQL> /
    DBMS_METADATA.GET_DDL('TABLE','EXT_TEST',USER)
      CREATE TABLE "SCOTT"."EXT_TEST"
       (    "ID" NUMBER,
            "EMPNAME" VARCHAR2(20),
            "RATE" NUMBER
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "TEST_DIR"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE
          FIELDS TERMINATED BY ","
          OPTIONALLY ENCLOSED BY '"'
          (id,
           empname,
           rate
          LOCATION
           ( 'test20101214.csv'
        )Edited by: BluShadow on 17-Apr-2013 08:31
    to add example

  • How to manage the space between a table and its title?

    Have tables where titles are very close to the main text and need a couple of points to separate these elements. How to reshape this space?
    1. Titles were separated by a return that is not  visible...  (any code is revealed by ID)
    2. When a Return is inserted after the title, nothing happens aparently, but this return is now visible and could be used as a «paragraph space after» value:
    3. A solution could be Grep to catch the end of paragraph assigned to titles to insert a return;
    but Grep only catches the right border of the table (the yellow mark shows the big blinking cursor);
    Grep cannot see the end of paragraph in the tables's title.
    It another method?
    Basically, how to modify the space between a table and ists title

    I think you and Bob are not in synch here.
    Bob suggested that you could use paragraph spacing, but for that to work you do need to use separate paragraphs for the title and table, which you don't seem to be doing. Using GREP to find the end of the paragraph only works if there IS and end to the paragraph. As far as I know there is now meta-character to use in Find/Change that would allow you to find a table and insert a paragraph break ahead of it, but I bet it could be scripted.
    I'm not quite sure what you were trying to find in the GREP you posted. Did you actually have a paragraph return inserted already after the title? In that case you only need to redefine the style for that paragraph to add the space (or redefine the style for the paragraph that holds the table itself). You don't need the GREP. But the reason it does nothing is that you've found a location -- the end of the paragraph, but haven't found any actual text to modify. To do anything you would need to use something like .$
    But back to NOT having a separate paragraph... If you put the cursor in any table cell and go to Table Options > Table Setup tab you'll see fields to set space before and after the table that should do what you want. That was the second part of what he posted.

  • Creating functions from two tables

    So I have these two tables emp and salary. I would like to create a function to accept a grade from salary table
    and return number of employes belonging to that specific.Similarly, I would like to create a function to accept the
    MGR# from the emp table and return number of employees working under that specific manager.
    1.Create function emp_count
    (I_grade in number)
    return number is
    cnt number (2):=0;
    begin
    Select Count (*) into cnt
    from emp, salary e
    where e.grade= I_grade;
    return (cnt);
    end;
    2.Create function mgr_count
    (I_MGR in number)
    return number is
    cnt number (2):=0;
    begin
    Select Count (emp) into cnt
    from emp e
    where e.mgr= I_mgr;
    return (cnt);
    end;
    Thanks

    Joins are same in SQL and PLSQL...
    Additional things you can do in PLSQL..
    1. Select a single row output in PLSQL variable using INTO
    2. Pass a parameter to Select Query
    You can also select multirow output in collection type variable.
    So coming back to your query write a select query joining emp and salary tables on on grade column (I assume this is the common column between 2 tables) and then filter data using grade input parameter.
    Regards
    Arun

  • Data transfer between 2 table views

    Dear Gurus
    Here is my scenario.
    I need to transfer data between 2 table views (Both these table views are having only column). These 2 tables are present in separate views (under same viewset).
    Now initially I need to display some data in one of the tables when I display the screen for the first time (this I was able to achieve). Now if I double-click on any row of this table,  I need to move the data present in that particular row to a different table present in the same screen.
    Here is what I have achieved.
    1) When I click on any row,  I was able to capture the row index and the corresponding data in that row.
    I put some code in the method EH_ONSELECT (present in the event handler) to get this working.
    Now my question is
    How can I move this captured data into a different table view?
    I tried investigating on some of the methods such as do_prepare_output. But I am left with no clue on what coding needs to be done here.
    Any help will be greatly appreciated.
    Thanks
    Raj

    Hi Raj,
    You can write the code in methods like DO_PREPARE_OUTPUT, but need to take adequate care of perfrormance as this method gets triggered for all server events.
    If you can identify any other method on the second view at an instance when you select rows on view1..
    that too is fine.
    You can get the selected entries from a context node collection wrapper method...
    DATA: lr_marked_line TYPE REF TO if_bol_bo_col.
    * Get the lines selected by the user
      lr_marked_line = me->typed_context->productcategory->collection_wrapper->get_marked( ).
    You can do a work around this way too...create an internal table attribute in the IMPL class of Custom Controller...Update it with the selceted rows in view1.
    Populate view2 with the values in this table by accessing them from Custom Controller.
    Code can be in DO_PREPARE_OUTPUT or some method that triggers at the point you select values in first row.
    Regards,
    Masood Imrani S.

Maybe you are looking for