<?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: Issue with calling a form from SAP original function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-calling-a-form-from-sap-original-function-module/m-p/11708171#M1947341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try activating both the objects together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 12:56:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-06-15T12:56:30Z</dc:date>
    <item>
      <title>Issue with calling a form from SAP original function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-calling-a-form-from-sap-original-function-module/m-p/11708170#M1947340</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;probably my skills are too poor for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented an OSS which added some code into the function module BG_GIVE_MESSAGE used in module PS.&lt;/P&gt;&lt;P&gt;The OSS is to optimize availability check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It adds a perform call to a subroutine pool named ZBPFCFYR that I had to create as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No issues so far when&amp;nbsp; I added the code here that SAP gave as an example. But the example does not fulfill my needs.&lt;/P&gt;&lt;P&gt;As I need to do a select there based on a parameter that is not handled when calling the form in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I filled the subroutine. Have a look at the parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FORM avc_get_from_year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USING value(i_periv) TYPE periv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value( i_profil) TYPE BP_PROFIL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (*** This is a parameter that I added to the code generated by SAP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING e_from_year&amp;nbsp; TYPE gjahr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is how the code looks that SAP added from the OSS in the BP_GIVE_MESSAGE where I need to change code as well due to my &lt;/P&gt;&lt;P&gt;new&amp;nbsp; using-parameter i_profil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform avc_get_from_year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; in program zbpfcfyr if found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using para-periv&lt;/P&gt;&lt;P&gt;*( Insert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_bprof &lt;/P&gt;&lt;P&gt;*) Insert&lt;/P&gt;&lt;P&gt;&amp;nbsp; changing&amp;nbsp; sd_from_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No issue till I try to activate my change in BP_GIVE_MESSSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error coming up is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE LBPFCFD1&lt;/P&gt;&lt;P&gt;Parameter error at perform avc_get_from_year(zbpfcfyr).&lt;/P&gt;&lt;P&gt;Number of parameters (2) does not correspond to the number of parameters for the first use of this form (3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help with that?&lt;/P&gt;&lt;P&gt;From my understanding there is no issue. The code in the sub routine pool is already activated w/o issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dirk&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;&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;&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;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 08:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-calling-a-form-from-sap-original-function-module/m-p/11708170#M1947340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-15T08:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calling a form from SAP original function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-calling-a-form-from-sap-original-function-module/m-p/11708171#M1947341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try activating both the objects together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 12:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-calling-a-form-from-sap-original-function-module/m-p/11708171#M1947341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-15T12:56:30Z</dc:date>
    </item>
  </channel>
</rss>

