Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with implicit enhancement

Former Member
0 Likes
1,105

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
966

Hi ,

Is Your FM and function group active ??

Regards,

Ashok.

6 REPLIES 6
Read only

Former Member
0 Likes
967

Hi ,

Is Your FM and function group active ??

Regards,

Ashok.

Read only

0 Likes
966

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

Read only

0 Likes
966

Hi Chander,

Can you give the code which you wrote in enhancement? Also which standard FM you enhanced?

Regards,

Ashok.

Read only

0 Likes
966

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

Read only

0 Likes
966

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.

Read only

0 Likes
966

Hi Ashok,

Thanks for the response. I will try to find out another FM which will help me doing it.

Best Regards,

Chander