<?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: Parantheses error on VALUE operator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355989#M1992890</link>
    <description>&lt;P&gt;Agreed! Can't be too careful! &lt;/P&gt;&lt;P&gt;The square brackets also help with the readability of the code. I too use it more often than not!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 15:12:02 GMT</pubDate>
    <dc:creator>former_member736527</dc:creator>
    <dc:date>2021-03-25T15:12:02Z</dc:date>
    <item>
      <title>Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355986#M1992887</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
  &lt;P&gt;the following code gives me the error "Instead of "(", ")" was expected" for the second opening parentheses. Does anybody know why i get that error?&lt;/P&gt;
  &lt;P&gt;Thanks in advance!&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA: GT_BATCH TYPE BDCDATA OCCURS 0 WITH HEADER LINE. 
GT_BATCH = VALUE #( ( PROGRAM = 'SAPMSVMA' DYNPRO = '100' DYNBEGIN = 'X' FNAM = 'VIEWNAME' FVAL = 'ZPP_SV_STOERUNG' ) ( FNAM = 'BDC_OKCODE' FVAL = 'UPD' )).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355986#M1992887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-03-25T12:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355987#M1992888</link>
      <description>&lt;P&gt;GT_BATCH in second line is being treated as a work area, since it has been declared as a header line.&lt;/P&gt;&lt;P&gt;Either declare GT_BATCH as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gt_batch TYPE STANDARD TABLE OF bdcdata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or use it as below (with square brackets):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GT_BATCH[] = VALUE#((PROGRAM='SAPMSVMA'DYNPRO='100' DYNBEGIN ='X' FNAM ='VIEWNAME' FVAL ='ZPP_SV_STOERUNG')( FNAM ='BDC_OKCODE' FVAL ='UPD')).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355987#M1992888</guid>
      <dc:creator>former_member736527</dc:creator>
      <dc:date>2021-03-25T13:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355988#M1992889</link>
      <description>&lt;P&gt;That's why internal tables work areas are deemed obsoleted. They can be really confusing as the same statement depending on context means two different variables. &lt;/P&gt;&lt;P&gt;Also I like to always put [] when dealing with table assignments. I do know it's superfluous but this way, I'm sure I refer to an internal table.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355988#M1992889</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2021-03-25T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355989#M1992890</link>
      <description>&lt;P&gt;Agreed! Can't be too careful! &lt;/P&gt;&lt;P&gt;The square brackets also help with the readability of the code. I too use it more often than not!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355989#M1992890</guid>
      <dc:creator>former_member736527</dc:creator>
      <dc:date>2021-03-25T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355990#M1992891</link>
      <description>&lt;P&gt;I completely disagree. header tables are obsolete. The only place where header tables have to be used (and thus [ ] makes sense to indicate the table where necessary)  is select options.&lt;/P&gt;&lt;P&gt;So long as you name your variables well, specifying that it's an internal table using [ ] is unnecessary and detracts from readability. E.g. &lt;STRONG&gt;users[ ] &lt;/STRONG&gt; or &lt;STRONG&gt;user[ ]&lt;/STRONG&gt; is less readable and understandable than the simple &lt;STRONG&gt;users&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In my view using square brackets goes against clean code principles. You &lt;EM&gt;can&lt;/EM&gt; be too careful.&lt;/P&gt;&lt;P&gt;The OP should use Taha's first suggestion. It is the correct one.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355990#M1992891</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-03-25T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355991#M1992892</link>
      <description>&lt;OL&gt;&lt;LI&gt;OCCURS 0 is obsolete.&lt;/LI&gt;&lt;LI&gt;WITH HEADER LINE is obsolete and &lt;STRONG&gt;error prone&lt;/STRONG&gt;. (exactly the case of error you have)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gt_batch TYPE STANDARD TABLE OF bdcdata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and that solves.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355991#M1992892</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-25T20:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355992#M1992893</link>
      <description>&lt;P&gt;Thanks a lot Taha, i feel like an idiot now.&lt;/P&gt;&lt;P&gt;I knew it was a simple problem, i just didn't see it...&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 10:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355992#M1992893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-03-26T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parantheses error on VALUE operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355993#M1992894</link>
      <description>&lt;P&gt;It's not a simple problem. It's very difficult to train, to use modern code and stop using old habits of obsolete code. See how many people are still using procedural code.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parantheses-error-on-value-operator/m-p/12355993#M1992894</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-26T14:37:11Z</dc:date>
    </item>
  </channel>
</rss>

