<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display Image in Adobe from using RAWSTRING data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653636#M28158</link>
    <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/307291/alokpatra.html"&gt;Alok&lt;/A&gt;,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Try to upload graphics with transaction SE78 and then method below can help you.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;CALL METHOD cl_ssf_xsf_utilities=&amp;gt;get_bds_graphic_as_bmp.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 13:23:17 GMT</pubDate>
    <dc:creator>roberto_forti</dc:creator>
    <dc:date>2018-04-18T13:23:17Z</dc:date>
    <item>
      <title>Display Image in Adobe from using RAWSTRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653635#M28157</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;My requirement is to print an image in Adobe form based on the RAWSTRING received from a front end non-SAP app. &lt;/P&gt;
  &lt;P&gt;The images are stored on the front end app and the converted RAWSTRING is sent back to SAP system based on user selection. SAP program receives the data as a 2000 character RAWSTRING format through a RFC call.&lt;/P&gt;
  &lt;P&gt;In Adobe form, I have created an image field and mapped to a graphics node in context menu. In code initialization section, RFC populates the XSTRING variable mapped to graphics node, however, image is not getting displayed on the form. &lt;/P&gt;
  &lt;P&gt;I tried to put an image in MIME and used it in form, and it worked.&lt;/P&gt;
  &lt;P&gt;I want your help to understand:&lt;/P&gt;
  &lt;OL&gt;
   &lt;LI&gt;Is it required to convert RAWSTRING to XSTRING before it is used in form?&lt;/LI&gt;
   &lt;LI&gt;Is there any way to check the incoming RAWSTRING valid&lt;/LI&gt;
   &lt;LI&gt;Is there any other way to achieve this requirement?&lt;/LI&gt;
  &lt;/OL&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Alok&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653635#M28157</guid>
      <dc:creator>alok_patra</dc:creator>
      <dc:date>2018-04-18T12:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Adobe from using RAWSTRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653636#M28158</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/307291/alokpatra.html"&gt;Alok&lt;/A&gt;,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Try to upload graphics with transaction SE78 and then method below can help you.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;CALL METHOD cl_ssf_xsf_utilities=&amp;gt;get_bds_graphic_as_bmp.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 13:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653636#M28158</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-04-18T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Adobe from using RAWSTRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653637#M28159</link>
      <description>&lt;P&gt;"Is it required to convert RAWSTRING to XSTRING "&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;This question simply makes no sense.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Please look up the documentation about built-in dictionary types and ABAP types.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenddic_builtin_types.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenddic_builtin_types.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 16:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653637#M28159</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-04-18T16:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Adobe from using RAWSTRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653638#M28160</link>
      <description>&lt;P&gt;On the context, the graphic MIME type is 'IMAGE/BMP'? &lt;/P&gt;&lt;P&gt;Are you inserting an image field and marking the check box “Embed Image Data” on the forma layout? &lt;/P&gt;&lt;P&gt;Try to download the image and open It &lt;/P&gt;&lt;P&gt;Use the methods below:
cl_gui_frontend_services=&amp;gt;file_save_dialog
cl_document_bcs=&amp;gt;xstring_to_solix
cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;
Sample code &lt;/P&gt;&lt;P&gt;" Download the image &lt;/P&gt;&lt;P&gt;DATA: lv_filename TYPE string, &lt;/P&gt;&lt;P&gt;
            lv_path TYPE string,&lt;/P&gt;&lt;P&gt; 
            lv_fullpath TYPE string,&lt;/P&gt;&lt;P&gt; 
            lv_user_action TYPE i. &lt;/P&gt;&lt;P&gt;
CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt; 
  EXPORTING &lt;/P&gt;&lt;P&gt;    file_filter = '*.jpg' &lt;/P&gt;&lt;P&gt;
    default_extension = 'jpg' &lt;/P&gt;&lt;P&gt;
    default_file_name = 'file_name' &lt;/P&gt;&lt;P&gt;
    initial_directory = 'C:\TEMP\' &lt;/P&gt;&lt;P&gt;
  CHANGING &lt;/P&gt;&lt;P&gt;
    filename = lv_filename &lt;/P&gt;&lt;P&gt;
    path = lv_path&lt;/P&gt;&lt;P&gt; 
    fullpath = lv_fullpath &lt;/P&gt;&lt;P&gt;
    user_action = lv_user_action&lt;/P&gt;&lt;P&gt;
  EXCEPTIONS &lt;/P&gt;&lt;P&gt;
    cntl_error= 1&lt;/P&gt;&lt;P&gt;
    error_no_gui = 2 &lt;/P&gt;&lt;P&gt;    invalid_default_file_name = 3 &lt;/P&gt;&lt;P&gt;
    not_supported_by_gui = 4 &lt;/P&gt;&lt;P&gt;    OTHERS = 5. &lt;/P&gt;&lt;P&gt;
DATA(lt_jpg_content) = cl_document_bcs=&amp;gt;xstring_to_solix( ip_xstring = &amp;lt;your xstring&amp;gt; ).&lt;/P&gt;&lt;P&gt; 
CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download 
  EXPORTING&lt;/P&gt;&lt;P&gt;      filename = lv_filename &lt;/P&gt;&lt;P&gt;    filetype = 'BIN' &lt;/P&gt;&lt;P&gt;
  CHANGING &lt;/P&gt;&lt;P&gt;
    data_tab = lt_jpg_content &lt;/P&gt;&lt;P&gt;
  EXCEPTIONS &lt;/P&gt;&lt;P&gt;
    file_not_found = 1 &lt;/P&gt;&lt;P&gt;
    file_write_error = 2 &lt;/P&gt;&lt;P&gt;    filesize_not_allowed = 3 &lt;/P&gt;&lt;P&gt;    invalid_type = 4 &lt;/P&gt;&lt;P&gt;    no_batch = 5 &lt;/P&gt;&lt;P&gt;
    gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;
    OTHERS = 10.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 22:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653638#M28160</guid>
      <dc:creator>Private_Member_447388</dc:creator>
      <dc:date>2019-02-04T22:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Adobe from using RAWSTRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653639#M28161</link>
      <description>&lt;P&gt;1. RAWSTRING is equal to XSTRING in abap, you dont have to convert (unless your word "rawstring" mean difference). anyway, you could find alot of convert method from class CL_BCS_CONVERT if you need to.&lt;/P&gt;&lt;P&gt;2. idk if there is a way to check it, maybe not since that string could be anything and dont have syntax...idk.&lt;/P&gt;&lt;P&gt;3. it might be related to mime_type parameter, could you set a fixed mime type (like bmp =&amp;gt; mime type = IMAGE/BMP...) and see what happend?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 00:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-image-in-adobe-from-using-rawstring-data/m-p/653639#M28161</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-02-05T00:50:01Z</dc:date>
    </item>
  </channel>
</rss>

