Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Shared Memory, exporting data reference and generic types

$
0
0

Hello,

I have a class and a method which has an import parameter like

IT_DATA type standard table.

 

 

i am tryingto export this table  to shared memory (my data reference variable) but i always get  error. Is there a way to export dynamic tables to SHMA ?

 

 

code is similar to this

 

DATA: v_area_handle TYPEREFTO zcl_shr_areahandle_area,
v_root        TYPEREFTO zcl_shr_areahandle_root.

FIELD-SYMBOLS <fs_data> TYPEANY.

TRY.
v_area_handle = zcl_shr_areahandle_area=>attach_for_write( ).

CREATE OBJECT v_root AREA HANDLE v_area_handle.

v_area_handle->set_root( v_root ).

*dref is the attribute created in root class.

CREATEDATA v_root->dref AREA HANDLE v_area_handle TYPEIT_DATA.

ASSIGN v_root->dref->* TO<fs_data>.


<fs_data> = it_data[] .

v_area_handle->detach_commit( ).

 

 

gives error on detach_commit.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>