<?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 syntax error when adding parameter to Subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-adding-parameter-to-subroutine/m-p/2378882#M527784</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;  i have added one parameter to perform statement like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). (this is previous statement)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P) USING SPACE.(thsi is new                                                                                &lt;/P&gt;&lt;P&gt;statement which i added) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this is form)&lt;/P&gt;&lt;P&gt;FORM VBAP-POSNR_PRUEFEN USING US_BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: DA_HIGH_POS LIKE VBAP-POSNR VALUE '900000',&lt;/P&gt;&lt;P&gt;        VP_MINPOSNR LIKE VBAP-POSNR VALUE '999999',&lt;/P&gt;&lt;P&gt;        VP_MAXPOSNR LIKE VBAP-POSNR.&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;ENDFORM..&lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I trying to activate the fallowing error is giving. Please advise me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module Z_SD_SALES_ITEM_MAINTAIN_CRS_1&lt;/P&gt;&lt;P&gt;Parameter error with PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). The number&lt;/P&gt;&lt;P&gt;of parameters (1) is not the same as the number of parameters in the&lt;/P&gt;&lt;P&gt;first use of this form (0).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 16:02:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T16:02:01Z</dc:date>
    <item>
      <title>syntax error when adding parameter to Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-adding-parameter-to-subroutine/m-p/2378882#M527784</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;  i have added one parameter to perform statement like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). (this is previous statement)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P) USING SPACE.(thsi is new                                                                                &lt;/P&gt;&lt;P&gt;statement which i added) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this is form)&lt;/P&gt;&lt;P&gt;FORM VBAP-POSNR_PRUEFEN USING US_BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: DA_HIGH_POS LIKE VBAP-POSNR VALUE '900000',&lt;/P&gt;&lt;P&gt;        VP_MINPOSNR LIKE VBAP-POSNR VALUE '999999',&lt;/P&gt;&lt;P&gt;        VP_MAXPOSNR LIKE VBAP-POSNR.&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;                           -&lt;/P&gt;&lt;P&gt;ENDFORM..&lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I trying to activate the fallowing error is giving. Please advise me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module Z_SD_SALES_ITEM_MAINTAIN_CRS_1&lt;/P&gt;&lt;P&gt;Parameter error with PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). The number&lt;/P&gt;&lt;P&gt;of parameters (1) is not the same as the number of parameters in the&lt;/P&gt;&lt;P&gt;first use of this form (0).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 16:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-adding-parameter-to-subroutine/m-p/2378882#M527784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T16:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error when adding parameter to Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-adding-parameter-to-subroutine/m-p/2378883#M527785</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;The Perform statement syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM    &amp;lt;subr&amp;gt;&lt;/P&gt;&lt;P&gt;        |  &amp;lt;subr&amp;gt;(&amp;lt;prog&amp;gt;) [IF FOUND]&lt;/P&gt;&lt;P&gt;        |(&amp;lt;fsubr&amp;gt;)[IN PROGRAM (&amp;lt;fprog&amp;gt;)][IF FOUND]&lt;/P&gt;&lt;P&gt;        [USING  ... &amp;lt;pi&amp;gt;... ] &lt;/P&gt;&lt;P&gt;        [CHANGING... &amp;lt;pi&amp;gt;... ] &lt;/P&gt;&lt;P&gt;        [ON COMMIT].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls an internal or external subroutine &amp;lt;subr&amp;gt; or the subroutine whose name occurs in the &amp;lt;fsubr&amp;gt; field. The external program is &amp;lt;prog&amp;gt; or the name contained in &amp;lt;fprog&amp;gt;. The IF FOUND addition prevents a runtime error from occurring if the subroutine does not exist. The USING and CHANGING additions fill the subroutine&amp;#146;s parameter interface. The ON COMMIT addition delays the execution of the subroutine until the next COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;PROGRAM DEMO.&lt;/P&gt;&lt;P&gt;TABLES SBOOK.&lt;/P&gt;&lt;P&gt;SBOOK-FLDATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;PERFORM FORM1(MYFORMS1).&lt;/P&gt;&lt;P&gt;and two other programs:&lt;/P&gt;&lt;P&gt;PROGRAM MYFORMS1.&lt;/P&gt;&lt;P&gt;FORM FORM1.&lt;/P&gt;&lt;P&gt;PERFORM FORM2(MYFORMS2).&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;PROGRAM MYFORMS2.&lt;/P&gt;&lt;P&gt;FORM FORM2.&lt;/P&gt;&lt;P&gt;DATA NAME(20) VALUE 'SBOOK-FLDATE'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN (NAME) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;WRITE / &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;02.06.1998&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 16:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-adding-parameter-to-subroutine/m-p/2378883#M527785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T16:18:25Z</dc:date>
    </item>
  </channel>
</rss>

