<?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>Question Re: Groovy Script Error adding Square [] Bracket in param in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729929#M203807</link>
    <description>&lt;P&gt;Hi Ansari ,&lt;/P&gt;&lt;P&gt;Below Script worked for me :&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230493-scn.png" /&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2018 05:09:17 GMT</pubDate>
    <dc:creator>manoj_khavatkopp</dc:creator>
    <dc:date>2018-10-08T05:09:17Z</dc:date>
    <item>
      <title>Groovy Script Error adding Square [] Bracket in param</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaq-p/729928</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;The moment I add [](square bracket in the String param, I am unable to save the script. It keep gives me error saying that Script contain no valid function.&lt;/P&gt;
  &lt;P&gt;Removing [] square bracket from String param works fine. No clue.&lt;/P&gt;
  &lt;P&gt;Here is my script &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/231523-script.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The problem is &lt;STRONG&gt;String[] P1,&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt; If i remove the square bracket, then able to save the script. Pls help this out &lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;error message screenshot&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/231524-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 04:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaq-p/729928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-08T04:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Error adding Square [] Bracket in param</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729929#M203807</link>
      <description>&lt;P&gt;Hi Ansari ,&lt;/P&gt;&lt;P&gt;Below Script worked for me :&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230493-scn.png" /&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 05:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729929#M203807</guid>
      <dc:creator>manoj_khavatkopp</dc:creator>
      <dc:date>2018-10-08T05:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Error adding Square [] Bracket in param</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729930#M203808</link>
      <description>&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too found it meanwhile. thanks for your response&lt;/P&gt;&lt;P&gt;Could you pls help me out on reading sub property. for example I have&lt;/P&gt;&lt;P&gt;Sales node which has many sub field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales--&amp;gt;&lt;/P&gt;&lt;P&gt;      -&amp;gt;id&lt;/P&gt;&lt;P&gt;      -&amp;gt;name&lt;/P&gt;&lt;P&gt;      -&amp;gt;dept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me reading this name field, Actually sales field is coming as list,I want to read all the names and concatenate it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 07:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729930#M203808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-08T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Error adding Square [] Bracket in param</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729931#M203809</link>
      <description>&lt;P&gt;Can you please share sample input XML and expected Output for the same?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 08:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729931#M203809</guid>
      <dc:creator>manoj_khavatkopp</dc:creator>
      <dc:date>2018-10-08T08:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Error adding Square [] Bracket in param</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729932#M203810</link>
      <description>&lt;P&gt;Sample xml content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Sales&amp;gt;
 &amp;lt;id&amp;gt;101&amp;lt;/id&amp;gt;
 &amp;lt;name&amp;gt;XDG&amp;lt;/name&amp;gt;
 &amp;lt;dept&amp;gt;4XR1&amp;lt;/dept&amp;gt;
&amp;lt;/Sales&amp;gt;
&amp;lt;Sales&amp;gt;
 &amp;lt;id&amp;gt;102&amp;lt;/id&amp;gt;
 &amp;lt;name&amp;gt;ZTY&amp;lt;/name&amp;gt;
 &amp;lt;dept&amp;gt;6ZY1&amp;lt;/dept&amp;gt;
&amp;lt;/Sales&amp;gt;
&amp;lt;Sales&amp;gt;
 &amp;lt;id&amp;gt;103&amp;lt;/id&amp;gt;
 &amp;lt;name&amp;gt;GER&amp;lt;/name&amp;gt;
 &amp;lt;dept&amp;gt;27SD&amp;lt;/dept&amp;gt;
&amp;lt;/Sales&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Oct 2018 10:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-error-adding-square-bracket-in-param/qaa-p/729932#M203810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-08T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

