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

Adding a code in USEREXIT_SAVE_DOCUMENT_PREPARE

Former Member
0 Likes
1,214

Hi,

   unable to add a code in
'USEREXIT_SAVE_DOCUMENT_PREPARE'.

after right clicking between form and endform statements and following path enhancement inplementation ->create,it is displaying a message as

'In this mode, you can create implementations only'.

Report:SAPMV45A, INCLUDE MV45AFZZ.

Please advice

Vinit.

3 REPLIES 3
Read only

former_member212005
Active Contributor
0 Likes
778

Not sure...what you did...however i proceeded as below and it is allowing to create implementation.

Go to SE38.

Enter the program name as 'MV45AFZZ'.

Click on Display

Click on Enhance button (Switch Framework)

Go to Edit->Enhancement operations->Show Implicit Enhancement

Go to subroutine "USEREXIT_SAVE_DOCUMENT_PREPARE"

Position the cursor on the line which contains """""""""""""""""""""""""""""""""""""""""""""""""""""""""

Right Click on the line....Enhancement Operation->Create Implementation

Please note you cannot add codes anywhere you want....it should be either an implicit or explicit enhancement. Please refer to SAP Help on Implicit and Explicit Enhancment

Read only

Former Member
0 Likes
778

Dear Friend

Have you clicked on the Enhancement Circle before doing that.

There is a detailed explanation here.

follow the steps.

http://wiki.sdn.sap.com/wiki/display/ABAP/How+To+Do+Implicit+Enhancement

It should not be an issue

I hope it helps.

Read only

Former Member
0 Likes
778

Hi Vinit,

Do as detailed by Vineesh. Will definitely Work.

BR,

Ankit.