<?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 bracket doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954173#M392710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i got the helpful reply below but would like to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If var is an attribute, then you can say)&lt;/P&gt;&lt;P&gt;val = vessel1-&amp;gt;var&lt;/P&gt;&lt;P&gt;if var is a method with a returning addition,&lt;/P&gt;&lt;P&gt;val = vessel-&amp;gt;var( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) why the bracket is empty also can assignment value to val?&lt;/P&gt;&lt;P&gt;vessel_id = vessel2-&amp;gt;get_id( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if i leave the bracket empty for call method vessel1-&amp;gt;drive( ), i will have compile error. so at least i must put 0 in bracket. &lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive exporting speed_up = 50&lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive( 50 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) why point 1 can leave empty in ( ) whereas point 2 must have at least 0? get_id and drive both are method and not attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) if var is a method with a RETURNING addition then only can have this kind of assignment?&lt;/P&gt;&lt;P&gt;val = vessel-&amp;gt;var( ).&lt;/P&gt;&lt;P&gt;which means other addition cannot have such assignment rite?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 06:47:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T06:47:10Z</dc:date>
    <item>
      <title>bracket doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954173#M392710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i got the helpful reply below but would like to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If var is an attribute, then you can say)&lt;/P&gt;&lt;P&gt;val = vessel1-&amp;gt;var&lt;/P&gt;&lt;P&gt;if var is a method with a returning addition,&lt;/P&gt;&lt;P&gt;val = vessel-&amp;gt;var( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) why the bracket is empty also can assignment value to val?&lt;/P&gt;&lt;P&gt;vessel_id = vessel2-&amp;gt;get_id( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if i leave the bracket empty for call method vessel1-&amp;gt;drive( ), i will have compile error. so at least i must put 0 in bracket. &lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive exporting speed_up = 50&lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive( 50 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) why point 1 can leave empty in ( ) whereas point 2 must have at least 0? get_id and drive both are method and not attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) if var is a method with a RETURNING addition then only can have this kind of assignment?&lt;/P&gt;&lt;P&gt;val = vessel-&amp;gt;var( ).&lt;/P&gt;&lt;P&gt;which means other addition cannot have such assignment rite?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954173#M392710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: bracket doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954174#M392711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;any help pls.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954174#M392711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: bracket doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954175#M392712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) why the bracket is empty also can assignment value to val?&lt;/P&gt;&lt;P&gt;vessel_id = vessel2-&amp;gt;get_id( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    There may not be any IMPORTING parameters for that method , thats why the bracket is empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if i leave the bracket empty for call method vessel1-&amp;gt;drive( ), i will have compile error. so at least i must put 0 in bracket. &lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive exporting speed_up = 50&lt;/P&gt;&lt;P&gt;call method vessel1-&amp;gt;drive( 50 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    For the method drive(50) , there should be an importing parameter , thats why it will accept the value of 50 and do the further processing of that method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954175#M392712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: bracket doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954176#M392713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.vessel_id = vessel2-&amp;gt;get_id( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vessel_id  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; This is avariable which can hold the value of ID of same type&lt;/P&gt;&lt;P&gt; vessel2  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;Instance of the class &lt;/P&gt;&lt;P&gt;--&amp;gt;  This is the symble to cal the method by instace.&lt;/P&gt;&lt;P&gt;get_id( )-----Is the method&lt;/P&gt;&lt;P&gt;Empty bracket shows the empty parameters of the method.Just like our subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vessel_id = vessel2-&amp;gt;get_id( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer for above syntax is when you call the method get_id  by instance it will return the "ID value" which will assign to  field "vessel_id ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.For that method "get_id "  atribute might set as this paramter is compusory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.For point 1 that attribute is not compulsory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bracket-doubt/m-p/1954176#M392713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:23:44Z</dc:date>
    </item>
  </channel>
</rss>

