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

declare flat structure as a internal table

Former Member
0 Likes
1,513

hi,

i wrote the following code to declare structure as a internal table ....

TYPES: BEGIN OF internalltdoclinks.

include structure CRMT_DOC_FLOW_DB_WRKT.

types: END OF internalltdoclinks.

DATA: it_table TYPE STANDARD TABLE OF internalltdoclinks,

wa_bkpf TYPE internalltdoclinks.

it give me error as CRMT_DOC_FLOW_DB_WRKT

"CRMT_DOC_FLOW_DB_WRKT" must be a flat structure. You cannot use   internal tables,strings ,references ,or structure as a component.

THANKS.

2 REPLIES 2
Read only

Former Member
0 Likes
660

Your code is correct, I think there is some problem with CRMT_DOC_FLOW_DB_WRKT, are you sure this is a structure?? and if you are not using any other fields with that structure then you can use that structure directly to declare internal table..

Read only

Former Member
0 Likes
660

Hi,

You can declare as below if you want to declare a internal table

DATA: LT_DATA TYPE TABLE OF CRMT_DOC_FLOW_DB_WRKT.

So that there would be any error.