"In SAP for logging in to the system you need a user ID and a password. This user ID is created by the system administrator. The first time you login to the SAP system you need to change that password which has been assigned to you while creating the user ID. Every user ID will have certain roles assigned to it. The System Admin (Basis Administrator) is responsible for creating these roles after consulting the Functional team. Each user will typically have several roles assigned to their user ID. The user roles are predefined in the SAP system and each employee would have a combination of several roles which have been predefined in the SAP system. The roles are defined using the activity groups in the SAP system. A proper understating of the activity groups is necessary for creating and assigning Roles in the SAP system. Once a pre-defined user role is assigned to a user the system then automatically displays the appropriate User menu when the user logs on and provides the required authorization. An activity group can contain Transactions, Reports, Files, Web Links. Once the activity group has been assigned it defines the user specific menus. Once the user logs on to SAP a user specific menu is displayed this menu is controlled by the activity group that has been assigned to the user. To display a list of descriptions of the pre-defined user roles, select Tools---- Administration----User Maintenance--'Repository Infosys--' Activity Groups----' List of activity groups according to complex selection criterion---' Selection according to activity group name or call transaction S_BCE_68001418. The pre-defined user roles are delivered as templates and have names beginning with 'SAP_' and suffix _AG. Composite activity groups can be built with individual activity groups. A composite activity group does not contain any authorization."
"The flow of a program is determined by a sequence of screens in a dialog transaction. The screens that are called within a transaction, must belong to a single ABAP program, usually a module pool (Type M). You have to use the transaction maintenance transaction (SE93) to create a dialog transaction. Once you have entered a transaction code and a short description, chose transaction type program and screen. Then enter data on the next screen as required. The transaction code in a dialog program must be linked to the number of its initial screen. Finally enter this number in the screen number field."
Before activating a program you need to check if the program is syntactically correct. This can easily be done in the ABAP editor with the following tools
Syntax Check Extended Program Check _________________________________________
The menu pat is as follows
Program >>>>>> Check >>>>>> Syntax Program >>>>>> Check >>>>>> Extended Program Check _________________________________________________________________
Syntax Check (Standard Syntax Check)
Here the syntax is checked by the system and if an error occurs the check stops and immediately an error message is displayed. Also the system suggests error correction. Any SAP ABAP program before execution needs to be Activated and before activation a Syntax check is necessary. If the program has not been checked for Syntax, and directly activated then during the activation process you have an option to ignore the errors and activate anyway. If you choose this option, the syntax errors are displayed while executing the program.
In case you are running a Syntax check on an Include program then automatically the system combines it with the TOP INCLUDE. In case the systems generates WARNINGS in the syntax check, then you can still run the program as some of the WARNINGS can be ignored. But its a good practice to correct all the warnings as they could lead to unforeseen errors and can give trouble in future SAP releases.
Extended Program Check
The extended program check does a more complete check of the program. It actually does a Syntax check on all the interfaces called from your program. All these check are excluded from the Standard Syntax check explained above. Basically there are 2 types of errors in any program
Static Errors and Runtime Errors
The Runtime errors are not checked by the Standard Syntax Check explained above. Even the Extended Program Check is a Syntax Check for Static Errors. Sometimes in extended program check you may get warnings that cannot be corrected, the code that produces such warnings should be commented for extended check or you can put pseudo comments ("#EC). All other Warnings should be corrected before activating the program. Technically the development is not considered to be complete if the Extended Program Check shows errors/warnings.
Always specify your conditions in the Where-clause instead of checking
them yourself with check statements. The database system can then use an index
(if possible) and the network load is considerably less.
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.
No comments:
Post a Comment