0% found this document useful (0 votes)
33 views

Abap 2

The document provides information about various ABAP objects and how to create them. It discusses how to create packages, programs, tables, structures, transaction codes, function modules and more using transaction codes like SE38, SE11, SE37, SE93.

Uploaded by

kavimanisathiya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Abap 2

The document provides information about various ABAP objects and how to create them. It discusses how to create packages, programs, tables, structures, transaction codes, function modules and more using transaction codes like SE38, SE11, SE37, SE93.

Uploaded by

kavimanisathiya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 183

ABAP - not an case sensitive,

Program oda last la point vaikannum.

To create new Package -- /nse21


To view they transport organise/create ana tr paka -- se10
To create new program - se38 and /ose38
Table view -- se16
To create table that in dictionary -- se11
Object navigation -- se18
To create transaction code -- se80
To view document about word -- f1
To create class -- se24
To create function module -- se37
To create bap -- BAPI
To create class -- se24
To create transaction code -se93.
To create sales order - va01.

Client kita iruthu oru requirement ipdi venum na ,udane ok solla kudathu--check with
feasibility
REPORT Z23_PRO31.
PARAMETERS: name type string,
roll_no type i.

START-OF-SELECTION.
data: student_1 type REF TO Z_STDUDENT_SMO, " ROOT CLASS NAME
lr_handle type ref to ZSTUDENT_AREA. "SHMA AREA NAME.

lr_handle = ZSTUDENT_AREA=>attach_for_write( ).
create object student_1 AREA HANDLE lr_handle.
call method studenT_1->get_attributes
exporting
IV_NAME = name
IV_ROLL_NO = roll_no.
call method student_1->Display.
lr_handle->set_root( student_1 ).
lr_handle->DETACH_COMMIT( ).
RICEFW
-R - REPORTS
-I -INTERFACE
-C -ENHANCE
-F -FORM (SMART FORM,ADOBE FORM)
-W -workflow

-- PRESENTATAION LAYER ->FOR SCREEN VIEW


--APPLICATION LAYER -> LOGIC
--DATABASE LAYER->DATA NEEDED

ECC - enterprise coding componenet


Unit 1

To view data dictionary -se11

Package create panna--/nse21


https://www.youtube.com/watch?v=rwJu6S8SmLE&t=2s

1.use transitioncode
2.short description

3.white box click


4.short description

Short desc -- Inga shor description ethuku kudukanum - namma reference kaga easy access-
Descrption need to give -what purpose,date,username.
Task -- yentha ,yentah user ethula login panni irukanaum paka.

Access illatha oru tab open panna try panna-- no authorization provided nu varum.

5. Save
-- intha edathula request number automatic ha generate agum

-- So inga oru request number create agum,atharequest number ha basics user


kuduthu/release panna apram,from development to qualiy, or quality to production move
panna use pannuvaga.
Unit 2
U-2 Database Tables
L-1 Creating Domains and Data Elements
TC-se11

1. Table name
2. Des taranum
3. Chose element type

-- oru Data element create panna 1st uu oru domain ha create pannanum,
-- Domain create pannitu ,same name/different name la data type ha create pannitu,antha
domain ha call pannalama.
-- so ipo nega create panna elemets reuse pannikalam.
-- oru table create panna apram technical settings podanum.
-- we can set data range.
-- Antha field oru table ha use pannikalam.

Creation of table
Tc- se11
-- deliver class ,chose a.

1.Built -in
2.Data element
Bulit in -oru oru time um nega size,char define panra mari irukum
Data element- athoda size,ellam set pannita ,resuse pannikalam.

-- mandt specifies they client number.


-- oru table currency add panna,athuku referenece add pannanum,because athu yentha
country currency nu theriyanum thana
Create panna entire poda (down)

Create panna table epdi entries podrathu and display panrathu.


CREATING STRUCTURE

A STRUCTURE WE CAN SAY IT AS OBJECT ,THAT WITH SEVERAL FORM TO HAVE AN


OBJECT.
DIFFERENECE BETWEEN TABLE AND STRUCTURE.

LINK:
https://help.sap.com/saphelp_snc700_ehp01/helpdata/en/90/8d7301b1af11d194f600a0c9
29b3c3/content.htm?no_cache=true#:~:text=There%20are%20Flat%2C%20nested
%20and,at%20least%20one%20table%20type.

LINK ---> FOR FLAT STRUCTURE AND NESTED STRUCTURE CREATION


https://community.sap.com/t5/application-development-blog-posts/getting-started-with-
abap-how-to-create-flat-and-nested-structure/ba-p/13526886#:~:text=Step%201%3A
%20Go%20to%20SE11,4%3A%20Give%20the%20short%20description.

LINK ---> DEEP STRUCTURE CREATION


YLINK--->https://www.youtube.com/watch?v=H4ZTrVjhHLU&t=513s
https://community.sap.com/t5/application-development-blog-posts/getting-started-with-
abap-how-to-create-table-type-and-deep-structure/ba-p/13527414

Creating type group


Tc -se 11

Serving as an directory for regulary using object/ oru set of data


-- type pool is keyword to denote they type group creation
-- Group ctreate pannai vacha, epa venalum use pannikalam.so antha type group la
irukuaratha apdiyee reflect agum.

-- oru program create panani ,athula etha call panna,athu inga reflcet agaum.(bp)

yLink--> https://www.youtube.com/watch?v=jB7EFekBjS0&t=68s

Unit -3
Unit-3 Database tables.
L-1 Creating Transparent table

Types of table
Link-->https://www.youtube.com/watch?v=TjmeBPgoRP8
Transparent table
-- normal ha nega create panara ellam table um transparent table.

L-2 Defining cluster and pooled tables


Pooled tables
-- combine this two different table,into one table without they use primary-foreign key
relationship.
-- primary key not requires.

Cluster table
- combine this two different table,into one table with they use primary-foreign key
relationship.
-- primary key required..
-
Unit 4
Index and buffering
Index

Unit -5
U-5
L-1,2,3
Tc se -11

Check table
- check table na ,rendu table iruku table1 and table 2,
- ipo table one la 5 field iruku name,place,location,department.
- example department field la yentha department kuduthalum eduthum,illa enaku selective
va
na,yerkanave set/kuduthu iruku field mattum tha eduthukanum solrathu.

Creating new program create panna - se38


https://www.youtube.com/watch?v=A2yYHp3rIVU

1.Se38 poitu
2.Program name- kudukanum
(name unique va irukanum/yen na ethu oru central face ,again vara id
authentication vachi ,same name la program create panna create agathu)
3.create - click next page varum
4.Title - la valid ana name tharanum yen,antha program execute agu bothu athu
katum.
5.Type - la execute program kudukanum.
6.save

How to create new program

Creating they transaction code -se93


https://www.youtube.com/watch?v=IBxR5OfQL4E

Function ha yenga ellam pagalam -- se84

Debugging
Two to debug
1.Program open pannitu /h kudu debug pannalam.
-- breakpoints vaika
2.program open page la debugging katum.-atha select
-- debugging la open panni pona watchpoint option katum.
-- single step (f5)
-- execute(f6)
-- return(f7)
-- continue(f8)

To create function Group -- se37


First u have to create function ,then u have to create module.
1.Open SE37
2.menu ---> Goto
3.Function group -- create group
4.choose package

To create function module


1.function module -- name kudukanum
2.select - group name
3.parameter,.import,export,exception,source code -ellam pannitu
4.To activate -- se38 (function module create panra page )
4.1.Envirnoment
4.2.Inactive object
4.3.Folder ha select pannitu
4.4.File ha right selective -- activate
5.now check output.

Connecting
1.Open remote desktop connection(normal user/admin) - enter they ip address()
2.Server already create -panni vachi irutha atha use pannikalam

Apdi illana
1.variable logon la -click
2..user specified system -select
3.next click
4.System id,instance number,application server kudukanum
Saprouter styring -kuduka theva illa.

3.Already create panna server ha vachi login panna


1.client id 400 default ha irukum
2.user name and password tharanum.

-- tranasition code Se38 - abap oda editor tab open panna.


-- Oru program create pannu bothu z la start pannaum.yen na nama server vagu bothu z
latha access key kuduthu irukaga,atha tharvara vara kuduthu create agathu.
Create database view
-- 1st create two database table
-- Then Create panna rendu table kum foreign key set panni irukanum.
-- view - se11 la view option name kudukanum
-- choose database table
Database
Rendu database table ha merge pannalam.ethula read mattum tha panna mudiyum.write
panna mudiyathu.
--Give description
--left side la irukura table --merge panna pora rendu table name tharanum.

Data type epdi assign panrathu

Data tpes evlo size ha eduthukum


Program la comment panna
Sample program

-- Oru program pota apram check pannanum ethavathu error irukanu.

-- Next atha activate pannanum,until active it in only edit phase .active pannala athu
central rep la save agathu.

After activate it showing - active symbol.


Direct processing

Output
Transition code

Intha operation perform pannu bothu ,centre la space tharanum.


Parameter declaration

Inga parameter use pannu bothu,value tharama variable declare panni irutha ,user input
namma kita kekum.
Inga oru variable create pannu bothu I,nu define pannitiga I oda maximum size 4 tha ,athu
mela kuduthu exceute panna athau output float la varum.

Namaku variable name um output la venum na


Control statements
Switch case
Looping
For looping illa ,do loop,while loop iruku

Intha idathula sy-index indrathu default value,sy-index oda value 0,so intha loop la 0 la
iruthu start agi 5 la mudiyum.

String
General table display
Some of default

Tadir word
--intha TADIR word la repository la pota ,nega create panna ellam package,object ellamey
katum.
Nega cretae panna ellam object,element um inga show agum.
Intha idthula package--tmp tempory,suppose package la pota package name katum.

Pers.responsible la --user name podanum

Number of entries ha click panna-ethana pogram potu irukanu pakalam.


Ipo background la click panna,antha program details ha katum with name given.

Z* na ellam define agum/all


*abab* kudutha ellam search panni kondu varum.

Create panna package /tr request paka - se10


Modfiable -unga release agala

Display
/ose38-

How to choose package


Save kudukumbothu package choose panra screen katum

Z*-apram white click pannu


To know package details,program details
-- request select pannu bothu,oru puthu request create pannalm,eg rendu program iruku a
program 1 request laum,b program 1 request laum poda puthu request create pannikalam.

Epo na-ma release pannanum,release ku munnadi activate agi irukanu pakanum.


You can activate multiple file in single time
In 4 complete check pannaum

To check any syntax error


No error

Check they request consistency

No consistency error
To check they inactive object
To stimulate object
How to release
1.truck symbol click
2.kela released notification katum
3.Release ana file la tick symbol katum

Release panna tr oda object edit panna allow pannum ana athu puthu object ha
Important
-- Oru tr development la iruthu release pannitu,again antha object la work pannalam,ana
activate panna puthu tr thara tharanum,
-- Release agama tr la object add panni save pannitiga.again antha object ha edit kudutha
athu puthu tr kekathu.
Nega panna program yentha tr la irukunu pakalam
To create new user (no access only specified people)
To create transaction code -se80
1. filter la choose -- package
2. Type they -- object name/package name
3. object name/package name -- right click
4. Choose -- Create
5. Choose -- Other one
6. Choose -- Transaction
7. Transaction code ---Choose transaction code own
8. Short text -- give releated description
9. Start object la 2nd -- program ans selection screen (report transaction)
10. Program -- choose program name within package
11. Gui suppot la choose -- sap gui for windows
12. Save
13. Package choose -- create object directory entry
14. Request id choose -- prompt for local workbench request
15. Save
16. Ipo create panna trcode(zse03) use pannalam.

Another direct way to access


Sap easy access page la /home page
1. folder -- right click
2. Insert folder-choose
3. Folder -- Enter folder name
4. Create panna folder ha rigt click panni -- antha transaction code ha add
5. Save.

Next line moving

/ n kudutha next line ku varum.


Antha test ku colour vara.

Oru word ku munnadi space vara

30 -space vitu print panra mari.


Oru line kum una oru line ku gap vara---/ or skip comment

For more space


How to declare parameter

-- name is variable name


-- 10 only 10 to accept
-- type means what type of data
-- c means character data.

How to execute
Note
-- parameters does not support float.

Sample pgr

-- Here parameters only show in output screen,data won’t show


-- parameters use pannu bothu,data print agathu.
Normal select query

Obligatory refers to manadatory ,ipo oru varibale name pakathula obligatory inu kuduthuta
antha variable kandipa oru input kudytha tha athu execute agum,until it won’t execute
agathu.
It only use in parameters.
IN SELECTION SCREEN -Obligatory only applicable for low(if with from)

Parameters ku input kudukama,execute agathu.


But in paramaters input kudukama execute panna athu table la kirutha ellatum kondu
varum.

Selection line la -rendu button(eg) oreyee line la vara use panrum,ana button oda name
varathu athuku thaniya comment podanum.

Modularization

What is they difference between abap and alv report


Alv report
Alv --- ABAP LIST VIEWER
Abap --- If you are normal without using of filtering ,sorting with minimal data u can go with
abap report.
Alv report -- if u are using more number of data with advanced features like filtering,sorting u
can use alv report.
-- In alv report they design is ready ,template is ready u just want to use it.
-- They client need in detail with u can go with alv report.
--- Create program using se38
--- choose data and internal table
--- call they function module using pattern option
--- In that mention structure and internal table
--- Activate and execute.
Difference between attributes,methods,object.

How to create constructor


Constructor ------ instance method
Class_constructor ---- static method

Constructor is ok to receive value ,but it won’t return any parameters.


Instance ---- ok to receive value,it have importing ,exception.

-- nega oru constructor nu name kuduthu oru object create panna atha nega call panna
theve illa,constructor thavara vara name kuduthu calla panna atha call pannanaum.
--- oru class ku 5 object create panni call pannalim ,antha method la irukuratha print
pannaum.
--- oru instance method la oru constructore tha use panna mudiyum,same name la una oru
constructor create panna athu error katum.

Static.
-- Static ----- not ok to receive value,not parameters ,exception.
-- nega oru constructor nu name kuduthu oru object create panna atha nega call panna theve
illa,constructor thavara vara name kuduthu calla panna atha call pannanaum.
--- oru class ku 5 object create panni call pannalim ,antha method la irukuratha print
pannaum.
--- oru instance method la oru constructore tha use panna mudiyum,same name la una oru
constructor create panna athu error katum.
--- oru program kulla static and instance method use panni execute panna athu 1st static ha
tha execute pannaum.
Exception handling
-- Run time la face panra problem.
-- 4/0 exception.

--- if exception happened go with try ,catch block to know what exception happen.
--- to watch ,what exception happened st22(today).
--- pick type exception class and mention in catch block with one object.
--- run it show what type of exception accurately.
--- if exception happen out of method use raising exception comment with type of exception
class.
--- to create custom comment in class -zcx,ycx.

-- to create customize error it should be zcx,ycx.


-- without they exception object ,we can create an exception handling.
/ost22 - to check they error happened.
St22- to know that what are they exception that happen today

--- If they exception happend ouside of they method - we use raise exception with class of
exception happend

INTERFACE
Events
Singleton

--- Oru class ku oru object tha create panna mudiyum,athuku meal create panna try panna
object create panna mudiyathu.
Generic datatype
DATA: any_variable TYPE ANY.
any_variable = 10. " Assigning an integer value
WRITE any_variable. " Output: 10

any_variable = 'Hello'. " Assigning a string value


WRITE any_variable. " Output: Hello

DATA: dynamic_variable TYPE REF TO DATA.


CREATE DATA dynamic_variable TYPE i. " Creating a data object of type integer
dynamically
ASSIGN dynamic_variable->* TO FIELD-SYMBOL(<fs>). " Assigning the data object to a field
symbol
<fs> = 10. " Assigning a value
WRITE <fs>. " Output: 10

CREATE DATA dynamic_variable TYPE string. " Changing the data type dynamically to string
ASSIGN dynamic_variable->* TO <fs>. " Reassigning the data object to the same field
symbol
<fs> = 'Hello'. " Assigning a string value
WRITE <fs>. " Output: Hello

REPORT field_symbol_demo.

DATA: numbers TYPE TABLE OF i,


fs TYPE FIELD-SYMBOL.

numbers = VALUE #(1, 2, 3, 4, 5).

LOOP AT numbers ASSIGNING FIELD-SYMBOL(<fs>).


WRITE: / 'Number:', <fs>.
ENDLOOP.

4th book--1 lesson


You can adapt SAP standard software by using any of the following techniques:
● Personalization
● Modification
● Enhancement

1. Personalization
2. Customizing

Ethu rendum comes under they ui face


1st ku unaku individual ha oru change venum.ipo enoda(person 1) monitor la indian time
venum. (Person 2)enaku london time venum so change pannikalam.

2nd ku ,logic level la work panna matum,but oru field ha hide panrathu,antha mari use
pannikalam.
3. Enhancement
4. Customer development
5. Modification
4th book-lesson 2nd

Lesson one
Oru table kulla table enhancemenet use panni epdi oru extra field ha add panrathu
use append structure and customizing include.

Include -- we can group they multiple field in single name is include.


Append -- we can add different append to one table.

Include create panna


se 11 la ---> domain creation --> data type ,athule data element creation
Ipo oru structure create panni,-->needed filed ku name kuduthu --> intha needed
field ku --> data type la reference ha tharanum.
Ipo structure created .
Ipo yentha table la intha add panna numoo.antha filed kila arrow va point panni.
Steps to follow.

Append create panna


Unit 3 custom exit
Lesson 1
BTE -- Bridging function module.

Se18 ---- badi definition


Se19 ---- badi implememetation

Text enhancement.
F1 help--- we can enhance it,providing some additional information to the that ,for
standard table .
smod
cmod
1st -- Va01 (transaction code) -- use to create sales order. //which one u trying to change
Client oru requiremenet na -- check with feasibility check.

First way to identify function module.


2nd -- va01 debugger mode la open pannanum. -// to identify they function module or
program exit
3rd -- checking they function module matching with requiring.

Second way to identify function module. -- putting package name in smod

Third way to identify function module. -- Se84 enhancement .

Oru transaction code oda package kandu pudika.--antha transaction open pannitu

Antha transaction code oda program.


Antha program ha double click panna.

Program la goto.
U can find any type of customer exists through --- Smod
If U want to implement any kind of customer exit --- cmod

Zpari_1
1st menu bar
2nd function key
3rd title bar
4th application tool bar.

Screen exit
Oru field ha additional sap screen la add pannanum,athuku custom ha oru screen ha
create pannitu ,antha custom screen la ,custom field ha add,pannitu ,ipo antha custom
subscreen ha ,sap screen iruthu custom screen ha call panna antha field reflect agaum.

- Cat-02 use it ,we can create time sheet in.it


Three ways to identidy they screen exit(enhancement)/- Add panrathukuy munnadi
feasibility check pannanum.

1.screen number/Layout
2.Using package name with smod.
Package name ,smod la pota screen exit kandu pudichiralam.
3.Se 84

1st way

-- double click(ap)

- so inta mari sbscreen name (custscr2) ,program aname (saplxcat),subscreen no(2000).


Iruthha ,additional field add panna m,udiyum,illana illa
- so antha page la layout ha click panna.
- personeel selectio kela double click panna screen oainter page varum.

2nd way
- For cat2
- ipo smod la ,package name pota ,screen exit ha identify panniralam.

- below is an smod(bp).

--if u double click screen exit(ap)


-- below page will open.
3rd way

To implement using cmod.


- copy they screen exit from smod and paste in cmod.

- double click on they 1000 (ap).


- it ask short description for subscreen and change they dynpro type.

- click they layout.


- once u done change in they subscreen ,activate .

- update button reflected on sap system.y

L-4 classic badi


Unit -1

Require from client


Enoda requiremenet MM01(tc) using mm01,we can create sales order ,so oru field(unit of
measurement is equal to kg save nu kudutha eduthuku, ipo atha eduthuka kudathu)so
athuku code elthunanum.

Oru change panna porigana,athuku 1st Badi ha kanpudikanuim.


Badi ha process panna rendu option iruku
-- Se 18 for definition
-- Se19 for implementation
3 ways
1.Debugger
2.Se 18 (using package name)
3.Se 84 (using package name)
Note = check they feasibility.
1st way
Tc--se24 ,We have a default class to to find they badi

-- method ulla iruku program open agum.

-- ipo always place breakpopint on subrc.


-- intha break point vachitu mmo1 la oru sales create pannitu save panna try panna athu
debugger mode ku vanthu,antha sy-subrc hold agum.

Exit ha click panna ------- right side badi show agum (dp)
Se - 18 use panni ,atha badi oda short description check pannaum (reason namma
changes ,intha badi correct ja irukumanu pakanum).

2nd way (using package name)


change panna pora tc package name kandu pudikanum.
Tc--- status(system) --program screen(name of program) -- open agura program la --
Goto -attribute--we get package name
-- Using package name
-- u can copy it,what badi u want.

3rd way
Using Tc - se 84.
Se 19 badi implemamtataion

-- identify panna badi enhancemnt ha inga paste pannaum.

-- give some name to that enhancemenet.


-- give description name.

-- double tab that(ap)

-- double tab that(ap)

-- logic area.t(ap)
-- So IPO logic la break point set pannitu.
-- etha activate pannitu.
-- mmo1 oru entire potu save panna try panna athu debugger mode ku varum.

-- intha edathula ,antha implemenet double panna ,(ap) left sie la irukurathu ellam show
agum.
-- antha parameter ha double panna,(bp) right la irukurahu show agum.

-- ipo antha right side double panna,nega mmo1 la kudutha entre ellam yentha field la
varum nu katum.

-- so ipo antha field la vachi logic eluthukalam.and check is that importing parameter anu.
So antha field conform ana apram athuku,wmara-meins nu kuduthu patha nega kudutha
input anga show agum.

--now we can write logic init.

We can create message usinge tc--se91

-- after complete ,deactivate it wont reflect in original part.

Difference between custom and badi


Custom exit - Custom will save work in local machine within project ,so it wont affect
globally..
-custom exit la oru enhacement ma oru implementataion tha use panna
mudiyum.
BADI - It will work in globally.
-Badi la oru badi definition ha multipl implementataion ku use pannalama.

Classic badi -- ku enhancemenet spot irukathu.


New badi -- ku enhancemenet spot irukum,so that enhancement badi irutha athu new
badi,apdi illana athu classic badi.

-- Enhancement spot means container,container for new badi or kernel badi.


-- In one enhancement spot,we have multiple new 0r kernel badi.
-- classic badi is an indepenedent badi.

New badi
Same as classic badi it has an three way to identify they new badi.(refer classic badi doc)

Client req intha rendu button um vena,enaku confusion ha iruku.


-- Yentha (tc) la change panna porigalao,atha tc ha debugger mode la open pannikoga.

-- set they breakpoint with Call badi and Get badi.


--so intha comment vachi badi ha identify pannalam.

-- so (ap)mari ellam get badi and call badi mudicha apram,antha page athuva show
agum(bp).
-- nammaku yentha method match agutho,athu varaikum execute pannanum.

-- BADI kernel la oru object create panna get badi comment use panni create pannanum.

If the method is instance ,we can call they method through instance.
-- if double that method(ap).

-- if double that method(ap).

-- if u check they parameters of they method,it will show the changing ,if not changing
option present there ,no possible to do changes. (bp)
-- changing katuna, nega activate illa deactivate panna mudiyum,illana illa.

- its show function,u want to activate and deactivate.

-- ingayee katum ,ethu new badi illa classic anau.

2nd way to identify new badi enhacement( using package)


change panna pora tc package name kandu pudikanum.
Tc--- status(system) --program screen(name of program) -- open agura program la --
Goto -attribute--we get package name
-- Using package name
-- u can copy it,what badi u want.

3rd way

Now using tc - se19 to implememnt they badi


-- in (ap)badi implementataion choose own name.
-- in (ap) implementataion class choose own name.
--after save

-- enhancement implementation is an container for badi implementataion.

-- double click the (ap)

When ever interface method using in the class we need to implement all method in this
page ( ellam method open panni just close pannanum)
-- so ethula oru method implement pannalana kuda athu inactive va irukum.

-- ethuku logic eluthanum.

Need to identify they function code


For every button we have a function code
1. U can identify two way(below)
2. Using debug option
-- nega remove panna pora ellam button kum oru code irukum
-- u need to write logi in perferred method.

--using they parameters ,we can identify they changing parameters.(bp).


-- double click parametrs.

--for this(extab_insert) internal table ,we need push they function code to deactivate.
-- if u double click they mgint_extab ,u will get they structure(MEXTAB).
-- Func define that ,they length of they function code ,matching or not.

-- Etha deactivate pannita,antha badi changes ,sap standard la reflect agathu.


Customization definition
To create custom definitition using se18
- oru badi definition epdi create panrathunu nega therichikalam,without touching they
standard one.
- oru product developemenet ku romba use full ha irukum.

- 1s se18 la oru enhancement spot create pannanum.

-- create .

- no need composite enhancement spot.


- save to package.

- need to create interface.

-interface-->method -->parameters

- char1 is sap predefined associated type.


- activate all. We created definitition.

- need to create program in se 38 and using badi definitititon by call they badi
deninitiotn(bp).
- need to add referenece of it.(bp).

-using pattern
- Badi ha call panna default call badi,get adi.so change they call method to call badi,after
call that method through pattern.

- ipo oru enhancement create pannitiga(bp)

To implement use se 19
Se18 using panni create panna enhancement spot ha ing atharanum. (bp)

- enhancement spot is container for badi definitition


- enhancement implementation is container for badi implementation.

- double tab they class(bp)


To deactivate they logic
- badi implementation pannitiga,delete panna matan,ana atha change original aha reflect
aga kudatyhu,so untick panna athu ethula reflect agathu.

For multiple use


- Intha badi,rendu edathula use pannaikalam,

Filter concept
Ipo oru badi definititon ku rendu implementataion ,ha implemenet panni work pannu
bothu,program ha execute pannu bothu last ha yetha implement panninegaloo athu irukura
logi tha work,atha avoid panna filter concept use panrum.
- now activate it.

- click implementataion
-double click 1 st implememntataion

- if double
- Double click combination
-- and file symbol click

- Set1 for vale 1

Do it for second implementataion


-double click 1 st implememntataion
- if double

- Double click combination


-- and file symbol click

-now activate it.

Now change in program.


-activate it.

Fallback
Nega kudugatha oru filter value va input ha kudukum bothu,oru notification mari katum

-double click they file name(ap)


-save in package

-double tab they method(ap)

- write in that.

Unit -6 implicit enhancement


- name starting with they x & y customer namespace is enhancement
- name starting without they x & y is sap namespace.

Implicit Enhancement(implicit point)


--- Implicit enhancement pannanuma na ,first implicit point venum apram implict
enhancemnet pannalam.
--- Is present at they starting of program or ending of they program,like wise for function
module,subroutine.
--- oru program oda strating ,illa ending la enhancment point irutha ,antha point la mattum
tha enhancement pannamudiyum.

Se37 (tc for function module)


-- oru alv(REUSE_ALV_GRID_DISPLAY) default function module.
-- intha function enhancment panna,enhancment point kandu pudikanum.
-- sap oda standard la ,custom ha name kudutha ,antha standard program ha enhance
panrathu.
--- so intha mari line vantha nega enhance pannalam.

--- click on enhance button (bp).

--- -- so antha enhancemnet point ku nera vachi ,right clik pannanum.(ap)


--- click they create implementtaion (ap)

--- double click code(ap).


---choose it.(ap)

---- create they implementation name (ap)

-- it will ask they package(ap).


-- nega enhance pannathu.
-- implementataion u created(ap).

To undo they implementataion


Unit -7 explicit enhancement.
Oru Program yenga venalum enhancement point and enhancement section irukum.like
implict enhancemnt point mari starting and ending la irukanum illa yenga venalum irukum.

They are two

Enhancement point
We can do,less enhancement,we can’t do more enhancement.
-- oru particular function ha insert panra mari iruku.
Enhancement section
We can do more enhancement.
--- oru module
-- oru set of code ha pannikalam.

How to set enhancemenet point and section


Explict enhancement using point
Client req ---
--- Na inga oru material create pannu bothu enaku,material la name la compulsory oru
number eduthukunu,antha number 1 to 9 kulla irukanum.

To go screen nnumber
-- double click they screen number(ap)

-- double click module (ap)

-- now we setting breakpoint in they, flg int =.


-- if u again open they same mmo1 transaction code in that means it will,open automatically in
debugger mode.and stop were u set they brekpoint.
--- now u can see they name ,give initial while creating they material.

--enhance (ap)
-- yentha point ku enhance ,venumo antha point neriya clck panni ,enhencement create pannanum.

--- now they space is created to write logic.


--Now we added they logic,if u try to create without they number it will shopw =they error.

Unit -8 Modification of sap standard application


Use exit mean modifications

-- Enhance they sap functionalities in sap namespace


-- user exit is avilabel for sap sd(sales & distribution ) module.
-- user exit are avilable in they form of subroutine.(perform)
-- every use exit start with perform keyword.
-- most time namloda user exit program mv45afzz irukum.
--subroutine ( perform) .
-- user exit_delete_document -- name of user exit.
-- if u double tab they userexit name(bp),it show they logic page ,u can write they logic in
that.
To identify they user exit ,we how we three ways.

1st way using transaction code.

-- sap provided they vmod package ,it tha we can have all they user exit program for sales
and distribution.
-- breakpoint set panni userexit paka mudiyathu.
--using VA01 transaction code.

-open they status(bp)


-double tab they screen (ap)

- Here we get all they INCLUDE PROGRAM. For user exit.

- intha include program ellathukum user exit iruku.


-- if you double tap the program ,it will open they logic.
-- In one program ,we have a multiple form so we need to choose ,which one match.
---vbak,vbap are they major table for sales order.

-- vlo1n transititon code for distribution.


-- user exit.

2nd way using perform userexit.


-- after login in VaA01 transaction code
--using find button
--when u double click that it,it will go program page.

3rd way using package name


--se80
-- so intha idathula,program name vachi kandupuriciralam.

Implementation
Customer req: oru
-- se va01 la
-- sales order create pannitu ,athula material quality below 100 kuduthatu,save panna try
pannu bothu athu eduthuka kudathu.

---intha transaction code oda program ha identify pannaum.


--- mela irukura data va,header data nu solluvaga,
---kela irukurathu item data nu solluvaga.
-- click on status

--
-- double click on they program(ap)

-- antha include ha double tap panna apram,oru page ku pogum,athu la


Form
End form
Intha mari neriya irukum,ethula user exit ,ena venumo atha choose pannitu ,athula logic eluthanum.
-- va01 la ore entire pota athu header data va vbak table la save pannaum,,item data va vbap table la
save pannum.

--table out put la ,customize ana input vara ,etha use pannalam.
---indicators symbol used to track they,customize input data.

-- user exit la ,sap oda standard program ha enhance panna try panna access key kekum.
OData
---t o create odata service ---tc --SEGW.
Data migration

-- extracting they data -- ethvathu oru data base la iruthu data va edukurum. In file type.
-- converting they data --- ipo sap field lenthg 18 tha eduthuku,but legacy database la 20 lentha la
iruku,atha appropiate ha mathanum.
-- importing they data --- converting data
-- verify they data

Bdc -business data commmunication


-- it is used to transfer data between two different business database
---- for bdc sap will provide they program for it,nama program elutha theva illa.
--- we not use bdc in development,because it is closely associated with screen.
---- for alternation of bdc ,we use bapi
----transfer they data from non-sap(other than sap) to sap

--ipo oru sales order database sap ku migration pannanum,


-- athuku oru recording pannanum,etha principle nu solluvaga,epdi na sap oru sales order epdi create
pannaum indra tha step by step ha recording pannanum ,atha recording vachi oru legacy sales order
ha sap la migrate pannaum mudiyum.
Now we need to check entry found in se11--- in mara,makt table
And description store in MAKT table

Now we need to record for that ---tc SHDB


Now convert this recording into program
--- tha things all u done in materil management creating that will reflect here.

--now we have to choose they legacy datatype.


--convert they data according to sap standard.
-- for that I am taking sample data(bp).

-- now we need to go to they program we generated ,during they screening progress.


-- localfile is an sap predefined data element..
Cross application
--once u create they function and business object then u define that Business object Repository.
-- 1st we need to create they table .
-- for inserting in table ,we need to create field .

-- You have an external data that need to migrate into sap ,for that we need to create they table.
-- We need to create function module ,before that we need to create they function group for storing
they function module
-- TC-80
--Need to create they function module.
--TC se 37 to create they function module.

-- we need to write logic in function module


--Then we need to create they structure
--tc-- Se11 for structure creation

-- created structure need to insert in they function module.

Idoc
-- Tc for idco We02
--for exchange they data from no-sap to sap
--for exchange they data from sap to no- sap
-- for exchange data from sap to sap

-- enoda req ,outside of sap data va sap kulla kondu ponum.

For that we need to follow this process.

--Inbound --ulla
--outbound-- veliya
--new

--old
--for every idoc ,we have an unique idoc number
-- with control record,
-- data record ,
-- status record .
control record
-- it provide they basic details
Data record
-- it will display whole data in segment.
- data record will show they data record ,it that ,we have segment,in that segment we have they data.

Status record
-- it shows weather it successful or failure or error stat like that
-- table to show EDIDS
(1.1) To identify they status
-- Segments are always storing they data.
-- segment alwayse define in idoc
-- tc -se30
To create interface
-tc-- BDBG

Dpc -- Data provider class


Mpc -- Modern Provider class.
Pricing routine

To create condition table we have two option


1. V/04
2. SPRO

To create condition table


-- using TC -- V/04
-- Hera table number from 1 to 500 sap has use,we cant use.

--sample
-- suppose if some whereb ,they used means it will show like this.
To create new one
1--Enter number and enter
2.--- In this page it will show they catalog , you can select it from what u want.

--- once u selected


-- u can generate it.
spro
-- if u double tab it will go to create condition table.

Sorting concepts
For Pricing record

Condition records
--- Sap abap la default ana condition records ellam iruku,
--- condition record is full based on key combination that will done in condition table

Condition table - v/04


--- Nega oru additional record add panirga ,athu oru key venum ,key to add in they condition that
will ,that will create in conditiontable

Access Sequence - v/07

To identify which price ,we used - v/06

Already we have existing pricing procedure,We added some access sequence we need to check it
reflected are not -- v/11

To create condition type - v/06

Pricing procedure -- v/08 (RVAA01) sapstandard pricing procedure

You might also like