Posts

Showing posts with the label cmod

Sample Program On Implementing Customer Exit - Step-By-Step - SAP ABAP

Image
Say there is a requirement to default sold to party while creating a sales order via VA01 transaction code. We have a function module exit already available 'EXIT_SAPMV45A_002' which can be used to pre assign sold to party in any sales order. You need to do the following steps to make this work. 1) Use the program Z_WHERE_USED_EXIT_SMOD_CMOD to find the name of the enhancement and the project of the function module exit. On executing, we get: 2) Here it can be seen there is no project created for the customer exit. 3) Hence the first step is to create a new project name via CMOD transaction. Assign V45A0002 enhancement to the project and activate it as shown. 4) Go to SE37 --> EXIT_SAPMV45A_002 --> Double Click on Z include. You will get a warning message. Click enter button and you will see a pop up window asking you to create a new object. 5) Click On Yes and save it in a package and request. You will get the zinclude in edit mode. Make...

Sample Program - Find Where Used Exits & Enhancements - Via CMOD & SMOD.

Image
This sample program will help you to find whether a function module exit has already been assigned to any enhancements. Also it will give information regarding Project name & enhancement name related to the function module exit. SAMPLE PROGRAM: REPORT z_test_where_used_exit_smod_cmod. SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(30) userexit FOR FIELD member1. PARAMETERS: member1 TYPE modsap-member. "Function Module (User EXIT) SELECTION-SCREEN END OF LINE. SELECTION-SCREEN END OF SCREEN 100. SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(20) enhname FOR FIELD member2. PARAMETERS: member2 TYPE modact-member. "Enhancement (SMOD) SELECTION-SCREEN END OF LINE. SELECTION-SCREEN END OF SCREEN 200. SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 5 LINES, TAB (40) button1 USER-COMMAND push1, TAB (40) button2 USER-COMM...

SAP ABAP - Implementing Or Activate Customer Exits / Function Module Exits.

Image
CMOD & SMOD are two transactions in SAP to manage exits. SMOD simply displays the enhancements present in the SAP System. This transaction is used to see the list of objects in an enhancement. It is a container which holds many related objects within it. CMOD is the project management of SAP enhancements (i.e. SMOD Enhancements). SMOD contains the actual enhancements while CMOD actually is the grouping of the SMOD enhancements. Transactions CMOD n SMOD are 2 parts of the enhancement. Using SMOD you can search for enhancement and their respective component. An enhancement includes one or more components (function exits, menu enhancements and screen enhancements). CMOD transaction code is used to create a project. Project is also a container, which holds several Enhancements. In case we know the user exit, and we have done the necessary changes as per the requirement then it won’t work unless and until a project is assigned to the exit. Hence it’s import...