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

converting pdf

Former Member
0 Likes
890

Hallo experts,

can some one tell me how can I convert a pdf file to binary or hex.

regards

rana

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
830

Use fm GUI_UPLOAD with file type as BIN , this way you can upload the PDF and and output comes out this function module in binary content

a®s

.

Read only

0 Likes
830

Hallo,

I want to upload the file from application server.

thanks

rana

Read only

0 Likes
830

Then you can use the OPEN DATASET commands with MODE options to read the file in BINARY mode and bring the content into an XSTRING variable.

a®

Read only

0 Likes
830

Hallo and thanks,

my code is

OPEN DATASET s_filename FOR INPUT IN BINARY MODE.

CLOSE DATASET s_filename.

can you tell me how can I proceed further

regards

rana

Read only

0 Likes
830

After

OPEN DATASET lc_dataset FOR INPUT IN BINARY MODE.

then call function

SCMS_XSTRING_TO_BINARY

This will convert XSTRING to Binary

a®

Read only

0 Likes
830

Or

Try to use

CALL FUNCTION 'DX_FILE_READ'

to read file from App server

a®