<?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: convert table to xstring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296955#M501596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare another internal table with a single field  STRING(200).&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;            string(200),&lt;/P&gt;&lt;P&gt;         end of itab1,&lt;/P&gt;&lt;P&gt;    str(200).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at person_tab.&lt;/P&gt;&lt;P&gt; concatenate  person_tab-werks  person_tab-persg  person_tab-persk&lt;/P&gt;&lt;P&gt;      person_tab-orgeh  person_tab-stell  person_tablastname  person_tab-firstname&lt;/P&gt;&lt;P&gt;      ...................into str separated by ','.&lt;/P&gt;&lt;P&gt;  move str to itab1-string.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;clear itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 18:02:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T18:02:45Z</dc:date>
    <item>
      <title>convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296954#M501595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HALLOW &lt;/P&gt;&lt;P&gt;i have internal table (person_tab) and i wont convert it to&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;xtring&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;how can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz give example&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF 1_itab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        werks TYPE persa,&lt;/P&gt;&lt;P&gt;        persg TYPE persg,&lt;/P&gt;&lt;P&gt;        persk TYPE persk,&lt;/P&gt;&lt;P&gt;        orgeh TYPE orgeh,&lt;/P&gt;&lt;P&gt;        stell TYPE stell,&lt;/P&gt;&lt;P&gt;        lastname  TYPE pad_nachn,&lt;/P&gt;&lt;P&gt;        firstname TYPE pad_vorna,&lt;/P&gt;&lt;P&gt;        stdaz TYPE enstd,&lt;/P&gt;&lt;P&gt;        btrtl TYPE btrtl,&lt;/P&gt;&lt;P&gt;        name1 TYPE pbtxt,&lt;/P&gt;&lt;P&gt;        btext TYPE btrtx,&lt;/P&gt;&lt;P&gt;        perid TYPE prdni,&lt;/P&gt;&lt;P&gt;        END OF 1_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : person_tab TYPE TABLE OF 1_itab,&lt;/P&gt;&lt;P&gt;       wa_person_tab LIKE LINE OF &amp;lt;b&amp;gt;person_tab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296954#M501595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296955#M501596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare another internal table with a single field  STRING(200).&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;            string(200),&lt;/P&gt;&lt;P&gt;         end of itab1,&lt;/P&gt;&lt;P&gt;    str(200).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at person_tab.&lt;/P&gt;&lt;P&gt; concatenate  person_tab-werks  person_tab-persg  person_tab-persk&lt;/P&gt;&lt;P&gt;      person_tab-orgeh  person_tab-stell  person_tablastname  person_tab-firstname&lt;/P&gt;&lt;P&gt;      ...................into str separated by ','.&lt;/P&gt;&lt;P&gt;  move str to itab1-string.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;clear itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 18:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296955#M501596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T18:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296956#M501597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wont to convert to xstring there is no function that can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 18:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296956#M501597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T18:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296957#M501598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this combination FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOTR_SERV_TABLE_TO_STRING&lt;/P&gt;&lt;P&gt;SCMS_STRING_TO_XSTRING or SCMS_FTEXT_TO_XSTRING&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 18:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296957#M501598</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-15T18:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296958#M501599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ferry &lt;/P&gt;&lt;P&gt;u can give me example how to use this function becose&lt;/P&gt;&lt;P&gt;icant import to them table and get string (export)&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 18:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296958#M501599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T18:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296959#M501600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: l_text type string.

  types: begin of text_table,
           line type sotr_txt,
         end of text_table.

  data: l_text_tab type table of text_table.

  data: l_xstring_data type string.


  ...
 
  call function 'SOTR_SERV_TABLE_TO_STRING'
    exporting
      line_length  = gl_linewidth
      langu        = p_langu
    importing
      text         = l_text
    tables
      text_tab     = l_text_tab.

  call function 'SCMS_STRING_TO_XSTRING'
    exporting
      text         = l_text
    importing
      buffer       = l_xstring_data
    exceptions
      failed       = 1
      others       = 2

  ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 19:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296959#M501600</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-15T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296960#M501601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ferry &lt;/P&gt;&lt;P&gt;thankes for your time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that is what i dont understand how i use here in fm&lt;/P&gt;&lt;P&gt;my table &amp;lt;b&amp;gt;person_tab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 19:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-xstring/m-p/2296960#M501601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T19:13:52Z</dc:date>
    </item>
  </channel>
</rss>

