Application Development 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: 

cant't been able to use string as data-element in table

Former Member
0 Kudos

hello,

i am calling one method via GET_TEXTSTREAM of class CL_GUI_TEXTEDIT. in which one of the importing parameter is Text which is of type string and its corresponding field is from the table and i have created one data-element of type string in table . when i activate module pool program i receive a dump "table" must be a flat structure. You cannot use internal tables, strings, references, or structures as components. -

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

You cannot use such a type in a transparent database table, so two solutions

- save data in a using a EXPORT TO DATABASE ([EXPORT - Table Structure|http://help.sap.com/abapdocu_70/en/ABENEXPORT_DATA_CLUSTER_INDX.htm]) (*)

- read the data with method GET_TEXT_AS_R3TABLE and not GET_TEXTSTREAM and update multiple records of a transparent text table (with a fixed length CHAR type field)

Regards,

Raymond

(*) or use the SAVE_TEXT family which uses such a solution