Skip to Content
avatar image
Former Member

How to populate records into table based on tvarvc table

Hi Experts

       I have one webdynpro table .and i have created one record in TVARVC table and specified low value as 5

     according to that low value i.e 5 records of  data has to be populated into webdynpro table  i.e five records have to be populated

    to the table  even if table contains 10 records .if any one knows the solution please let me know thanks in advance

Thanks & Regards

Santhosh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 06, 2014 at 04:24 PM

    Hi Santhosh,

    Going by your example, If you want only 5 entries to be displayed and others entries not even available after scrolling down and all, then you will need to read the tvarvc low value and delete values from internal table whose index is greater than the tvarvc value. This is to be done before binding the table for display.

    But if you want that 5 entries are to be visible at one time and rest user should be able to see by scrolling down, then in that case, the VisibleRowCount property of the Table is to be bound with a context attribute and that attribute should have the value read from tvarvc.

    Hope it is clear.

    Regards,

    Harsh Bansal

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 05, 2014 at 12:17 PM

    Hi Santhosh,

    Do you want to display only 5 records or all the records at a time.

    can you elaborate your qurey.

    Thanks & Regards,

    Sankar Gelivi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sankar Gelivi

      Hi Sankar,

          

              Thanks for quick response,no of records should be displayed according to low value of tvarvc table ,now it is working .

      Thanks & Regards

      Santhosh

  • Feb 05, 2014 at 11:42 AM

    Hi Santosh,

    Even if you have created the table in Web Dynpro View in your context you have to define the cardinality & selection of the structure which acts as a table

    Best Regards

    Priyesh Shah

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Priyesh,

           Thanks for quick response ,my req is  in webdynpro context there are 10 records but

      i have to display only five records in table which should be change dynamically  by reffering to tvarvc table ,suppose im created one record in tvarvc whose low value is 5 or n

           so according to tvarvc table low value , records should be displayed in  table,let me know if u know solution thanks in advance

      Regards

      santhosh

  • avatar image
    Former Member
    Feb 05, 2014 at 12:05 PM

    Hi Santosh,

    First Read low value from TVARVC table using select query. You will get the value of LOW ( say 5). Now go to your table and Delete all records where index is higher than 5.

    Suppose ,lv_value contains low value from TVARVC table.

    Delete lt_table where index GT lv_value.

    Now table will contain only 5 records,so display in table.

    Regards,

    Ravikiran.K

    Add comment
    10|10000 characters needed characters exceeded