Skip to Content
0
Former Member
Oct 07, 2009 at 12:12 PM

unicode convertable error

21 Views

hi experts,

im writing small assignment im newbie. i have created class in class i have method

filltab()

method FILLTAB.

select * from ztr_niktmpdb into table itab .

endmethod.

then i called this method to fill table in component controller methods wddoinit.

method WDDOINIT .

Data: context_node type ref to if_wd_context_node,

itab type ref to ztr_niktmpdb_t1,

obj1 type ref to z_tr_nikclass ,

itab_t type table of ztr_niktmpdb .

create object obj1.

CALL METHOD OBJ1->FILLTAB

IMPORTING

ITABREF = itab

ITAB = itab_t

.

  • if sy-subrc eq 0.

context_node = wd_context->get_child_node( name = 'DATA').

context_node->bind_table( itab_t ).

  • endif.

endmethod.

and then a button after clicking button pop up view appears in which one can edit fileds, but after pressing save button on pop up view

the data supposed to be sa ed in table back.

so for that i written code as follows,

method ONACTIONSAVEBTN .

data:

Node_Data type ref to If_Wd_Context_Node,

Elem_Data type ref to If_Wd_Context_Element,

Stru_Data type If_Popview=>Element_Data .

  • navigate from <CONTEXT> to <DATA> via lead selection

Node_Data = wd_Context->get_Child_Node( Name = IF_POPVIEW=>wdctx_Data ).

  • @TODO handle not set lead selection

if ( Node_Data is initial ).

endif.

  • get element via lead selection

Elem_Data = Node_Data->get_Element( ).

  • @TODO handle not set lead selection

if ( Elem_Data is initial ).

endif.

  • alternative access via index

  • Elem_Data = Node_Data->get_Element( Index = 1 ).

  • @TODO handle non existant child

  • if ( Elem_Data is initial ).

  • endif.

  • get all declared attributes

Elem_Data->get_Static_Attributes(

importing

Static_Attributes = Stru_Data ).

modify ztr_nikdbtmp from stru_data .

endmethod.

but it is showing unicode convertable error? can anyone suggest any soln for this error?

thankx in advance

Edited by: nikhil jadhav on Oct 7, 2009 2:12 PM