<?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 Re: SAPScript dump while calling PERFORM subroutine? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861752#M1321622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 06:31:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-15T06:31:14Z</dc:date>
    <item>
      <title>SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861743#M1321613</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;NAME: &amp;amp;UNAME&amp;amp;&lt;/LI&gt;&lt;/UL&gt;In SAPScript...

/: DEFINE &amp;amp;UNAME&amp;amp; = ''
/: PERFORM GETNAME IN PROGRAM ZNAME
/: CHANGING &amp;amp;UNAME&amp;amp;
/: ENDPERFORM



In program ZNAME

REPORT ZNAME.

FORM GETNAME TABLES OUT_TAB STRUCTURE ITCSY.

READ TABLE OUT_TAB WITH KEY NAME =  'UNAME'.
MOVE SY-UNAME TO OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX SY-TABIX.

ENDFORM.&lt;/SPAN&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;Now, when i run my SAPScript printing test, its giving dump.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The dump message is...&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;ShrtText                                                                                
Too many parameters specified with PERFORM.                                                                                
What happened?                                                                                
In a subroutine call, there were more parameters than in the                                  
    routine definition.                                                                                
Error in ABAP application program.                                                                                
The current ABAP program "SAPLSTXC" had to be terminated because one of the                   
    statements could not be executed.                                                                                
This is probably due to an error in the ABAP program.                                                                                
Error analysis                                                                                
An exception occurred. This exception is dealt with in more detail below                      
    . The exception, which is assigned to the class                                               
     'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither                                                
    caught nor passed along using a RAISING clause, in the procedure                              
     "CO_ENDPERFORM" "(FORM)"                                                                     
    .                                                                                
Since the caller of the procedure could not have expected this exception                      
     to occur, the running program was terminated.                                                
    The reason for the exception is:                                                              
    A PERFORM was used to call the routine "GETNAME" of the program "ZNAME".                   
    This routine contains 2 formal parameters, but the current call                               
    contains 4 actual parameters.                                                                 
    parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;                                                                                Here i am passing only one parameter in perform, but its showing like 4 actual parameters are passing. What i understand from this dump its taking that &lt;STRONG&gt;IN PROGRAM ZNAME&lt;/STRONG&gt; also as parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas plz......&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;Shree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861743#M1321613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861744#M1321614</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;while calling the perform stmt.. the actual parameters are not same in formal  parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form SUB  using p1 p2 p3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform SUB using p1 p2.  ..try to check the paramters declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regads,&lt;/P&gt;&lt;P&gt;Rama reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861744#M1321614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861745#M1321615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM GETNAME --- for this form, u dont have parameters...&lt;/P&gt;&lt;P&gt;But while calling using PERFORM u r passing parameter &amp;amp;UNAME&amp;amp; as CHANGING....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this syntax correct??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861745#M1321615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861746#M1321616</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;Here i am doing in SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing only one parameter. that to CHANGING &amp;lt;p1&amp;gt; from sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in my program i did...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM GETNAME TABLES OUT_TAB STRUCTURE ITCSY.

READ TABLE OUT_TAB WITH KEY = 'UNAME'.
MOVE SY-UNAME TO OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 1.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, FORM TABLES OUT_TAB STRUCTURE ITCSY is the syntax for SAPScript perform statements handling in program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861746#M1321616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861747#M1321617</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 your program use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SLNO TABLES ITAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                          OTAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GETNAME TABLES OUT_TAB STRUCTURE ITCSY. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OTAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in place of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB WITH KEY NAME = 'UNAME'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861747#M1321617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861748#M1321618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please format ur first POST...&lt;/P&gt;&lt;P&gt;Its difficult to undrstand....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861748#M1321618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861749#M1321619</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In SAPScript

/: DEFINE &amp;amp;UNAME&amp;amp; = ''
/: PERFORM GETNAME IN PROGRAM ZNAME
/: CHANGING &amp;amp;UNAME&amp;amp;
/: ENDPERFORM
* NAME : &amp;amp;UNAME

In Program

REPORT  ZSH_NAME.

FORM GETNAME TABLES OUT_TAB STRUCTURE ITCSY.

READ TABLE OUT_TAB WITH KEY NAME = 'UNAME'.
MOVE SY-UNAME TO OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 1.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i did printing test this SAPScript form its giving dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A PERFORM was used to call the routine "GETNAME" of the program "ZSH_NAME".&lt;/P&gt;&lt;P&gt;This routine contains 2 formal parameters, but the current call            &lt;/P&gt;&lt;P&gt;contains 4 actual parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861749#M1321619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861750#M1321620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must have two parameters in your subroutine-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GETNAME TABLES INTAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                                          OUTTAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;  READ TABLE INTAB WITH KEY NAME = 'UNAME'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;     OUTTAB-NAME = 'UNAME'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   modify the value here then append to OUTTAB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your SAPSCRIPT, do it like this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GETNAME IN PROGRAM ZNAME &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;UNAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING *UNAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;                      &lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861750#M1321620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861751#M1321621</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 already tried in this way, but no result, same dump its giving...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861751#M1321621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861752#M1321622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 06:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861752#M1321622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T06:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript dump while calling PERFORM subroutine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861753#M1321623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem and can't understand why it says there are 4 parameters needed.&lt;/P&gt;&lt;P&gt;You solved you problem.  Can you tell us how?   Thanks&lt;/P&gt;&lt;P&gt;Marty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 15:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-dump-while-calling-perform-subroutine/m-p/5861753#M1321623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-12T15:09:46Z</dc:date>
    </item>
  </channel>
</rss>

