



























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
An in-depth exploration of how dates, currency, and units of measure are handled in abap, the programming language used by sap. It covers the unique treatment of dates as character types, the use of reference fields for quantities and currencies, and the configuration of exchange rates and units of measure.
Typology: Slides
1 / 35
This page cannot be seen from the preview
Don't miss anything!




























I go into more depth than your book about how currency and quantity values work
We have a couple of ways to deal with dates The primary date data type System fields for date and time that come from the SYST struct
It’s just an 8 character string
The internal format is YYYYMMDD There are ABAP dictionary fields for dates sy-datum gets the value of the system date Example to print the current date
The Time (T) data type stores the time as a character string HHMMSS ABAP dictionary types store timestamps in UTC format TIMESTAMP (YYYMMMDDDhhmmss) TIMESTAMPL (YYYMMDDhhmmssmmmuuun) sy-uzeit gets the system time
When subtracting two dates, you get the number of elapsed days
Quantity and currency amounts use reference fields Quantities work with UNIT (units) Currency fields work with (a currency key) CUKY The reference table contains a field with the currency key (CUKY) Or unit of measure UNIT
They are not primary data types They are components of a structure in the ABAP dictionary
They are used to convert amounts from one currency to another
They are really packed (P) BCD numbers A currency must also have currency key, which designates the currency CUKY type Use of the CURR data type is discouraged
TCURC currency codes TCURF conversion factors TCURR exchange rate
Using the table ZEKEDAHLTEST PRICE is of type CURR