‎2010 Mar 08 10:09 AM
Hi,
I am trying to enhance a standard SAP Function Module. I have created a new enhancement implementation(implicit). In this enhancement implementation, I am trying to call my function module to perform some checks. I am passing the parameters of the standard FM to my function module. When I try to activate this enhancement, I get the error that the parameters are not available or not defined. It will be great if some one could give me the right steps to do the same.
Best Regards,
Chander
‎2010 Mar 08 10:18 AM
‎2010 Mar 08 10:18 AM
‎2010 Mar 08 10:22 AM
Hi Ashok.
The function group and the FM is active. The error is coming for the parameter that I am passing to my FM from the enhancement section.
Best Regards,
Chander
‎2010 Mar 08 10:33 AM
Hi Chander,
Can you give the code which you wrote in enhancement? Also which standard FM you enhanced?
Regards,
Ashok.
‎2010 Mar 08 10:38 AM
Hi Ashok,
The standard FM that I tried to enhance is 'ISU_DB_ENOTE_UPDATE'. This is used in the SAP ISU for updating notes for device location or connection object(which are nothing but functional locations in PM). This FM has a parameter xy_obj which is a structure containing many fields. In this FM, I have inserted a call to my FM like this
CALL FUNCTION '/E4U/MREAD_NOTE_EXCHANGE'
EXPORTING
OBJKEY = xy_obj-objkey
OBJTYPE = xy_obj-objtype
.
This is the only piece of code that I wrote and I am not able to activate this because of the error that I mentioned before. It says that xy_obj is unknown or undefined. I tried to write a dummy ABAP code to take any other fields which are declared locally in the FM and still the result is the same.
Best Regards,
Chander
‎2010 Mar 08 12:56 PM
Hi,
Function module ISU_DB_ENOTE_UPDATE is a update FM , so we cannot create implicit enhancement . If we create also it wil not be triggered. Also the FM parameters will be invisible inside the enhancement. In worst case ,get access key and change.
Regards,
Ashok.
‎2010 Mar 08 1:06 PM
Hi Ashok,
Thanks for the response. I will try to find out another FM which will help me doing it.
Best Regards,
Chander