Skip to Content
0
Former Member
Aug 11, 2010 at 12:55 PM

copy table/structure into context node

13 Views

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