<?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 Perform statement in SmartForms - getting a syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295714#M501246</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;&lt;/P&gt;&lt;P&gt;I am getting a syntax error in the following perform statement.  The error is "&amp;lt;b&amp;gt;Field "VBLKP-MATNR" is unknown.&amp;lt;/b&amp;gt;  I have VBLKP in the interface.  I tried putting it in both the tables tab and the import tab but both give me the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM convert_to_pallets
  USING vblkp-matnr
        vblkp-lfimg
        vblkp-vrkme
  CHANGING w_nbrpal
           w_nbrpce
           w_nbrft2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 14:40:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T14:40:24Z</dc:date>
    <item>
      <title>Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295714#M501246</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;&lt;/P&gt;&lt;P&gt;I am getting a syntax error in the following perform statement.  The error is "&amp;lt;b&amp;gt;Field "VBLKP-MATNR" is unknown.&amp;lt;/b&amp;gt;  I have VBLKP in the interface.  I tried putting it in both the tables tab and the import tab but both give me the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM convert_to_pallets
  USING vblkp-matnr
        vblkp-lfimg
        vblkp-vrkme
  CHANGING w_nbrpal
           w_nbrpce
           w_nbrft2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295714#M501246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295715#M501247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be sure to include that field in the input parameters of your Program Lines node.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295715#M501247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295716#M501248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shoot, thanks a lot for that help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question along these lines.  I have a few performs that I have to copy from several programs.  There are many structures needed by these performs.  Is there a way to declare these structures in a program lines node so that they are global?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295716#M501248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295717#M501249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare them in Global Definitions.  You can define the Types in the Types tab and then declare your tables workareas in the Global Data tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295717#M501249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295718#M501250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, thanks.  I was trying to declare the table in the types section and it wasn't working.  I now know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295718#M501250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295719#M501251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare them at global definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295719#M501251</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-18T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295720#M501252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I have in an abap program.  I need to copy a perform from this program and include some structures/tables in my SmartForm.  The following is an example of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:  BEGIN OF T_KNVV OCCURS 0.
        INCLUDE STRUCTURE KNVV.
DATA:  END OF T_KNVV.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to delcare a strutcure like this:&lt;/P&gt;&lt;P&gt;[code]TYPES: BEGIN OF ty_knvv,&lt;/P&gt;&lt;P&gt;         include structure knvv,&lt;/P&gt;&lt;P&gt;       END OF ty_knvv.[/quote]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it gives me a syntax error asking for a ',' after INCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295720#M501252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295721#M501253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a follow-up question posted above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295721#M501253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295722#M501254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Global Definitions - Global Data do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_KNVV  TYPE  TABLE OF KNVV INITIAL SIZE 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name = I_KNVV&lt;/P&gt;&lt;P&gt;Type = TYPE&lt;/P&gt;&lt;P&gt;Reference = TABLE OF KNVV INITIAL SIZE 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Matt Nagel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295722#M501254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295723#M501255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF TY_KNVV,
         KNVV TYPE KNVV,
       END OF TY_KNVV.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295723#M501255</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-18T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295724#M501256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt, thanks for the suggestion.  However I still get a syntax error when I am trying to access a field in t_knvv.  I get the syntax error "&amp;lt;b&amp;gt;Field "T_KNVV-BZIRK" is unknown.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    IF T_KNVV-BZIRK = 'CARLSH' OR
         T_KNVV-BZIRK = 'CCWSH'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295724#M501256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295725#M501257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry, I just tried that and I still get the syntax error on T_KNVV-BZIRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295725#M501257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295726#M501258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing it Ferry's way then you will have to have it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF T_KNVV-KNVV-BZIRK = 'CARLSH' OR
         T_KNVV-KNVV-BZIRK = 'CCWSH'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing it my way then you will need to loop at the table into a workarea first.  I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295726#M501258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295727#M501259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I thought it was working but it is still giving me the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295727#M501259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295728#M501260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: TY_KNVV TYPE KNVV.

...

IF TY_KNVV-BZIRK = 'CARLSH' OR
    TY_KNVV-BZIRK = 'CCWSH'.
  ...
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you show your coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295728#M501260</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-18T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295729#M501261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry, here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  CHECK_KNVV
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM check_knvv.
  data: w_bzirk              LIKE knvv-bzirk.
  data: w_kunnr(10)          TYPE c,
        w_vkorg(4)           TYPE c.
  CLEAR w_bzirk.
  SELECT * INTO TABLE t_knvv FROM knvv
     WHERE kunnr = w_kunnr
     AND   vkorg = w_vkorg.
  LOOP AT t_knvv.
    TRANSLATE t_knvv-bzirk TO UPPER CASE.
    IF t_knvv-bzirk = 'CARLSH' OR
         t_knvv-bzirk = 'CCWSH'.
      w_bzirk = t_knvv-bzirk.
      EXIT.
    ENDIF.
  ENDLOOP.


ENDFORM.                    " CHECK_KNVV&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is still not recognizing any field in T_KNVV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It loops at and into t_knvv without a problem.  The error is when you try to access t_knvv-bzirk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295729#M501261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295730#M501262</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: w_bzirk              LIKE knvv-bzirk.
  data: w_kunnr(10)          TYPE c,
        w_vkorg(4)           TYPE c.

  CLEAR w_bzirk.

  SELECT * INTO TABLE t_knvv FROM knvv
     WHERE kunnr = w_kunnr
     AND   vkorg = w_vkorg.

data: wa_knvv type t_knvv.

  LOOP AT t_knvv into wa_knvv.
    TRANSLATE wa_knvv-bzirk TO UPPER CASE.
    IF wa_knvv-bzirk = 'CARLSH' OR
         wa_knvv-bzirk = 'CCWSH'.
      w_bzirk = wa_knvv-bzirk.
      EXIT.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295730#M501262</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-18T15:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Perform statement in SmartForms - getting a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295731#M501263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Ferry.  I keep forgetting that these program nodes are just small abap editors and that I can treat them as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your code but changed&lt;/P&gt;&lt;P&gt;data: wa_knvv type t_knvv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;data: wa_knvv like line of t_knvv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-in-smartforms-getting-a-syntax-error/m-p/2295731#M501263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T15:52:54Z</dc:date>
    </item>
  </channel>
</rss>

