Hi Experts,
I am trying to export a deep structure (internal table that itself contains a structure) to shared memory and read the data from another program (different user session). Reading the online help, it seems that statement "Export to database" should be able to handle to export such deep structures but I get an error message saying "In EXPORT/IMPORT and ASSERT...FIELDS, "LS_IL_DATA" cannot be a reference or contain references"
The internal table looks similar to this:
HEADER_GUID CRMT_OBJECT_GUID
HEADER_STRUC_NAME TYPENAME
ITEM_STRUC_NAME TYPENAME
DATA DATA
ITEMS Z_ACTION_INTLAY_ITEM_DATA_T (structure containing items)
Here is the code:
data: wa_indx type indx. data: ls_il_data type z_action_intlay_data (own created structure in SE11) wa_indx-aedat = sy-datum. wa_indx-usera = sy-uname. wa_indx-pgmid = sy-repid. * Filling LS_IL_DATA with information ..... export LS_IL_DATA from LS_IL_DATA to database indx(za) from wa_index id 'Z_CONTR_CHNG'.
It seems to work when using a normal structure so why can't I use a deep structure
Do you have any idea why I get this error message stated above?
Edited by: Andreas H on Mar 14, 2011 2:15 PM