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

CONVERT PDF INTO BYTESTREAM

Former Member
0 Likes
1,795

Hi all,

I have a Requirement that from Backed the Smart form need to be Converted into PDF and den to Byte Stream which is sent to UI. I got to know how to convert Smartform into PDF but can you people help me in Converting PDF into Byte stream.

Regard's

Girija

1 ACCEPTED SOLUTION
Read only

JackGraus
Active Contributor
0 Likes
995

When usting the function module CONVERT_OTF to convert the OTF from smartform call into PDF then insted of receiving PDF data in function parameter LINES, also the output parameters BIN_FILE and BIN_FILESIZE can be used. Then the PDF data is already in binary XSTRING format.

Regards Jack

3 REPLIES 3
Read only

former_member209703
Active Contributor
0 Likes
995

Once you have converted the SSF to OTF, You can use the standard FM CONVERT_OTF

Also if you need to encode this stream you can use SSFC_BASE64_CODE to encode it in BASE64 format.

Read only

Clemenss
Active Contributor
0 Likes
995

Hi Girija,

This could eventually help you: [Steps to Publish Web Service in R/3, Consume Web Service in R/3 and Adobe Flex|http://www.saptechnical.com/Tutorials/Others/WebService/Flex2.htm].

Regards,

Clemens

Read only

JackGraus
Active Contributor
0 Likes
996

When usting the function module CONVERT_OTF to convert the OTF from smartform call into PDF then insted of receiving PDF data in function parameter LINES, also the output parameters BIN_FILE and BIN_FILESIZE can be used. Then the PDF data is already in binary XSTRING format.

Regards Jack