<?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 Problems with tha sapscript-command 'perform' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949359#M64902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a subprogram in a modulpool from a textelement in SAPScript with the command 'perform'. The subprogram has one parameter. But I get a dump, which says that I "give 4 actual parameters to a subprogram with only 1 formal parameter". I don't know why this problem arises, because I overgive only 1 actual parameter. Thanks. &lt;/P&gt;&lt;P&gt;Regards, Lars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt;SAPScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   DEFINE &amp;amp;CHECK1&amp;amp; = ' '      &lt;/P&gt;&lt;P&gt;/:   PERFORM TESTDRUCK IN PROGRAM ZSD_TESTDRUCK_POOL&lt;/P&gt;&lt;P&gt;/:   CHANGING &amp;amp;CHECK1&amp;amp; &lt;/P&gt;&lt;P&gt;/:   ENDPERFORM                                   &lt;/P&gt;&lt;P&gt;/:   IF &amp;amp;CHECK1&amp;amp; NE 'x'                             &lt;/P&gt;&lt;P&gt;/:   INCLUDE ZTESTBITMAP OBJECT GRAPHICS ID BCOL LANGUAGE DE  &lt;/P&gt;&lt;P&gt;/:ENDIF                                                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSD_TESTDRUCK_POOL            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZQM_TESTDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM TESTDRUCK CHANGING check TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DATA check(1) TYPE c.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  check = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM ZQM_TESTDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-sysid = ZQM_TESTDRUCK-SAPSYSTEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check = 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2005 15:56:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-22T15:56:42Z</dc:date>
    <item>
      <title>Problems with tha sapscript-command 'perform'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949359#M64902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a subprogram in a modulpool from a textelement in SAPScript with the command 'perform'. The subprogram has one parameter. But I get a dump, which says that I "give 4 actual parameters to a subprogram with only 1 formal parameter". I don't know why this problem arises, because I overgive only 1 actual parameter. Thanks. &lt;/P&gt;&lt;P&gt;Regards, Lars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt;SAPScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   DEFINE &amp;amp;CHECK1&amp;amp; = ' '      &lt;/P&gt;&lt;P&gt;/:   PERFORM TESTDRUCK IN PROGRAM ZSD_TESTDRUCK_POOL&lt;/P&gt;&lt;P&gt;/:   CHANGING &amp;amp;CHECK1&amp;amp; &lt;/P&gt;&lt;P&gt;/:   ENDPERFORM                                   &lt;/P&gt;&lt;P&gt;/:   IF &amp;amp;CHECK1&amp;amp; NE 'x'                             &lt;/P&gt;&lt;P&gt;/:   INCLUDE ZTESTBITMAP OBJECT GRAPHICS ID BCOL LANGUAGE DE  &lt;/P&gt;&lt;P&gt;/:ENDIF                                                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSD_TESTDRUCK_POOL            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZQM_TESTDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM TESTDRUCK CHANGING check TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DATA check(1) TYPE c.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  check = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM ZQM_TESTDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-sysid = ZQM_TESTDRUCK-SAPSYSTEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check = 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 15:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949359#M64902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T15:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tha sapscript-command 'perform'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949360#M64903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a good article in the sap-help. Link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/d1/803279454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/d1/803279454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Lars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 16:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949360#M64903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T16:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tha sapscript-command 'perform'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949361#M64904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The problem is with the way subroutine is define. It can be defined in on particular way only. Please see following link for details -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/search/highlightContent.jsp" target="test_blank"&gt;http://help.sap.com/search/highlightContent.jsp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 16:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949361#M64904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tha sapscript-command 'perform'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949362#M64905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When doing PERFORM inside of a sapscript form,  you need to handle the FORM a certain way.  In your case, it would look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


form  layout_form1 tables co_sym_using   structure itcsy
                          co_set_symbols structure itcsy.

* DATA check(1) TYPE c.
  check = ' '.

  select * from zqm_testdruck.

    if sy-sysid = zqm_testdruck-sapsystem.
      check = 'x'.
      read table co_set_symbols index 1.
      co_set_symbols-value = check.
      modify co_set_symbols index 1.

    endif.

  endselect.


endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are passed in internal tables, you can manuipulate this tables to get the desired functionality.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 16:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-tha-sapscript-command-perform/m-p/949362#M64905</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-22T16:49:35Z</dc:date>
    </item>
  </channel>
</rss>

