ABAP/4 Defining Data Defining Data: –Data statement –Parameters statement –Tables statement –Constants statement –Data statement to define field strings.

Slides:



Advertisements
Similar presentations
Creating Tables Unit 9 - Databases.
Advertisements

Slides adapted from: Bjarne Stroustrup, Programming – Principles and Practice using C++ Chapter 11 Customizing I/O Hartmut Kaiser
CHAPTER 5 INPUT/OUT FORMAT. Introduction READ (*,*) x WRITE (*,*) x This is free format: the first * is for I/O device number (* = input is keyboard *
Structure of a C program
1 Chapter 4 Language Fundamentals. 2 Identifiers Program parts such as packages, classes, and class members have names, which are formally known as identifiers.
Introduction to C Programming CE Lecture 2 Basics of C programming.
 SAP AG CSU Chico MINS298c ABAP/4 Programming Introduction to Data Types Chapter 4 Fall 1998.
1 ABAP BASICS I Northern Arizona University College of Business.
1 Arrays  Arrays are objects that help us organize large amounts of information  Chapter 8 focuses on: array declaration and use passing arrays and array.
Introduction to Python
CMSC 104, Version 8/061L18Functions1.ppt Functions, Part 1 of 4 Topics Using Predefined Functions Programmer-Defined Functions Using Input Parameters Function.
Expressions, Data Conversion, and Input
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
***** SWTJC STEM ***** Chapter 2-2 cg Identifiers - Naming Identifier, the name of a Java programming component. Identifier naming rules... Must.
Lesson 1: Introduction to ABAP OBJECTS Todd A. Boyle, Ph.D. St. Francis Xavier University.
HAP 709 – Healthcare Databases SQL Data Manipulation Language (DML) Updated Fall, 2009.
Language Elements 1. Data Types 2 Floating Point (real) Single Precision Double Precision Decimal Fixed Point (integer) Byte Short Integer Long Numerical.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 6: Variables and constants.
CH2 – Using Data. Constant Something which cannot be changed Data Type Format and size of a data item Intrinsic Data Types Pg. 47 – Table 2-1 Basic ones.
Instructor - C. BoyleFall Semester
Introduction to ABAP Selection Screens. Slide 2 Screens (Types) There are three types of screens Selection screens get parameter input for reports List.
MIS 3020 ABAP Programming Lecture 2 Elementary & User Defined Types Domains, Elements, Variables/Fields.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Sha Tin Methodist College F.4 Computer Studies Pascal Programming.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Counter-Controlled Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Computing with C# and the.NET Framework Chapter 2 C# Programming Basics ©2003, 2011 Art Gittleman.
CONSTANTS Constants are also known as literals in C. Constants are quantities whose values do not change during program execution. There are two types.
SQL ORACLE 1. Data Type 2 3 VARCHAR2(size [BYTE | CHAR]) Variable-length character string having maximum length size bytes or characters. Maximum size.
Data Structure and c K.S.Prabhu Lecturer All Deaf Educational Technology.
Chapter 2 Variables.
Variables, Input, and Output. Challenge: ● Ask the user his or her name, and repeat that name to the user ● Pause video and try.
2016 N5 Prelim Revision. HTML Absolute/Relative addressing in HTML.
Python Let’s get started!.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Introduction ABAP Fields and Variables. Slide 2 Fields (Introduction) In ABAP, fields (or data objects) are named locations in memory Variables store.
Chapter 3 The General Structure of Ada Programs. General Form of an Ada Program With package1; With package2;... With packagen; Procedure pname IS - -
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
Higher Computing Science 2016 Prelim Revision. Topics to revise Computational Constructs parameter passing (value and reference, formal and actual) sub-programs/routines,
Chapter 2. Variable and Data type
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 3.
ARRAYS (Extra slides) Arrays are objects that help us organize large amounts of information.
Chapter 2 Variables.
2008/11/19: Lecture 18 CMSC 104, Section 0101 John Y. Park
Unit 16 – Database Systems
More About Objects and Methods
Computing with C# and the .NET Framework
Introduction to Python
Chapter 2.
Variables and Arithmetic Operations
SAS in Data Cleaning.
Introduction to Python
مساق: خوارزميات ومبادئ البرمجة الفصل الدراسي الثاني 2016/2015
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Chapter 2 Variables.
Chapter (3) - Looping Questions.
PHP.
Introduction to Primitive Data types
C++ Data Types Data Type
Variables Kevin Harville.
7 – Variables, Input and Output
Introduction to Programming
Lecture 5 SQL FUNCTIONS.
Chapter 2 Variables.
2008/11/19: Lecture 18 CMSC 104, Section 0101 John Y. Park
DATA TYPES AND OPERATIONS
Introduction to Python
Introduction to Primitive Data types
Presentation transcript:

ABAP/4 Defining Data Defining Data: –Data statement –Parameters statement –Tables statement –Constants statement –Data statement to define field strings –User defined Data types –Type-pools

ABAP/4 Defining Data Defining Variables: –Data statement data f1(2) type c. data f2 like f1. data : max_value type I value 100, cur_date type d value ‘ ’ –Parameters statement Special type of variable that will accept input from user. –Parameters p1(2) type c. –Parameters cur_date type d default ‘ ’ obligatory.

ABAP/4 Defining Data Data types –Character and Numeric Character Data types Data Type Internal Description Default Internal Length Max Internal Length Valid Values Default Initial Value ccharacter165535Any charBlank nNumeric text ddate8 (fixed) ttime6 (fixed) xhexadecimal165535Any

ABAP/4 Defining Data Data types –Character and Numeric Numeric Data types Use integers for simple computations, counters, indexes etc Floating point for very large values or many decimal places. Data Type Internal Description Default Internal Length Max Length/ Dec Valid Values Default Initial Value Iinteger4(fixed)- / to PPacked decimal 816 / FFloating point 822 / 15* -E-307 to 1E

ABAP/4 Defining Data Defining constants: –Identical to a variable except that its value cannot be changed. –Constants c1(2) type c value ‘AA’. –Constants c2 like c1 value ‘BB’ Defining Field strings: Type of variable, equivalent structure in DDIC but is defined within ABAP program Has global and local visibility. –Data: begin of totals, region(7) value ‘unknown’, debits(15) type p, count type I, end of totals. Totals-debits = 100. Totals-counts = 10.

ABAP/4 Defining Data Using Tables statement to define a field string. Has global and external visibility no matter where it is placed in the program. –Tables ztxlfa1. –Ztxlfa1-name1 = ‘Bugsy’. –Ztxlfa1-land1 = ‘US’. User defined types: –Types : dollars(16) type p decimals 2. –Data : petty_cash type dollars, – Pay_outs type dollars, – lump_sums type dollars.

ABAP/4 Defining Data Using Type groups (Type-pool) to define types or constants. –Data Dictionary object that contains one or more types or constants statements. –Multiple programs can share a type group.