SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Lecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic SortingLecture 07 Data Structures - Basic Sorting
Lecture 07 Data Structures - Basic Sorting
Haitham El-Ghareeb
 
osm.cs.byu.edu
osm.cs.byu.eduosm.cs.byu.edu
osm.cs.byu.edu
butest
 
AjayBhullar_Resume (5)
AjayBhullar_Resume (5)AjayBhullar_Resume (5)
AjayBhullar_Resume (5)
Ajay Bhullar
 

La actualidad más candente (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)
 

Destacado

Learning through the_arts
Learning through the_artsLearning through the_arts
Learning through the_arts
SaFaRiNa84
 
Gimel dalet arabic
Gimel dalet arabicGimel dalet arabic
Gimel dalet arabic
ahmadeg1
 
TF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 RevolverTF Six Shooters November 2012 Revolver
TF Six Shooters November 2012 Revolver
Kam 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
 
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
progroup
 
Ahciet final
Ahciet finalAhciet final
Ahciet final
notsag13
 
global child care powerpoint
global child care powerpointglobal child care powerpoint
global child care powerpoint
WendySteph
 
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
Arth I-Soft
 

Destacado (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
 

Similar a 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 Languages
Vasavi College of Engg
 
cassignmentii-170424105623.pdf
cassignmentii-170424105623.pdfcassignmentii-170424105623.pdf
cassignmentii-170424105623.pdf
YRABHI
 
Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
Victor Palmar
 
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
 

Similar a 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
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
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
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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