cancel
Showing results for 
Search instead for 
Did you mean: 

copy table/structure into context node

Former Member
0 Kudos

Hi,

another problem on my new development appeared and i really cant ask someone in company since im the first using wd4a.

i've got a few tables and ive got some nodes in the context i want to move this tables in.

first of all i dont know if the child getting is the best way. i believe somehow not^^

i then tried to copy the syst structure in a table, at least one row just for trying. but didnt work ether.

table always got no visible entries. it also didnt work with bind_table at bottom coding. please help me newbie, thx in advance

coding:

 
==============================table ================================
      lo_parent_node = wd_context->get_child_node( 'LOGIN_DATA' ).
      lo_parent_node = lo_parent_node->get_child_node( 'ABO' ).


      lo_context_node = lo_parent_node->get_child_node( 'JES_JKAP' ).
      lo_context_node->bind_elements( it_jkap ).

      lo_context_node = lo_parent_node->get_child_node( 'JES_JKPA' ).
      lo_context_node->bind_table( it_jkpa ).

      lo_context_node = lo_parent_node->get_child_node( 'JES_GP_ADRESSDATEN' ).
      lo_context_node->bind_table( it_adressdaten ).

==================structure ==============================================


  DATA:   ls_syst           TYPE syst,
          it_syst           type table of syst.

  DATA: lo_context_node     TYPE REF TO if_wd_context_node,
        lo_parent_node      TYPE REF TO if_wd_context_node.


  CALL FUNCTION 'AS4_GET_SYST_VALUES'
   IMPORTING
     syst_values           =  ls_syst.

append ls_syst to it_syst.


  lo_parent_node = wd_context->get_child_node( 'ADMINISTRATOR' ).
  lo_context_node = lo_parent_node->get_child_node( 'SYSTEM_FIELDS' ).
  lo_context_node->bind_structure( ls_syst ).
============================================================================

Edited by: -adrian- on Aug 11, 2010 3:08 PM - As coding

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Adrian,

I am not sure, if i got u correctly. I believe you are not able to store data in the node.

Could you check in the debugger whethe the data gets stored in the internal table which you are binding to the node and does node and internal table have similar structure.

Regards

Anurag Chopra

Former Member
0 Kudos

Hi,

actually i found my problem. 1st of all there is a endless loop in syst table while displaying it.

then i didnt actually get that table thing. used the wizzard to do a form and it worked. i forgot to set rows in the table. thought data binding would do the trick.

debugging actually isnt my thing. i can check wd_context and see the structure, but actually finding my context and how many nodes there are and where my lead selection is.. isnt possible for me.^^ i need to check some debug wd4a tutorials 😮