cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Data as DOc with ALV

Former Member
0 Kudos

Hi all,

Is it possible to extract the data from the ALV Table in a Word Document ?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

u can use 'CONVERT_OTF' function module pass internal table containig data to this fm.

kanchan

Former Member
0 Kudos

Can you add some explications ? (sample code)

(which format ? I saw only PDf and ASCII, PDF I need too so will be good but dont see DOC)

First get the internal table data and than call CONVERT_OTF and than call wdr task ??the content of wd_task must be a string ...

Thanks!

Former Member
0 Kudos

Well I add a button bellow the ALV Table

I tried with this code

WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(

I_FILENAME = 'test.doc'

I_CONTENT = XTEXT

I_MIME_TYPE = 'WORD' ).

and had this error

Word cannot start the converter mswrd632. (Word 2007)

after clicking ok I had the content but without the form

Is there a better way to export internal table data to DOC ?

Former Member
0 Kudos

Hi,

Probably an idea to join the code_exchange project ?

As of now i didn't see any document about it yet. But the project is there, so you might watch this project site or get in touch with project owner.

[https://cw.sdn.sap.com/cw/groups/abap2docx|https://cw.sdn.sap.com/cw/groups/abap2docx]