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

Import from database an internal table with generic Type

Former Member
0 Likes
481

Hi everyone,

i have a requirement in which i'm asked to transfer data flow between two frameworks, from WD Component to another. The problem is that i have to transfer internal tables with generic types. i used the import/ export from database approache but in that way i get an error message saying "Object references and data references not yet supported".

Here is my code to extract a generic internal table from memory.

    DATA l_table_f4 TYPE TABLE OF REF TO data.
  FIELD-SYMBOLS: <l_table_f4> TYPE STANDARD TABLE.
  DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
  DATA: ls_indx TYPE indx.

  lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  lo_componentcontroller->fire_vh_search_action_evt( ).

  ASSIGN l_table_f4 TO <l_table_f4>.
*-- Import table for Help F4
  IMPORT l_table_f4 TO <l_table_f4> FROM DATABASE indx(v1) TO ls_indx ID 'table_help_f4_ID'.

The error message is desplayed when last instruction is executed " IMPORT l_table_f4...".

I saw another post facing the same problem but never solved "Generic Type for import Database".

Please can anyone help ?

Thanks & Kind regards.

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
397

Since you mention 'WD' and I can't understand much of the post, I'm guessing this is a Web Dynpro question. There is a separate area for Web Dynpro: http://scn.sap.com/community/web-dynpro-abap

You might want to post it there. If you chose to post in ABAP General, you might want to add to the subject that this is a Web Dynpro question. This would attract the folks who have a clue (unlike me ). Otherwise my first thought was that this is another newbie post on how to use ASSIGN. The same problem with the other post, I guess, hence no response.

Good luck.