Declare a TYPES
Declare a TYPE as a character with 10 positions.
REPORT ZAJAY_PRACTICEABAP.
TYPES customer_name TYPE c LENGTH 10.
data name type customer_name.
name = 'ajay'.
write name.
Declare an integer.
REPORT ZAJAY_PRACTICEABAP.
TYPES ty_value TYPE i.
data value type ty_value.
value = 100.
write value.
another method:
Declare a type as a number with 7 positions.
REPORT ZAJAY_PRACTICEABAP.
TYPES ty_value type n length 7.
data value type ty_value.
value = 100011.
write value.
Declare a date type.
Declare a time type.
Hello world program.
REPORT ZAJAY_PRACTICEABAP.
write 'hello world'.
Chain Statements.
REPORT ZAJAY_PRACTICEABAP.
write : 'hello world',
'welcome to bosch',
'this is ajay'.
Comments
Post a Comment