Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objectives
Pre-Requisites
Contents
Scope
Example
BDC
Defnition
Defnition
Contain$
Screen$
+ie"d$
,*-code$
Implementation
+or doing thi$ .ob there are $evera" method$ "i*e /S01 '/egacy
Sy$tem 0igration 1or*bench( and BAPI ' Bu$ine$$ A##"ication
Programming Inter!ace(.
There are to ay$ to enter the data into SAP tab"e$ one i$ manua"
entry and other one i$ through tran$action "i*e me34 etc..
0o$t o! the tab"e$ are SAP $tandard tab"e$ $o manua""y entering and
modi!ying data i$ not #o$$ib"e.
In $ome ca$e$ ba$ed on the va"ue$ entered in the $creen the ne2t
$creen change$7 e need to ta*en care o! a"" the$e ca$e$.
In each and every tran$action the header data i$ !i""ed !ir$t and then
the "ine item 7 i! the "ine item e2i$t.
I! you ant to *no the !ie"d detai"$ in any $creen .u$t #"ace cur$or there and
#re$$ he"# *ey'+4(7 then $ee the technica" in!ormation.
Be!ore creating any BDC #rogram it i$ better to ma# out the $et o! $creen$
hich i"" be u$ed in the tran$action a$ e"" a$ a"" !ie"d$ hich are
mandatory and o#tiona" in tho$e $creen$.
+or e2am#"e9 In +-3: tran$action a!ter entering data in the !ir$t $creen7
Ba$ed on radio button o#tion you $e"ect in that $creen the
$creen !"o i"" change. In thi$ e2am#"e none7
amount7 re!erence etc... Radio button$ are there7 i! you
$e"ect none radio button it direct"y goe$ to SAPD+6;<-=463 $creen7
in ca$e you $e"ect amount radio button it goe$ to SAP0+6;A-6>36
$creen.
1ith that each and every $creen have $ome $et o! !unctiona" button$
'tab$( "i*e $ervice7 ta2e$7 1ithho"ding ta27 Standard7 Partia" etc..
+or 52am#"e 9 In +-3: Tran$action a!ter entering data at the !ir$t $creen you
#re$$ enter it goe$ to $creen here you have
choice$ to $e"ect !unction$ 'in di!!erent tab$( "i*e
$tandard7 #artia"7 re$idua" etc..
Building a BDC Table
The #rogram $hou"d !i"" the BDC tab"e ith va"ue$ !or !ie"d$7 one ro
in the interna" tab"e #er record. An additiona" record to #rovide
in!ormation about the $creen it$e"! mu$t #recede the ro$ o! !ie"d
data.
The !ir$t ro o! BDC tab"e contain$ the $creen name and the $creen number . +rom
$econd ro onard$ !ie"d$ in the $creen are #o#u"ated.
1ith Recording.
,nce the BDC tab"e ha$ been bui"t7 it need$ to be $ubmitted to SAP
!or #roce$$ing.
Thi$ mode a""o$ the #rogrammer to contro" hat ha##en$ hen the tab"e i$
$ubmitted.
0ode & i$ the on"y mode that can u$ed in a #rogram that i$ run in the
bac*ground7 ithout u$er interaction.
Processing Data with BDC)INS'!T:
But un"i*e ca"" tran$action7 the data i$n?t #roce$$ed immediate"y it?$ #"aced
into the SAP batch 8ueue !or "ater #roce$$ing.
There are three SAP !unction modu"e$ that need$ to be ca""ed !rom the BDC
#rogram to $ubmit the tran$action !or #roce$$ing
4. BDCA,P5&AGR,CP9 Thi$ !unction o#en$ the BDC $e$$ion and mu$t be ca""ed
be!ore any #roce$$ing i$ done.
3. BDCAI&S5RT9 Thi$ !unction i$ ca""ed !or each tran$action in the batch.
3. BDCAC/,S5AGR,CP9 Thi$ !ina" !unction c"o$e$ the $e$$ion and $ubmit$ it to SAP
!or #roce$$ing.
*unction module details:
+, BDC)"P'N)%!"$P:
Thi$ !unction modu"e o#en$ a BDC $e$$ion. ,n"y one $e$$ion can be
o#ened at a time. C"ient7 Grou#7 Fo"d date7 %ee# and C$er #arameter$ are
e2#orted hi"e ca""ing !unction.
Fo"d date9 Su$#end$ #roce$$ing o! the BDC $e$$ion unti" a!ter thi$ ha$
#a$$ed.
%ee#9 %ee#$ the $e$$ion in the $y$tem a!ter #roce$$ing7 unti" it$ de"eted by
an admini$trator hen the !ie"d i$ $et to <.
C$er9 The name u$ed to e2ecute the $e$$ion in batch mode you can?t $u##"y
an on"ine u$er name.
-, BDC)INS'!T:
Fere you enter a"" the detai"$ "i*e $e$$ion name and tran$action !or e2am#"e
e can have a $e$$ion name a$ Cu$tomer and the tran$action a$ 0534.
Then you get $et o! $creen$ to enter the data to create ne record or modi!y
e2i$ting record.
5nter/0odi!y the data in the $creen$ a$ you ant the #rogram to do. A!ter
com#"etion o! thi$ #roce$$ !or one tran$action7 your recording i$ com#"ete.
C$e a##ro#riate "ogic !or #age #"u$ in ca$e there are mu"ti#"e "ine
item$ more than tab"e contro".
Go to error "og to $ee hat i$ the #rob"em hen ever the tran$action
i$ erroneou$.
Initial Screen of &'-+
Purchase order item screen
Purchase order item sub
screen account assignment,
Purchase order Ser1ice Screen
Purchase order Ser1ice sub
Screen account assignment
'0ample
+ir$t $creen 9 Thi$ i$ header $creen !or #urcha$e order creation. The !ie"d$
are vendor number7 #urcha$e order ty#e7 #urcha$e order date7
currency.
Second $creen 9 Thi$ i$ the #urcha$e order item $creen. The !ie"d$ are item
category7 account a$$ignment7 materia" number7 materia" $hort
de$cri#tion7 Guantity7 De"ivery date7 &et #rice7 materia" grou#7
#"ant.
Third $creen 9 Thi$ i$ the #urcha$e order item account a$$ignment. Ba$ed
on in#ut va"ue o! item category i$ em#ty and account
a$$ignment i$ %.
+ourth $creen 9 Thi$ i$ #urcha$e order $ervice $creen here u$er enter$
Service te2t7 Guantity7 Gro$$ #rice7 Cnit o! mea$ure.
+i!th $creen 9 Thi$ i$ #urcha$e order $ervice $ub $creen here u$er enter$
co$t center and G/ account va"ue.
After this the recording is done, Then the recorded program is used in the ob2ect,
3hen this ob2ect is e0ecuted with BDC)INS'!T method without submitting the
BDC4 we can go to S&./ to manually process the BDC, If we e0ecute the
program while submitting the BDC 4 the BDC processing will be done
automatically, The following slides e0plain the manual processing of a BDC,
New Session in S&./
Process the session in
Different modes,
Process the session in fore
ground mode,
Session in Processing
Incorrect session
Processed session,
'0planation
Second $creen 9 Thi$ i$ the $creen to run the $e$$ion in di!!erent mode$ "i*e
!oreground7 bac*ground7 di$#"ay error$ on"y ith additiona"
!unction$
e2tended "og7 e2#ert mode7 dyn#ro $tandard $iHe7 cance" i!
"og error$
occurred7 $imu"ate bac*ground mode7
C$e /B5&D tran$action to come out !rom #roce$$ing
$e$$ion.
Si2th Screen 9 Thi$ $creen te""$ that #roce$$ed $e$$ion ithout error$.