2008 Apr 30 7:39 AM
Hi,
YTAB is a database table.
types : begin of it_head,
YCRENOTE like YTAB-CRENOTE,
CODE like YTAB-CODE,
YDOC like YTAB-YDOC,
end of it_head.
DATA: it_header type standard table of it_head with header line.
INSERT YTAB from table it_header accepting duplicate keys.
when insert command is used it gives error saying "it_header
is not long enough".
Can anybody suggest.
Regards,
Netra
Hi,
When you are using Insert from workarea, the table structure should match the workarea structure. Please check if the table structure and it_head are matching.
Thanks and regards,
S. Chandramouli.
2008 Apr 30 7:40 AM
HI,
DATA: it_header type standard table of it_head occurs 0 with header line.
regards
Nicole
2008 Apr 30 7:45 AM
Hi,
I don't want to use "occurs 0" is there any other method.
Netra
2008 Apr 30 7:48 AM
Hi,
When you are using Insert from workarea, the table structure should match the workarea structure. Please check if the table structure and it_head are matching.
Thanks and regards,
S. Chandramouli.
2008 Apr 30 7:56 AM
Hi,
Thanks , it worked mandt was missing in the declaration.
types : begin of it_head,
mandt like sy-mandt,
-
-
end of it_head.
Regards,
Netra
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |