







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Computer applications are involved in running every business. This course teaches programming with respect to business. Key points in this lecture of Advanced Business Application Programming course are: Fields and Variables, Field Naming, Fields, Primary Data Types, Packed and Floating-Point Number, Arithmetic, Type Conversion, Type Coercion
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!








In ABAP, fields (or data objects) are named locations in memory Variables store data that might change Constants store data that does not change As before, fields are declared with the DATA keyword
They nave a name A defined length And a data type And possibly a length And possibly an initial value
DATA packed16 TYPE P LENGTH 7 DECIMALS 2. packed16 = '12121219.12'. WRITE packed16.
Produces
Declare a variable having the dame data type as another variable Makes it easier to change data types
DATA demo16instance1 LIKE packed16. DATA demo16instance2 LIKE packed16.
Looks like any other arithmetic expression (plus the space requirements) SAP calls this compatible and convertible data types Compatible types have the same data type, field type, … Comparable types are converted using conversion rules (See handout)
The following produces “1” because the result is rounded to an int