Application Development and Automation 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: 
Read only

file format problem

Former Member
0 Likes
814

Hello all,

i am facing a strange problem with file format. i have downloaded the output by using function'GUI_DOWNLOAD'.

the problem is when i view the file .txt format i have 10 records in separate lines but when i change the extension to .rft then output shows in one line whether the wordwrap is marked or unmarked.

can any one help me how to solve this problem

Regards,

Lisa.

7 REPLIES 7
Read only

Former Member
0 Likes
744

Hi Lisa,

DO THIS WAY

<b>FILETYPE = 'RFT'.</b>

Regards,

Santosh

Read only

Former Member
0 Likes
744

hi

hav u indicated field seperator as 'X' in gui_download

if u want to download in RTF foramt u can specify as below

EXPORTING

  • BIN_FILESIZE =

FILENAME = P_FILE

<b> FILETYPE = 'RTF'

  • APPEND = ' '

WRITE_FIELD_SEPARATOR = 'X'</b>

Read only

Former Member
0 Likes
744

hii

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = ld_filename

<b>filetype = 'RTF'</b>*

APPEND = 'X'

<b>write_field_separator = 'X'</b>*

CONFIRM_OVERWRITE = 'X'

TABLES

data_tab = it_datatab[]

EXCEPTIONS

file_open_error = 1

file_write_error = 2

OTHERS = 3.

Read only

0 Likes
744

Hello all,

i need to display diffrent records in diffrent lines. not to seperate fields

Regards,

Lisa

Message was edited by: Lisa Roy

Read only

Former Member
0 Likes
744

Hi,

what type of file format you want ?

you can use .txt. or you can use CSV,XLS extensions instead of that.

i am not getting why you need a file with .RTF format ? as the data we are downloading will be of characters ONLY in Raw format(text only)

why to go for RTF format(which is having different font attributes like bold,underlined etc..) ?

regards

srikanth

Read only

Former Member
0 Likes
744

hii Lisa ,

check this func module

<b>

LIST_DOWNLOAD</b>

Read only

0 Likes
744

hi

try this fm to convert text to RTF

<b>SKTU_TEXT_GET_CONVERT_TO_RTF</b>

<b>LIST_CONVERT_TO_RTF</b>