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: 

How to Upload MS Word File into Internal table

Nirojan
Participant
0 Kudos
738

Can someone help me how to upload MS word file data into Internal table. I tries gui_upload Its not working.

Data type : ASC

Please help me.

Thanks,

Nirojan.

7 REPLIES 7

Sandra_Rossi
Active Contributor
0 Kudos
639

The text is in Word format, including styles, images, etc., it means that you need to "decrypt" it. GUI_UPLOAD is to upload any file, but after that you need to decrypt.

abo
Active Contributor
0 Kudos
639

Why would you want to do that? You're not going to "read" it unless you unpack the archive, parse the XML files and so on.

I guess one could do it via OLE integration, though I haven't tried it.

Nirojan
Participant
0 Kudos
639

Hi sandra.rossi

Are there any function module or method available for decrypt? Please guide me.

Hi c5e08e0478aa4727abc4482f5be390b2

My client requirement is uploading word file program.

abo
Active Contributor
639

Just because the customer asks, it doesn't follow that it is reasonable, possible or even just easy 😉

As both me and Sandra implied, you'll have to read the file structure somehow. This blogpost is about generating a DOCX file but it should give you a rough idea of what you are up against.

Sandra_Rossi
Active Contributor
639

Lots of people have described in the forum how to read Word documents. Many ways. All are difficult. Probably OLE is the easiest way but many drawbacks: it's slow, it works only in dialog and if the user has MS Word installed.

matt
Active Contributor
0 Kudos
639

You don't.
Microsoft Word is a means for preparing information in a human readable format. It is not used to share data between computers without human intervention.

FredericGirod
Active Contributor
639

You should try interactive pdf instead of Word document