‎2009 Sep 18 4:22 PM
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
‎2009 Sep 18 4:27 PM
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®
‎2009 Sep 18 4:27 PM
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®
‎2009 Sep 18 4:29 PM
‎2009 Sep 18 4:32 PM
Uhm... what if I want to put the custom field as the first one in my itab?
E.g:
mycustfield | <fields_from_dictionary_tab>
‎2009 Sep 18 4:36 PM
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®
‎2009 Sep 18 4:38 PM
Yep thanks mate, that was a dump question, I mistyped the test code 😛
‎2009 Sep 18 4:44 PM
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