‎2007 Mar 15 4:54 PM
Hi guys
I have few doubts hope you guys can solve them
1) Difference betwen BAPI and ordinary Function Module
2)Can we have Enhancements in BAPI
3)difference between user Exit and Function Exit
4) DIFFERENCE BETWEN SE09 AND SE010 --- i have een no difference i verified each and every TAB,Menu , Menu items even Buttons notthing is different so can any one teleme the difference.
5)Why do we attach project to an enhancement i.e CMOD to SMOD
Thanks
‎2007 Mar 15 5:02 PM
<b>1) & 2) Function module and BAPI -- Enhancements</b>
BAPI is Remote Enabled Function module which can be called even outside SAP whereas a Function module can be called only in same SAP System as it is not remote enabled.
Interface programs can post data to SAP through BAPI.
You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
<b>3) User exit and Function exit</b>
SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:
1. An append structure in the database table with the new fields.
2. A subscreen area into the standard screen where the programmer can attach his subscreen of his own program with the new fields.
3. A function group under which the new subscreen has to be created with the new fields.
4. Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed.
<b>5) CMOD and SMOD</b>
There are enhancement provisions in standard SAP program provided by SAP for customization. These enhancements and their corresponding components can be accesses thru SMOD (SAP modification)tcode.
Once you know the user exit that needs to be changed from SMOD tcode, you make changes in the appropriate user exit and attach it to the project and activate it. This is done thru CMOD (Customer modification) tcode.
To sum it, you first look into CMOD to get user exit name and then use SMOD to assign that user exit to project created by you.
SMOD is just to see all the enhancements in the sap system.
CMOD is the customer projects where enhancements are implemented. If you want to implement any enhancements then you will create a project and assign the enhancement and do the coding in exits.
To customize an existing SAP application we have been provided the user exits by SAP. These exits are packaged under enhancements. You choose an enhancement according to your requirements e.g. enhancement MM06E005 is used for adding custom field in me21/me21n. SAP has limited no of enhancements for any transactions, you have to choose only from them to cater your requiement you cant create them.
After selecting your enhancements you have to inherit them in your project in CMOD. Thereafter you do coding and other things like making your subscreens or adding fields to standard tables in respective exits.
To see the effect of your whole project you must activate each componnents of your enhancements.
<b>
reward if it helps u...
sai ramesh</b>
Hope it gives you fair idea!!
‎2007 Mar 15 5:18 PM
Hi,
1) Difference betwen BAPI and ordinary Function Module
BAPI is a function module which is remotely enabled and can be used to access data from the external system.
Ordinary function module can be use only internally.
2)Can we have Enhancements in BAPI
Yes we can.
3)Difference between User Exit and Function Exit
User exits allow us to add our own functionality to SAP standard program without modifying it. These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP. All Userexits start with the word USEREXIT_...
Function Exits are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
The function exits are called from the standard SAP program in the form of ABAP statement
CALL CUSTOMER-FUNCTION 'NNN'
This is in contrast to USEREXITs where PERFORM statement is used to call the required userexit.
To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
4) DIFFERENCE BETWEN SE09 AND SE10
SE09 is the workbench transport requests transaction - here the developers can track changes to all ABAP workbench objects (dictionary, reports, module pools, etc). This is a developer-specific transaction and mostly all developers have access to this transaction.
SE10 is the customizing request display transaction - this displays all the customizing requests in the system. Again, this could be restricted to Business analysts if required, since they would be doing most of the customizing changes in the system.
5) Why do we attach project to an enhancement i.e CMOD to SMOD
SMOD is just to see all the enhancements in the sap system.
CMOD is the customer projects where enhancements are implemented. If you want to implement any enhancements then you will create a project and assign the enhancement and do the coding in exits.
Regards,
Ferry Lianto