<?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: XSTRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xstring/m-p/3137647#M745640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the values normally - as the rest of the data types.&lt;/P&gt;&lt;P&gt;The data just needs to be in the right format - XSTRING.&lt;/P&gt;&lt;P&gt;If they are not You can use for conversion FM's f.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
  EXPORTING
    TEXT           =
*   MIMETYPE       = ' '
*   ENCODING       =
* IMPORTING
*   BUFFER         =
* EXCEPTIONS
*   FAILED         = 1
*   OTHERS         = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.



CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
  EXPORTING
*   CODEPAGE_TO            = '8500'
    UNICODE_STRING         =
*   OUT_LEN                =
* IMPORTING
*   XSTRING_STREAM         =
* EXCEPTIONS
*   INVALID_CODEPAGE       = 1
*   INVALID_STRING         = 2
*   OTHERS                 = 3
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Dec 2007 10:23:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-09T10:23:05Z</dc:date>
    <item>
      <title>XSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xstring/m-p/3137646#M745639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we pass the value to the data object given type as XSTRING?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2007 06:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xstring/m-p/3137646#M745639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-08T06:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: XSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xstring/m-p/3137647#M745640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the values normally - as the rest of the data types.&lt;/P&gt;&lt;P&gt;The data just needs to be in the right format - XSTRING.&lt;/P&gt;&lt;P&gt;If they are not You can use for conversion FM's f.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
  EXPORTING
    TEXT           =
*   MIMETYPE       = ' '
*   ENCODING       =
* IMPORTING
*   BUFFER         =
* EXCEPTIONS
*   FAILED         = 1
*   OTHERS         = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.



CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
  EXPORTING
*   CODEPAGE_TO            = '8500'
    UNICODE_STRING         =
*   OUT_LEN                =
* IMPORTING
*   XSTRING_STREAM         =
* EXCEPTIONS
*   INVALID_CODEPAGE       = 1
*   INVALID_STRING         = 2
*   OTHERS                 = 3
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Dec 2007 10:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xstring/m-p/3137647#M745640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-09T10:23:05Z</dc:date>
    </item>
  </channel>
</rss>

