SAP has provided ways to make modifications to the standard functionality. This is termed as Enhancements. With the help of this An ABAPer can make changes to the standard SAP programs with the help of guidelines given by SAP. Pleas note that it is not advisable to make changes to SAP standard programs directly. The changes can be made in the form of enhancements using the User Exits given by SAP. One of the methods to identify the user exits for Sales and distribution is through IMG. We would be exploring other methods later in this month.
Enter transaction SPRO as shown below.
Click on SAP Reference IMG or press F5 as shown below
Select the Sales And Distribution option as shown in the figure below.
Select User Exits in Sales Document Processing as shown below
You should get a listing of all the user exits related to Sales Documents as shown below
Wednesday, February 6, 2008
Creating a Function Module in SAP ABAP. DownLoad PDF Function modules are very important in SAP ABAP. Once you create a function module then it can be called from any program. You just need to pass some parameters to this function module and once the function module runs it passes back the desired result in the form of a variable. SAP has provided a transaction to create a function module. Execute transaction SE37 and create a function group as shown in the figure below.
Give the desired function group name and a short text.
Once the function group is created type the desired function module name as shown below. And click on create.
Enter the function group name created earlier and the desired short text for function module. and click on save.
Save the function module as a $tmp object.
Now the following screen will be presented to you, here you need to enter the import and export parameters. These are nothing but the variables that you would be passing to the function module and the returned values from the function module.
The following screen shot shows the returned values from the function module.
Type the following code in the source code area.
Active the function module and the related code.
Call the above created function module from an ABAP Report. The following screen shot shows the details to insert the code.
Type the code shown below. And run the report.
Saturday, January 5, 2008
SAP ABAP
ABAP (Advanced Business Application Programming) is a programming language for developing applications for the SAP R/3 system, a widely-installed business application subsystem. The latest version, ABAP Objects, is object-oriented programming. SAP will run applications written using ABAP/4, the earlier ABAP version, as well as applications using ABAP Objects. ABAP is used extensively to build, customize and tune SAP as per the users requirements. ABAP is uswd for developing custom reports, Sap Scripts, Adobe Forms, Smart Forms, Interfaces, and many other applications that are specific to a particular business.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.