<?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: Error while converting the image into xstring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837051#M1590499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1940520"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and close this thread&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;S.Janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2011 06:24:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-12T06:24:01Z</dc:date>
    <item>
      <title>Error while converting the image into xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837049#M1590497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am using the below code in portal to retrive the xstring data of image in debug mode when i am trying to save the xstring data in jpg format using (binary, binary with code page, ascii format) i am not getting the actual image. can anybody help me out to sort the problem&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(DOCUMENT_ID) LIKE  SOFOLENTI1-DOC_ID
*"     VALUE(FILTER) LIKE  SOFILTERI1 STRUCTURE  SOFILTERI1 DEFAULT
*"       'X '
*"     VALUE(OBJTP) TYPE  SO_OBJ_TP
*"     VALUE(OBJYR) TYPE  SO_OBJ_YR
*"     VALUE(OBJNO) TYPE  SO_OBJ_NO
*"  EXPORTING
*"     VALUE(DOCUMENT_DATA) LIKE  SOFOLENTI1 STRUCTURE  SOFOLENTI1
*"     VALUE(XSTRING_DATA) TYPE  XSTRING
*"     VALUE(V_LEN_NUM) TYPE  I
*"     VALUE(STRING_DATA) TYPE  STRING
*"  EXCEPTIONS
*"      DOCUMENT_ID_NOT_EXIST
*"      OPERATION_NO_AUTHORIZATION
*"      X_ERROR
*"----------------------------------------------------------------------
DATA: V_LEN TYPE SO_OBJ_LEN.
Data: OBJECT_HEADER type TABLE OF SOLISTI1,
      OBJECT_CONTENT TYPE TABLE OF SOLISTI1.
*BREAK-POINT.
*clearing the variables.
CLEAR: XSTRING_DATA, V_LEN,V_LEN_NUM.
*Reading object in binary
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
         EXPORTING
              DOCUMENT_ID                = DOCUMENT_ID
              FILTER                     = FILTER
         IMPORTING
              DOCUMENT_DATA              = DOCUMENT_DATA
         TABLES
              OBJECT_HEADER              = OBJECT_HEADER
              OBJECT_CONTENT             = OBJECT_CONTENT
         EXCEPTIONS
              DOCUMENT_ID_NOT_EXIST      = 999
              OPERATION_NO_AUTHORIZATION = 21
              COMMUNICATION_FAILURE      = 71
              SYSTEM_FAILURE             = 72
              OTHERS                     = 4.

*Determining length of the object.
SELECT SINGLE OBJLEN
       FROM SOOD INTO V_LEN
       WHERE OBJTP = OBJTP AND
             OBJYR = OBJYR AND
             OBJNO = OBJNO.
V_LEN_NUM = V_LEN.
*conversion to xstring from binary.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
  EXPORTING
    INPUT_LENGTH       = V_LEN_NUM
 IMPORTING
   BUFFER             = XSTRING_DATA
  TABLES
    BINARY_TAB         = OBJECT_CONTENT.
ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Looking forward for your kind replies.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 09:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837049#M1590497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting the image into xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837050#M1590498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1799138"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 11:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837050#M1590498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting the image into xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837051#M1590499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1940520"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and close this thread&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;S.Janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 06:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-the-image-into-xstring/m-p/7837051#M1590499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T06:24:01Z</dc:date>
    </item>
  </channel>
</rss>

