‎2008 Nov 17 11:32 AM
hi everybody
how to define an internal table which will include 4 different structures?
TYPES: BEGIN OF ty_accfile.
INCLUDE STRUCTURE t,
INCLUDE STRUCTURE bbkpf.
INCLUDE STRUCTURE bbseg.
TYPES: END OF ty_accfile.
‎2008 Nov 17 11:35 AM
Hi,
Try like this....
types : begin of typ_input,
wa_string type string,
end of typ_input.
types : begin of typ_input1,
wa_string1 type string,
end of typ_input1.
data : gt_input type typ_input,
gt_input1 type typ_input1.
DATA: BEGIN OF gt_output OCCURS 0.
include structure gt_input.
INCLUDE STRUCTURE gt_input1.
DATA: end of gt_output.
DATA : itab type table of gt_output.
Hope it will helps
‎2008 Nov 17 11:35 AM
Hi,
Try like this....
types : begin of typ_input,
wa_string type string,
end of typ_input.
types : begin of typ_input1,
wa_string1 type string,
end of typ_input1.
data : gt_input type typ_input,
gt_input1 type typ_input1.
DATA: BEGIN OF gt_output OCCURS 0.
include structure gt_input.
INCLUDE STRUCTURE gt_input1.
DATA: end of gt_output.
DATA : itab type table of gt_output.
Hope it will helps
‎2008 Nov 17 11:36 AM
‎2008 Nov 17 11:40 AM
Hi,
When you are including 4different structures...you should aware about the fields of those structures...if any common field exists within those structures...then system will not allow you to that....
Arunima
‎2008 Nov 17 11:43 AM
Hi Arunima
In fact Im having the internal table which includes 4 structures, where there are common fields
So how I should handle it?
‎2008 Nov 17 11:42 AM
DATA:
it_itab type standard table
of ty_accfile
initial size 0.