<?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 Error in Perform with SmartForms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321465#M509699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a PERFORM statement in my SmartForms and I am getting an error as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Error analysis                                                                 &lt;/P&gt;&lt;P&gt;    An exception occurred. This exception is dealt with in more detail below   &lt;/P&gt;&lt;P&gt;    . The exception, which is assigned to the class                            &lt;/P&gt;&lt;P&gt;     'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither                             &lt;/P&gt;&lt;P&gt;    caught nor passed along using a RAISING clause, in the procedure           &lt;/P&gt;&lt;P&gt;     "CONVERT_TO_PALLETS" "(FORM)"                                             &lt;/P&gt;&lt;P&gt;    .                                                                          &lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have expected this exception   &lt;/P&gt;&lt;P&gt;     to occur, the running program was terminated.                             &lt;/P&gt;&lt;P&gt;    The reason for the exception is:                                           &lt;/P&gt;&lt;P&gt;    A PERFORM was used to call the routine "CONVERT_TO_PALLETS" of the program &lt;/P&gt;&lt;P&gt;     "ZRVADEK01".                                                              &lt;/P&gt;&lt;P&gt;    This routine contains 4 formal parameters, but the current call            &lt;/P&gt;&lt;P&gt;    contains 6 actual parameters.                                              &lt;/P&gt;&lt;P&gt;    parameters.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code in the SmartForm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  CONVERT_TO_PALLETS                                        
*&amp;amp;---------------------------------------------------------------------*
FORM convert_to_pallets                                                 
  USING     matnr                                                       
            lfimg                                                       
            vrkme                                                       
  CHANGING  w_nbrpal                                                    
            w_nbrpce                                                    
            w_nbrft2.                                                   
* Call form in external program                                         
  PERFORM convert_to_pallets IN PROGRAM zrvadek01                       
    USING     matnr                                                     
              lfimg                                                     
              vrkme                                                     
    CHANGING  w_nbrpal                                                  
              w_nbrpce                                                  
              w_nbrft2.                                                 
ENDFORM.                                                                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is part of the Form Routine in program zrvadek01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM convert_to_pallets TABLES   inttab STRUCTURE itcsy
                                 outtab STRUCTURE itcsy.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused by this error because I have 6 parameters (3 each of using and changing) both in the perform call and the form definition.&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>Wed, 23 May 2007 14:40:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T14:40:29Z</dc:date>
    <item>
      <title>Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321465#M509699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a PERFORM statement in my SmartForms and I am getting an error as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Error analysis                                                                 &lt;/P&gt;&lt;P&gt;    An exception occurred. This exception is dealt with in more detail below   &lt;/P&gt;&lt;P&gt;    . The exception, which is assigned to the class                            &lt;/P&gt;&lt;P&gt;     'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither                             &lt;/P&gt;&lt;P&gt;    caught nor passed along using a RAISING clause, in the procedure           &lt;/P&gt;&lt;P&gt;     "CONVERT_TO_PALLETS" "(FORM)"                                             &lt;/P&gt;&lt;P&gt;    .                                                                          &lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have expected this exception   &lt;/P&gt;&lt;P&gt;     to occur, the running program was terminated.                             &lt;/P&gt;&lt;P&gt;    The reason for the exception is:                                           &lt;/P&gt;&lt;P&gt;    A PERFORM was used to call the routine "CONVERT_TO_PALLETS" of the program &lt;/P&gt;&lt;P&gt;     "ZRVADEK01".                                                              &lt;/P&gt;&lt;P&gt;    This routine contains 4 formal parameters, but the current call            &lt;/P&gt;&lt;P&gt;    contains 6 actual parameters.                                              &lt;/P&gt;&lt;P&gt;    parameters.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code in the SmartForm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  CONVERT_TO_PALLETS                                        
*&amp;amp;---------------------------------------------------------------------*
FORM convert_to_pallets                                                 
  USING     matnr                                                       
            lfimg                                                       
            vrkme                                                       
  CHANGING  w_nbrpal                                                    
            w_nbrpce                                                    
            w_nbrft2.                                                   
* Call form in external program                                         
  PERFORM convert_to_pallets IN PROGRAM zrvadek01                       
    USING     matnr                                                     
              lfimg                                                     
              vrkme                                                     
    CHANGING  w_nbrpal                                                  
              w_nbrpce                                                  
              w_nbrft2.                                                 
ENDFORM.                                                                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is part of the Form Routine in program zrvadek01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM convert_to_pallets TABLES   inttab STRUCTURE itcsy
                                 outtab STRUCTURE itcsy.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused by this error because I have 6 parameters (3 each of using and changing) both in the perform call and the form definition.&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>Wed, 23 May 2007 14:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321465#M509699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321466#M509700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is something related to PERFORM  and FORM statements&lt;/P&gt;&lt;P&gt;check them correctly&lt;/P&gt;&lt;P&gt;parameters passed to perform is not matching with the FORM parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why 2 FORMs appearing in the code&lt;/P&gt;&lt;P&gt;one is &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM convert_to_pallets&amp;lt;/b&amp;gt; TABLES   inttab STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                                 outtab STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt; and the other is &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;FORM convert_to_pallets      &amp;lt;/b&amp;gt;                                           &lt;/P&gt;&lt;P&gt;  USING     matnr                                                       &lt;/P&gt;&lt;P&gt;            lfimg                                                       &lt;/P&gt;&lt;P&gt;            vrkme                                                       &lt;/P&gt;&lt;P&gt;  CHANGING  w_nbrpal                                                    &lt;/P&gt;&lt;P&gt;            w_nbrpce                                                    &lt;/P&gt;&lt;P&gt;            w_nbrft2.             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but only one PERFORM &lt;/P&gt;&lt;P&gt;                                   &lt;/P&gt;&lt;P&gt;  PERFORM convert_to_pallets IN PROGRAM zrvadek01                       &lt;/P&gt;&lt;P&gt;    USING     matnr                                                     &lt;/P&gt;&lt;P&gt;              lfimg                                                     &lt;/P&gt;&lt;P&gt;              vrkme                                                     &lt;/P&gt;&lt;P&gt;    CHANGING  w_nbrpal                                                  &lt;/P&gt;&lt;P&gt;              w_nbrpce                                                  &lt;/P&gt;&lt;P&gt;              w_nbrft2.                                                                                &lt;/P&gt;&lt;P&gt;So which FORM it has to consider&lt;/P&gt;&lt;P&gt;why the first FORm is needed for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check and correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 14:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321466#M509700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321467#M509701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anji, thanks for the reply.  I have two forms because this is a conversion from SAPScript.  I am trying to avoid copying the FORM Convert_To_Pallets into the SmartForm; I am also trying to avoid having to alter that FORM.  Right now, as it stands, Convert_To_Pallets (in the external program) accepts two parameters (tables).  I was told that SmartForms could not handle tables as parameters and that is why I have &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  CONVERT_TO_PALLETS
*&amp;amp;---------------------------------------------------------------------*
FORM convert_to_pallets
  USING     matnr
            lfimg
            vrkme
  CHANGING  w_nbrpal
            w_nbrpce
            w_nbrft2.
* Call form in external program
  PERFORM convert_to_pallets IN PROGRAM zrvadek01
    USING     matnr
              lfimg
              vrkme
    CHANGING  w_nbrpal
              w_nbrpce
              w_nbrft2.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is inside the SmartForm Global Def. -&amp;gt; Form Routines.  What I am doing is calling Convert_To_Pallets which is in an external program.  This Form (in the external program) accepts the parameters as two tables (inttab and outtab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that I answered your questions and that it helped you understand my situation a little better.&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>Wed, 23 May 2007 15:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321467#M509701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321468#M509702</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;
Following is part of the Form Routine in program zrvadek01

FORM convert_to_pallets using matnr type matnr
                              lfimg type lfimg
                              vrkme type vrkme 
                        changing w_nbrpal type &amp;lt;nbrpal&amp;gt;
                                 w_nbrpce type &amp;lt;nbrpce&amp;gt;
                                 w_nbrft2 type &amp;lt;nbrft2&amp;gt;.

&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>Wed, 23 May 2007 15:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321468#M509702</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-23T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321469#M509703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do not use ITCSY Structure in Smartform ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 15:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321469#M509703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321470#M509704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry, thanks for the tip.  I was trying to avoid that because other reports may use this form.  Right now, as it stands, the form is accepting the parameters using structures of itcsy.  Below is how they are handling the parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; READ TABLE inttab INDEX 1.
  WRITE inttab-value(18) TO w_save_matnr RIGHT-JUSTIFIED.
  OVERLAY w_save_matnr WITH w_zeros.
*    NEXT GET Actual quantity delivered (in sales units) VBLKP-LFIMG
  READ TABLE inttab INDEX 2.
  WRITE inttab-value(17) TO w_save_qtyx RIGHT-JUSTIFIED.
  IF inttab-value(17) CA '.'.
  ELSE.
    SHIFT w_save_qtyx LEFT BY 4 PLACES.
    w_save_qtyx+9(4) = '.000'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was just a portion of the code handling the parameters.  I suppose that it would be best for me to alter the code so that it accepts 6 parameters instead of two structures/tables.  I do question how this would help though.  The error messages said that  "This routine contains 4 formal parameters, but the current call contains 6 actual parameters."  It may be that I am new to ABAP but would the structure have anything to do with this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seshu, The structure itcsy is not in the SmartForm it is in an external program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 15:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321470#M509704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321471#M509705</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;I were you ... I will create two separate routines, one for sapscript and the other one for smartform. It is redundancy but make the program easy to follow and enhance in the future for next developer/support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't use table/structure for passing and changing parameters for Smartform purposes. The structure itcsy is usually for SAPScript.&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>Wed, 23 May 2007 15:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321471#M509705</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-23T15:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Perform with SmartForms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321472#M509706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry, thanks.  I was going to do that (have two separate routines) but, as I want to train myself in the "correct way", I was looking for the acceptable way of handling this.  Thank you for your input; I am going to do what you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 15:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-perform-with-smartforms/m-p/2321472#M509706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T15:53:51Z</dc:date>
    </item>
  </channel>
</rss>

