1st Class ABAP
1st Class ABAP
ABAP/4
Transport: Through Transport will move the changes from DEV to QAS and PRD
YSD/ZSD $TMP
Types of Projects
1. Implementation
2. Upgrade (4.6, 4.7, 5.0 and 6.0)
3. Support
4. Roll Out
BRD
FSD
TSD
Coding
Review
Testing
Through Transport.
Through Package
Transaction Codes
Package – ZZMM
TR - EP7K900581
EP7K900583
Transaction Codes
SE12
SE16
SM30
SD – Flow
ECC 6.0
EHP1
EHP2
EHP8
1. Database Table
Data Element – Its schematic attributes of a field, its maintain Short Description and Domain
Domain – its technical attributes of a filed, its maintain data type and length.
Foreign Key Field – this is used to join 2 tables using key field.
ZZSTU_DET ZZCLG_DET
MANDT MANDT
ZZCLG_ID ZZCLG_ID
ZZSTUDET
Database View: this is used to see the data from one more than one table using join condition
(with common fields).
Projection View: this is used to see the data particular fields of a single table.
Maintenance view: this is used to maintain data among the systems at a time.
Note:
Database View
ZZSTU_DET ZZCLG_ID
ZZCLG_ID
3. Data Type
3 types
YYMARA – structure
DATA: WA_MARA TYPE YYMARA, - Work Area – Single Record
IT_MARA TYPE SANDARD TABLE OF YYMARA. – Table – Multiple Records.
c). Table Type – this is used at the time of forms development.
DATA: WA_MARA TYPE YYMARA, - Work Area – Single Record
IT_MARA TYPE YYMARA_IT. – Internal Table – Multiple Records.
4. Type Group.
TYPE-POOLS: SLIS.
After ECC 6.0 from EHP6 on wards no need to declare type-pools.
A = ‘X’, A = ABAP_TRUE.
B = ‘ ‘. B = ABAP_FALSE.
Success – Green
Warning – Yellow
Failure – Red
TRUXS – this is used upload excel sheet data from non-SAP to SAP.
6. Search help
a) Elementary search help – this is used for providing F4 help for particular fields of a table.
b) Collective search help – groups of elementary search helps are nothing but a collective search
help.
c) Append search help – this is used for adding custom elementary search help to standard
collective search help.
Elementary Search helps
YSTU_ESH
YSTU_ESH1
YSTU_CSH
Ex: ME32K
EKKO
EKPO
EKKN
MAKT
T002
Step 3. Add custom elementary search help to standard collective search help (MEKK).
Table EKKO
LIFNR – Vendor
BUKRS – Company Code
Step 2. Add custom elementary search help to standard collective search help MEKK.
Indexes – VVIMP
1. Primary Index – when will create a table with key field, by default system will generate primary
index.
Select ZZSTUNO
ZZSTUNAME
ZZSTUADD
ZZSTUCONT
ZZCLGID
From ZZSTU_DET
Into table IT
When we are getting data from database table into internal table with non-key fields, will have
some performance issue. At that time will create secondary indexes for those non-key fields.
Select ZZSTUNO
ZZSTUNAME
ZZSTUADD
ZZSTUCONT
ZZCLGID
From ZZSTU_DET
Into table IT
Append Structure – this is used to add new fields to standard data base table using append structure.
B TYPE T. “Time
A = SY-DATUM.
WRITE: / A.
B(20) TYPE C,
A(20) TYPE C.
A = ‘SOWMYA’.
*B = ‘UDAY KUMAR’.
C = ‘SREE RANGA’.
WRITE: / A,
/ B,
/ C.
SOWMYA
UDAYKUMAR
SREE RANGA
Internal Tables.
Internal Tables are used to get the data from database table into internal tables at runtime.
Syntax.
Syntax.
<Internal Table> TYPE SORTED TABLE OF <Structure Name> with unique/non-unique fields.
Syntax.
<Internal Table> TYPE HASHED TABLE OF <Structure Name> with unique fields.
Operational Keywords
Occurs
itab 3
1
Space
2
Memory
3
4
Page Memory
DO 5 5
Non-SAP – 12345
SAP - 000000000000012345
Modularization Techniques
a. Macros – Obsolete
b. Includes – these includes using in main programs (Not executable programs).
c. Sub Routines – these are used to using parameters and changing parameters at the time of
program developments
d. Function Module – Transaction Code – SE37
When we are going to create any function module must be create function group.
Need to develop one function for Sales Order Item Data Fields.
Structure – YYVBAP
Reports
Reports are used to fetch the data from database tables into internal tables based on input fields and
display the output.
Ranges – Select-Options
File Path – Parameters – this is used for upload/download data into Application Server or Presentation
server
Radio Buttons – Parameters – P_R1 or P_R2 (radio buttons must be used under group)
Text-000 to Text-999
10000 Records
1001 – 2000
4001 – 5000
7001 - 8000
Simple Report
Steps
T.code – SE91
Types of Messages.
E – Error
S – Success
I – Information
W – Warning
A – Aband
Need to use always standard SAP Messages for using validation – T100
AT SELECTION-SCREEN ON Field – this is used to validate more than one field at selection screen.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR File – this is used for provide F4 help for file path
Simple Report – Requirement
Output Fields
Select-Options – S_ or SO_
Parameters – P_ or PA_
Variables – L_ or G_
Constants – C_
Colors – 1- 7
Classical Report – this is used to display the data from one or more than one table
VBAK- Sales Document Header VBAP – Sales Document Item KNA1 – Customer Master Data
NETWR PSTLZ
Classical report will develop 2 ways
Inner Join – when will develop a report with 2 or 3 tables. Will recommend Inner Join
At the time of fetching data need to use alias names for tables
VBAK – V
VBAP – B
For All Entries – more than 2 or 3 tables, will recommended for all entries.
‘E’ – Exclude
Start-of-Selection – this is used to fetch the data from data base table into internal table
Note: Some-times with any events will display the report. But when will use any event before select
statement must me use start of selection event.
Initialization. 1
At Selection-Screen. 2
Start-of-Selection. 3
End-of-Selection. 5
Top-of-Page. 4
End-of-Page. 6
The above four events working only with in loop and endloop.
1 is Basic List
1. Hide – this is used for extracting the exact data from previous list to next list.
2. Get Cursor – this is used for where user place the cursor then only its interact to next list.
Sales Flow
Delivery Invoice
Delivery
Invoices
Deliveries
Sales Order
Selection Screen
Output Fields
VGBEL VGBEL
VGPOS VGPOS
SD Consultant
7000007078
Simple ALV
Interactive ALV
Hierarchical ALV
Block ALV
FM: REUSE_ALV_*
COL_POS
FIELDNAME
TABNAME
NO_ZERO = ‘X’
NO_OUT = ‘X’
Events
Form
List Header
PARAMETERS
Key
Info
Sub Totals
Hierarchical ALV
Input Fields
Customer – KNA1-KUNNR
KUNNR NETWR
HEADER ITEM
KUNNR VBELN
NAME1 POSNR
ORT01 MATNR
LAND1 KWMENG
VBELN NETWR
ERDAT ETENR
ERNAM EDATU
AUART
IT_HEADER IT_ITEM
For Header
WA_HEADER = WA_VBAK.
BINARY SEARCH.
IF SY-SUBRC EQ 0.
WA_HEADER = WA_KNA1.
ENDIF.
CLEAR: WA.
ENDLOOP.
FOR ITEM
WA_ITEM = WA_VBEP.
POSNR = WA_VBEP-POSNR
BINARY SEARCH.
IF SY-SUBRC EQ 0.
WA_ITEM = WA_VBAP.
ENDIF.
CLEAR: WA.
ENDLOOP.