Posts

Showing posts with the label function module exits

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...

Finding Customer Exits Via SE81 SAP Transaction - SAP ABAP.

Image
Finding/Searching of customer exits for any SAP transaction can be achieved in many ways and method. The second method is via SE81 SAP transaction code. This method is extremely helpful in case if we are looking for customer exits available for a particular business, say MM-Purchasing, SD-Pricing, etc..) Follow the steps shown below to find customer exits using this method: 1) Go to transaction SE81. 2) Expand MM --> Place The Cursor On MM-PUR --> Go to EDIT option available on the top of the screen --> Click On 'Select Subtree +/-' --> Now Click On Information System Pushbutton available on the screen as shown. 3) You will be directly navigated to the OBJECT NAVIGATOR (SE84). 4) Expand Enhancements --> Expand --> Customer Exits --> Select Enhancements. You can see automatically the package field is filled up with all the packages involved with MM Purchasing. 5) Execute it and you will find all the customer exits available fo...

Finding Customer Exits Via SMOD Transaction - SAP ABAP.

Image
Finding/Searching of customer exits for any SAP transaction can be achieved in many ways and method. The second method is via SMOD SAP transaction code. Follow the steps shown below to find customer exits using this method: 1) Go To SMOD Transaction. 2) Press F4 on Enhancement. 3) Click on Information System to make a new search. You will get a new screen as shown: 4) Suppose you want to find all the customer exits for ME21N, ME22N & ME23N. First you need to find the package of these transactions. 5) To find Package of any transaction: Go to ME21N --> System --> Status --> Program --> Double Click On program --> Go to --> Attributes. In The attributes section you can find the package of the transaction code. For ME21N, the package is ME. 6) Now that you have got the package name simply put the package name as shown in step 3 and click enter 7) You will get a list of all the function module exits available for the respective packa...