‎2014 Mar 18 6:35 AM
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.
‎2014 Mar 18 7:09 AM
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..
‎2014 Mar 18 7:17 AM
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.