<?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: how to use split command for value in field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562248#M584408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-field(n).   &lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-field+n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"/" will create a new line for writing on your report.&lt;/P&gt;&lt;P&gt;N is the max length you want to write from itab-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicoals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 08:09:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T08:09:53Z</dc:date>
    <item>
      <title>how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562243#M584403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just want to know how to use split command for value in field.&lt;/P&gt;&lt;P&gt;actually i have one field name zevent which is have 100 char.&lt;/P&gt;&lt;P&gt;i want to divide the text to two part since i want to display it at my form.&lt;/P&gt;&lt;P&gt;which is my form has a limited space to display the long text.&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562243#M584403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T07:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562244#M584404</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;Suppose you want to split that into two 50 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: char(100) type c,&lt;/P&gt;&lt;P&gt;      char1(50) type c,&lt;/P&gt;&lt;P&gt;      char2(50) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char1 = char+0(50).&lt;/P&gt;&lt;P&gt;char2 = char+51(50).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else assuming you have a delimiter as ':'&lt;/P&gt;&lt;P&gt;SPLIT char AT ':' INTO char1 char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562244#M584404</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-30T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562245#M584405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: str1 TYPE string, &lt;/P&gt;&lt;P&gt;      str2 TYPE string, &lt;/P&gt;&lt;P&gt;      str3 TYPE string, &lt;/P&gt;&lt;P&gt;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What a drag it is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT space INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562245#M584405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562246#M584406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax for SPLIT is the following :&lt;/P&gt;&lt;P&gt;SPLIT field1 AT separator INTO field2 field3 field4 ...&lt;/P&gt;&lt;P&gt;The SPLIT command searches field 1 for separator and put the result into the different output fields (field2 field3 field4 ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case I don't think you nedd to use this command. Just use WRITE with length and offset as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write input_field(100) to output_field1.&lt;/P&gt;&lt;P&gt;Write input_field+100 to output_field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562246#M584406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562247#M584407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the answer&lt;/P&gt;&lt;P&gt;but i have to loop at internal table first for that field&lt;/P&gt;&lt;P&gt;how to use the syntax in the loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562247#M584407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562248#M584408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-field(n).   &lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-field+n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"/" will create a new line for writing on your report.&lt;/P&gt;&lt;P&gt;N is the max length you want to write from itab-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicoals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562248#M584408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T08:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562249#M584409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the below code to use a split with in a loop&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types : begin of TY_UPLOADF,
          STRING type STRING,
        end of TY_UPLOADF.

types : begin of TY_UPLOAD,
          I_FIELD1 type CHAR23,
          I_FIELD2 type CHAR8,
          I_FIELD3 type CHAR8,
          I_FIELD4 type CHAR8,
          I_FIELD5 type CHAR8,
          I_FIELD6 type CHAR8,
          I_FIELD7 type CHAR8,
        end of TY_UPLOAD.

data : IT_UPLOADF type table of TY_UPLOADF,
       IS_UPLOADF type TY_UPLOADF.

data : IT_UPLOAD type table of TY_UPLOAD,
       IS_UPLOAD type TY_UPLOAD.

    loop at IT_UPLOADF into IS_UPLOADF.
      split IS_UPLOADF-STRING at '+' into IS_UPLOAD-I_FIELD1
                                          IS_UPLOAD-I_FIELD2
                                          IS_UPLOAD-I_FIELD3
                                          IS_UPLOAD-I_FIELD4
                                          IS_UPLOAD-I_FIELD5
                                          IS_UPLOAD-I_FIELD6
                                          IS_UPLOAD-I_FIELD7.
      append IS_UPLOAD to IT_UPLOAD.
      clear : IS_UPLOADF, IS_UPLOAD.
    endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562249#M584409</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-30T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to use split command for value in field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562250#M584410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
  TYPES:
        BEGIN OF t_itab_split ,
           value(255) ,
        END OF t_itab_split .

  DATA:
        itab_split TYPE STANDARD TABLE OF t_itab_split .

...
...

    SPLIT str AT ';' INTO TABLE itab_split .


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the rows of the table contain splitted data, in the field 'value'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-split-command-for-value-in-field/m-p/2562250#M584410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T08:24:45Z</dc:date>
    </item>
  </channel>
</rss>

