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

Table types definition

matteo_montalto
Contributor
0 Likes
658

Hi all,

a simple - I hope - question.

Let's suppose I have to create an internal table which has the same field of a dictionary table + a custom field.

What's the best way to define a "flat" table like this? I mean with "flat" I'd like then to perform operations like MOVE-CORRESPONDING wa_dictionary_table TO my_internal_table.

Thanks in advance, it's just a (useful) curiosity

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
620

types: begin og t_itab
 include strcture mara.
types: text(10) type c.
types: end of t_itab.

data: i_itab type standard table of t_itab.

data : wa_itab type t_itab.

a®

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
621

types: begin og t_itab
 include strcture mara.
types: text(10) type c.
types: end of t_itab.

data: i_itab type standard table of t_itab.

data : wa_itab type t_itab.

a®

Read only

matteo_montalto
Contributor
0 Likes
620

Thanks a lot mate, I'm gonna trying it now .

Read only

matteo_montalto
Contributor
0 Likes
620

Uhm... what if I want to put the custom field as the first one in my itab?

E.g:

mycustfield | <fields_from_dictionary_tab>

Read only

0 Likes
620

types: begin og t_itab
types: text(10) type c.  "<<<<<<<<<
 include strcture mara.
types: end of t_itab.

data: i_itab type standard table of t_itab.

data : wa_itab type t_itab.

a®

Read only

0 Likes
620

Yep thanks mate, that was a dump question, I mistyped the test code 😛

Read only

0 Likes
620

Hi,

simply:


types: begin of t_itab.
 types: text(10) type c.
 include structure mara.
types: end of t_itab.

data: i_itab type standard table of t_itab.

data : wa_itab type t_itab.

Regards,

Rocco

Edited by: Rocco P. on Sep 18, 2009 5:45 PM

Sorry for the additional response had not yet updated the post