cancel
Showing results for 
Search instead for 
Did you mean: 

How to Edit a general table

Former Member
0 Kudos

Hi Experts,

In my requirement am working on general DML operations i need help for editing a selected record. Please help me.

Thanks,

Sandy.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sandy,

I am not clear about your requirement. You want to edit data in database tables through WD?

be bit more clear please.

Cheers,

Kris.

Former Member
0 Kudos

Hi Kris,

I have created a table in my wd application in which i want to edit a particular record so that modified record can be saved in my custom table.

Thanks,

Sandy.

Former Member
0 Kudos

Hi,

The particular column that u want to edit,make the cell editor as input field.

Edit the data and read the node bound with the table in the 'Save' or 'Update' button you have.

Use the method get_static_attributes_table of if_wd_context_node. You will get the updated data in the internal table.

From that updated data from the screen you can do whatever you want.

Thanks,

Saikat

Former Member
0 Kudos

Hi Sandy,

I think you have table ready to change values.. change your table rows.

create one button save.. SAVE. in on action of that button.

Use code wizard to read table. and code like this.. for example

LOOP AT lt_segment1 INTO ls_segment1.  // 
      wa_segment-person      =   level1.
      wa_segment-cdate       =   ls_level-date.
      wa_segment-dealer_code =  lv_dealer_code.
      wa_segment-dimension   =   ls_segment1-segment.
      APPEND wa_segment TO it_segment.
    ENDLOOP.

    MODIFY zwd_apo FROM TABLE it_segment.

// To modify data from internal table to database table.

Cheers..

Kris.