2008 Jul 07 11:31 AM
hi
I have created a Z table and have written a module pool to update in the z table.
But when i gave the coding like this below
" INSERT zmt001_gatehdr FROM TABLE it_gatehdr."
it says the error msg like
"The work area "IT_GATEHDR" is not long enough . ."
could anyone help me to debug this error.
Cheers
Christina
hi
I have created a Z table and have written a module pool to update in the z table.
But when i gave the coding like this below
" INSERT zmt001_gatehdr FROM TABLE it_gatehdr."
it says the error msg like
"The work area "IT_GATEHDR" is not long enough . ."
could anyone help me to debug this error.
Cheers
Christina
2008 Jul 07 11:32 AM
2008 Jul 07 11:37 AM
Hi Christina,
The Structure zmt001_gatehdr and it_gatehdr not unique. So you need to built both with same type.
Many thanks,
Raghu
2008 Jul 07 11:44 AM
Hi Raghu
Thanx for the reply.
I have defined the internal table with field mandt.
should i assign the value for that field also..
only that field is now problem.
Cheers
Christina
2008 Jul 07 11:51 AM
Dear,
No need to mention MANDT.
Once u better goto SE14->edit->click on adjust and activate the table. It may work.
Thanks nad Regards,
2008 Jul 07 11:40 AM
Hi Christina,
Refer all the fields of your internal table it_gatehdr to that of your database table zmt001_gatehdr. This problem arises when you dont have enough space to store the value in the field of your internal table.
Regards,
Swapna.
2008 Jul 07 11:41 AM
Hi Lavanya,
check your work area declaration IT_GATEHDR which u r using. Declare each and every field in it from table zmt001_gatehdr.
for e.g
data : begin of IT_GATEHDR.
include structure zmt001_gatehdr.
data : end of IT_GATEHDR.
this might solve your problem.
Reward points if helpfull in any way
Regards,
SUDHIR MANJAREKAR
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |