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: 

displaying the contents of the internal table in ms word

Former Member
0 Kudos

Hi all.

I need to insert the internal table into ms word file, it should look like table in msword. The main problem is that the size of the internal table is not fixed, it can be different from time to time.

Thanks in advance, regards, Nikolai.

4 REPLIES 4

amit_khare
Active Contributor
0 Kudos

Check this Report - SAPRDEMOOFFICEINTEGRATION

Regards,

Amit

Former Member
0 Kudos

Hi,

if u use the below the contents of itab will be moved to file "file" which will be in C drive.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'C:\file.doc'

FILETYPE = 'ASC'

  • APPEND = ' '

WRITE_FIELD_SEPARATOR = ' *'

  • HEADER = '00'

  • TRUNC_TRAILING_BLANKS = ' '

  • WRITE_LF = 'X'

  • COL_SELECT = ' '

  • COL_SELECT_MASK = ' '

  • DAT_MODE = ' '

  • CONFIRM_OVERWRITE = ' '

  • NO_AUTH_CHECK = ' '

  • CODEPAGE = ' '

  • IGNORE_CERR = ABAP_TRUE

  • REPLACEMENT = '#'

  • WRITE_BOM = ' '

  • TRUNC_TRAILING_BLANKS_EOL = 'X'

  • WK1_N_FORMAT = ' '

  • WK1_N_SIZE = ' '

  • WK1_T_FORMAT = ' '

  • WK1_T_SIZE = ' '

  • WRITE_EOL = ABAP_TRUE

  • IMPORTING

  • FILELENGTH =

TABLES

DATA_TAB = ITAB

rgds,

bharat.

0 Kudos

thanks Bharat, but it's not an option. The fact is that I should insert the internal table in the middle of ms word file, it is already created. There I have some text and some text fields (created by View->Toolbars->Forms->Text Field). The contents of these text fields is uploaded from particular fields of sap tables. But I also need to upload the internal table (not a separate field) and don't know how to do this.

0 Kudos

still needed