‎2007 Aug 08 11:38 AM
Hi experts,
I wanted to put complete fields of 2 table(mara and makt) into a single internal table.
when i tried with
ypes: begin of itab.
INCLUDE STRUCTURE MARA.
include structure makt.
types: END OF ITAB.
it is showing the error as Mandt already exits. Can you please give me some suggestions. It is urgent.
Regards,
John Mani
‎2007 Aug 08 11:52 AM
**Define Internal table like e.g. given below
REPORT ZTRIP_TEST .
tables : MARA,MAKT.
data:
begin of ITAB occurs 0,
mara like mara,
makt like makt,
end of ITAB.
reward points if found useful
‎2007 Aug 08 11:40 AM
You can specify the MARA sturcture and will have to define each field off MAKT. There is not that many.
‎2007 Aug 08 11:47 AM
types: begin of itab.
INCLUDE STRUCTURE MARA.
f1 type makt-filed1
......
...fn type mark-fieldn
types: END OF ITAB.
‎2007 Aug 08 11:52 AM
**Define Internal table like e.g. given below
REPORT ZTRIP_TEST .
tables : MARA,MAKT.
data:
begin of ITAB occurs 0,
mara like mara,
makt like makt,
end of ITAB.
reward points if found useful
‎2007 Aug 08 11:53 AM
this is because mandt field is present in both the table(also matnr) and you are trying to insert those fields twice in your itab so you have to do like this...
TABLES : MARA,makt.
data : begin of itab occurs 0.
include structure mara.
data : SPRAS like makt-spras,
MAKTX like makt-maktx,
MAKTG like makt-maktg,
end of itab.
regards
shiba dutta