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: 

reg : EXPORT statement

Former Member
0 Kudos

HI,

Iam geeting error in ECC 6.0 saying that wa_return CANNOT BE a reference or reference type.

below is the code, plz recitfy this.

data : Wa_RETURN TYPE ssfcrescl

EXPORT output_data = wa_return

TO MEMORY ID 'ZL_OTF_TABLE'.

regards

Parthu

3 REPLIES 3

Former Member
0 Kudos

Hi,

Try assigning a default value to the wa.

Regards,

Renjith Michael.

0 Kudos

AFAIK you are not allowed to EXPORT object or data references. I. e. fields like these cannot be EXPORTed:


DATA:
  lr_dref TYPE REF TO data,
  lr_iref TYPE REF TO if_ixml_document,
  lr_oref TYPE REF TO cl_abap_runtime.

The structure type you are referencing with your work area, contains a component carrying an interface reference:

SSFCRESCL-XMLOUTPUT-XSFDOCPTR, and XSFDOCPTR is of type IF_IXML_DOCUMENT, unfortunately

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jan 30, 2008 5:25 PM

Former Member
0 Kudos

Pls Try,

data : Wa_RETURN TYPE table of ssfcrescl.

EXPORT ( wa_return)

TO MEMORY ID 'ZL_OTF_TABLE'.

(append values to Wa_RETURN )