2009 Jul 23 5:29 AM
Hi experts,
I have a requirement where i will get chunk of binary data(This binary is actually an IMAGE coming from web dynpro through a RFC in a form of RAWSTRING) , in my RFC i will get this image in RAWSTRING format which i have to store it in a ZTABLE.
Now i have to show this image in a PDF form , so i have to get this RAWstring from my ZTABLE and then convert it in image and then show it on my PDF form . Can anyone help me in achieving this requirement.
PLease let me know in case of more clarification.
Regards,
Abhishek
2009 Jul 23 6:21 AM
Hi Abhi,
What u need to do is create a feild of type RAWSTRING in your ztable , pass the value to it and get the image in xstring format.
if still it doesn't work than convert xstring to binary...
using FM CALL FUNCTION 'SCMS_XSTRING_TO_BINARY SO that u can display it in PDF format.
Try out !!
Best of Luck !!!
Regards
Ravi
Hi Abhi,
What u need to do is create a feild of type RAWSTRING in your ztable , pass the value to it and get the image in xstring format.
if still it doesn't work than convert xstring to binary...
using FM CALL FUNCTION 'SCMS_XSTRING_TO_BINARY SO that u can display it in PDF format.
Try out !!
Best of Luck !!!
Regards
Ravi
2009 Jul 23 5:54 AM
Hi Abhishek,
Please check the TCODE SMW0.Hope it helps you in the query.
Have a best day ahead.
2009 Jul 23 6:16 AM
Hi,
Basically i need a RFC which can convert this binary to image , this is what i want.
Regards,
Abhishek
2009 Jul 23 7:04 AM
Hi Abhishek,
read this wiki.It will be helpful
Wiki:[Image|https://wiki.sdn.sap.com/wiki/display/XI/How%20to%20Send%20Binary%20Data%20to%20RFC%20from%20XI(or)PI]
Hope you get the idea.
Have a best day ahead.
2009 Jul 23 6:21 AM
Hi Abhi,
What u need to do is create a feild of type RAWSTRING in your ztable , pass the value to it and get the image in xstring format.
if still it doesn't work than convert xstring to binary...
using FM CALL FUNCTION 'SCMS_XSTRING_TO_BINARY SO that u can display it in PDF format.
Try out !!
Best of Luck !!!
Regards
Ravi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |