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

Read a Deep Structure

Former Member
0 Likes
7,606

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
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
668

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
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
669

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

Read only

0 Likes
668

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?

Read only

0 Likes
668

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