ABAP Programs : Using the Basic Layout Formats
REPORT ZSOURCE0801.
* Simple output containing the current date
WRITE: ‘This is the current date:’, SY-DATUM.
* Displaying fields according to their type
DATA: STRING(20),
INT TYPE I,
PACKED_NUMBER TYPE P DECIMALS 2,
DATE LIKE SY-DATUM.
STRING = ‘Customer list’.
INT = 17.
PACKED_NUMBER = 5 / 4.
DATE = SY-DATUM + 30.
WRITE: / STRING, INT, PACKED_NUMBER, DATE.
~~~~~ End of post ~~~~~
———————
ABAPer, mail: abap.community@gmail.com http://abaplearner.blogspot.com
If you like this post, you may as well like these too:
- ABAP Programs: Setting the layout position of fields REPORT ZSOURCE0804. DATA: POS TYPE I, LEN TYPE I. WRITE AT 5 ‘position 5′.POS = 20.WRITE AT POS ‘position 20′.POSITION 40.WRITE ‘position 40′. POS = 10. LEN = 20.NEW-LINE.WRITE...
- ABAP Programs: Type-Specific Output Options REPORT ZSOURCE0808. * Specifying a format templateDATA TIME TYPE T VALUE ‘154633′.WRITE AT (8) TIME USING EDIT MASK ‘__:__:__’. * Using decimalsDATA PACKED_NUMBER TYPE P VALUE 123.WRITE PACKED_NUMBER DECIMALS...
- ABAP Programs: Using system fields REPORT ZSOURCE0409. WRITE: / ‘Current date’, SY-DATUM, / ‘Current table index’, SY-TABIX, / ‘Loop counter’, SY-INDEX, / ‘System return code’, SY-SUBRC.———————ABAPer, mail: abap.community@gmail.com http://abaplearner.blogspot.com ...
- ABAP Programs: Date and Time REPORT ZSOURCE0405. * Date fields are type d with the fixed length 8 and the internal* representation YYYYMMDD (year, month, and day).* The initial value of a date field...
- ABAP Programs: Skipping lines REPORT ZSOURCE0803. WRITE ‘This string will appear on the first line.’.NEW-LINE.WRITE: ‘New line’, / ‘Yet another line’.SKIP 3.WRITE / ’skip 3 produces three empty lines.’. ~~~~~ End of post...

















Leave a Reply