Skip to Content
0
Former Member
Dec 06, 2011 at 02:35 PM

Run Time Error while Transferring data to Application server

461 Views

Hello Abaper's,

I have generated a XML data using the FM : " SAP_CONVERT_TO_XML_FORMAT ".

While transferring the data to a File on Application Server using the statement

DATA : wa_xmltab TYPE truxs_xml_line,

it_xmltab TYPE truxs_xml_table.

OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc EQ 0.

LOOP AT it_xmltab INTO wa_xmltab.

TRANSFER wa_xmltab TO FNAME. <<<<<<<<<<<<<< Getting Error here

ENDLOOP.

ELSE.

MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.

ENDIF.

CLOSE DATASET FNAME.

-


The Run Time Error i am Facing is

Short text

The current statement is only defined for character-type data objects.

Error analysis

For the statement

"TRANSFER f TO ..."

only character-type data objects are supported at the argument position

"f".

In this case. the operand "f" has the non-character-type "TRUXS_XML_LINE". The

current program is a Unicode program. In the Unicode context, the type

'X' or structures containing not only character-type components are

regarded as non-character-type.

Regards

jv