<?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 split a complex string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710517#M2019049</link>
    <description>&lt;P&gt;This looks like normal CSV format. &lt;/P&gt;&lt;P&gt;Try cl_rsda_csv_converter to read data from the string to your structure. There are many examples how to use this class &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 07:12:06 GMT</pubDate>
    <dc:creator>Tomas_Buryanek</dc:creator>
    <dc:date>2023-05-04T07:12:06Z</dc:date>
    <item>
      <title>how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710516#M2019048</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2165729-capture.png" data-attachment="2165729"&gt;capture.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have a string which is separated by comma. However, I cannot use the SPLIT statement as the comma is used in denoting amounts as well, for e.g. "123,456,000" and also they are enclosed within quotes (please refer to the attachment). So when there are no values, they are filled with zero and separated by commas. But when there are values, it becomes complex to separate them and store them in an internal table in their respective columns. Any idea how it can be done ?&lt;/P&gt;
  &lt;P&gt;My internal table is declared as follows and I have to strore them inside the fields declared.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Manish&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;BEGIN OF ty_interest_calc,&amp;lt;br&amp;gt;          date(10),&amp;lt;br&amp;gt;          fund_name(50),&amp;lt;br&amp;gt;          cusip_isin(15),&amp;lt;br&amp;gt;          acnt_no(10),&amp;lt;br&amp;gt;          div_rate(13),&amp;lt;br&amp;gt;          ded_rate(13),&amp;lt;br&amp;gt;          daily_div(13),&amp;lt;br&amp;gt;          mtd_div(10),&amp;lt;br&amp;gt;          position_local(12),&amp;lt;br&amp;gt;          fx_rate(1),&amp;lt;br&amp;gt;          position_usd(12),&amp;lt;br&amp;gt;          nav(1),&amp;lt;br&amp;gt;          shares(12),&amp;lt;br&amp;gt;          acnt_name(50),&amp;lt;br&amp;gt;          curr(3),&amp;lt;br&amp;gt;          company_name(20),&amp;lt;br&amp;gt;          tax_id(10),&amp;lt;br&amp;gt;        END OF ty_interest_calc.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2023 06:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710516#M2019048</guid>
      <dc:creator>manish_malakar0316</dc:creator>
      <dc:date>2023-05-04T06:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710517#M2019049</link>
      <description>&lt;P&gt;This looks like normal CSV format. &lt;/P&gt;&lt;P&gt;Try cl_rsda_csv_converter to read data from the string to your structure. There are many examples how to use this class &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 07:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710517#M2019049</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2023-05-04T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710518#M2019050</link>
      <description>&lt;P&gt;Be careful to &amp;lt;br&amp;gt; tags in the code you posted. You may fix it via Actions &amp;gt; Edit. This is correct formatting:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ty_interest_calc,
          date(10),
          fund_name(50),
          cusip_isin(15),
          acnt_no(10),
          div_rate(13),
          ded_rate(13),
          daily_div(13),
          mtd_div(10),
          position_local(12),
          fx_rate(1),
          position_usd(12),
          nav(1),
          shares(12),
          acnt_name(50),
          curr(3),
          company_name(20),
          tax_id(10),
        END OF ty_interest_calc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2023 07:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710518#M2019050</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-04T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710519#M2019051</link>
      <description>&lt;P&gt;Also, you can show the image directly in your question (with just copy/paste)&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2162826-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 07:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710519#M2019051</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-04T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710520#M2019052</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;manish.malakar0316&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi Manish!&lt;/P&gt;&lt;P&gt;Do you have control over the string format and/or can request a change from "," to something rarely used in field content like e.g. "|"? This would be a lot easier than trying to wrestle with the variable nature of where a comma can show up.&lt;/P&gt;&lt;P&gt;A comma or even semi-colon are rarely a good option to use as a field delimiter because they tend to show up in user entered content or numbers as in your case.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 07:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710520#M2019052</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2023-05-04T07:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710521#M2019053</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;tomas.buryanek&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Thanks for the tip with the class, Tomas! It might come in handy in the future!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 07:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710521#M2019053</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2023-05-04T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710522#M2019054</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;8b889d0e8e6f4ed39f6c58e35664518f&lt;/SPAN&gt; You are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;By the way, I used this class quite many times already, and it was always helpful and without a problem.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710522#M2019054</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2023-05-04T08:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a complex string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710523#M2019055</link>
      <description>&lt;P&gt;Thanks Tomas...this was the correct solution !&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 09:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-complex-string/m-p/12710523#M2019055</guid>
      <dc:creator>manish_malakar0316</dc:creator>
      <dc:date>2023-05-04T09:21:13Z</dc:date>
    </item>
  </channel>
</rss>

