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

Saving Hexadecimal data

Former Member
0 Likes
788

Hi,

I have a hexadecimal file , which I have in an internal table. The contents of the Iternal table are from a PDF file on my local machine, by calling:

CALL FUNCTION 'GUI_UPLOAD'

What I want to do is save this information in a database table, so that any user can then get access to it from their machine. What is the easiest way of doing this - I tried creatin a Database table with data type raw, but it always gives me the double number of digits I need.

The iternal table for the function above , is defined as

DATA: mycontent_table LIKE bapiconten OCCURS 1. This uses the data element type SDOK_SDATX , which it does not let me use for the field definition.

Is there a simple way of doing this?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
671

Hi Sims,

I'm sorry I did not quite understand the situation.

1. Are you successful in uploading the data to the internal table ? Or is this where you find the trouble ?

2. What are you referring to by <i>"a certain database table"</i>?

Regards,

<a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=zwcc%2fwm4ups%3d">anand Mandalika</a>.

3 REPLIES 3
Read only

Former Member
0 Likes
671

You could try EXPORT TO INDX instead of using a database table.

Read only

Former Member
0 Likes
672

Hi Sims,

I'm sorry I did not quite understand the situation.

1. Are you successful in uploading the data to the internal table ? Or is this where you find the trouble ?

2. What are you referring to by <i>"a certain database table"</i>?

Regards,

<a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=zwcc%2fwm4ups%3d">anand Mandalika</a>.

Read only

0 Likes
671

Hi,

the basic idea is this. I have a PDF file available on my machine. I want to transfer the file into the database, so anyone can get access to it.

I have got the data from the file in Hex format using the upload function mentioned. I need to know how to store this data into a database table.

The upload function is working fine. From the database I would then call a method of the document viewer to display the file. This works fine as well.

Thanks