Skip to Content
0
Former Member
Mar 05, 2009 at 10:18 AM

internal table with an internal table

80 Views

Hi,

I have following definition:

TYPES:  BEGIN OF ty_pos,
             numbertype(29)            TYPE c,
             number(29)                TYPE c,
             END OF ty_pos.

DATA: gt_pos TYPE STANDARD TABLE OF ty_pos,
      gs_pos LIKE LINE OF gt_pos.

TYPES: BEGIN OF ty_struc,
        city(29)                  TYPE c,
        country(29)               TYPE c,
        name(29)                  TYPE c,

        pos LIKE gt_pos,
END OF ty_struc.

DATA: gt_tab TYPE STANDARD TABLE OF ty_struc,
      gs_tab LIKE LINE OF gt_tab.

The problem is that the system don't know the fields when I say

  gs_tab-pos-number                = 'test'.

How should I write the syntax therefore?