cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance/customize a standard SAP function module

Former Member
0 Kudos

Hi

I want to enhance/customize a standard SAP function module. This function module is used in ABAP-Dynpro application.

Here, I am having a TABSTRIP. Hence, when I navigate between the tabs of the tabstrip, a function module u2018BUILD_DOCUMENT_BODYu2019 is used to create the body/ fill data in the TAB.

I want to change the functionality of this particular function module. I tried using enhance spots (I may also be using a wrong procedure to use enhancement spots), but it then allows me to write my own function modules instead of modifying the existing standard SAP function module.

Hence, I wanted to know how to change the standard function module used in a ABAP webdynpro application.

The ABAP dynpro component is u2018HAP_DOCUMENT_BODYu2019

Regards,

Nilesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I've got to enhance method BUILD_DOCUMENT_BODY in order to modify the layout of a web dynpro (hiding some fields).

I've already created the enhancement implementation, but this method is not changeable.

Could you pls help me? Is there another way to obtain that target?

Many thanks in advance!

Former Member
0 Kudos

answered.

Former Member
0 Kudos

hi,

You can enhance Standard FM also.

Click on Enhancement (spiral) button.

Now Go to Edit->Enh Op -> Show Implicit enhc.

You can add enhancement at the specific enh points.

genearlly it will be at the start of FM and at the End of.

Go the places where enh is possible -> Right click and Create Enh -> Code.

this way you will be able to add your logic into standard FM.

but do take care standard FM is called many times.

Former Member
0 Kudos

Hi ,

Problem resolved.

Regards

Nilesh