2012 Oct 17 5:19 PM
Hi All,
I have a requirement, where i have to display an image on my form. That image is coming from a UI in a rawstring format. I have to pick it up and convert it to xtrsing and send that xstring to my form, where i will display it as an image.
Now i tried searching a lot for a function module which does so but couldn't find any. If any body has any idea or have come across similar situation then please reply.
Any help would be appreciated.
Regards,
Nitin.
2012 Oct 17 6:42 PM
hello
did you try FM "SX_OBJECT_CONVERT" ? This has a option of source and destination formats.
best regards,
swanand
2012 Oct 17 6:42 PM
hello
did you try FM "SX_OBJECT_CONVERT" ? This has a option of source and destination formats.
best regards,
swanand
2012 Oct 17 6:57 PM
Hi Nitin,
You could try the static method cl_bcs_conver=>raw_to_xstring. The only thing to note there is the rawstring would have to be chopped up into table entries with a max length of 255 per line because it takes a table type of soli_tab is an importing parameter.
Regards,
Ryan Crosby
2012 Oct 20 6:29 AM
RAWSTRING and XSTRING are equivalent types. No conversion necessary, just direct assignment:
Data type RAWSTRING correspopnds to an uninterpreted byte string of variable length. The corresponding ABAP type is XSTRING and is implemented as a reference to a storage area of variable size.http://help.sap.com/saphelp_46c/helpdata/en/d7/11322bc925d311b60f0060b03c2bff/content.htm
Regards