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

Declare deep structure with se11

Former Member
0 Likes
2,313

Hi,

I would like to create a new deep structure with a table type component with se11 transaction, not a nested structure.

I know it is possible to do that with Abap but I need to do this with se11 because it has to be accessible from some reports and some function modules as export parameters.

Thanks.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,531

Hello Juan

You have two options:

1) Define the complex structures within a type-pool

2) Define a structure with a field which is a table type. This structure is then use as line type of your target table type

Regards

Uwe

Hello Juan

You have two options:

1) Define the complex structures within a type-pool

2) Define a structure with a field which is a table type. This structure is then use as line type of your target table type

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,532

Hello Juan

You have two options:

1) Define the complex structures within a type-pool

2) Define a structure with a field which is a table type. This structure is then use as line type of your target table type

Regards

Uwe

Read only

0 Likes
1,531

Hi Uwe,

Thanks for your answer.

I though I had my filed as table type but as you see that's not true.

Actually in the component type of my field I have the name of the table I want to be the type of the field but it acts just an structure and not as a table.

What I'm doing wrong?

Thanks.

Read only

0 Likes
1,531

Hello Juan

If you use a DB table name as TYPE for your structure field is is always a structure but not a table type.

The only difference between DB tables and structures is that you can save records in DB tables.

Instead of the DB table name you need the name of a table type which has the DB table as line type.

Example: Structure has two fields

KUNNR (of TYPE kunnr)
DATA   (of TYPE trty_knb1 => table type for KNB1)

Now you can define a table type having the line structure shown above.

Regards

Uwe