Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Types

Former Member
0 Likes
668

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

4 REPLIES 4
Read only

Former Member
0 Likes
635

HI,

DATA: it_header type standard table of it_head occurs 0 with header line.

regards

Nicole

Read only

0 Likes
635

Hi,

I don't want to use "occurs 0" is there any other method.

Netra

Read only

former_member784222
Active Participant
0 Likes
635

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.

Read only

0 Likes
635

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