Application Development 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 a Deep Structure

Former Member
0 Kudos
7,048

Hi Abapers, how can i read a Deep Structure? i mean, read a field inside a table that i'ts inside another table.

[TABLE1 [TABLE2-FIELD] ] -> I need read the "Field" Value

1 ACCEPTED SOLUTION

ssimsekler
Active Contributor
110

Hi Carlos

Here is an approach I believe that can help:


LOOP AT <i><main_table></i> INTO <i><main_wa></i> .
  LOOP AT <i><wa>-<inner_table></i> INTO <i><inner_wa></i> .
    <i><var_1></i> = <i><inner_wa>-<field_to_be_read></i> .
    ...
  ENDLOOP .
ENDLOOP .

<i>And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;

- one 10 points (solved)

- two 6 points (very helpful answer)

- many 2 points (helpful answer)</i>

Kind Regards...

*--Serdar

3 REPLIES 3

ssimsekler
Active Contributor
111

Hi Carlos

Here is an approach I believe that can help:


LOOP AT <i><main_table></i> INTO <i><main_wa></i> .
  LOOP AT <i><wa>-<inner_table></i> INTO <i><inner_wa></i> .
    <i><var_1></i> = <i><inner_wa>-<field_to_be_read></i> .
    ...
  ENDLOOP .
ENDLOOP .

<i>And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;

- one 10 points (solved)

- two 6 points (very helpful answer)

- many 2 points (helpful answer)</i>

Kind Regards...

*--Serdar

0 Kudos
110

Ok, thanks for a perfect answer, until now i can modify the internal Field that i wanna reach, but i have a new problem, i need to modify that internal FIELD to another value, how i can update the changes to table?

0 Kudos
110

I've solved the problem ... thanks!! 😃