Statement “length = STRLEN( variable ).” provides lenght of character variable.
Author: abapwizard
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.
Generate missing %_HRxxxx include
To generate missing %_HRxxxx include, run report RPUMS40CCI or RPU40CCI for all custom infotypes (9xxxx).
SHD0 – Transaction Variants
Change behavior of standard transactions.
Example: Remove create button from transaction SE16.
Solution:
Transaction SHD0
SCAT – Computer Aided Test Tool
Use this transaction to upload/update data.
SE51 – Screen Painter
Screen Paiter is used to create/edit screens of programs.
We enter program’s name and screen number. From there we have access to flow logic (PBO, PAI), element list, attributes and layout editor.