‎2011 Jul 25 12:15 PM
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
‎2011 Jul 26 5:41 AM
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
‎2011 Jul 25 4:56 PM
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.
‎2011 Jul 25 8:32 PM
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
‎2011 Jul 26 5:41 AM
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