<?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: Function Module Require in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458997#M831070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STRING_SPLIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 08:30:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T08:30:37Z</dc:date>
    <item>
      <title>Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458994#M831067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;i need to split a string which contains # in between, into its corresponding internal table.&lt;/P&gt;&lt;P&gt;the structure of the internal table will be given dynamically...&lt;/P&gt;&lt;P&gt;Is tr any function module to split the string and put it into the dynamically provided itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Is tr any way to read the data's from Application server which contains Tab de-limited file into its corresponding itab.(Dynamically provided itab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SASI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 08:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458994#M831067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458995#M831068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make use of SPLIT statement ... i.e, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: NAMES2(30) VALUE 'Charly# John# Peter',
      THREE(10)  VALUE 'New York',
      FOUR(10),
      FIVE(10),
      SIX(10)    VALUE 'SAP'.
SPLIT NAMES2 AT '#' INTO THREE FOUR FIVE SIX.
IF THREE = 'Charly' AND
   FOUR  = ' John'  AND
   FIVE  = ' Peter' AND
   SIX   = SPACE.
  WRITE 'SPLIT is OK'.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 08:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458995#M831068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458996#M831069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the split at into command. Find the syntax below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT f AT g INTO TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here g= '#' for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Farzan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 08:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458996#M831069</guid>
      <dc:creator>former_member137336</dc:creator>
      <dc:date>2008-02-22T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458997#M831070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STRING_SPLIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 08:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458997#M831070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T08:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458998#M831071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data:wk_str(11) value 'dfn#bsd#fcc'.

data:begin of it,
      f1(3) type c,
      f2(3) type c,
      f3(3) type c,
     end of it.
data:itab like standard table of it with header line.

split wk_str at '#' into it-f1 it-f2 it-f3..
append it to itab.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 08:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458998#M831071</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-22T08:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Require</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458999#M831072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitting Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To split a character string into two or more smaller strings, use the SPLIT statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system searches the field &amp;lt;c&amp;gt; for the separator &amp;lt;del&amp;gt;. The parts before and after the separator are placed in the target fields &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place all fragments in different target fields, you must specify enough target fields. Otherwise, the last target field is filled with the rest of the field &amp;lt;c&amp;gt; and still contains delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all target fields are long enough and no fragment has to be truncated, SY-SUBRC is set to 0. Otherwise it is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRING(60),&lt;/P&gt;&lt;P&gt;P1(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P2(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P3(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P4(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;DEL(3) VALUE '***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / P1.&lt;/P&gt;&lt;P&gt;WRITE / P2.&lt;/P&gt;&lt;P&gt;WRITE / P3.&lt;/P&gt;&lt;P&gt;WRITE / P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the contents of the fields P1 ...P4 are totally overwritten and that they are filled out with trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also split a string into the individual lines of an internal table as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system adds a new line to the internal table &amp;lt;itab&amp;gt; for each part of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-require/m-p/3458999#M831072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:23:19Z</dc:date>
    </item>
  </channel>
</rss>

