Skip to Content
author's profile photo Former Member
Former Member

how to capture data from the tableview to the internal table?

hello all,

i need to change the table data from the table view before that i have to check the old retrive data and new field data of the tableView so please help me out here

if any demo code is avilable please provie it

thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 30, 2007 at 02:33 PM

    Hi,

    These kind of questions discussed many times . Please search the forum.

    Few threads below:

    how-to-update-the-tableview

    modify-record-in-table-through-tableview

    modify-and-save-the-contents-of-tableview

    To check your old data, refer your internal table which will hold the old data (before you read the changes & update this itab)

    <i>*Reward each useful answer</i>

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:10 PM
    loc_table_event type ref to cl_htmlb_event_tableview,
          wf_vendor          type zer_vend_asgn_smp_s,
          int_lt_vend type zer_vend_asgn_smp_t,
          loc_ind type selectedrow,
          loc_sel_rows type selectedrows,
          wf_vend like line of wf_vend_table.
          
    
    
    
      call method cl_hrrcf_iterator=>get_tv_attr
        exporting
          p_tv_id               = 'TV'
          p_component_id        = me->component_id
          po_request            = me->request
        importing
          p_visible_first_index = me->visible_first_row
          pt_selected_keys      = me->lt_selectedkeytab
          po_tv_event           = loc_table_event.
    
    call method loc_table_event->get_rows_selected
    receiving selected_rows = loc_sel_rows.
    
    loop at loc_sel_rows into loc_ind.
    read table wf_vend_table index loc_ind-index into wf_vend.
    if wf_vend is not initial.
          
           wf_vendor-field1   = loc_table_event->get_cell_value(
                                             row_index     = loc_ind-index
                                          column_index  = 1 ).
            wf_vendor-field2  = loc_table_event->get_cell_value(
                                             row_index     = loc_ind-index
                                             column_index  = 2 ).
    
    modify wf_vend_table index loc_ind-index from wf_vendor .
    

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.