SlideShare a Scribd company logo
University of
Southern California
Enterprise Wide Information Systems
ABAP/ 4 Programming Language
Instructor: Richard W. Vawter
University of
Southern California
Objectives
 Upon completion of this topic, you should be able to:
 Define the general terms associated with the ABAP/4
Workbench.
 Work with the ABAP/4 Object Browser.
 Create a program object.
 Access tables to generate a report.
University of
Southern California
Topics
 ABAP/4 Development Workbench
 ABAP/4 Data Dictionary
 ABAP/4 Repository Information
University of
Southern California
ABAP/4 Development Workbench Architecture
 The Development Workbench provides access to
SAP’s development tools.
Reporting
ABAP/4
Editor
ABAP/4
Dictionary
Menu
Painter
Screen
Painter
Data
Modeller
Function
Modules
R/3
Repository
University of
Southern California
ABAP/4 Development Workbench Architecture
 All programs are stored in the R/3 Repository.
 A program is simply an object.
 All definitions are kept in the data dictionary.
 e.g. variable descriptions and parameters of fields.
 Double-clicking will navigate you to wherever the
object is stored.
 Remote call functions let you access other systems.
University of
Southern California
Reporting and Dialog Programming
 In reporting you use the ABAP/4 Open SQL to read data from
the R/3 database
 A report consists of a selection screen on which you define the
dataset you wish to display, and a list which displays the data
itself.
 In dialog programming you use the screen painter to create
screens and program the sequence in which they appear.
SelectionSelection
ScreenScreen
ListList
ScreenScreen
ScreenScreen
0100001000
ScreenScreen
02000200
ABAP/4 Open SQL
University of
Southern California
ABAP/4 Program Objects
 You can use the ABAP/4 Development Workbench to
create ABAP/4 programs.
 You can call objects from the object list generated from
the Object Browser’s initial screen.
Development ClassDevelopment Class
Dev. Class object type
Dictionary objects
Programs
Function groups
Includes
Transactions
Logical databases
etc.
University of
Southern California
ABAP/4 Programs
 All ABAP/4 programs (objects) are made up of:
 Source code
 Text elements
 Attributes
AttributesAttributes
Source CodeSource Code Text Elements
• Titles
• Headers
• Text symbols
Text Elements
• Titles
• Headers
• Text symbols
ABAP/4 Program
University of
Southern California
Creating Programs
 Begin by first specifying a development class.
 Development classes are categories of SAP objects (e.g.
program object).
 Customer-specific program names begin with Y or Z.
 If you are creating a test object which you do not wish
to be transported, choose Local Object.
 The development class is then set to $TMP automatically.
University of
Southern California
The ABAP/4 Editor
 The ABAP/4 Editor can run in three different modes:
1. Command mode
2. PC mode with line numbering
3. PC mode without line numbering
 You can switch between editor modes by choosing
Settings → Editor mode
 It is recommended that you do your work in PC mode with line
numbering
University of
Southern California
ABAP/4 Syntax
 An ABAP/4 program consists of individual statements
 Each statement must end with a period.
 The first word of a statement is known as the key word.
 Words are separated from each other by at least one blank.
 Statements can be indented.
 Statements can extend over several lines.
 You can concatenate several consecutive statements
with an identical key word (e.g. WRITE: ).
 Follow the key word with a colon.
 Separate each concatenated part with a comma.
 End the lines of the concatenated statements with a period.
University of
Southern California
ABAP/4 Syntax (cont.)
 You can insert comments into a program in two ways:
1. An asterisk (*) in column 1 flags the whole line as a comment.
2. A quotation mark (“) within a line flags the remainder of the
line as a comment.
University of
Southern California
Tables and the Select Statement
 The Tables: <name> statement declares an ABAP/4
Dictionary table in the ABAP/4 program and allocates a
table work area with the structure of <name>.
 The Select statement reads the table <name> line by
line and places each line read in the table work area.
 Note: Double-clicking on the Tables: statement in the editor will
display how the table is defined in the data dictionary.
Report ZDEMO1.
TABLES: SBOOK.
SELECT * FROM SBOOK
WHERE CARRID = ‘LH’.
ENDSELECT.
WRITE : CARRID, FLTDATE.
Report ZDEMO1.
TABLES: SBOOK.
SELECT * FROM SBOOK
WHERE CARRID = ‘LH’.
ENDSELECT.
WRITE : CARRID, FLTDATE.
Table SBOOK
Read table
Table work area
University of
Southern California
Accessing Tables (In summary…)
F1 F2 F3 Fn
SFLIGHT table work area
Report ZDEMO1.
TABLES: SBOOK.
SELECT * FROM SBOOK
WHERE CARRID = ‘LH’.
ENDSELECT.
WRITE : CARRID, FLTDATE.
Report ZDEMO1.
TABLES: SBOOK.
SELECT * FROM SBOOK
WHERE CARRID = ‘LH’.
ENDSELECT.
WRITE : CARRID, FLTDATE.
Program
SBOOK
F1 F2 F3 Fn
Database
SBOOK
F1
F2
F3
Fn
DDIC
Report
Definition in the Data
Dictionary
University of
Southern California
Topics
 ABAP/4 Development Workbench
 ABAP/4 Data Dictionary
 ABAP/4 Repository Information
University of
Southern California
Basic Dictionary Objects
 Tables - collection of records of data in fields.
 Data elements - contain the semantic definition (e.g.
short description) of what is contained w/in a field.
 Domains - describe the technical attributes of the
table’s fields (e.g. field type, length, value range, etc.).
Table field
Table
Data element
Domain
uses
uses
University of
Southern California
Structures and Aggregated Objects (Views)
 Besides defining tables stored in the database, you can
also define the structure of data which occurs when
performing calculations in programs, or when passing
data between programs.
 Structures are defined and activated in the ABAP/4 Dictionary.
 While data can be permanently stored in the database, data in
structures exists only during the runtime of a program.
 Aggregated objects are objects which come from
several different tables.
 Views are application-specific views of different ABAP/4
Dictionary tables.
 Views allow you to gather information from fields of different
tables and present it to users in the form they require.
University of
Southern California
ABAP/4 Dictionary (In summary)
 The ABAP/4 Dictionary is the central facility in the
system where you can create and maintain data
declarations, tables, structures and aggregated
objects.
 Since it is integrated into the ABAP/4 Development
Workbench as an active component, any change made
in the ABAP/4 Dictionary takes immediate effect in
programs affected.
University of
Southern California
Topics
 ABAP/4 Development Workbench
 ABAP/4 Data Dictionary
 ABAP/4 Repository Information
ABAP/4 Repository Information
 The ABAP/4 Repository Information System allows you
to obtain information about objects (tables, fields,
domains, etc.) in the ABAP/4 Repository.
 You can find anything that is used in programs by
using the Data Repository.
Data
Repository
Where-used lists
Display all objects of type Y
which use attribute X
Search by attributes
Display all objects of type X
with attribute Y
Information about
tables and
relationships
Display all table fields
with check table X
Modified objects
Display all objects of
type X which were changed by
user Y on date DDMMYY
?
?
?
?
University of
Southern California
ABAP/4 Repository (In summary)
 The ABAP/4 Repository Information System allows
search for ABAP/4 Development Workbench objects by
specifying required attributes.
From the ABAP/4 Development Workbench:
Overview → Repository Infosy.

More Related Content

What's hot

Sap abap material
Sap abap materialSap abap material
Sap abap material
Kranthi Kumar
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
Reports 6i
Reports 6iReports 6i
Reports 6i
Senthamarai B
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
PeterHBrown
 
Top 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.comTop 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.com
bigclasses.com
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
kingshuk_goswami
 
d2k
d2kd2k
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
CHANDRASEKHAR REDROUTHU
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
Rajesh Ch
 
Compare And Merge Scripts
Compare And Merge ScriptsCompare And Merge Scripts
Compare And Merge Scripts
Octavian Nadolu
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
venkata karthik
 
2 designer
2 designer2 designer
2 designer
Ravindra Gangwar
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form material
Rajesh Ch
 
Chapter09
Chapter09Chapter09
Chapter09
Rajesh Mandava
 
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps FormsSPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
Rebekka Aalbers-de Jong
 
Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1
Kranthi Kumar
 
Oracle reports
Oracle reportsOracle reports
Oracle reports
Lacc Corona
 
D2 k word_format
D2 k word_formatD2 k word_format
D2 k word_format
Bharath Chowdhary
 
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
 Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
Dom Bortruex
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1
Kranthi Kumar
 

What's hot (20)

Sap abap material
Sap abap materialSap abap material
Sap abap material
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
 
Reports 6i
Reports 6iReports 6i
Reports 6i
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
Top 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.comTop 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.com
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
 
d2k
d2kd2k
d2k
 
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
 
Compare And Merge Scripts
Compare And Merge ScriptsCompare And Merge Scripts
Compare And Merge Scripts
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
 
2 designer
2 designer2 designer
2 designer
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form material
 
Chapter09
Chapter09Chapter09
Chapter09
 
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps FormsSPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
SPS Oslo 18 Spice Up your modern SharePoint list with Power Apps Forms
 
Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1
 
Oracle reports
Oracle reportsOracle reports
Oracle reports
 
D2 k word_format
D2 k word_formatD2 k word_format
D2 k word_format
 
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
 Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1
 

Similar to Abap

SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
piyushchawala
 
Abap top part_3
Abap top part_3Abap top part_3
Abap top part_3
Kapil_321
 
abapin21days.pdf
abapin21days.pdfabapin21days.pdf
abapin21days.pdf
sampath k
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
Kaustav Pyne
 
Abap sample
Abap sampleAbap sample
SAP ABAP Training
SAP ABAP TrainingSAP ABAP Training
SAP ABAP Training
mindmajixtrainings
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
CIS339
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
7Fase1
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
jskdhklsduopuo0980
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
jackiechaner
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
venkata karthik
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on line
Milind Patil
 
1000 sap-interview-qa
1000 sap-interview-qa1000 sap-interview-qa
1000 sap-interview-qa
SiddheshSirsat
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
Kranthi Kumar
 
POS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALSPOS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALS
Sharon Reynolds
 
Oracle apps-technical-tutorial
Oracle apps-technical-tutorialOracle apps-technical-tutorial
Oracle apps-technical-tutorial
Cheikh Ahmadou Bamba DIOP
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical Manual
Hossam El-Faxe
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
Mahmoud Samir Fayed
 
Sap abap training Overview
Sap abap training OverviewSap abap training Overview
Sap abap training Overview
raviadm100
 
Abap training material
Abap training material Abap training material

Similar to Abap (20)

SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
 
Abap top part_3
Abap top part_3Abap top part_3
Abap top part_3
 
abapin21days.pdf
abapin21days.pdfabapin21days.pdf
abapin21days.pdf
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
 
Abap sample
Abap sampleAbap sample
Abap sample
 
SAP ABAP Training
SAP ABAP TrainingSAP ABAP Training
SAP ABAP Training
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Cis336 week 4 i lab 4
Cis336 week 4 i lab 4Cis336 week 4 i lab 4
Cis336 week 4 i lab 4
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on line
 
1000 sap-interview-qa
1000 sap-interview-qa1000 sap-interview-qa
1000 sap-interview-qa
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
POS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALSPOS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALS
 
Oracle apps-technical-tutorial
Oracle apps-technical-tutorialOracle apps-technical-tutorial
Oracle apps-technical-tutorial
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical Manual
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
 
Sap abap training Overview
Sap abap training OverviewSap abap training Overview
Sap abap training Overview
 
Abap training material
Abap training material Abap training material
Abap training material
 

Recently uploaded

Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Fernanda Palhano
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
wyddcwye1
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 

Recently uploaded (20)

Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 

Abap

  • 1. University of Southern California Enterprise Wide Information Systems ABAP/ 4 Programming Language Instructor: Richard W. Vawter
  • 2. University of Southern California Objectives  Upon completion of this topic, you should be able to:  Define the general terms associated with the ABAP/4 Workbench.  Work with the ABAP/4 Object Browser.  Create a program object.  Access tables to generate a report.
  • 3. University of Southern California Topics  ABAP/4 Development Workbench  ABAP/4 Data Dictionary  ABAP/4 Repository Information
  • 4. University of Southern California ABAP/4 Development Workbench Architecture  The Development Workbench provides access to SAP’s development tools. Reporting ABAP/4 Editor ABAP/4 Dictionary Menu Painter Screen Painter Data Modeller Function Modules R/3 Repository
  • 5. University of Southern California ABAP/4 Development Workbench Architecture  All programs are stored in the R/3 Repository.  A program is simply an object.  All definitions are kept in the data dictionary.  e.g. variable descriptions and parameters of fields.  Double-clicking will navigate you to wherever the object is stored.  Remote call functions let you access other systems.
  • 6. University of Southern California Reporting and Dialog Programming  In reporting you use the ABAP/4 Open SQL to read data from the R/3 database  A report consists of a selection screen on which you define the dataset you wish to display, and a list which displays the data itself.  In dialog programming you use the screen painter to create screens and program the sequence in which they appear. SelectionSelection ScreenScreen ListList ScreenScreen ScreenScreen 0100001000 ScreenScreen 02000200 ABAP/4 Open SQL
  • 7. University of Southern California ABAP/4 Program Objects  You can use the ABAP/4 Development Workbench to create ABAP/4 programs.  You can call objects from the object list generated from the Object Browser’s initial screen. Development ClassDevelopment Class Dev. Class object type Dictionary objects Programs Function groups Includes Transactions Logical databases etc.
  • 8. University of Southern California ABAP/4 Programs  All ABAP/4 programs (objects) are made up of:  Source code  Text elements  Attributes AttributesAttributes Source CodeSource Code Text Elements • Titles • Headers • Text symbols Text Elements • Titles • Headers • Text symbols ABAP/4 Program
  • 9. University of Southern California Creating Programs  Begin by first specifying a development class.  Development classes are categories of SAP objects (e.g. program object).  Customer-specific program names begin with Y or Z.  If you are creating a test object which you do not wish to be transported, choose Local Object.  The development class is then set to $TMP automatically.
  • 10. University of Southern California The ABAP/4 Editor  The ABAP/4 Editor can run in three different modes: 1. Command mode 2. PC mode with line numbering 3. PC mode without line numbering  You can switch between editor modes by choosing Settings → Editor mode  It is recommended that you do your work in PC mode with line numbering
  • 11. University of Southern California ABAP/4 Syntax  An ABAP/4 program consists of individual statements  Each statement must end with a period.  The first word of a statement is known as the key word.  Words are separated from each other by at least one blank.  Statements can be indented.  Statements can extend over several lines.  You can concatenate several consecutive statements with an identical key word (e.g. WRITE: ).  Follow the key word with a colon.  Separate each concatenated part with a comma.  End the lines of the concatenated statements with a period.
  • 12. University of Southern California ABAP/4 Syntax (cont.)  You can insert comments into a program in two ways: 1. An asterisk (*) in column 1 flags the whole line as a comment. 2. A quotation mark (“) within a line flags the remainder of the line as a comment.
  • 13. University of Southern California Tables and the Select Statement  The Tables: <name> statement declares an ABAP/4 Dictionary table in the ABAP/4 program and allocates a table work area with the structure of <name>.  The Select statement reads the table <name> line by line and places each line read in the table work area.  Note: Double-clicking on the Tables: statement in the editor will display how the table is defined in the data dictionary. Report ZDEMO1. TABLES: SBOOK. SELECT * FROM SBOOK WHERE CARRID = ‘LH’. ENDSELECT. WRITE : CARRID, FLTDATE. Report ZDEMO1. TABLES: SBOOK. SELECT * FROM SBOOK WHERE CARRID = ‘LH’. ENDSELECT. WRITE : CARRID, FLTDATE. Table SBOOK Read table Table work area
  • 14. University of Southern California Accessing Tables (In summary…) F1 F2 F3 Fn SFLIGHT table work area Report ZDEMO1. TABLES: SBOOK. SELECT * FROM SBOOK WHERE CARRID = ‘LH’. ENDSELECT. WRITE : CARRID, FLTDATE. Report ZDEMO1. TABLES: SBOOK. SELECT * FROM SBOOK WHERE CARRID = ‘LH’. ENDSELECT. WRITE : CARRID, FLTDATE. Program SBOOK F1 F2 F3 Fn Database SBOOK F1 F2 F3 Fn DDIC Report Definition in the Data Dictionary
  • 15. University of Southern California Topics  ABAP/4 Development Workbench  ABAP/4 Data Dictionary  ABAP/4 Repository Information
  • 16. University of Southern California Basic Dictionary Objects  Tables - collection of records of data in fields.  Data elements - contain the semantic definition (e.g. short description) of what is contained w/in a field.  Domains - describe the technical attributes of the table’s fields (e.g. field type, length, value range, etc.). Table field Table Data element Domain uses uses
  • 17. University of Southern California Structures and Aggregated Objects (Views)  Besides defining tables stored in the database, you can also define the structure of data which occurs when performing calculations in programs, or when passing data between programs.  Structures are defined and activated in the ABAP/4 Dictionary.  While data can be permanently stored in the database, data in structures exists only during the runtime of a program.  Aggregated objects are objects which come from several different tables.  Views are application-specific views of different ABAP/4 Dictionary tables.  Views allow you to gather information from fields of different tables and present it to users in the form they require.
  • 18. University of Southern California ABAP/4 Dictionary (In summary)  The ABAP/4 Dictionary is the central facility in the system where you can create and maintain data declarations, tables, structures and aggregated objects.  Since it is integrated into the ABAP/4 Development Workbench as an active component, any change made in the ABAP/4 Dictionary takes immediate effect in programs affected.
  • 19. University of Southern California Topics  ABAP/4 Development Workbench  ABAP/4 Data Dictionary  ABAP/4 Repository Information
  • 20. ABAP/4 Repository Information  The ABAP/4 Repository Information System allows you to obtain information about objects (tables, fields, domains, etc.) in the ABAP/4 Repository.  You can find anything that is used in programs by using the Data Repository. Data Repository Where-used lists Display all objects of type Y which use attribute X Search by attributes Display all objects of type X with attribute Y Information about tables and relationships Display all table fields with check table X Modified objects Display all objects of type X which were changed by user Y on date DDMMYY ? ? ? ?
  • 21. University of Southern California ABAP/4 Repository (In summary)  The ABAP/4 Repository Information System allows search for ABAP/4 Development Workbench objects by specifying required attributes. From the ABAP/4 Development Workbench: Overview → Repository Infosy.