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

Create a structure from a table definition

LeeFung
Participant
0 Likes
1,015

I wanted to create a structure with exactly the same fields from a table.   Is there a way to copy the table definition to the structure to save me a lot of typing?   Thanks

1 ACCEPTED SOLUTION
Read only

Chintu6august
Contributor
0 Likes
985

Hi,

go to se11.. open structure in change mode..

you copy fields of  table to structure in change mode.

EDIT-->transfer field->> give the table name whose field you want to copy.

screen will pop-up like this select the fields and copy

thanks!!

4 REPLIES 4
Read only

VenkatRamesh_V
Active Contributor
0 Likes
985

Hi David,

Click copy icon.

Hope it helpful,

Regards,

Venkat.

Read only

Chintu6august
Contributor
0 Likes
986

Hi,

go to se11.. open structure in change mode..

you copy fields of  table to structure in change mode.

EDIT-->transfer field->> give the table name whose field you want to copy.

screen will pop-up like this select the fields and copy

thanks!!

Read only

matt
Active Contributor
0 Likes
985

David Ng wrote:

I wanted to create a structure with exactly the same fields from a table.   Is there a way to copy the table definition to the structure to save me a lot of typing?   Thanks

Why? If it's exactly the same, use the table. E.g DATA mydata TYPE thetable. Otherwise you should use .INCLUDE in your structure definition. I.e. fieldname .INCLUDE, with type thetable. In this way, if the table should ever change, your structure will automatically reflect such changes.

Read only

former_member241258
Active Participant
0 Likes
985

hi

use .INCLUDE <TABLE NAME>

like below.