Skip to Content
0
Former Member
Feb 16, 2006 at 03:45 PM

Problem in data transfer

12 Views

I have a internal ( one field of length 256 ).

When I try to transfer the data(660) of the internal table to application server I get a file of size 770. I don't y? I have given my coding below. Please help me out.

TYPES: BEGIN OF XML_LINE,

DATA(256) TYPE X,

END OF XML_LINE.

DATA : G_L_XML_TABLE TYPE TABLE OF XML_LINE.

DATA : BEGIN OF TEMP OCCURS 0,

DATA(256),

END OF TEMP.

LOOP AT G_L_XML_TABLE INTO L_W_XML_TABLE.

TEMP-DATA = L_W_XML_TABLE-DATA .

APPEND TEMP.

CLEAR TEMP.

ENDLOOP.

  • Sending the data to file

OPEN DATASET P_OUTFN FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF SY-SUBRC = 0.

LOOP AT TEMP.

TRANSFER TEMP-DATA TO P_OUTFN.

ENDLOOP.

ENDIF.