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: 

Generic Type for Import from Database

Former Member
0 Kudos

Hi,

If i have an interanal table like below the code works fine.

Data: lt_konhdb type konhdb.

IMPORT tab = lt_konhdb

FROM DATABASE indx(a1)

TO indxwa

ID 'N_KONH' USING indx_form1.

I do not want to have a static type cast like above but want to have the type returned from the cluster table.

Someting like this.

field-symbols <fs_wa> type any.

IMPORT tab = <fs_wa>

FROM DATABASE indx(a1)

TO indxwa

ID 'N_KONH' USING indx_form1.

So that i can find the field symbol type using the RTTI Framework and create the internal table using create data syntax on the type returned by the field symbol.

Basically i want to create the internal table on the type which is stored in the cluster table as i do not know the type which is stored in the cluster table.so that i can use this internal table for furthur processing.

Is it possible? As when i use the field symbol it remains unassigned.

Thanks

1 REPLY 1

Former Member
0 Kudos

Hi,

I wonder if you already found a solution for this. I'm facing the same problem and i would appraciate your help.

Any suggestion?

Thank You.