cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to store dat from word file into a table

Former Member
0 Kudos

Hi Experts,

I have an Office UI element on my web dynpro View. It is selected as MS Word. Now I want to save data from this word file to a table in SAP. Can we have a data element which can store such type of large data. Please suggest.

Regards,

Vaibhav Tiwari.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tiwari,

U can use the data element like char1000, char3000 for storing long text.

If u have a table of strings, then u can use string_table table type.

Regards,

Arun.

vaibhav_tiwari
Contributor
0 Kudos

Hi Arun,

Here I want to store images as well from the word file. So I need to store data in the form of bytes. XString is a type in ABAP which stores data in the form of bytes. But we can't have a table attribute of this type. Can you please provide with some other helpful solution.

Regards,

Vaibhav Tiwari.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>But we can't have a table attribute of this type

Actually you can. You can define a database column as RAW STRING. This is exactly the same as a XSTRING variable and in your SQL statement you just pass it an XSTRING. It will store the entire contents of the XSTRING as a single column in the database. Large size is not a problem.