Study Reference
Study Reference
9 modifying data in db 18
6 Debugging programs 15
13 Modularizing programs 22
11 Selection screens 39
min
14
20
12:30
3
9
6
7
7
3
5
9
11 1 hr
40
3
10
2
16
What is SAP Why do we need ERP Beginner Tutorial.mp4
SAP Tutorial for beginners Part 1 - SAP ERP.mp4
Video Lesson 1 SAP System Architecture and flow of a program.mp4
Video Lesson 2.1 SAP Object Navigator and Repository.mp4
Video Lesson 2.2 Developing Programs and Organizing Developments
Video Lesson 2.3 Creating Packages Part 1.mp4
Video Lesson 2.4 Creating Packages -Part 2.mp4
Video Lesson 2.5 Developing a Program in ABAP.mp4
Video Lesson 2.6 Creating Transactions in SAP.mp4
Video Lesson 2.7 How to add SAP Transactions to yo.mp4
Video Lesson 2.7 How to add SAP Transactions to your Personal Favourites
Video Lesson 2.8 How to create an ABAP Program.mp4
Video Lesson 2.9 ABAP Case Study Flight Informatio.mp4
Video Lesson 2.9 ABAP Case Study Flight Information Report.mp4
Video Lesson 3.1 Data Modeling and Abap Dictionary.mp4
Video Lesson 3.2 How to create Tables.mp4
Video Lesson 3.3 Table Maintenance Generator.mp4
Video Lesson 3.4 View The Data In Your Table.mp4
Video Lesson 3.5 Case Study - Airline Relational D.mp4
Video Lesson 3.5 Case Study - Airline Relational Data Model.mp4
Video Lesson 4.1 Working With Elementary Data Obje.mp4
Video Lesson 4.1 Working With Elementary Data Objects.mp4
Video Lesson 4.10 ABAP Loops.mp4
Video Lesson 4.11 ABAP Search Helps F4.mp4
Video Lesson 4.12 ABAP Elementary Search Help.mp4
Video Lesson 4.13 Case Study Flight Information Re.mp4
Video Lesson 4.13 Case Study Flight Information Report Summary.m
Video Lesson 4.2 Basic Abap Statements.mp4
Video Lesson 4.3 Performing ABAP Calculations.mp4
Video Lesson 4.4 ABAP Calculator.mp4
Video Lesson 4.5 ABAP Structures.mp4
Video Lesson 4.6 How to create ABAP Structures.mp4
Video Lesson 4.7 Dialog Messages.mp4
Video Lesson 4.8 ABAP IF statement and CASE.mp4
Video Lesson 4.9 ABAP Logical Expressions.mp4
Video Lesson 5.1 Read SAP Database Tables.mp4
Video Lesson 5.2 SAP Data Retrieval Using A Select Loop.mp4
Video Lesson 5.2 SAP Data Retrieval Using A Select.mp4
Video Lesson 5.3 ABAP Internal Tables And Work Are.mp4
Video Lesson 5.3 ABAP Internal Tables And Work Areas.mp4
Video Lesson 5.4 Create an Index in SAP.mp4
Video Lesson 5.5 JOIN tables in ABAP.mp4
Video Lesson 5.6 Create a VIEW in ABAP.mp4
Video Lesson 5.7 For All Entries in ABAP.mp4
Video Lesson 5.8 Authorization Check.mp4
Video Lesson 5.9 Case Study - Flight Schedule For San Francisco
Video Lesson 5.9 Case Study - Flight Schedule For.mp4
Video Lesson 6.1 SAP Runtime Analysis Tool.mp4
Video Lesson 6.2 SAP Code Inspector.mp4
Video Lesson 7.1 ABAP Subroutines and procedures.mp4
Video Lesson 7.2 Parameter Passing - Structures An.mp4
Video Lesson 7.2 Parameter Passing - Structures And Internal Tab
Video Lesson 7.3 ABAP Table Types.mp4
Video Lesson 7.4 SAP Implementing A Subroutine Cal.mp4
Video Lesson 7.4 SAP Implementing A Subroutine Call.mp4
Video Lesson 7.5 ABAP Include Programs.mp4
Video Lesson 8.1 ABAP Events.mp4
Video Lesson 9.1 ABAP Lists.mp4
Video Lesson 9.2 ABAP Text Symbols.mp4
Video Lesson 9.3 Generating A Details List - AT LI.mp4
Video Lesson 9.3 Generating A Details List - AT LINE SELECTION.m
Video Lesson 9.4 Application Example - Flight Deta.mp4
Video Lesson 9.5 Selection Screen -.mp4
Video Lesson 9.6 Screen.mp4
Video Lesson 9.7 Screen Pushbuttons.mp4
Video Lesson 9.8 SAP User Interface.mp4
Video Lesson 10.1 ABAP Function Modules.mp4
Video Lesson 10.2 ABAP Methods.mp4
Video Lesson 10.3 SAP ALV Grid Control.mp4
Video Lesson 10.4 SAP BAPI -.mp4
Video Lesson 11.1 Adjusting The Sap Standard Softw.mp4
Video Lesson 11.1 Adjusting The Sap Standard Software.mp4
Video Lesson 11.2 SAP User and Customer Exits.mp4
Video Lesson 11.3 SAP Menu Exit, Screen Exit and F.mp4
Video Lesson 11.4 SAP Append Structure - Table enh.mp4
Video Lesson 11.4 SAP Append Structure - Table enhancement.mp4
Video Lesson 12.1 Advanced Selection Screens.mp4
Video Lesson 12.2 SAP ALV example to update Z tabl.mp4
Video Lesson 12.2 SAP ALV example to update Z tables.mp4
Video Lesson 12.3 SAP Table Control.mp4
Video Lesson 12.4 ABAP Debugger -.mp4
Video Lesson 13.1 Web Dynpro ABAP.mp4
Video Lesson 14.1 - SAP Program with Adobe Forms.mp4
Video Lesson 14.2 Record SAP transactions step-by-step.mp4
Video Lesson X.1 - Display Data Dynamically using ABAP Field Sym
Video Lesson X.2 - ABAP Debugger Creating Watchpoints.mp4
Video Lesson X.3 - ABAP Debugger - Debug a Pop Up Window.mp4
Video Lesson X.4 - Find related tables of SAP transactions.mp4
Video Lesson Y.1 - OO (Object Oriented) ABAP - Introduction.mp4
Video Lesson Y.2 - OO ABAP - Classes, attributes & methods.mp4
Video Lesson Y.3 - OO ABAP - Constructors.mp4
Video Lesson Y.4 - OO ABAP - Inheritance and Casting.mp4
Video Lesson Y.5 - OO ABAP - Narrowing and Widening Cast.mp4
Video Lesson Y.6 - OO ABAP - Interfaces & Polymorphism.mp4
se16n Modify: “&sap_edit” (uase16n)
sd11 Data model
sm30, sm31 SAP Table view maintenance
se54 (SOBJ) Table / View Cluster
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Introduction to ERP
Introduction to SAP R/3
SAP R/3 Services
Introduction to ABAP/4 & ABAP Work Bench Tools
ABAP Data types
ABAP Programming Structures
Steps to Write & Create SAP Program
Tips for Writing a Program in Real Time
Internal Table & difference between database table & internal table
Reading Data from Body to Work Area (or) Header Line
(1. LOOP….ENDLOOP, 2. READ)
Selection Screen (1. Select-options, 2. Ranges, 3. Parameters )
Other SELECT-OPTIONS keywords (1. Obligatory, 2. No Intervals, 3. No-Extension, 4. No-Display)
Other Important Keywords for Internal Table
(1. Append, 2. Sort, 3. Delete Adjacent Duplicates, 4. Collect 5. Modify )
6. Deleting Data from Internal Table by (1. Fresh, 2. Refresh, 3. Clear, 4. Delete )
7. Describe Keyword
8. Coping data b/w work areas (1. Move, 2. Move-Correspondig)
9. Coping data b/w internal tables (1. Loop…….Endloop, 2. Append Lines)
Control Break Statements (1. At First, 2. At Last, 3. At New, 4. At Change, 5. At End )
Insert keyword & Syntaxes for Internal Tables
System Fields for Internal Table
DML Operations on Database Table (insert, update, delete, modify keywords)
Types of Internal Tables
Data Dictionary (9 objects)
1. Database Table
2. Structure (.include & Append Structure)
3. View(Database view, Projection view)
4. Search Help (Elementary search help, Collective search help)
Table Maintenance Generator (TMG) (TCode, Default values, Check boxes)
Text Table
Some Important Steps for Working with Standard Tables
Types of Tables (Transparent, Cluster, Pooled Tables)
Open SQL Statements & Native SQL Statements
Buffering (Single Record, Generic, Full Buffering)
MODULES(1. MM Module)
Inner Joins
Table Fields & Links (1. LFA1, 2. EKKO, 3. EKPO)
Message Handling Modularization Techniques
(5) 1. Subroutines (Internal Subroutine, External Subroutine)
Break Point (1. Static Break Point 2. Dynamic Break Point)
Pass by Value & Pass by Reference
Table Fields & Links (1. MKPF, 2. MSEG)
Function Module (1. Normal, 2. Remote Enabled, 3. ALv)
Include Program
Field Symbol
FOR ALL ENTRIES
Table Fields & Links (1. MARA, 2. MAKT, 3. TSPAT)
2. SD Module
String Operations (shift, translate, replace, strlen, offset functionality, split, concatenate, condense)
Looping Statements (1. Conditional, 2. Unconditional)
CONTINUE, CHECK, EXIT keywords
Mathematical Operations (1. Frac, 2. Ceil 3. Floor, 4. Abs, 5. Rem, 6. Mod, 7. Sign, 8. Trunc, 9. Div )
SAP Memory & ABAP Memory
Support Project
System Landscape
Version Management
Sub Objects in ABAP Editor (1. Source Code, 2. Variants, 3. Attributes, 4. Documentation, 5. Text Elements)
Interview Questions ABAP Editor
Interview Questions Internal Tables
Interview Questions Data Dictionary
LFA1 Table
EKKO Table
EKPO Table
MKPF Table
MSEG Table
MARA Table
MAKT & TSPAT Tables
ERP
ERP: Enterprise Resource Planning
ERP is a package under which all the business resources are integrated in one system
Enterprise-------organization
Resource--------FICO, HR, MM, PP, SD, CRM
Types of ERP: 1. High End ERP 2. Mid Range ERP
1. High End ERP: These ERPs are implemented in large scale industries
In these ERPs all the tables, programs & applications are predefined
Example:
1. SAP R/3 (60000+ applications, 400000+ tables, 55+ modules)
2. Oracle Apps (for Finance)
2.1. Oracle Finance
2.2. Oracle Manufactures
2.3. Oracle HRMS
3. SIEBEL (for CRM)
4. People Soft (for HR)
BASIS Consultant:
Roles:
1. Installation
2. Maintenance
3. Configuration
4. Customization (or) Administration
Applications:
These are collection of Screens
Each Screen is a collection of Fields
Use---Applications are used by Clients (or) End Users
Create---Applications are created by Abapars (or) Technical Consultant (or) ABAP Consultant
Customized Data----Applications data customized by Functional Consultant
Functional Consultant:
Roles:
1. Customization of Data
2. Getting requirements from Clients
3. Preparing Functional Documents
4. Preparing End User Manuals (or) Snapshots
5. Providing end user Training
Products:
These are called Objects
These are created by Programming
14/0
Features of SAP:
1. Designed based on RDBMS
2. Designed based on R/3 Architecture
3. Database independent
4. Supports all types of industry specific solutions
5. International package available in 40 languages
6. It can be customized using ABAP language
7. Best ERP for FI, SD, MM, PP, HR, CR
8. Supports Client-Server Technology
9. Highly versatile (Operating System independent)
10.Supports web based application softwares
ABAP/4
Advanced Business Application Programming 4th Generation Language
All SAP applications are designed & developed using ABAP Language
It is a high level language
Features of ABAP:
1. It was designed based on ‘C’ language
2. It is a platform independent language
3. It is a case insensitive language
4. It is database independent
5. It is truly business oriented language
6. It is rich in data types
7. It was designed based on Object Oriented Programming
8. It is an event driven programming language
9. It is highly user friendly
10.It supports web based applications also
ABAP Programming
ABAP Data Types:
ABAP data types are classified into 4 categories They are: 1. Numeric 2. Character 3. String 4. Hexadecimal
1. Numeric:
These are classified into 3 categories
They are: i) Integer (I) ii) bPacked Decimal (P) iii) Floating point (F)
i) Integer (I):
It holds integer values Ex: 102, 55, 74, …..
ii) Packed Decimal (P):
It returns accurate values with decimal values
It provides accuracy in ABAP programming Ex: 102.55, 56.235, …..
iii) Floating Point (F):
It improves performance in ABAP programming by rounding of the value to nearest decimal Ex: 22.63-----23, 58.232-----58
2. Character:
These are classified into 3 categories:
They are: i) Character (C) ii) Date (D) iii) Time (T)
i) Character (C): It holds character value provided in ‘ ’ (single quotes)
Note: In ABAP programming the default data type is Character ii) Date: Use Date data type to store date values The default
Rohini kumar
SAP-ABAP
Programming Structures: These are 2 types They are: 1. Pre defined Programming Structure 2. User defined Programming Struc
SAP-ABAP
Note-5: : is known as Chain Operator It provides the repetition of the Declarative Part Requirement: Transfer Customer Mast
Presentation Server
satya Hyderabad
Application Server
Rohini kumar
SAP-ABAP
20-08-2014 Steps to write & execute SAP program: Double click on SAP Logon on Desktop You will find a Logon Pad Dou
SAP-ABAP
All Executable Objects are Report Programs Note-4: On top of the program in Comment Section you should provide 1. Technical
Comment Section
* provide Work Area --------- comment line DATA: BEGIN OF WA_KNA1, CUSTOMER(10) TYPE C, NAME(20) TYPE C, CITY(20)
SAP-ABAP
Select Ctrl+F3 (or) Candle Icon to activate. You will find an Inactive Objects pop-up then press Enter With activation Objects
Select Debugging button (shift+F5) By default you will find New Debugger Screen Select Debugger--switch to Classical Debugg
New Debugger: Currently in real time we are working with only New Debugger It is providing additional features compare to
Rohini kumar
SAP-ABAP
Tips for Writing a Program in Real Time: 1. Always start a program with Y (or) Z followed by Module name Ex-1: MM module ZMM
Rohini kumar
SAP-ABAP
INTERNAL TABLES 2. Internal Table: Internal table is a temporary table created in RAM in Application Server It is created &
SAP-ABAP
Note: 1. With above syntax an Internal table it_kna1 is crated in Application Server 2. You can provide any name. But in real time
Rohini kumar
SAP-ABAP
22-08-2014 Reading Data from Body to Work Area (or) Header Line: 1. LOOP ……….. ENDLOOP 2. READ keywords 1. LOOP …
REPORT ZSD_LOOPENDLOOP. * provide internal table DATA: BEGIN OF it_kna1 OCCURS 0, customer(20) TYPE C, name(20
Rohini kumar
SAP-ABAP
Debugging: Internal Table Go to SE38 Program: ______ which you want to debug Select Debugging button Select Tables tab (sta
Note: You will find a Cap symbol which indicates Header Line (holds only single record) Select F5 for single step debugging Note
Rohini kumar
SAP-ABAP
Pg)
REPORT ZSD_ INTERNAL_WORKAREA. * provide internal table & work area TYPES: BEGIN OF ty_kna1, customer (20) TYPE
Note: 1. Using TABLE OF you can create your own body 2. Using TYPES keyword Structures are created in ABAP programming
Rohini kumar
SAP-ABAP
23-08-2014 2. READ: It reads a single record from Body to Header Line (or) Work Area Syntax: READ TABLE it[INTO wa] [INDEX
Rohini kumar
SAP-ABAP
SELECTION-SCREEN: Using Selection Screen you can create a selection screen based on given requirement (Input Values, Radio
100 100
TO
With above syntax system will create an implicit Internal Table with following fields Low High Sign Option 100 200 I (including)
SELECT kunnr name1 ort01 FROM kna1 INTO TABLE it_kna1 WHERE kunnr IN s_kunnr.
* Appling processing logic
LOOP AT it_kna1 INTO wa_kna1.
WRITE:/10 wa_kna1-customer, 30 wa_kna1-name, 60 wa_kna1-city.
ENDLOOP.
Text Elements: Using text elements (text-000 to text-009) you can provide field labels in selection screen
Double click on Text-000
You will find a pop-up Yes
Provide Text: Enter Customer Code
Select Selection Texts tab
Provide Text: Customer Code
Activate the screen (Ctrl+F3)
Go to back (F3)
Note: Using Tables work area system will create a Work Area with all the fields of kna1 table.
In programming it is mandatory to declare for declaring select-options Syntax for Creating Block:
SELECTION-SCREEN: BEGIN OF BLOCK FRAME TITLE
ultants, they will set time & event related to it
ault SAP format for date is YYYYMMDD iii) Time: Use Time data type to store time values The default SAP format for time is HHMMSS 3.
Structure Pre defined Programming Structure: It is given by SAP It contains Tables, Structures, Type groups,……….etc User defined Prog
Master Data from Database Server to Application Server & from Application Server to Presentation Server Solution: Select kunnr name1 ORT0
Double click on Development (121.241.50.175) Provide Client: 800 (only for practice purpose) User: user1 to user10 Password: Rgsabap
nical Consultant name 2. Functional Consultant name 3. Objective of the program 4. Transport Request number 5. Date of Creation (or) Chang
Y(20) TYPE C, END OF WA_KNA1. * provide execution logic SELECT KUNNR NAME1 ORT01 FROM KNA1 INTO WA_KNA1. * creating virtu
ects are ultimately stored in Database Server With activation Objects can be integrated with each other in SAP Select F8 to execute a pro
bugger Under Field Names: type wa_kna1-customer, wa_kna1-name, wa_kna1-city & press Enter Select F5 for single step debugging Select
e to Old Debugger Working: Provide Program:_______ name Select Debugging button Select Desktop1 tab Under Variable: type wa
ZMM_Material_Details Ex-2: SD module ZSD_Sales_Register Ex-3: HR module ZHR_Employee_Details 2. Provide Apt Title for a program 3.
ed & filled with data during run time (execution time) Once execution is performed it is rolled out (or) discarded Note: Use Internal table for s
time Internal table should always begins with it_ (or) i_ followed by table name 3. With BEGIN option Header Line is created & OCCURS optio
OP ……… ENDLOOP: It reads multiple records (record by record) from Body to Header Line (or) Work Area Syntax: LOOP AT it[INTO wa] [FR
e(20) TYPE C, city(20) TYPE C, END OF it_kna1. * provide extraction logic SELECT kunnr name1 ort01 FROM kna1 INTO TABLE it_kna1. * A
b (starting from 6th option) Table: it_kna1 & press Enter
Note: 1. Table keyword will transfer the data directly to Internal Table to Body 2. Always use Table keyword in select statement if you are worki
YPE C, name(20) TYPE C, city(20) TYPE C, END OF ty_kna1. DATA: wa_kna1 TYPE ty_kna1, it_kna1 TYPE TABLE OF ty_kna1. * provide ex
ming 3. In ABAP programming always create Objet (Work Area & Body) based on Structures 4. Avoid creating Internal Table with OCCURS cla
NDEX n][WITH KEY keyexpression] [TRANSPORTING fieldname] [Binary Serach] READ TABLE it: Reads a single record from Body to Hea
Radio Buttons, Check Boxes…………..) Input Values: 1. You can create with ------ Select-Options 2. You can create with ------ Parameters 3. You
ding) BT (between) Note: The default comparison operator for select-options in ‘IN’ Pg) * provide tables work area TABLES kna1. * provide s
mat for time is HHMMSS 3. String (String): A group of characters combined to form a String 4. Hexadecimal (HX): It is for SAP graphics manage
…….etc User defined Programming Structure: These are 2 types 1. Work Area 2. Internal Table 1. Work Area: Work Area is a Structure (grou
Select kunnr name1 ORT01 from KNA1 into wa_KNA1. ----- Data transfer from Database Server to Application Server (Work Area) Write:/10 w
er10 Password: Rgsabap You will find SAP Easy Access screen (Screen 0) On top of the screen you will find cursor blinking at Command
Date of Creation (or) Change Writing Program: Report ZSD_Customer_Report -----------title of program Technical Consultant: Satya Function
WA_KNA1. * creating virtual page & printing WRITE:/10 WA_KNA1-CUSTOMER, 30 WA_KNA1-NAME, 60 WA_KNA1-CITY. * repeating SELE
Select F8 to execute a program 21-08-2014 Debugging:- Work Area Using debugging you can check (OR) test internal execution of a progr
gle step debugging Select Display List option (ctrl+F12) to view Virtual page details. Select F3 again to switch from Virtual page view to Debug
Under Variable: type wa_kna1-customer, wa_kna1-name, wa_kna1-city & press Enter Select F5 for single step debugging
Apt Title for a program 3. In real time always save the Object in a Package. But for practicing save Object in Local Object 4. Provide Commen
te: Use Internal table for storing multiple records during run time Difference between Database table & Internal table: Database Table Internal
created & OCCURS option Body is created 4. 0, 1, 2, 3, …..9 is called Size Category 5. Both Header Line & Body name is same (it_kna1) Flo
LOOP AT it[INTO wa] [FROM m][TO n] [where codition]. ………… ………… ENDLOOP. LOOP AT it: Reads multiple records (record by reco
E OF ty_kna1. * provide extraction logic SELECT kunnr name1 ort01 FROM kna1 INTO TABLE it_kna1. * Appling processing logic LOOP AT it
al Table with OCCURS clause LOOP AT it INTO wa FROM m TO n: Reads multiple records from Body to Work Area based on given conditio
e record from Body to Header Line Ex: READ TABLE it INTO it. READ TABLE it INTO wa INDEX n: It reads a specific record (Line Number)
th ------ Parameters 3. You can create with ------ Ranges 1. SELECT-OPTIONS: Using select-options you can create a selection screen with ran
a TABLES kna1. * provide selection screen SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-009 SELECT-OPTIONS: s_kunnr
for SAP graphics management Note: QUAN, CURR, NUME are SAP provided business data types for storing Quantities, Currencies & other
k Area is a Structure (group of fields with different data types) It holds only one single record during run time Syntax: Chain Operator Name
er (Work Area) Write:/10 wa_KNA1-Customer, 30 wa_KNA1-Name, data transfer from Work Area to Virtual Page then 60 wa_KNA1-City. Prese
rsor blinking at Command Prompt (or) Command Field. Here you should type Transaction Codes (T Codes) in real time Next to Command P
onsultant: Satya Function Consultant: Raja Objective: To display details of the Customer Transport Request Number: Not available because w
A1-CITY. * repeating SELECT statement ENDSELECT. Note: Once program is created 1. Check it for errors by pressing Ctrl+F2 2. Save it for b
ernal execution of a program It is an important tool for testing programs in real time Note: /H is T Code for debugging
irtual page view to Debugger Select F7 (or) F8 to execute
Object 4. Provide Comments in a program wherever require 5. Try to write your program as Neat as possible 6. Try to write your program in Ca
: Database Table Internal Table 1. It is created in Database Server ------- 1. It is created in Application Server 2. It holds data permanently ------
ame is same (it_kna1) Flow of Data in Internal Table: 1. Database Table ---- Body--- Header Line-- Virtual Page --- Presentation Server
ple records (record by record) from Body to Header Line Note: Internally system converts LOOP AT it as LOOP AT it INTO it. Working: Go to
an Internal Table. Once the loop is terminated again the loop starts reading from 1st line LOOP AT it INTO wa: Reads multiple records (reco
ocessing logic LOOP AT it_kna1 INTO wa_kna1. WRITE:/10 wa_kna1-customer, 30 wa_kna1-name, 60 wa_kna1-city. ENDLOOP.
ea based on given condition Example: 1. LOOP AT it INTO wa FROM 100. 2. LOOP AT it INTO wa FROM TO 50. 3. LOOP AT it INTO wa FROM
ific record (Line Number) from Body to Work Area Ex: READ TABLE it INTO wa INDEX 5. READ TABLE it INTO wa WITH KEY keyexpressio
selection screen with range of input values Syntax: SELECT-OPTIONS: s_kunnr for kna1-kunnr. With above syntax system will create a selecti
SELECT-OPTIONS: s_kunnr FOR kna1-kunnr. SELECTION-SCREEN: END OF BLOCK b1. * provide objects TYPES: BEGIN OF ty_kna1, customer(2
ntities, Currencies & other Numeric values Type Keyword: It specifies the type of data an Object (Variable) can hold Example: 1. Data ch type S
ax: Chain Operator Name of Work Area (any name) Data: Begin of wa_KNA1, { wa_table name (OR) w_table name is recommended } Custom
n 60 wa_KNA1-City. Presentation Server Endselect. ----------- it repeats the Select statement until records completed Work Area 100 satya Hyd
me Next to Command Prompt you will find Standard Icons (Standard Application Tool Bar). Here you cannot add Customized Icons Unde
ing Ctrl+F2 2. Save it for backup by pressing Ctrl+S 3. Activate it for to store in Database Server by pressing Ctrl+F3 Activation of a Program:
ing
o write your program in Capital letters 7. Always select Pretty Printer (shift+F1) option after writing a program 8. Always Activate your program
ds data permanently ------- 2. It holds data temporarily 3. It holds only specific type of data ----- 3. It holds data of different tables of at one plac
NTO it. Working: Go to SE38 Program: ZSD_LOOPENDLOOP Select Create option Title; Internal Table Type: Executable Program
ads multiple records (record by record) from Body to Work Area Working: Go to SE38 Program: ZSD_INTERNAL_WORKAREA Select C
y. ENDLOOP.
a WITH KEY keyexpression: It reads a specific record which matches a given condition in Work Area Ex: READ TABLE it INTO wa WITH KEY
s recommended } Customer(10) type C, Name(20) type C, City(20) type C, End of wa_KAN1. Period Symbol Field Name Note-1: With above
d Work Area 100 satya Hyderabad 200 ram Delhi 300 raj Bangalore
Customized Icons Under Standard Application Tool Bar you will find Text Area. It specifies documentation of current application Under Tex
erent tables of at one place Que: What is exact purpose of Internal table. Do you think should be created in ABAP programming? Ans: In real
Type: Executable Program Select Save option Leave Package:__________ blank Select Local Object option Pg)
L_WORKAREA Select Create option Title: Internal Table & Work Area Type: Executable Program Select Save option Leave Packa
BLE it INTO wa WITH KEY customer=wa1-customer READ TABLE it INTO wa WITH KEY keyexpression TRANSPORTING ……….: Ex: READ
kna1, It_kna1 TYPE TABLE OF ty_kna1. * provide extraction logic Rohini kumar
a count type P values 2 -------145.22, 52.69,…… 4. Data chr(10) type C ------ ‘a’, ‘h’,……… Data Keyword: Using Data keyword Objects are
Name Note-1: With above syntax during run time a Work Area wa_KNA1 is created in Application Server Note-2: Work Area name can be an
nt application Under Text Area you will find Customized Application Tool Bar when you can add your own icons apart from Standard ones U
ms can be integrated in SAP Only activated programs can be transported between clients 9. Always Debug your program once it is created for
rogramming? Ans: In real time we are creating Internal table for storing different types of application data from different tables at one place Eve
ave option Leave Package:__________ blank Select Local Object option
ORTING ……….: Ex: READ TABLE it INTO wa WITH KEY customer=wa1-customer TRANSPORTING city (it will shows only city field) Binary Se
Data keyword Objects are defined in ABAP programming Using Data keyword memory is allocated in buffer by system Note: Every Object (O
Work Area name can be any name In companies we have to follow Naming (Coding) standards while creating a program According to thes
art from Standard ones Under Customize Application Tool Bar you will find Work Area where user performs his tasks (or) navigations Type
ram once it is created for testing 10.Never delete section of a program always Comment it. For commenting select that section with mouse po
ent tables at one place Every Internal table is having 2 parts They are: 1. Internal Table Body 2. Header Line 1. Internal Table Body: The name
s only city field) Binary Search: It reads data from Body to Work Area based on binary search algorithm Note: 1. Use binary search if Interna
stem Note: Every Object (OR) Variable should be define using Data keyword
ogram According to these standards Work Area should always begins with w_ (OR) wa_ followed by Table Name Note-3: Every Object (Wor
ks (or) navigations Type SE38 in Command Prompt & press Enter Type program ZSD_Customer_Report Note: SAP is providing standard
hat section with mouse pointer & press Ctrl+< similarly to document select the same section with mouse pointer & press Ctrl+> 11.For Searchi
nal Table Body: The name Internal table itself specifies body of Internal table & it holds multiple records 2. Header Line: It is a default Work Are
se binary search if Internal table is larze 2. Data should be sorted before Appling binary search algorithm 3. There should be no duplicate re
Note-3: Every Object (Work Area) should be define with Data keyword Note-4: Every Programming Structure should begins with Begin of & en
SAP is providing standard programs which starts with A,B,……………X. If you want to create ZPrograms (User Defined) start with Y (OR) Z
ess Ctrl+> 11.For Searching a specific keyword (or) ABAP statement select Find option in Standard Tool Bar then provide fine & press Enter 1
ne: It is a default Work Area & holds single record Note: Header Line is system defined Work Area & Work Area is user defined Header Line Sy
should be no duplicate records in Internal Table 4. Binary search algorithm improves performance of programming
begins with Begin of & ends with End of followed by the Programming Structure name Rohini kumar
ned) start with Y (OR) Z Click on Create button Provide Title: Customer Details Report Provide Type: Executable Program Note: With Ex
ovide fine & press Enter 12.For Replacing ABAP keywords (or) statements select Ctrl+F you will find a pop-up Find What: KNA1 select Replac
er defined Header Line Syntax: DATA: BEGIN OF it_kna1 OCCURS 0, customer(20) TYPE C, name(20) TYPE C, city(20) TYPE C, END OF it
ble Program Note: With Executable Program system will generate SAPGUI.EXE file Then press Enter you will find a pop-up here leave Pack
What: KNA1 select Replace button provide Replace With: LFA1 select Replace All 13.To open new application by closing existing one type /NT