Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to download entire output as a one string

Hi Experts,

How to download the entire output as a one string which has the length of characters 15 thousand. After downloading the file , the file should show the entire output in one string instead of showing table lines. Please help me.

*DATA: BEGIN OF IT_DETAIL OCCURS 0,

DATA TYPE STRING,

END OF IT_DETAIL.

TYPES: BEGIN OF TY_STRING,

DATA TYPE STRING,

END OF TY_STRING.

DATA: TAB_DETAIL TYPE STANDARD TABLE OF TY_STRING,

WA_STRING TYPE TY_STRING.

some selection process...

loop at itab.

concatenation F1 F2 ..FN TO IT_DETAIL-DATA.

MOVE IT_DETAIL-DATA TO WA_STRING-DATA. wa_string_data contains 15k characters in debugging

APPEND WA_STRING TO TAB_DETAIL. Here appending 15k chars to TAB_DETAIL

endlo

  • but while downloading using Gui_Download i couldnt get 15k characters, only getting 8093 characters.

DATA: L_SIZE1 TYPE I.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'C:\ITEM.TXT'

FILETYPE = 'ASC'

IMPORTING

FILELENGTH = L_SIZE1 in Debug mode L_size1 having only 8093 characters only, couldnt download 15K chars ..Why? Is there any restriction for string length for downloading

TABLES

DATA_TAB = TAB_DETAIL*

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question