cancel
Showing results for 
Search instead for 
Did you mean: 

Bind Table not working for Standard context elements Webdynpro ABAP

0 Kudos

Hi,

I have a requirement where i need to change a standard table data. I used the wizard and fetched the table data from a Standard context.

I looped the Table and modified the data i want.

But when i Bind the table and check it in Portal. All the data in the Table is Grey ed out. I dont why?

Do you guys any idea. I am binding the Standard table.

A Sample code is Given here

*  DATA lo_nd_notes TYPE REF TO if_wd_context_node.

*

*  DATA: lt_notes TYPE wd_this->elements_notes,

*        lwa_notes LIKE LINE OF lt_notes.

*

** navigate from <CONTEXT> to <NOTES> via lead selection

*  lo_nd_notes = wd_context->get_child_node( name = wd_this->wdctx_notes ).

*

** @TODO handle non existant child

*  IF lo_nd_notes IS INITIAL.

*    EXIT.

*  ENDIF.

*

*  lo_nd_notes->get_static_attributes_table( IMPORTING table = lt_notes ).

*

*

*  LOOP AT lt_notes INTO lwa_notes WHERE text_id_desc_ui = 'Some condition'.

*    lwa_notes-text_id_desc_ui = 'Changes'.

*    MODIFY lt_notes FROM lwa_notes.

*  ENDLOOP.

*

*  lo_nd_notes->bind_table( lt_notes ).

Please do help me.

Regards,

Venkatesh S

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try to invalidate the table node first and then do the binding.

...

lo_nd_notes->invalidate( ).

lo_nd_notes->bind_table( lt_notes ).

...



Regards

Gowtham
Contributor
0 Kudos

HI Venkatesh,

Try to use transporting option in modify query , Due to that thing value may clear.

Ex :   

           Modify lt_data

              from ls_Data

    transporting s_no

                      name.

(ii) Check the where condition in loop i think so you are using some description in where condition , check the Upper & lower cases of the description.

(iii) Before end loop pls clear the work area --> "Clear lwa_notes".

Regards,

Gowtham.A