Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GEt Data from table refrence

Former Member
0 Likes
797

Hi ,

I have table with reference:

like that in debugger :

para_name                   value_ref
IT_DETAI-                    >Structure: deep
LT_SE_VALUES	->Standard Table[21x4(712)]
IT_WOR_DETAIL1	->Standard Table[2x56(2616)]
LT_RO_DETAILS	->Standard Table[4x3(112)]

how i get the data inside .

Regards

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
762

Double click on the name of the table, or on the description, usually works. Classic or "new" debugger?

Edited by: Matt on Jan 19, 2009 12:34 PM

7 REPLIES 7
Read only

Former Member
0 Likes
762

Hi,

Any idea?

Regards

Read only

matt
Active Contributor
0 Likes
763

Double click on the name of the table, or on the description, usually works. Classic or "new" debugger?

Edited by: Matt on Jan 19, 2009 12:34 PM

Read only

Former Member
0 Likes
762

HI Matt.

Thanks,

Yea i now that but what i want is to use this data (looping etc),

how i can do that?

Regards

Read only

matt
Active Contributor
0 Likes
762

Ah, OK.

So, you've got a variable IT_DETAI that has three components - each of which is an internal table.

DATA: ls_value LIKE LINE OF it_detai-lt_se_values.
...
LOOP AT it_detai-lt_se_values INTO ls_value.
...
ENDLOOP.

matt

Read only

Former Member
0 Likes
762

Hi Matt,

Thanks,

Sorry if i don't explain myself well.

I have table :

value_tab TYPE ettdc_refs_tabtype ,

Double click on it in the debugger i get table with 2 fields Var_name & paratab like below :

Var_name   paratab
VAR5 	        Standard Table[6x3(76)]

When i double click on standard table i get.

para_name                   value_ref
IT_DETAI-                    >Structure: deep
LT_SE_VALUES	->Standard Table[21x4(712)]
IT_WOR_DETAIL1	->Standard Table[2x56(2616)]
LT_RO_DETAILS	->Standard Table[4x3(112)]

I want to move all the value that in ,LT_SE_VALUES,IT_WOR_DETAIL1,LT_RO_DETAILS,

to regular internal table that i can work with ,

How i can do that?

Best Regards

Read only

Former Member
0 Likes
762

Hi Michael,

try like below.

DATA table TYPE ettdc_refs_tabtype.
DATA line  TYPE LINE OF ettdc_refs_tabtype.
DATA line2 TYPE etpar_ref.

FIELD-SYMBOLS : <tab1> TYPE ANY TABLE,
                <tab2> TYPE ANY TABLE,
                <tab3> TYPE ANY TABLE.

LOOP AT table INTO line.
  LOOP AT line-paramtab INTO line2.
    CASE line2-parname.
      WHEN 'LT_SE_VALUES'.
        ASSIGN line2-value_ref->* TO <tab1>.
      WHEN 'IT_WOR_DETAIL1'.
        ASSIGN line2-value_ref->* TO <tab2>.
      WHEN 'LT_RO_DETAILS'.
        ASSIGN line2-value_ref->* TO <tab3>.
    ENDCASE.
  ENDLOOP.
ENDLOOP.

<tab1> <tab2> <tab3> are the three tables.

~Jose.

Read only

matt
Active Contributor
0 Likes
762

Answer removed - José's got it right.

Edited by: Matt on Jan 19, 2009 1:50 PM