2010 Dec 21 11:23 AM
Hi All,
I have a requirement where I need to convert PDF form contents to base64Binary format and call the webservice to send it to outside world.
Detail Description:
I have two buttons on my application one "DISPLAY" & another "SEND". If user clicks on 'DISPLAY' then PDF form will be opened and printed. If user clicks "SEND" button then PDF form contents should be converted to base64Binary format and proxy class will be called to send to PI server. Please let me know any function modules or codes for converting PDF form contents to base64Binary format.
Your inputs on this will be highly appericiated.
Regards,
Santhosh
Edited by: santhosh sontha on Dec 21, 2010 12:23 PM
2010 Dec 21 3:14 PM
Use fm SSFC_BASE64_ENCODE. You'll need to convert the data to XSTRING format first.
Hi All,
I have a requirement where I need to convert PDF form contents to base64Binary format and call the webservice to send it to outside world.
Detail Description:
I have two buttons on my application one "DISPLAY" & another "SEND". If user clicks on 'DISPLAY' then PDF form will be opened and printed. If user clicks "SEND" button then PDF form contents should be converted to base64Binary format and proxy class will be called to send to PI server. Please let me know any function modules or codes for converting PDF form contents to base64Binary format.
Your inputs on this will be highly appericiated.
Regards,
Santhosh
Edited by: santhosh sontha on Dec 21, 2010 12:23 PM
2010 Dec 21 3:14 PM
Use fm SSFC_BASE64_ENCODE. You'll need to convert the data to XSTRING format first.
2010 Dec 21 3:30 PM
Hi Brad,
Thanks for your answer. Please let me know any function moudles avliabe for converting PDF form contents to XSTRING format.
2010 Dec 21 4:07 PM
You can try one of the functions in function group SCMS_CONV (or search for others in SE37). My standard process uses older code which still works with SX_TABLE_LINE_WIDTH_CHANGE, then SO_SOLITAB_TO_SOLIXTAB, then
* Convert to XSTRING format
LOOP AT gt_pdf_255x INTO gs_pdf_255x.
ASSIGN gs_pdf_255x TO <fs_line> CASTING TYPE x.
CONCATENATE e_pdfout <fs_line> INTO e_pdfout IN BYTE MODE.
ENDLOOP.
2010 Dec 22 10:24 AM
Hi Brad,
FYI my requirement is not to send PDF document as attachment. Instead I need to call the webservice in which "File contents" should be sent in one of the field of type < XSD: base64Binary>. Sorry I am very much new to PDF forms, please let me know how to pass file contents as input to SX_TABLE_LINE_WIDTH_CHANGE function module.
Thanks...........
2010 Dec 22 2:56 PM
I never said anything about attachments - the process I gave you was for converting binary PDF from the function to XSTRING format so that it can be base64 encoded. The actual code should be obvious from the functions - I will not spoon feed you that code. You need to try to figure it out yourself first. You don't seem to be making any effort on your own yet...
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |