Tips and tricks when using ABAP® – Learning
As has often been seen in other areas in the Internet, many relatively small ideas that individuals have can be of great benefit to a large group of people. For this reason, the CT team presents some interesting sample ABAP programs as freeware to a wider audience.
The website owners do not assume any warranty or liability for the report information provided. In addition, the website owners shall not be liable for any damage that might occur in connection with the use of the website. The CT team and the authors assume no responsibility for any damage or losses that might result from the use of the program examples. Conditions of use are given in the report header of each program. (The program documentation is partly in German.) The ABAP programs are from the areas “Learning” and “Work Programs”.
The following you find the ABAP ‘Learning’ programs:
Description | Sourcecode | Autor |
---|---|---|
Construction of an internal table with “APPEND itab” [Y9020010]In this simple report example a small data base is created for an internal table. | ABAP®Code | CT-Team |
Constructions of an internal table with “… SORTED BY v2” [Y9020011]The internal table ITAB1 is declared with a OCCURS specification of 10 elements. | ABAP®Code | CT-Team |
Relative addressing of C fields (strings) [Y9020020]Partial association In this example, three C-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
Relative addressing of N fields (numbers) [Y9020021]Partial association In this example, three T-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
Relative Addressing of T fields (time) [Y9020022]Partial association In this example, three T-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
Relative Addressing of X fields (hexadecimal) [Y9020024]Partial association In this example, three X-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
Relative Addressing of P fields / Problems (packed content) [Y9020025]Partial association (“not good for P fields …”) In this example, three P-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
Relative Addressing of I fields / Problems (integer) [Y9020026]Partial association with different relative addressing. | ABAP®Code | CT-Team |
Relative Addressing of F fields / Problems (floating point) [Y9020027]Partial association In this example, three N-fields are associated to a field symbol with “ASSIGN”. | ABAP®Code | CT-Team |
A common area for different information [Y9030003]Possibly a “small macro” called ‘FILL1’ never crossed your way … | ABAP®Code | CT-Team |
Simple determination of the string length? [Y9030004]There are several possibilities to determine the string length within a field. | ABAP®Code | CT-Team |
A fast alternative to “COLLECT itab” [Y9030012]The testing data for an internal table is created by a random number generator. | ABAP®Code | CT-Team |
A macro (DEFINE …) for the definition and processing of an internal table [Y9030013]A small macro should show that these interesting control statements can be inserted in quite different ways. | ABAP®Code | CT-Team |
Determine the header and the data of an internal table automatically [Y9030014]The printout of an internal table is often connected with counting out the headings and/or the data fields for output. | ABAP®Code | CT-Team |
Helper macro for binary search demo [Y9030019]This reports demonstrates the binary search command. | ABAP®Code | CT-Team |
Concatenate Strings with a subroutine [Y9030020]Small string function demo | ABAP®Code | S. R.-S. |