29. 2. Select a customer number from the search help provided, and press the green ‘Continue’
button.
3. From the screen that appears, click on the Menu Item System Status.
29
30. 4. Double-click on the Program (GUI) name ‘SAPMF02D’.
5. Click the ‘Find’ button .
6. In the Search window, look for the string customer-function in the Main Program.
7. Double-click on the hit list.
30
31. 8. Now double-click on CALL CUSTOMER-FUNCTION '001'.
9. You’ll be taken inside the Function Module (Function-Exit) EXIT_SAPMF02D_001.
10. This is the User-Exit for Change Customer. Notice that there is an Include program in the
User-Exit. Double-click on this Include program name.
11. There will be a pop-up asking you to create the Include ZXF04U01. Click ‘Yes’ and create the
Include if it is not already created.
12. You can write your custom code within this Include program as shown below :-
31
32. 13. It is a good practice to write your User-Exit code within ‘IF SY-UNAME = ………… ENDIF’.
This is to prevent inadvertent firing of the Exit by other users while you are still testing. After
testing is complete, do not forget to remove the ‘IF ……… ENDIF’ before submitting the code
to the client !
Use your SAP user ID provided for the training. The User name should be written in Capital
letters. E.g. IF SY-UNAME = ‘SANGRAMC’.
14. Activate the Include program.
15. Now go to table MODSAP to find the Enhancement for the Function-Exit
EXIT_SAPMF02D_001. It is SAPMF02D in this case.
16. Now go to transaction CMOD and create a Project YXXPROJ. (Replace XX with the last 2
digits of your SAP User ID)
17. Include the Enhancement SAPMF02D in the Enhancement Assignment screen. Save and
Activate the project. The components of Enhancement SAPMF02D will now be active.
18. Execute transaction ‘XD02’ again and the information message will be displayed when you
change a Customer and press save.
32