SlideShare une entreprise Scribd logo
1  sur  17
Data Types
Defining
Formal Variable description
Predifined Data types
● They are divide into two groups:
– Complete
● This means that they already contain a type-specific,
fixed length specification.
– D (Date, format YYYYMMDD)
– T (Time, format HHMMSS)
– I (Integer, length 4)
– F (Floating, length 8)
– STRING (Dynamic length character string)
– XSTRING (Dynamic length byte sequence, hexadecimal string)
Predifined Data types (2)
– Incomplete
● Do not contain a fixed length
– C (Character String)
– N (Numerical character string)
– X (Byte sequence, hexadecimal string)
– P (Packed number, decimals points may also be specified)
Local Data types
● Declared using standard data types
● Only exist in the program
● Declared using Types statement
Data types in ABAP Dictionary
● This are also called Global Data Types
● Can be used throught all the system
● Declared in the abap dictionary
Type Addition
● Used to refer any data type that is already
known.
● Visibility affects the Data Types
Type Addition (2)
● Type constructos used with the TYPE addition:
– For references
– REF TO <class>|<interface>
– For structures
– BEGIN OF <struct>.
...
– END OF <struct>.
– For tables
– <tabkind> OF <linetype> [WITH <key>]
Like Addition
● Used to refer to an already defined data object
● Can be used to refer any object declared an
visible in the context
● No need for the data object being referenced to
be in memory
Data Objects
Defining
A variable or constant that is defined concretely
by means of a data type
Literals
● Belongs to the Fixed Data Object
● Used to especify fixed values in the programs
● Literals can be:
– Numeric literals
– Text literals
Text Symbols
● Stored in the Text pool
● Used to allow abap to be multilingual.
● They are identified with a three alfanumeric ID
● Can be Translated
Variables
● Are Data Objects that can be declared
● They can be declared using:
– DATA
– STATICS
– CLASS-DATA
– PARAMETERS
– SELECT-OPTIONS
– RANGES
Constants
● Defined by the keyword CONSTANTS
● Works similar to literals
● The value addition is mandatory
Interface Work Areas
● Are data objects that are used to pass data
between:
– Screens and ABAP programs
● Tables
– Logical databases and ABAP programs
● Nodes
– ABAP programs and external subrutines
● COMMON PART
Predifined Data Objects
● There is no need to be declared
● They are always present at runtime
● There are two:
– Space
– SY
● SY-SUBRC: Return code for ABAP statements
● SY-UNAME: logon name of the user
● SY-REPID: Current ABAP program
● SY-TCODE: current transaction
● SY-INDEX: Number of the current loop pass

Contenu connexe

Tendances (20)

Object oriented programming 2 elements of programming
Object oriented programming 2 elements of programmingObject oriented programming 2 elements of programming
Object oriented programming 2 elements of programming
 
Lecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic SortingLecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic Sorting
 
Data types
Data typesData types
Data types
 
3rd june
3rd june3rd june
3rd june
 
C Omega
C OmegaC Omega
C Omega
 
Latent Semantic Indexing For Information Retrieval
Latent Semantic Indexing For Information RetrievalLatent Semantic Indexing For Information Retrieval
Latent Semantic Indexing For Information Retrieval
 
Unit 5
Unit 5Unit 5
Unit 5
 
A Theoretic Framework for Evaluating Similarity Digesting Tools
A Theoretic Framework for Evaluating Similarity Digesting ToolsA Theoretic Framework for Evaluating Similarity Digesting Tools
A Theoretic Framework for Evaluating Similarity Digesting Tools
 
8. data types
8. data types8. data types
8. data types
 
R programming by ganesh kavhar
R programming by ganesh kavharR programming by ganesh kavhar
R programming by ganesh kavhar
 
Data structure Assignment Help
Data structure Assignment HelpData structure Assignment Help
Data structure Assignment Help
 
Data handling in python
Data handling in pythonData handling in python
Data handling in python
 
Introduction to Data Structure : Pointer
Introduction to Data Structure : PointerIntroduction to Data Structure : Pointer
Introduction to Data Structure : Pointer
 
Intelligent Search
Intelligent SearchIntelligent Search
Intelligent Search
 
Data type
Data typeData type
Data type
 
Binary Similarity : Theory, Algorithms and Tool Evaluation
Binary Similarity :  Theory, Algorithms and  Tool EvaluationBinary Similarity :  Theory, Algorithms and  Tool Evaluation
Binary Similarity : Theory, Algorithms and Tool Evaluation
 
Java Tutorial Lab 6
Java Tutorial Lab 6Java Tutorial Lab 6
Java Tutorial Lab 6
 
osm.cs.byu.edu
osm.cs.byu.eduosm.cs.byu.edu
osm.cs.byu.edu
 
Lecture-05-DSA
Lecture-05-DSALecture-05-DSA
Lecture-05-DSA
 
AjayBhullar_Resume (5)
AjayBhullar_Resume (5)AjayBhullar_Resume (5)
AjayBhullar_Resume (5)
 

En vedette

Environmental problems and reitaku university
Environmental problems and reitaku universityEnvironmental problems and reitaku university
Environmental problems and reitaku universityReitaku Univ. Deutsch
 
6 Actions To Build Your Dream
6 Actions To Build Your Dream6 Actions To Build Your Dream
6 Actions To Build Your DreamCindy McAsey
 
Jys summit3-slideshare
Jys summit3-slideshareJys summit3-slideshare
Jys summit3-slidesharejasonyana
 
Learning through the_arts
Learning through the_artsLearning through the_arts
Learning through the_artsSaFaRiNa84
 
il portale Dati.gov.it e l’Infografica su open data in Italia
il portale Dati.gov.it e l’Infografica su open data in Italia il portale Dati.gov.it e l’Infografica su open data in Italia
il portale Dati.gov.it e l’Infografica su open data in Italia DatiGovIT
 
Gimel dalet arabic
Gimel dalet arabicGimel dalet arabic
Gimel dalet arabicahmadeg1
 
TF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 RevolverTF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 RevolverKam Gerohimos
 
Goodwin's Features in 'Sweet Dreams'
Goodwin's Features in 'Sweet Dreams'Goodwin's Features in 'Sweet Dreams'
Goodwin's Features in 'Sweet Dreams'oliviakelly95asmedia
 
North Carolina County Government
North Carolina County Government North Carolina County Government
North Carolina County Government amariel43
 
Town hall meeting webinar 2.24.12
Town hall meeting webinar   2.24.12Town hall meeting webinar   2.24.12
Town hall meeting webinar 2.24.12progroup
 
Ahciet final
Ahciet finalAhciet final
Ahciet finalnotsag13
 
global child care powerpoint
global child care powerpointglobal child care powerpoint
global child care powerpointWendySteph
 
2016 April Announcements
2016 April Announcements2016 April Announcements
2016 April AnnouncementsWayne Irwin
 
IWAR Briefing Maltz
IWAR Briefing MaltzIWAR Briefing Maltz
IWAR Briefing Maltzrichardmaltz
 
Sabareeshpsppt
SabareeshpspptSabareeshpsppt
SabareeshpspptSano Anil
 
Dental doctor - Kids Game Free to Download
Dental doctor - Kids Game Free to DownloadDental doctor - Kids Game Free to Download
Dental doctor - Kids Game Free to DownloadArth I-Soft
 

En vedette (20)

Environmental problems and reitaku university
Environmental problems and reitaku universityEnvironmental problems and reitaku university
Environmental problems and reitaku university
 
Data entry
Data entryData entry
Data entry
 
6 Actions To Build Your Dream
6 Actions To Build Your Dream6 Actions To Build Your Dream
6 Actions To Build Your Dream
 
L'home savi
L'home saviL'home savi
L'home savi
 
Jys summit3-slideshare
Jys summit3-slideshareJys summit3-slideshare
Jys summit3-slideshare
 
Learning through the_arts
Learning through the_artsLearning through the_arts
Learning through the_arts
 
il portale Dati.gov.it e l’Infografica su open data in Italia
il portale Dati.gov.it e l’Infografica su open data in Italia il portale Dati.gov.it e l’Infografica su open data in Italia
il portale Dati.gov.it e l’Infografica su open data in Italia
 
Gimel dalet arabic
Gimel dalet arabicGimel dalet arabic
Gimel dalet arabic
 
Victus dosya 3
Victus dosya 3Victus dosya 3
Victus dosya 3
 
TF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 RevolverTF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 Revolver
 
Goodwin's Features in 'Sweet Dreams'
Goodwin's Features in 'Sweet Dreams'Goodwin's Features in 'Sweet Dreams'
Goodwin's Features in 'Sweet Dreams'
 
North Carolina County Government
North Carolina County Government North Carolina County Government
North Carolina County Government
 
Town hall meeting webinar 2.24.12
Town hall meeting webinar   2.24.12Town hall meeting webinar   2.24.12
Town hall meeting webinar 2.24.12
 
Bloque ii
Bloque iiBloque ii
Bloque ii
 
Ahciet final
Ahciet finalAhciet final
Ahciet final
 
global child care powerpoint
global child care powerpointglobal child care powerpoint
global child care powerpoint
 
2016 April Announcements
2016 April Announcements2016 April Announcements
2016 April Announcements
 
IWAR Briefing Maltz
IWAR Briefing MaltzIWAR Briefing Maltz
IWAR Briefing Maltz
 
Sabareeshpsppt
SabareeshpspptSabareeshpsppt
Sabareeshpsppt
 
Dental doctor - Kids Game Free to Download
Dental doctor - Kids Game Free to DownloadDental doctor - Kids Game Free to Download
Dental doctor - Kids Game Free to Download
 

Similaire à Data types & object

Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesVasavi College of Engg
 
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical ExpressionsUnit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressionsdubon07
 
Postgre sql data types
Postgre sql data typesPostgre sql data types
Postgre sql data typesDucat
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)Dilawar Khan
 
cassignmentii-170424105623.pdf
cassignmentii-170424105623.pdfcassignmentii-170424105623.pdf
cassignmentii-170424105623.pdfYRABHI
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programmingHarshita Yadav
 
Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and AlogarithimsVictor Palmar
 
MLlib and Machine Learning on Spark
MLlib and Machine Learning on SparkMLlib and Machine Learning on Spark
MLlib and Machine Learning on SparkPetr Zapletal
 
Introduction to the language R
Introduction to the language RIntroduction to the language R
Introduction to the language Rfbenault
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-cteach4uin
 
Introduction to basic statistics
Introduction to basic statisticsIntroduction to basic statistics
Introduction to basic statisticsIBM
 
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...ssuser5610081
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxRuchiNagar3
 
Localization and Shared Preferences in android
Localization and Shared Preferences in androidLocalization and Shared Preferences in android
Localization and Shared Preferences in androidAly Arman
 

Similaire à Data types & object (20)

Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming Languages
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical ExpressionsUnit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
 
chapter 5.ppt
chapter 5.pptchapter 5.ppt
chapter 5.ppt
 
Postgre sql data types
Postgre sql data typesPostgre sql data types
Postgre sql data types
 
Pandas
PandasPandas
Pandas
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
 
cassignmentii-170424105623.pdf
cassignmentii-170424105623.pdfcassignmentii-170424105623.pdf
cassignmentii-170424105623.pdf
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
 
Python
PythonPython
Python
 
venkatesh.pptx
venkatesh.pptxvenkatesh.pptx
venkatesh.pptx
 
MLlib and Machine Learning on Spark
MLlib and Machine Learning on SparkMLlib and Machine Learning on Spark
MLlib and Machine Learning on Spark
 
Introduction to the language R
Introduction to the language RIntroduction to the language R
Introduction to the language R
 
4)12th_L-1_PYTHON-PANDAS-I.pptx
4)12th_L-1_PYTHON-PANDAS-I.pptx4)12th_L-1_PYTHON-PANDAS-I.pptx
4)12th_L-1_PYTHON-PANDAS-I.pptx
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
 
Introduction to basic statistics
Introduction to basic statisticsIntroduction to basic statistics
Introduction to basic statistics
 
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptx
 
Localization and Shared Preferences in android
Localization and Shared Preferences in androidLocalization and Shared Preferences in android
Localization and Shared Preferences in android
 

Dernier

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Data types & object

  • 3. Predifined Data types ● They are divide into two groups: – Complete ● This means that they already contain a type-specific, fixed length specification. – D (Date, format YYYYMMDD) – T (Time, format HHMMSS) – I (Integer, length 4) – F (Floating, length 8) – STRING (Dynamic length character string) – XSTRING (Dynamic length byte sequence, hexadecimal string)
  • 4. Predifined Data types (2) – Incomplete ● Do not contain a fixed length – C (Character String) – N (Numerical character string) – X (Byte sequence, hexadecimal string) – P (Packed number, decimals points may also be specified)
  • 5. Local Data types ● Declared using standard data types ● Only exist in the program ● Declared using Types statement
  • 6. Data types in ABAP Dictionary ● This are also called Global Data Types ● Can be used throught all the system ● Declared in the abap dictionary
  • 7. Type Addition ● Used to refer any data type that is already known. ● Visibility affects the Data Types
  • 8. Type Addition (2) ● Type constructos used with the TYPE addition: – For references – REF TO <class>|<interface> – For structures – BEGIN OF <struct>. ... – END OF <struct>. – For tables – <tabkind> OF <linetype> [WITH <key>]
  • 9. Like Addition ● Used to refer to an already defined data object ● Can be used to refer any object declared an visible in the context ● No need for the data object being referenced to be in memory
  • 11. Defining A variable or constant that is defined concretely by means of a data type
  • 12. Literals ● Belongs to the Fixed Data Object ● Used to especify fixed values in the programs ● Literals can be: – Numeric literals – Text literals
  • 13. Text Symbols ● Stored in the Text pool ● Used to allow abap to be multilingual. ● They are identified with a three alfanumeric ID ● Can be Translated
  • 14. Variables ● Are Data Objects that can be declared ● They can be declared using: – DATA – STATICS – CLASS-DATA – PARAMETERS – SELECT-OPTIONS – RANGES
  • 15. Constants ● Defined by the keyword CONSTANTS ● Works similar to literals ● The value addition is mandatory
  • 16. Interface Work Areas ● Are data objects that are used to pass data between: – Screens and ABAP programs ● Tables – Logical databases and ABAP programs ● Nodes – ABAP programs and external subrutines ● COMMON PART
  • 17. Predifined Data Objects ● There is no need to be declared ● They are always present at runtime ● There are two: – Space – SY ● SY-SUBRC: Return code for ABAP statements ● SY-UNAME: logon name of the user ● SY-REPID: Current ABAP program ● SY-TCODE: current transaction ● SY-INDEX: Number of the current loop pass