Friday, January 16, 2009

Transaction Codes

Transaction Codes
1. Developing
S001 Abap Workbench
SE09 Workbenche organizer (Transports)
SE11 ABAP/4 Dictionary
SE16 Data browser
SE24 Class builder
SE30 ABAP Runtime analyzes
SE32 ABAP/4 Text Element Maintenance
SE35 ABAP/4 Dialog Modules Maintenance
SE36 Logical Databases
SE37 Function builder
SE38 ABAP/4 Editor
SE39 Program Comparison
SE41 Menu Painter
SE43 Area Menu editor
SE48 Call hierarchy
SE49 Program analysis: Table Manipulation
SE51 Screen Painter: Initial Screen.
SE55 Table maintenance dialog
SE80 Repository browser
SE91 Message Classes
SE93 Maintain transaction
SHDB Batch input recorder
SM30 Maintain table views
SM35 Monitor batch input
ST22 Short dump analysis
2. Monitoring
ST05 SQL Trace
ST07 Application monitor
3.System
SM04 User overview ( Possible to end sessions)
SM12 Table lock Entries
SM21 System log for viewing dumps
SM36 Define background jobs
SM37 View background jobs
SM50 Process Overview
SU53 Display Authorization Values for User
SLG1 View application log
SLG2 Delete application log
SPAD Output devices
SP01 See spool
4. SapScript
SE71 Form painter
SE72 Style maintenance
SE73 SAPscript font maintenance.
SE74 SAPscript format conversion
SE75 SAPscript Settings
SE76 SAPscript Form Translation
SE77 SAPscript Style Conversion
SE78 SapScript Graphics Management
SO10 Create standard text module
5.Enhancements and modifications
CMOD Enhancementprojects
SMOD List SAP enhancements to use in CMOD
SHD0 Transaction variant maintenance
6. Other
ABAPDOCU ABAP coding examples supplied by SAP
AL11 Look at directories on the host system ( With drill down )
LSMW LSM Workbench
SA38 Submit batch job
SE01/STMS Transport system
SPRO Start SAP IMG
SPAM Support packet manage
SU03 Maintain Authorizations: Object Classes
SU51 Display Authorization Data (Can be called after failed authorization)SWEC Events for change documents
SW01 Business Object Builder
SWO4 Display Businesss Object Types

Monday, January 5, 2009

Function Modules

Function Modules

Tcode: SE37
Function modules are ABAP routines that are administered in a central function library.
They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group.
A function group is nothing but a container for the function modules.

Create a Function Group

->Goto Object Navigator (SE80).
->From the Object Selection window select Function group, enter 'ZFG_TEST' as name of your function group, and choose Display.
->Since the function group 'ZFG_TEST' does not yet exist, the system asks you whether to create it. Confirm with Yes.
->Enter a short description and choose Save.
->In the window Create Object Catalog Entry choose Local object or save in your package.
->Activate it.Now you can create Function Modules within the Function Group.

Create Function Module

->Goto transaction SE37 and enter the name of the FM to be created 'ZFM_calc_1'
->Then it will ask for the name of the Function Group that was created before.
->In the 'Attributes' tab give a short description to FM and other details like normal FM,RFC etc.
->Click on the 'Import' tab and enter the Parameter name, Type and Reference type of variables.
->Click on 'Export' tab and enter the Parameter name, Type and reference type
->In the 'Changing' and 'Tables' tab enter the required paramters and tables
->Click on 'Exceptions' tab and enter the Exception and short text for that exception.
->In the 'Source code' tab enter the source code for the FM
->Check syntax and activate the FM.
->Also you can test and exexute the FM created
->Now you have created a global FM and can be called globally.