<?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 in form parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-form-parameters/m-p/5754998#M1303846</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;In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM zz_routine USING I_VBAK &lt;/P&gt;&lt;P&gt;                                CHANGING T_VBUK[]&lt;/P&gt;&lt;P&gt;                                                  T_VBAP[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I_VBAK TYPE  VBAK and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_VBUK     TYPE STANDARD TABLE OF VBUKVB.&lt;/P&gt;&lt;P&gt;T_VBAP     TYPE STANDARD TABLE OF VBAPVB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the recieving paramters how do I mention these using TYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form zz_routine USING value(ss_vbak) TYPE VBAK &lt;/P&gt;&lt;P&gt;	CHANGING xt_vbuk TYPE STAnDARD TABLE OF VBUKVB&lt;/P&gt;&lt;P&gt;		 xt_vbap TYPE STAnDARD TABLE OF VBAPVB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I get the syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"OF" has already been declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does that mean ? what is the correct way to say that I need to receive a table type data in the form ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 20:06:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T20:06:36Z</dc:date>
    <item>
      <title>syntax error in form parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-form-parameters/m-p/5754998#M1303846</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;In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM zz_routine USING I_VBAK &lt;/P&gt;&lt;P&gt;                                CHANGING T_VBUK[]&lt;/P&gt;&lt;P&gt;                                                  T_VBAP[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I_VBAK TYPE  VBAK and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_VBUK     TYPE STANDARD TABLE OF VBUKVB.&lt;/P&gt;&lt;P&gt;T_VBAP     TYPE STANDARD TABLE OF VBAPVB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the recieving paramters how do I mention these using TYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form zz_routine USING value(ss_vbak) TYPE VBAK &lt;/P&gt;&lt;P&gt;	CHANGING xt_vbuk TYPE STAnDARD TABLE OF VBUKVB&lt;/P&gt;&lt;P&gt;		 xt_vbap TYPE STAnDARD TABLE OF VBAPVB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I get the syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"OF" has already been declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does that mean ? what is the correct way to say that I need to receive a table type data in the form ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-form-parameters/m-p/5754998#M1303846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in form parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-form-parameters/m-p/5754999#M1303847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare a Table Type which you can use to reference in your Form Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: ty_t_vbap type standard table of VBAPVB.
data: t_vbap type ty_t_vbap.

PERFORM zz_routine using ia_vbak 
changing t_vbap.

Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbap type ty_t_vbap.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-form-parameters/m-p/5754999#M1303847</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-05-27T20:13:10Z</dc:date>
    </item>
  </channel>
</rss>

