Skip to Content
0
Former Member
Mar 06, 2009 at 03:36 PM

Reading and appending data to deep structure

2128 Views

Hi All,

I want to carry out 3 steps

1) Move the data from deep structure into an internal table

2) Clear the deep structure

3) Fill the deep structure with different data.

Please find below the code written for that. When I try to activate this code, I get an error message

**The data object "PS_RJH08_VT_PLAZ" does not have a component called **

*"UPOS_EIN-EIN". *

Let me know how to resolve this issue.

DATA : gt_tab TYPE STANDARD TABLE OF RJH08_VT_PLAZ_EIN_STR,
           gw_tab type RJH08_VT_PLAZ_EIN_STR.

gt_tab[] = PS_RJH08_VT_PLAZ-UPOS_EIN-EIN[].

CLEAR : PS_RJH08_VT_PLAZ.
REFRESH : PS_RJH08_VT_PLAZ.

LOOP AT gt_tab into gw_tab.

  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-UR_BELEINH  = gw_tab-UR_BELEINH.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-PLAZ_BE     = gw_tab-BELEGEINH.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-JVTBEPMART  = gw_tab-JVTBEPMART.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-VRTMENGE_V  = gw_tab-VRTMENGE_V.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-VRTMENGE    = gw_tab-VRTMENGE.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-BERMENGE    = gw_tab-BERMENGE.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-BLGMENGE    = gw_tab-BLGMENGE.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-XTBEL_VT    = g_SELECTIVE_BOOKING.
  PS_RJH08_VT_PLAZ-UPOS_EIN-UPOS-XVT_PLAZ    = 'X'.
  MOVE gw_tab to PS_RJH08_VT_PLAZ-UPOS_EIN-EIN.

  APPEND PS_RJH08_VT_PLAZ.
ENDLOOP.