‎2016 Jun 15 9:08 AM
Hi,
probably my skills are too poor for that.
I implemented an OSS which added some code into the function module BG_GIVE_MESSAGE used in module PS.
The OSS is to optimize availability check.
It adds a perform call to a subroutine pool named ZBPFCFYR that I had to create as well.
No issues so far when I added the code here that SAP gave as an example. But the example does not fulfill my needs.
As I need to do a select there based on a parameter that is not handled when calling the form in there.
This is how I filled the subroutine. Have a look at the parameters.
FORM avc_get_from_year
USING value(i_periv) TYPE periv
value( i_profil) TYPE BP_PROFIL (*** This is a parameter that I added to the code generated by SAP)
CHANGING e_from_year TYPE gjahr.
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
new using-parameter i_profil.
perform avc_get_from_year
in program zbpfcfyr if found
using para-periv
*( Insert
i_bprof
*) Insert
changing sd_from_gjahr.
No issue till I try to activate my change in BP_GIVE_MESSSAGE.
The error coming up is
INCLUDE LBPFCFD1
Parameter error at perform avc_get_from_year(zbpfcfyr).
Number of parameters (2) does not correspond to the number of parameters for the first use of this form (3).
Can anybody help with that?
From my understanding there is no issue. The code in the sub routine pool is already activated w/o issues.
Best regards
Dirk
‎2016 Jun 15 1:56 PM