IDOCs Configurations
Short Description
IDOCs Configurations....
Description
Learn SAP — IDOC Configuration If you want to know the IDOC basic (create , execute and seect the ist! then Click Here" In this #ost et us see how to configure a new IDOC $essage ty#e in the SAP syste$" %he &ain SAP %ransaction for IDOC #rocessing is 'DI" AS soon as you go there you wi see a the t)code associated with the IDOC wi a##ear" %his contains a the IDOC t) codes fro$ creating to #rocessing to configuration" configuration" *ere we are going to ook in to a business case and see how we can configure the IDOC and how to #rocess the IDOC" 'e ha+e a %ext fie co$ing fro$ fro$ a rd #arty with custo$er first na$e, ast na$e and Age" 'e need to create a new $essage ty#e and store this infor$ation as idoc" Once we recei+ed this IDOC we need to #rocess the data and oad this data to a tabe(rea ife we ca a SAP -API or sa# function $odue nor$ay -P create!" %he text fie for$at is as foows .irst na$e char(/0!, ast na$e char(/0! and age nu$ber (!" A of the foowing things are trans#ortabe" Sa+e the trans#orts" 1ou can $o+e the sa$e config and the data fro$ one syste$ to another using this trans#ort" Create and/or Configure New IDOC segments:
%)Code is '2" Create a new Seg$ent ty#e 3%S%4C5S%" See the foowing screen shot"
Cick create and see the foowing screen shot" 6ow the Seg$ent is created we are ready to create Idoc ty#es and &essage ty#e" Create and7or Configure 6ew IDOC ty#es8 %)Code is '2" Create a new IDOC type ZTET!IDOC!T"#E$
Cick create that wi take you to the next screen" see the screen shot"
Cick on the create seg$ent" A #o#)u# wi dis#ay" See the foowing screen shot" Seect the created seg$ent ty#e and cick continue"
6ow cick sa+e and sa+e the IDOC ty#e" 6ow we ha+e a IDOC structure that can ha+e the first,ast na$e and the age"6ow et us go to the $essage ty#e"
Create and/or Configure New %essage types:
%)Code is '92" :o to the screen cick on edit7change and add new entries and add a new $essage ty#e 3%S%4&S4%1P" See the foowing screen shot"
6ow the new $essage ty#e is created" Configure t&e New %essage type and t&e New IDOC Type:
%)Code is '9/" 6ow connect the &essage ty#e and the IDOC ty#e" :o to the screen cick on edit7change and add new entries and add the 3%S%4&S4%1P ,3%S%4IDOC4%1P and +ersion as ;?" Add the new function $odue to this $essage ty#e so that when e+er we get a new IDOC data then the SAP wi ca this function $odue where we need to #ut the code in for what e+er #rocess we need to do"(usuay decode the idoc and +aidate the data and #ost the data in the syste$!" :o in to this transaction and go to change $ode and add new entries" See the foowing screen shots"
In the new entry screen add the function $odue that you want to execute for this IDOC data" See the foowing screen shot"
6ow setu# the Inbound #rocessing code" It is in ';/" :o to -D>2 and add your function $odue" go to ';/ and add your in#ut #rocessing code" See the foowing screen shot"
6ow go to the Partner function and add this IDOC" So that for the sa$e data ty#e we can contro what function we need to do if that co$es fro$ different #artners"
Create and/or Configure #artner #rofile:
%)Code is '/0" :o to this transaction and setu# this &essage ty#e to the #artner that are sending the data to the SAP syste$" Our $essage is inbound so add this to the inbound #ara$eters" See the foowing screen shot"
*o#e this he#s" Let $e know if you ha+e any @uestions"
-eginners :uide to AL and IDOC Processing
AL (A##ication Link nabing! su##orts the construction and o#eration of distributed a##ications" AL handes the exchange of business $essages across oosey cou#ed SAP a##ications, ensuring that data is consistent" A##ications are integrated by using synchronous and asynchronous co$$unication, rather than through a centra database"
*&at is '+E, AL is SAP #ro#rietary technoogy that enabes co$$unication of data between two or $ore SAP 7 and7or 7 and externa syste$s" AL #ro+ides inteigent $echanis$s which cients can achie+e integration and distribution of a##ications and data" AL technoogy faciitates ra#id a##ication #rototy#ing and a##ication interface de+eo#$ent, thus reducing deays in i$#e$entation" AL co$es with a##ication distribution and integration scenarios, and a set of toos, #rogra$s, data definitions, and $ethods that you can easiy configure to get an interface u# and running"
'd-antages of '+E AL offers better #erfor$ance interface entrants co$#ared to traditiona techni@ues such as data sets (-DC! or ca transactions" AL does not use in#ut screen on the ot" AL is the strategy architecture of 7 Boose cou#ing with the egacy and third)#arty a##ications and is a key ee$ent of the -usiness .ra$ework" It #ro+ides an architecture based on asynchronous $essage to the integration of -usiness .ra$ework, incuding -usiness Co$#onents, -usiness Obects and -APIs"
Components of '+E • • • • • • • • • •
Legacy Syste$ &essage ty#e IDOC ty#e Custo$er Distribution &ode .iter obect ty#e and fiter obects Change #ointers Ports Process codes Partner #rofie &essage Contro
T&e %ain teps in t&e Design of '+E %he Distribution &ode is a distribution too that stores infor$ation about the fow of $essages between different syste$s" A fiter obect ty#e is used in the distribution $ode of the custo$er to i$#ose a seection criterion on the $essage (ty#e! arising fro$ the ogic of the syste$" A fiter obect ty#e with a +aue associated with it is caed a fiter obect Change #ointers SAP 7 obects that $ark changes in SAP data" Change #ointers are $anaged by sharing $echanis$s in a &aster Data and changes are based on docu$ents (CD! obects" CD obects record the changes to $aster data at a fied e+e" %hese changes are recorded in %abes CD*D (header tabe! and CDPOS (detai tabe!"
%aintain O()ect 'ttri(utes A #ort is a ogica re#resentation of a co$$unication channe in SAP" %here are four ty#es of #orts that can be defined in 7 8 t.C, fie 7 /, and the Internet" Process codes are used in the AL and DI to identify the function $odue or the API" Code of each #rocess is associated with a $essage ty#e" Outbound #rocess codes are stored in the tabe %D2 whie entering codes are stored in #rocess %D/" 5se transaction ';2 to dis#ay outgoing codes and #rocess ';/ to dis#ay the codes" &essage contro is a $echanis$ by which the docu$ents are out#ut based on certain seection criteria, re@uire$ents, and se@uences" &essage contro d eter$ines the ty#e of docu$ent, date, nu$ber and the $ediu$ (#a#er, fax, AL or DI!"
#artner #rofile is an identifier for a syste$ used for co$$unicating $essages" %here are four ty#es of #artner #rofies8 E5 for Custo$er, LI for =endor, - for -ank, and LS for Logica Syste$" E5, LI, and - are used for DI #artners, whie LS is used for AL co$$unications"
IDOC Definition An inter$ediate docu$ent (IDOC! is a container for distributing 7 a##ication data a$ong between 7, 7/ and non)SAP syste$s" AL uses IDocs to exchange data between ogica syste$s" 6on)SAP syste$s can use these IDocs" In the standard interface for data transfer, IDocs are created by $essage ty#es and ðods when data is to be distributed" %he ty#e of $essage is the for$at in which data for a business #rocess is trans$itted eectronicay" %ore info a(out t&e IDOC
An IDoc re#resents a configuration of an Idoc %y#e that deter$ines the IDoc structure" An IDoc consists of a header, se+era data seg$ents and status records" %he functions of the indi+idua ee$ents of an IDoc are as foows8 %he contents, structure, sender, recei+er and current status of the IDoc are defined in the IDoc header" ach data seg$ent contains a standard header consisting of a se@uentia seg$ent nu$ber, a descri#tion of the seg$ent ty#e and a 2000 character ong string fied containing the actua data of the seg$ent" %he status records show the history of the #rocessing ste#s a##ied to the IDoc"
How to c&eck t&e status of IDOC, In t&e sending ystem
%ransaction Code for IDoc ist is 8 '0> A ist of IDocs grou#ed by status is dis#ayed8 tatus 0, 2/, 9 ) IDoc successfuy transferred 0/, 0;, 0>, />,/ A ist of IDocs grou#ed by status is dis#ayed8 tatus
> ) IDoc successfuy u#dated F 8 %o stabish .C Connection" -D ste#s8 2" Design and de+eo# the custo$ IDoc with it s seg$ents and a new $essage ty#e /" Configure the AL en+iron$ent with the new IDoc and $essage ty#e (custo$er $ode, #artner #rofies and inking IDoc to $essage ty#e! " De+eo# the outbound #rocess which does the foowing8 2" Po#uates the custo$ IDoc with contro info and functiona data /" Sends the IDoc to the AL ayer for distribution " 5#dates status and handes errors ;" Configure the AL inbound side (#artner #rofies with inbound #rocess code! >" De+eo# the inbound #rocess which does the foowing8 2" eads the IDoc into a -DC tabeJ seects other data that is re@uired /" uns transaction using ca transaction or -DC session " 5#dates status and handes errors =iew7Downoad the Co$#ete :uide on AL Configuration and De+eo#$ent"
Let start earning IDOC" IDOC is new to $e as we" I earned it when I was in one of the #roect" It was great that I ha+e the o##ortunity to earn new stuff" -ack to the #ointG et start what you need to do with IDOC" 2! Create seg$ent ('2! Of course it wi ha+e na$ing con+ention for different co$#any" *ere are so$e ti#s8 If you co#y fro$ existing or std seg$ent eg8 322DP02402" If not you can ust #ut 32G"but this is ony the exa$#e" /! Create IDOC %y#es ('0! ! Create $essage ty#e ('92! ;! Link $essage ty#e with basic ty#e ('9/!
>! Create .& In the .& a the attributes shoud be the sa$e for Inbound or Outbound" -asicay you can get an exa$#e fro$ the std .& eg8 Inbound H IDOC!IN#T!DE+0." Outbound H IDOC!OT#T!H#%NT " ith
View more...
Comments