Transaction PO13 creates HR position.
Category: SAP
ABAP: List Header – List Processing
To edit list header:
- Running ABAP program, go to System–> List –>List Header
- While editing program, go to Goto–>Text Elements–>List Headers
SU20 – Create Authorization Object
Use transaction SU20 to create an authorization object. If you don’t have an object class yet, create it first through transaction SU21.
Table TACT contain all activity codes for field ACTVT. TACTZ contains activities permitted for specific objects.
Watchpoint
Watchpoint are conditional breakpoints. You can define a relational operator and comparison field value in order to the breakpoint happen.
There is a limit of up to 10 Watchpoints set at the same time.
STRLEN( )
Statement “length = STRLEN( variable ).” provides lenght of character variable.
ABAP Standard Data Types
D – Date
T – Time
I – Integer
F – Float
STRING – Character string (dynamic length)
XSTRING – Hexadecimal string (dynamic length)
C – Character
N – Numerical character
X – Hexadecimal
P – Packed Number
Inactive/Active Program
When we create a new program, its state will be Inactive until we activate it.
Whenever we change an existent program, we can still work with it without changing its LOAD compilation (active version interpreted at runtime). For that, we should work in ABAP Editor (SE38), and when we have to run it, we press F8 without changing its status to Active. Saving is allowed.
How to Comment Source Code
To comment ABAP source code, you can:
- Type * (asterisk) in the first columm. This will comment the entire line;
- “ (double quote). Text after double quote will be commented;
- To comment a block of code, select lines and press ‘CTRL+,‘. To undo uncomment, press ‘CTRL+.‘.
Pretty Printer
Not only of extremely complex material we live… thinking on newbies to SAP, here is a tip on how to make source code look better!
Use Pretty Printer button for converting uppercase/lowercase letters and indent your code.
Set Start Transaction
Whenever you login into SAP, you have the option to set a default transaction, so next time you login into the system, it will open automatically transaction you have configured.
At landing screen of SAP, click on menu Extras -> Set Start Transaction. Enter transaction code, for example SE38. At next login, transaction code configured will be executed automatically.