 SAP AG CSU Chico Searching and Selecting Data from R/3 ABAP/4 class Gail Corbitt - Fall 1998.

Slides:



Advertisements
Similar presentations
What is a Database By: Cristian Dubon.
Advertisements

The Hierarchical Model
 SAP AG CSU Chico Report Painter: More Advanced concepts MINS 298C-04 ABAP/4 Fall 1998.
Function Point Analysis example. Function point FP is defined as one end-user business function FPA evaluates the system from a user perspective.
Introduction to the ABAP Data Dictionary
Introduction to SAP.
 SAP AG CSU Chico MINS298c ABAP/4 Programming Gail Corbitt Fall 1998 Chapter 1-3.
University of Southern California Enterprise Wide Information Systems ABAP/ 4 Programming Language Instructor: Richard W. Vawter.
 SAP AG CSU Chico 102/14/981SAP Security Lecture MINS 298C SAP Configuration & Use: Security Copyright 1996, 1997, James R. Mensching, Gail Corbitt.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
1212 CHAPTER DATABASES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Distinguish between the physical and logical view.
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
ASP.NET Programming with C# and SQL Server First Edition
Chapter 10 Queries and Updating Part C. SQL Copyright 2005 Radian Publishing Co.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Introduction to SQL Steve Perry
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
ABAP/4 Course. General n Workbench n Program maintenance n Screen Painter n Menu Painter n Transactions n ABAP/4 Query n Translation menu.
SAP ABAP DemoNawin's Training Acadamy1. Enterprise Wide Information Systems ABAP/ 4 Programming Language Mr. RG Nawin Krishna, Bsc(cs);Msc(psychology);MBA(HR);SAP(HCM/HR),
Concepts and Terminology Introduction to Database.
Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.
Introduction to Microsoft Access Overview 1. Introduction What is Access? A relational database management system What is a Relational Database? Organized.
CODD’s 12 RULES OF RELATIONAL DATABASE
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
0 UMN 2011 ERP Terapan Dialogs Programming Session # 11.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Introduction to ABAP Selection Screens. Slide 2 Screens (Types) There are three types of screens Selection screens get parameter input for reports List.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Topic 1: Introduction to SQL. SQL stands for Structured Query Language. SQL is a standard computer language for accessing and manipulating databases SQL.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Database Lab Lecture 1. Database Languages Data definition language ( DDL ) Data definition language –defines data types and the relationships among them.
Objectives Database triggers and syntax
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 9 Database Triggers.
ABAP/4 PROGRAMMING Data Dictionary(1) 講 師:呂 昇 燦. Data Browser - SE16 ABAP Workbench tool for displaying information about table entries. You use the Data.
PL/SQLPL/SQL Oracle11g: PL/SQL Programming Chapter 9 Database Triggers.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 9 Database Triggers.
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
(SQL - Structured Query Language)
Introduction to the ABAP System. Slide 2 The Data Browser Allows us to look at the underlying table contents Use transaction code SE16.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
SAP’s Data Dictionary Learning to use it effectively FSS Technical Peer Group Meeting Wednesday November 13, 2002 Carolyn Fuller.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Delete Data Database Administration Fundamentals LESSON 3.4.
Lawson Mid-America User Group Spring 2016 Meeting.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Database Access with SQL
Introduction to Customizing Reports in SAP
CIS16 Application Programming with Visual Basic
Introduction to Customizing Reports in SAP
Chapter 7 Using SQL in Applications
Chapter 8 Advanced SQL.
Indexes and more Table Creation
Database SQL.
1. System, Application and Program
Unit – V Data Controls.
Presentation transcript:

 SAP AG CSU Chico Searching and Selecting Data from R/3 ABAP/4 class Gail Corbitt - Fall 1998

 SAP AG CSU Chico Overall Objectives Learn how to find things in the Database Learn how to select things from R/3 Manipulate the data in internal tables Display data in a report Do at least 3 assignments between now and the end of the term

 SAP AG CSU Chico Finding Data Elements in R/3 Use ABAP/4 Data Dictionary SE16 to look up tables (if you know the name of the table) SE11 to look up everything including tables SE15 to look up data elements that may exist in several tables Where used can show you programs, other tables, and logical databases where the table is used

 SAP AG CSU Chico Types of Tables Transparent Table: A real table in the Database = Table Pool Table: A real table in the database made up of several other tables, I.e. Cost centers by company code within controlling area (They appear to the user as separate tables, but are stored as one large table.) Cluster Table: No longer used -- a few hold overs from R/2 when some parent child relationships should have been stored as separate tables but were not, I.e. PO Header and PO Line Items. Internal Table: Structure that contains no data - used with a program -- can export to external table

 SAP AG CSU Chico Accessing Data in R/3 Uses 4 SQL commands in relation to tables SELECT: Reads data from a Table or a View UPDATE: Changes Data in a Table INSERT: Adds records (rows) to a Table DELETE: Removes records (rows) from a Table Basic Form SELECT data elements, * FROM Table-name [WHERE condition]. …. ENDSELECT.

 SAP AG CSU Chico Accessing Data in R/3 Operators to Use with WHERE clause EQ (Equals): = NE (Not equal to): <>, >< GT (Greater Than): > LT (Less Than): < GE (Greater Than or Equal To): >= LE (Less Than or Equal To): <= Exercise: Write a program to select all fields from T001 Modify the program to select all fields from T001 where the company code Greater Than or Equal To 3000

 SAP AG CSU Chico Accessing Data in R/3 More Uses of WHERE Clause AND: Creates a condition where all conditions must be True OR: Create a condition where at least one condition must be True NOT: Creates a condition where condition is everything but the Not clause-- Examples:  WHERE field [NOT] BETWEEN value 1 AND value 2.  WHERE field NOT value1, value2, …value n.  WHERE field NOT LIKE string. _ used as wild card for any single character % used as wild card for any string of characters

 SAP AG CSU Chico Accessing Data in R/3: ORDER BY Can add ORDER BY clause to any SELECT statement Example: ORDER BY field1, field2,… fieldn Example: ORDER BY PRIMARY KEY

 SAP AG CSU Chico Using Logical Databases Logical Database: logical model of tables specific to a single business object, I.e. Purchase Order, Sales Order, etc. Usually written by SAP-- has own selection screen Shows relationships among several tables used to maintain the single business object Hides complexity of the real table structure from the user Look at EKKO and EKPO

 SAP AG CSU Chico Using Logical Databases: GET GET command is an event that can be used to return the data from a hierarchical structure in a logical db Example: GET MARAV. Logical Database: MARAV MARM MBEWV MVKE MARCV PROPF MARD Material Header Quantity Unit View for Logical DB Material Master: Sales Data View for Logical DB MSM Forecast Parameters MM: Storage Loc/Batch Seg.

 SAP AG CSU Chico Using Logical Databases: GET GET only used with Logical Databases: triggers a new read Logical Database is not mentioned in GET Attributed from Logical DB assigned to program when GET is used START-OF-SELECTION can be used to do more than one GET; also include END-OF-SELECTION. GET MARAV. …… GET MARD. Retrieves every node in-between the 2 events. GET … LATE triggers get after rows have been read

 SAP AG CSU Chico Using Logical Databases: GET To add a condition onto a GET use CHECK CHECK includes a condition statement If CHECK fails the program exits the GET on that row If CHECK passes the GET continues processing rows. EXAMPLE: GET MARAV. CHECK MARAV-MTART = ‘T001’. WRITE: /, /, (15) MARAV-MATNR. Example checks to see if material number is T001 Similar to WHERE in SELECT

 SAP AG CSU Chico Programming Assignment Using Program 1 in Report Painter as the example Find all the cost transactions for 1997, Controlling area 2000, Cost Center Group H3000, Periods 1-12 for All Cost Elements. Display the Actual Costs in a report. Do not use the CCSS Structure Find the Logical Database or the Tables you need (you can use CCSS as a reference) Extra Credit to include Planned Costs and Variance so that the report looks like your first report writer assignment.