‎2006 Jul 15 2:41 PM
I need to insert values an Internal table into a ZTABLE.
<b>INSERT ZTABLE FROM TABLE FINAL.</b>
<i>Error message:</i>
<b>The work area "FINAL" is not long enough.</b>
I have declared the structure of the internal table FINAL same as the ZTABLE. Still I am getting the error message
‎2006 Jul 15 2:53 PM
I think in the ztable you have a field for mandt and that field you havent included in final internal table.
declare as follows:
data: begin of final occurs 0.
include structure zfinal.
data: end of final.
Regards,
Ravi
‎2006 Jul 15 2:53 PM
I think in the ztable you have a field for mandt and that field you havent included in final internal table.
declare as follows:
data: begin of final occurs 0.
include structure zfinal.
data: end of final.
Regards,
Ravi
‎2006 Jul 15 2:54 PM
Hi Viven,
Try this
DATA: lit_ztable TYPE TABLE OF ztable,
.
.
.
INSERT ztable FROM TABLE lit_ztable ACCEPTING DUPLICATE KEYS.
Rgds,
Prakash
<b>Rward useful answer</b>
‎2006 Jul 15 3:06 PM
This error is because FINAL is not defined as an internal table.
Declare it as
data : final like ztable occurs 0 with header line.Regds
Manohar