<?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: Split and pick in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053992#M423788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; chk the where-used-list of the field REMARK , u can get some some table , u can find out from that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2007 04:40:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-23T04:40:53Z</dc:date>
    <item>
      <title>Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053983#M423779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pick the data from a field and dispaly it as two fields.Can anyone here let me know how to go with this.&lt;/P&gt;&lt;P&gt;addr1_data-remark:-(table is addr1_data and the field is remark).&lt;/P&gt;&lt;P&gt;now i have to pick the contents from the field "remark" of table "addr1_data",split it into two to fill in two fields namely registration and tax-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am confusing you with the fields and the content just let me know the way to split the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053983#M423779</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-22T14:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053984#M423780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can split one field into two by using the SPLIT statment. but you will need a delimiter to use this statment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT addr1_data-remark at space into registration taxid.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case we are using SPACE as delimiter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for examlple if you have      'ABCDEF 12345' in the remark field. the split statement will split the data at SPACE and put 'ABCDEF' in the field registration and '12345' in the field taxid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053984#M423780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053985#M423781</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;What is the criteria for the split? The SPLIT command is the easiest if you are splitting the field at a specific character. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SPLIT remark AT (something) INTO registration tax_id .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Otherwise you will have to do a bit of string manipulation, I guess?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053985#M423781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053986#M423782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kalyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if that field has multiple spaces?&lt;/P&gt;&lt;P&gt;I mean if addr1_data-remark has the followding data:- kiran vijayawada 520003.&lt;/P&gt;&lt;P&gt;now i have to fetch "kiran vijayawada" into registration and 520003 into taxid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per your words the syntax should be--- SPLIT ADDR1_DATA-REMARK AT SPACE INTO REGISTRATION TAXID.Am I right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points given.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053986#M423782</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-22T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053987#M423783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for multiple spaces.  You'll need to fiddle with the data definitions.  Theoretically you can just have the itab be made up of a single line of type string, but I kept getting an error and I don't have time to dig into why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report ybctest.

PARAMETERS: text(50) TYPE c.

DATA: BEGIN OF itab OCCURS 0,
        line(20) type c,
      END OF itab.

data: test type string.

DATA: name(20) TYPE c,
      id(10) TYPE c.

SPLIT text AT space INTO TABLE itab.

LOOP AT itab.

  condense itab-line.
  test = itab-line.

  IF test CO '0123456789'.
    id = itab-line.
    DELETE itab.
  ENDIF.

ENDLOOP.

LOOP AT itab.
  CONCATENATE name itab-line INTO name SEPARATED BY space.

ENDLOOP.

WRITE: / 'name: ', name.
WRITE: / 'ID: ', id.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053987#M423783</guid>
      <dc:creator>bryan_cain</dc:creator>
      <dc:date>2007-03-22T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053988#M423784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There has to be some rule as to how you are going to split it. Otherwise it will not be correct. It has to be either fixed length values or separated by something. If they are fixed length values, then all you have to do is to move the offsets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
move: remarks+0(xx) to registration,
      remarks+yy(zz) to taxid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are separated by something then split will work as others suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053988#M423784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053989#M423785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for things like spliting text, you should define a fixed structue whether two spaces or one space, You will not be able to handle all the cases generically. You can ask the users to enter the data in the remark field in a certain format. if they enter it right you can split it correctly, if they enter it wrong it will be at their own peril.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible as them to enter it this way , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Kiran vijayawada : 1234567' , this way you can split at the character ':' and get the data into the two fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053989#M423785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053990#M423786</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;If you are sure that your field is under this format: letters   numbers, you shoul try to use TRANSLATE myText USING '0 1 2 3 4 5 6 7 8 9 '&lt;/P&gt;&lt;P&gt;all numbers will be replace by space, so you get the first part of the field. Get its lenght using strlen.&lt;/P&gt;&lt;P&gt;Then you can get the second part of the field using offset: myField+lengh_first_part(total_lenght)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 16:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053990#M423786</guid>
      <dc:creator>olivier_segol</dc:creator>
      <dc:date>2007-03-22T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053991#M423787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot to everybody.I have one more question.&lt;/P&gt;&lt;P&gt;Addr1_data is a structure.So,I will not be able to retrieve any data from it.&lt;/P&gt;&lt;P&gt;But the screen field is Addr1_data-remarks.&lt;/P&gt;&lt;P&gt;I have to fetch the data given in this screen field.&lt;/P&gt;&lt;P&gt;Now I will be able to retrieve from it as it is not a table but a structure.The data entered in this screen field has to get stored in some or the other table,right?Now how to find where it is getting stored and then retrieving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try splitting the data as mentioned by you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 04:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053991#M423787</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-23T04:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053992#M423788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; chk the where-used-list of the field REMARK , u can get some some table , u can find out from that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 04:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053992#M423788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T04:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053993#M423789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have given is Sexy.It is working perfectly,but I have to do some  fine tuning to fit that into my requirements.&lt;/P&gt;&lt;P&gt;Points given.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053993#M423789</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-23T05:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split and pick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053994#M423790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problems solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 03:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-and-pick/m-p/2053994#M423790</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-30T03:54:38Z</dc:date>
    </item>
  </channel>
</rss>

