SlideShare a Scribd company logo
List of T-codes related to ABAP :-
se38 ---> Abap editor
se11 ---> Dictionary objects
se16 --> data browser
se80 ---> Object Navigator
se37 ---> Function Builder
se41 ----> Menu Painter
se51 ---> Screen Painter
se71 ----> Form painter
se91 ---> Message class
se93 ---> Creating T-codes
sm35 ---> Session object
se36 ----> Logical databases
sm36 ---> Define Background Job
sm37 ---> Background job overview
se78 ---> Graphics upload
se76 ---> Language Translation
smartforms ---> smartforms

Abap Programming rules :-
1. . (period)
2. abap statements are not case sensitive.
  eg: write
        WRITE
3.
4. abap is space sensitive
  eg: c=a+b. (wrong)
       c = a + b.(correct)
5. * (or) " for commenting
 * ---> at the begining of the line
 " --> middle of the line


ECC 6.0
ABAP/4


1. Repository objects
2. Dictionary objects



Repository objects :- (se38)

1. Executable program
2. Include program
3. Module pool
4. function pool
5. subroutine pool
6. type pool
7. class pool
8. interface pool
9. XSLT programs
Dictionary objects :- (se11)

1. Tables
2. Views
3. Data elements
4. Domains
5. Search help
6. Lock objects
7. Type groups
8. Structures
9. Table Types

Example :-

menu bar
standard toolbar
title bar
application toolbar
status bar (below)


int a,b,c;
a=10;
b=20;
c=a+b;
printf("%d",c);

syntax :-

data [:] <variable> type <datatype> [ value <value>].

[ ] ---> optional
< > ---> mandatory

example :-

data x type i.
data y type i.
data z type i.
x = 10.
y = 20.
z = x + y.
write z.

example :-

data : x type i,
     y type i,
     z type i.
x = 10.
y = 20.
z = x + y.
write z.
example :-

data : x type i,
     y type i,
     z type i.
x = 10.
y = 20.
z = x + y.
write : 'sum is',z.
write :/ 'sum is',z LEFT-JUSTIFIED.

example : parameter

PARAMETER : x type i,
        y type i.
data z type i.
z = x + y.
write :/ 'sum is ',z.

example : default values

PARAMETER : x type i DEFAULT 10,
        y type i DEFAULT 20.
data z type i.
z = x + y.
write :/ 'sum is ',z.

example : Declaring and Initializing the variables

data : x type i value 10,
     y type i value 20,
     z type i.
z = x + y.
write :/ 'sum is ',z.
x = 23.
y = 34.
z = x + y.
write :/ 'sum is ',z.

example :- constants

CONSTANTS : x type i VALUE 10,
                     y type i value 20.
data z type i.
z = x + y.
write :/ 'sum is ',z.

example : characters and strings

data x type c.
x = 'genesis'.
write x.
data y(10) type c.
y = 'genesis software systems'.
write / y.
data z type string.
z = 'genesis software systems'.
write :/ z.

Creating Package :-

ddmmyyyy
27082009
09202708

storage : yyyymmdd
output : ddmmyyyy

sy-datum :- date
sy-uzeit :- time

example : Date and time datatypes

data x type d value '27082009'.
write :/ 'Value of x is ',x.
x = '20090827'.
write :/ 'Value of x is ',x.
write :/ 'formatted date :',x
           using EDIT MASK '________'.


write :/ 'formatted date :',(10) x using EDIT MASK
'________'.

data y type t value '093503'.
write :/ y.
write :/ 'formatted time ',(8) y using EDIT MASK '__:__:__'.

write :/ 'system date is ',sy-datum.
write :/ 'system time is ',sy-uzeit.

example : Packed data type

DATA x type i.
x = '123.45'.
write x.
data y type p.
y = '123.45'.
write :/ y.
data z type p DECIMALS 2.
z = '123.456'.
write :/ z.

Conditional statements :-
1. if - else
2. case - endcase
syntax : if-else

if <condition>.
   statements.
elseif <condition2>.
   statements.
---
endif.

syntax : case-endcase

case <condition>.
  when <value 1>.
       statements.
  when <value 2>.
        statements.
  ------
  when <others>.
         statements.
endcase.

looping statements :-

1. General Loops
  a) while-endwhile
 syntax :-
        while <condition>.
              statements.
       endwhile.

 b) do-enddo.
  syntax :-
       do <n> times.
            statements.
       enddo.

2. Database loops
  a) select-endselect
  b) loop-endloop

example : radio buttons

PARAMETERS : x type i,
     y type i.
PARAMETERS : r1 RADIOBUTTON GROUP g1,
     r2 RADIOBUTTON GROUP g1,
     r3 RADIOBUTTON GROUP g1,
     r4 RADIOBUTTON GROUP g1.

data res type i.

if r1 = 'X'.
   res = x + y.
   write :/ 'sum is ',res.
elseif r2 = 'X'.
  res = x - y.
if res >= 0.
    write :/ 'Difference is ',res.
 else.
    write :/ 'Difference is -' NO-GAP,res no-SIGN LEFT-JUSTIFIED.
 endif.
elseif r3 = 'X'.
 res = x * y.
 write :/ 'Product is ',res.
elseif r4 = 'X'.
 res = x / y.
 write :/ 'Division is ',res.
endif.

example : checkboxes

PARAMETERS : x type i,
     y type i.
PARAMETERS : r1 as CHECKBOX,
     r2 as CHECKBOX,
     r3 as CHECKBOX,
     r4 AS CHECKBOX.

data res type i.

if r1 = 'X'.
   res = x + y.
   write :/ 'sum is ',res.
endif.
if r2 = 'X'.
  res = x - y.
  if res >= 0.
     write :/ 'Difference is ',res.
  else.
     write :/ 'Difference is -' NO-GAP,res no-SIGN LEFT-JUSTIFIED.
  endif.
endif.
if r3 = 'X'.
  res = x * y.
  write :/ 'Product is ',res.
endif.
if r4 = 'X'.
  res = x / y.
  write :/ 'Division is ',res.
endif.

example : case-endcase

PARAMETERS : x type i,
        y type i,
        ch type i.
data res type i.

case ch.
  when 1.
    res = x + y.
    write :/ 'sum is ',res.
when 2.
    res = x - y.
    write :/ 'difference is ',res.
  when 3.
    res = x * y.
    write :/ 'product is ',res.
  when 4.
    res = x / y.
    write :/ 'division is ',res.
  when OTHERS.
    WRITE :/ 'Invalid choice, Please enter 1,2,3,4'.
 endcase.


Database loops

example : while-endwhile

PARAMETERS : x type i.

data : y type i value 1,
    res type i.

while y <= 10.
 res = x * y.
 write :/ x,'*',y,'=',res.
 y = y + 1.
ENDWHILE.


example : do-enddo

data : res type i,
    y type i value 1.

PARAMETERS x type i.

do 10 times.
  res = x * y.
  write :/ x,'*',y,'=',res.
  y = y + 1.
enddo.


example : continue statement

data : res type i,
    y type i value 1.

PARAMETERS x type i.

while y <= 10.
 if y eq 6.
    y = y + 1.
    CONTINUE.
 endif.
res = x * y.
  write :/ x,'*',y,'=',res.
  y = y + 1.
endwhile.


example : exit statement

data : res type i,
    y type i value 1.

PARAMETERS x type i.

while y <= 10.
 if y eq 6.
    exit.
 endif.
  res = x * y.
  write :/ x,'*',y,'=',res.
  y = y + 1.
endwhile.

write :/ 'end of program'.


Operators :-
1. Arithmetic operators :- +, - , *, / , mod
2. Logical operators :- AND, OR, NOT
3. Relational operators
   Symbolic format                  character format
      <                   lt (less than)
      >                   gt (greater than)
      =                   eq (equal to)
     <=                   le (less than or equal to)
     >=                   ge (greater than or equal to)
    <>                    ne (not equal to)

Dictionary objects (se11) :-

sy-datum
sy-uzeit

Standard tables :-

kna1 ---> customer master
vbak ---> sales document header data
vbap ---> sales document item data
ekko --> Purchase document header data
ekpo --> Purchase document item data
lfa1 ---> Vendor master
mara ----> Material master
makt ---> material descriptions

1. client dependent :- 'mandt'
2. client independent
se11 ---> database table (yemployee), create ---> provide description (employee dteails)

Delivery and maintainance :-

Delivery class ---> A
Data browser/Table view maintainance --->           Display/Maintainace allowed

Fields :-
Field name       Datatype               length
empno            int4            10
ename            char            20
empaddress       char            30

Technical settings :-
data class                       ---> APPL0
sizecategory            ---> 0

More Related Content

What's hot

Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivarsDecent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivarsLeonardo Soto
 
The Truth About Lambdas in PHP
The Truth About Lambdas in PHPThe Truth About Lambdas in PHP
The Truth About Lambdas in PHP
Sharon Levy
 
Data Types Master
Data Types MasterData Types Master
Data Types Master
Paolo Marcatili
 
Introduction to c
Introduction to cIntroduction to c
Introduction to c
Sayed Ahmed
 
Unittests für Dummies
Unittests für DummiesUnittests für Dummies
Unittests für Dummies
Lars Jankowfsky
 
Desymfony2013.gonzalo123
Desymfony2013.gonzalo123Desymfony2013.gonzalo123
Desymfony2013.gonzalo123
Gonzalo Ayuso
 
PHP object calisthenics
PHP object calisthenicsPHP object calisthenics
PHP object calisthenics
Giorgio Cefaro
 
What's New in Perl? v5.10 - v5.16
What's New in Perl?  v5.10 - v5.16What's New in Perl?  v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
Ricardo Signes
 
My Development Story
My Development StoryMy Development Story
My Development Story
Takahiro Fujiwara
 
AskTom Office Hours about Database Migrations
AskTom Office Hours about Database MigrationsAskTom Office Hours about Database Migrations
AskTom Office Hours about Database Migrations
Jasmin Fluri
 
Php using variables-operators
Php using variables-operatorsPhp using variables-operators
Php using variables-operators
Khem Puthea
 
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
Kana Natsuno
 
Latihan modul prak basis data full
Latihan modul prak basis data fullLatihan modul prak basis data full
Latihan modul prak basis data fullPoliteknik Gorontalo
 
cafeteria info management system
cafeteria info management systemcafeteria info management system
cafeteria info management systemGaurav Subham
 
Functional programming with php7
Functional programming with php7Functional programming with php7
Functional programming with php7
Sérgio Rafael Siqueira
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
Saraswathi Murugan
 
Tips for using Firebird system tables
Tips for using Firebird system tablesTips for using Firebird system tables
Tips for using Firebird system tablesMind The Firebird
 
Php Enums
Php EnumsPhp Enums
Oracle select statment
Oracle select statmentOracle select statment
Oracle select statment
renuindia
 

What's hot (20)

Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivarsDecent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
 
The Truth About Lambdas in PHP
The Truth About Lambdas in PHPThe Truth About Lambdas in PHP
The Truth About Lambdas in PHP
 
Data Types Master
Data Types MasterData Types Master
Data Types Master
 
Introduction to c
Introduction to cIntroduction to c
Introduction to c
 
Unittests für Dummies
Unittests für DummiesUnittests für Dummies
Unittests für Dummies
 
Desymfony2013.gonzalo123
Desymfony2013.gonzalo123Desymfony2013.gonzalo123
Desymfony2013.gonzalo123
 
PHP object calisthenics
PHP object calisthenicsPHP object calisthenics
PHP object calisthenics
 
What's New in Perl? v5.10 - v5.16
What's New in Perl?  v5.10 - v5.16What's New in Perl?  v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
 
My Development Story
My Development StoryMy Development Story
My Development Story
 
AskTom Office Hours about Database Migrations
AskTom Office Hours about Database MigrationsAskTom Office Hours about Database Migrations
AskTom Office Hours about Database Migrations
 
Php using variables-operators
Php using variables-operatorsPhp using variables-operators
Php using variables-operators
 
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
PHP「参照渡しできるよ」(君の考えている参照渡しと同じとは言ってない)
 
distill
distilldistill
distill
 
Latihan modul prak basis data full
Latihan modul prak basis data fullLatihan modul prak basis data full
Latihan modul prak basis data full
 
cafeteria info management system
cafeteria info management systemcafeteria info management system
cafeteria info management system
 
Functional programming with php7
Functional programming with php7Functional programming with php7
Functional programming with php7
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
Tips for using Firebird system tables
Tips for using Firebird system tablesTips for using Firebird system tables
Tips for using Firebird system tables
 
Php Enums
Php EnumsPhp Enums
Php Enums
 
Oracle select statment
Oracle select statmentOracle select statment
Oracle select statment
 

Similar to Abap basics 01

Ruby Language - A quick tour
Ruby Language - A quick tourRuby Language - A quick tour
Ruby Language - A quick touraztack
 
Some Examples in R- [Data Visualization--R graphics]
 Some Examples in R- [Data Visualization--R graphics] Some Examples in R- [Data Visualization--R graphics]
Some Examples in R- [Data Visualization--R graphics]
Dr. Volkan OBAN
 
Morel, a Functional Query Language
Morel, a Functional Query LanguageMorel, a Functional Query Language
Morel, a Functional Query Language
Julian Hyde
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
sapdocs. info
 
1582627
15826271582627
1582627tabish
 
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
NoSQLmatters
 
Rails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
Rails-like JavaScript Using CoffeeScript, Backbone.js and JasmineRails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
Rails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
Raimonds Simanovskis
 
Lecture 4 - Comm Lab: Web @ ITP
Lecture 4 - Comm Lab: Web @ ITPLecture 4 - Comm Lab: Web @ ITP
Lecture 4 - Comm Lab: Web @ ITPyucefmerhi
 
Basic programming
Basic programmingBasic programming
Basic programming
Jugul Crasta
 
iRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat SheetiRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat Sheet
Samuel Lampa
 
introduction to c programming and C History.pptx
introduction to c programming and C History.pptxintroduction to c programming and C History.pptx
introduction to c programming and C History.pptx
ManojKhadilkar1
 
Achieving Parsing Sanity In Erlang
Achieving Parsing Sanity In ErlangAchieving Parsing Sanity In Erlang
Achieving Parsing Sanity In Erlang
Sean Cribbs
 
Hacking parse.y (RubyKansai38)
Hacking parse.y (RubyKansai38)Hacking parse.y (RubyKansai38)
Hacking parse.y (RubyKansai38)ujihisa
 
Hacking Parse.y with ujihisa
Hacking Parse.y with ujihisaHacking Parse.y with ujihisa
Hacking Parse.y with ujihisaujihisa
 
Python Cheat Sheet 2.0.pdf
Python Cheat Sheet 2.0.pdfPython Cheat Sheet 2.0.pdf
Python Cheat Sheet 2.0.pdf
Rahul Jain
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
sapdocs. info
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02wingsrai
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01tabish
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
tabish
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
Ashish Kumar
 

Similar to Abap basics 01 (20)

Ruby Language - A quick tour
Ruby Language - A quick tourRuby Language - A quick tour
Ruby Language - A quick tour
 
Some Examples in R- [Data Visualization--R graphics]
 Some Examples in R- [Data Visualization--R graphics] Some Examples in R- [Data Visualization--R graphics]
Some Examples in R- [Data Visualization--R graphics]
 
Morel, a Functional Query Language
Morel, a Functional Query LanguageMorel, a Functional Query Language
Morel, a Functional Query Language
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 
1582627
15826271582627
1582627
 
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
Eric Redmond – Distributed Search on Riak 2.0 - NoSQL matters Barcelona 2014
 
Rails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
Rails-like JavaScript Using CoffeeScript, Backbone.js and JasmineRails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
Rails-like JavaScript Using CoffeeScript, Backbone.js and Jasmine
 
Lecture 4 - Comm Lab: Web @ ITP
Lecture 4 - Comm Lab: Web @ ITPLecture 4 - Comm Lab: Web @ ITP
Lecture 4 - Comm Lab: Web @ ITP
 
Basic programming
Basic programmingBasic programming
Basic programming
 
iRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat SheetiRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat Sheet
 
introduction to c programming and C History.pptx
introduction to c programming and C History.pptxintroduction to c programming and C History.pptx
introduction to c programming and C History.pptx
 
Achieving Parsing Sanity In Erlang
Achieving Parsing Sanity In ErlangAchieving Parsing Sanity In Erlang
Achieving Parsing Sanity In Erlang
 
Hacking parse.y (RubyKansai38)
Hacking parse.y (RubyKansai38)Hacking parse.y (RubyKansai38)
Hacking parse.y (RubyKansai38)
 
Hacking Parse.y with ujihisa
Hacking Parse.y with ujihisaHacking Parse.y with ujihisa
Hacking Parse.y with ujihisa
 
Python Cheat Sheet 2.0.pdf
Python Cheat Sheet 2.0.pdfPython Cheat Sheet 2.0.pdf
Python Cheat Sheet 2.0.pdf
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
 

Recently uploaded

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 

Recently uploaded (20)

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 

Abap basics 01

  • 1. List of T-codes related to ABAP :- se38 ---> Abap editor se11 ---> Dictionary objects se16 --> data browser se80 ---> Object Navigator se37 ---> Function Builder se41 ----> Menu Painter se51 ---> Screen Painter se71 ----> Form painter se91 ---> Message class se93 ---> Creating T-codes sm35 ---> Session object se36 ----> Logical databases sm36 ---> Define Background Job sm37 ---> Background job overview se78 ---> Graphics upload se76 ---> Language Translation smartforms ---> smartforms Abap Programming rules :- 1. . (period) 2. abap statements are not case sensitive. eg: write WRITE 3. 4. abap is space sensitive eg: c=a+b. (wrong) c = a + b.(correct) 5. * (or) " for commenting * ---> at the begining of the line " --> middle of the line ECC 6.0 ABAP/4 1. Repository objects 2. Dictionary objects Repository objects :- (se38) 1. Executable program 2. Include program 3. Module pool 4. function pool 5. subroutine pool 6. type pool 7. class pool 8. interface pool 9. XSLT programs
  • 2. Dictionary objects :- (se11) 1. Tables 2. Views 3. Data elements 4. Domains 5. Search help 6. Lock objects 7. Type groups 8. Structures 9. Table Types Example :- menu bar standard toolbar title bar application toolbar status bar (below) int a,b,c; a=10; b=20; c=a+b; printf("%d",c); syntax :- data [:] <variable> type <datatype> [ value <value>]. [ ] ---> optional < > ---> mandatory example :- data x type i. data y type i. data z type i. x = 10. y = 20. z = x + y. write z. example :- data : x type i, y type i, z type i. x = 10. y = 20. z = x + y. write z.
  • 3. example :- data : x type i, y type i, z type i. x = 10. y = 20. z = x + y. write : 'sum is',z. write :/ 'sum is',z LEFT-JUSTIFIED. example : parameter PARAMETER : x type i, y type i. data z type i. z = x + y. write :/ 'sum is ',z. example : default values PARAMETER : x type i DEFAULT 10, y type i DEFAULT 20. data z type i. z = x + y. write :/ 'sum is ',z. example : Declaring and Initializing the variables data : x type i value 10, y type i value 20, z type i. z = x + y. write :/ 'sum is ',z. x = 23. y = 34. z = x + y. write :/ 'sum is ',z. example :- constants CONSTANTS : x type i VALUE 10, y type i value 20. data z type i. z = x + y. write :/ 'sum is ',z. example : characters and strings data x type c. x = 'genesis'. write x. data y(10) type c. y = 'genesis software systems'. write / y. data z type string.
  • 4. z = 'genesis software systems'. write :/ z. Creating Package :- ddmmyyyy 27082009 09202708 storage : yyyymmdd output : ddmmyyyy sy-datum :- date sy-uzeit :- time example : Date and time datatypes data x type d value '27082009'. write :/ 'Value of x is ',x. x = '20090827'. write :/ 'Value of x is ',x. write :/ 'formatted date :',x using EDIT MASK '________'. write :/ 'formatted date :',(10) x using EDIT MASK '________'. data y type t value '093503'. write :/ y. write :/ 'formatted time ',(8) y using EDIT MASK '__:__:__'. write :/ 'system date is ',sy-datum. write :/ 'system time is ',sy-uzeit. example : Packed data type DATA x type i. x = '123.45'. write x. data y type p. y = '123.45'. write :/ y. data z type p DECIMALS 2. z = '123.456'. write :/ z. Conditional statements :- 1. if - else 2. case - endcase
  • 5. syntax : if-else if <condition>. statements. elseif <condition2>. statements. --- endif. syntax : case-endcase case <condition>. when <value 1>. statements. when <value 2>. statements. ------ when <others>. statements. endcase. looping statements :- 1. General Loops a) while-endwhile syntax :- while <condition>. statements. endwhile. b) do-enddo. syntax :- do <n> times. statements. enddo. 2. Database loops a) select-endselect b) loop-endloop example : radio buttons PARAMETERS : x type i, y type i. PARAMETERS : r1 RADIOBUTTON GROUP g1, r2 RADIOBUTTON GROUP g1, r3 RADIOBUTTON GROUP g1, r4 RADIOBUTTON GROUP g1. data res type i. if r1 = 'X'. res = x + y. write :/ 'sum is ',res. elseif r2 = 'X'. res = x - y.
  • 6. if res >= 0. write :/ 'Difference is ',res. else. write :/ 'Difference is -' NO-GAP,res no-SIGN LEFT-JUSTIFIED. endif. elseif r3 = 'X'. res = x * y. write :/ 'Product is ',res. elseif r4 = 'X'. res = x / y. write :/ 'Division is ',res. endif. example : checkboxes PARAMETERS : x type i, y type i. PARAMETERS : r1 as CHECKBOX, r2 as CHECKBOX, r3 as CHECKBOX, r4 AS CHECKBOX. data res type i. if r1 = 'X'. res = x + y. write :/ 'sum is ',res. endif. if r2 = 'X'. res = x - y. if res >= 0. write :/ 'Difference is ',res. else. write :/ 'Difference is -' NO-GAP,res no-SIGN LEFT-JUSTIFIED. endif. endif. if r3 = 'X'. res = x * y. write :/ 'Product is ',res. endif. if r4 = 'X'. res = x / y. write :/ 'Division is ',res. endif. example : case-endcase PARAMETERS : x type i, y type i, ch type i. data res type i. case ch. when 1. res = x + y. write :/ 'sum is ',res.
  • 7. when 2. res = x - y. write :/ 'difference is ',res. when 3. res = x * y. write :/ 'product is ',res. when 4. res = x / y. write :/ 'division is ',res. when OTHERS. WRITE :/ 'Invalid choice, Please enter 1,2,3,4'. endcase. Database loops example : while-endwhile PARAMETERS : x type i. data : y type i value 1, res type i. while y <= 10. res = x * y. write :/ x,'*',y,'=',res. y = y + 1. ENDWHILE. example : do-enddo data : res type i, y type i value 1. PARAMETERS x type i. do 10 times. res = x * y. write :/ x,'*',y,'=',res. y = y + 1. enddo. example : continue statement data : res type i, y type i value 1. PARAMETERS x type i. while y <= 10. if y eq 6. y = y + 1. CONTINUE. endif.
  • 8. res = x * y. write :/ x,'*',y,'=',res. y = y + 1. endwhile. example : exit statement data : res type i, y type i value 1. PARAMETERS x type i. while y <= 10. if y eq 6. exit. endif. res = x * y. write :/ x,'*',y,'=',res. y = y + 1. endwhile. write :/ 'end of program'. Operators :- 1. Arithmetic operators :- +, - , *, / , mod 2. Logical operators :- AND, OR, NOT 3. Relational operators Symbolic format character format < lt (less than) > gt (greater than) = eq (equal to) <= le (less than or equal to) >= ge (greater than or equal to) <> ne (not equal to) Dictionary objects (se11) :- sy-datum sy-uzeit Standard tables :- kna1 ---> customer master vbak ---> sales document header data vbap ---> sales document item data ekko --> Purchase document header data ekpo --> Purchase document item data lfa1 ---> Vendor master mara ----> Material master makt ---> material descriptions 1. client dependent :- 'mandt' 2. client independent
  • 9. se11 ---> database table (yemployee), create ---> provide description (employee dteails) Delivery and maintainance :- Delivery class ---> A Data browser/Table view maintainance ---> Display/Maintainace allowed Fields :- Field name Datatype length empno int4 10 ename char 20 empaddress char 30 Technical settings :- data class ---> APPL0 sizecategory ---> 0