Académique Documents
Professionnel Documents
Culture Documents
Partner About
Community / Blogs
IDocBasicsForFunctional
Consultants
December31,2012 | 26,645Views |
NiranjanNagle
morebythisauthor
MM(MaterialsManagement)
SAPERP | edi | enterpriseresourceplanning | idoc | sap | saperplogisticsmaterials
management
share
0 share
0 tweet share
146
Follow
ABSTRACT
TodayIDocsareusedinmostSAPapplications
fortransferofmessage(information)fromSAP
system to other systems and vice versa.
Though lot of documentation is available on
IDocs it is difficult for a functional consultant
to understand such documents due to their
technical nature. While a functional
consultant is not expected to know the IDoc
concepts in its entirety, an effort has been
made to capture the minimum necessary
information that one needs to be aware of in
order to handle project/support issues on
IDocs.
OVERVIEW
IDocisanSAPobjectthatcarriesdataofabusiness
transactionfromonesystemtoanotherintheformof
electronic message. IDoc is an acronym for
IntermediateDocument.ThepurposeofanIDocisto
transfer data or information from SAP to other
systems and vice versa. The transfer from SAP to
nonSAP system is done via EDI (Electronic Data
Interchange) subsystems whereas for transfer
betweentwoSAPsystems,ALEisused.
Forinboundflow,EDIconvertspartnerdataandIDoc
iscreatedinSAP.Aftersuccessfulprocessingofthis
IDoc,ApplicationDocumentispostedinSAP.
EDISTANDARDSANDIDOC
IDOCTERMINOLOGIES
IDOC(BASIC)TYPE
IDOCEXTENSION
IDOCSEGMENTS
IDocsegmentscontaintheactualdatathatissentto
orreceivedfromapartner.Thesesegmentscontain
the actual values that are sent as part of IDoc
transmission.
PARENTANDCHILDSEGMENTS
INBOUND/OUTBOUNDIDOCS
Thissignifiesthedirectioniswhichinformationissent
and is similar to terminology used in mails. If
information is sent outside the system then the
directionisoutboxwhenitisreceivedintothesystem
then direction is inbox. In SAP Outbox direction is
represent by 1 i.e. outbox and Inbox direction is
representedby2.
PARTNER
PARTNERTYPE
MESSAGETYPE
PROCESSCODE
TheprocesscodecontainsthedetailsoftheFunction
Module that are used for IDoc processing. Message
TypecanbelinkedtotheProcesscode.
PORT
IDocPortcontainstheinformationaboutthewaydata
issentbetweenthesourceortargetsystem.Thetype
of port defines the information contained within the
port. For port type Internet Port will contain IP
address of the target system. For port type file,
directory or file name information is maintained.
tRFC port contains information about the RFC
destination of the target system. For IDoc
transmissionusingALEtRFCportsareused.
PARTNERPROFILEMAINTENANCE
PARTNERPROFILE(WE20)
DoubleclickingonthePartnerwillshowthefollowing
screen:
Partner profile contains parameters for Inbound and
Outbound processing of IDocs. For each message
type we can maintain, inbound/outbound options,
message control, post processing options and
contact information within Inbound and outbound
parameters.
Thisinvolvessender/receiverport,Outputmodeand
relationtoIDoctypei.e.BasicTypeandextension.
MESSAGE CONTROL (OUTBOUND
PARAMETERS)
ProcessCodeislinkedtotheFunctionModulein
SAPthatconvertsapplicationdataintoanIDoc.
StandardfunctionmodulesareprovidedbySAPfor
thisconversionhoweverthesecanalsobe
customizedasperbusinessneeds.
Change Message Indicator indicates whether the
IDocissentasanotificationofchange.Forexample,
PurchaseOrderchangemessagesaresenttovendor
usingEDIstandardmessagetype860.
POSTPROCESSING(INBOUND/OUTBOUND
PARAMETERS)
EDISTANDARD(OUTBOUNDPARAMETERS)
Forexample,MessageType850isanEDIstandard
for Purchase Order IDoc and is linked to IDoc
MessageTypeOrders.
IDOCSTRUCTUREANDRECORDS
STRUCTURE
CONTROLRECORD(EDIDC)
ItcontainsthedetailsoftheIDocsegments.
IDoc segment has fields that contain the data
necessaryforpostingthedocuments.
STATUSRECORDS(EDIDS)
IDocStatusdefinestheprocessingstatusoftheIDoc.
IDoc statuses are used to track the IDoc and its
various processing states. Status Numbers
represents IDoc status. Current status of the IDoc is
presentinControlrecord.
SENDINGANDRECEIVINGIDOCS
TRIGGERINGANOUTBOUNDIDOC
Outbound IDocs can be triggered from the output
message types of Purchase Orders, deliveries,
Material Documents, invoices, etc. The following
figure shows that once the output ZXX1 of PO
XXXXXXX1 is processed an IDoc
000000XXXXXXXXX1isadded/created.
1.RelationshiptabofIDoc
2.RelationshiptabofApplicationDocument,e.g.PO,
SO,MaterialDocument,etc.
The initial status of this IDoc will be 30, which after
successfulprocessingwillconvertintostatus16.
AsuccessfuloutboundIDocwillpassthroughallthe
abovestatusesinreverseorder(010318061216).
EachstatusrepresentsanIDocvalidationstep.Ifan
IDoc passes all the validations it would reach status
16. These different validation steps for outbound
IDocsareexplainedbelow:
01:IDocgenerationsuccessful
30:IDocisreadytobeprocessedbyIDocProcessing
job
03:IDocdataispassedtothePort
18:IDocsuccessfullytriggeredEDIsubsystem
06:IDocdatatranslatedtoEDIformat
12:IDocisdispatchedsuccessfullytothepartner
16:PartnerhasreceivedtheIDocsuccessfully
IDoc can possibly fail at any of the above steps
duringvalidation.
RECEIVINGANINBOUNDIDOC
50:IDocreceivedsuccessfullyinthesystem
64:IDocisreadytobeprocessedbyIDocprocessing
job
AninboundIDocgoesthroughalltheabovestatuses
inreverseorder(506453).
IDOCPROCESSING
AUTOMATIC/IMMEDIATEPROCESSING
Inthiscase,IDocareprocessedimmediatelyasthey
generated or added in the system. The check
Transfer IDoc immediately is selected in Outbound
Options and Trigger Immediately is selected in
Inbound Option. These checks are generally used
when the real time information exchange is
necessarybetweentwosystems.
MANUALPROCESSING
PROCESSINGVIABACKGROUNDJOB
IDocprocessingbybackgroundisthemostpreferred
wayofprocessingtheIDocs.FollowingProgramsare
used from processing the IDocs using background
job:
RBDAPP01InboundIDocs
RSEOUT00OutboundIDocs
REPROCESSINGIDOCS
IfanIDoccontainserrorinthedatathensuchIDocs
canbeeditedusingTCodeWE02orWE05.Whenan
IDociseditedtheoriginalIDocinformation(backup)is
savedinaNewIDocunderstatus70(forinbound)/
33(foroutbound).TheseIDocstaysinthesystemfor
reference only and cannot be processed. The status
of the edited IDoc becomes 69 (inbound) and 32
(outbound). These IDocs can then be processed
usingBD87transactionorbatchjobs.
CONVERTINGIDOCSTATUS
ReportRC1_IDOC_SET_STATUScanbeusedto
changethestatusofIDoc.Statuschangesare
generallyneededtomoveanIDoctostatus68no
furtherprocessing
SEARCHINGIDOCSINSAP
TCODEWE02/WE05:GENERALSEARCH
IDocscanbedisplayedinsystemviaTCODEWE02
andWE05.IfIDocnumberisnotknownthensearch
can be made on the basis of IDoc Date, Direction,
BASIC TYPE, MESSAGE TYPE, and PARTNER
NUMBER. Partner number can be found in the
OutputMessagesofthedocuments.
IDocsearchcanalsobemadeonthebasisofISAor
TransferfileReference.
TCODEWE09:SEARCHINGDATAINIDOC
SEGMENTS
IDOCVALIDATIONS,COMMONIDOC
ERRORSANDSOLUTION
Though,theIDocfailuremaynotberelatedtoanyof
the above mentioned reasons, the best way to find
theIDocerroristocomparetheexistingIDocwiththe
good example. Good example IDoc can be easily
searched with any of the IDoc search methods as
describedabove.
DOCUMENTATIONFORIDOCTYPES
IDOCMESSAGETYPES
ThefollowinglistgivestheBasicTypeandMessage
Typecombinationforcommonidocs
ARCHIVING/DELETION OF IDOCS FROM
DATABASE
AlertModerator
276Comments
YoumustbeLoggedontocommentorreplytoapost.
BSHada
December1,2016at7:30am
VeryInformative,thanks
SanthoshVenreddy
December2,2016at10:16am
ManyThanksforthisinformation
UpendraTiwari
December4,2016at2:11pm
It'sreallyveryhelpful..
mohamadbaradhi
December20,2016at4:25pm
HiNiranjanNagle,
thankyousomuchforthishelphulinformation,Ivereadyourexplanation
aboutIDOCandImthinkingtouseittopostaSalesOrderonSAP.
MyclientisaskingmetopostSObasedontheexistingdatainthePurchase
order.
BasedonyourexplanationintheOverviewparagraph,yousaid for
transferbetweentwoSAPsystems,ALEis
useddoyouthinkifIusedALEitwillbefeasibleforsuchrequirement.
Pleaseletmeknowyouropinionandifyouhaveanyexplanationregarding
myclientrequirement,
Thankyousomuch,
Moha
NiranjanNagle
January16,2017at8:47pm
HiMohamad,
Yes,itistruethatALEcanbeusedinthisscenario.Iam
assumingyouaretryingtopostSOinonesystemthattriggers
POinanothersystem.
YoustillhavetogenerateoutboundIDoc(forSO)insending
systemandInboundIDoc(forPO)inreceivingsystem.Please
checkwithyourbasisconsultantontheusageofALEinthis
scenario.
Regards,
Niranjan
CMARameshKolluru
February23,2017at10:11am
ExcellentArticleaptlytailoredforfunctionalconsultantslikeme.Thanksa
lotforyoureffortsandtime.
Previous 1 4 5 6