3
Most read
4
Most read
5
Most read
IDOCS Tcodes

: jayprakash Barik (JP), @: chikujp@gmail.com

Intermideate documentes
SAP to SAP : ALE(Application link emblening)
SAP to NON SAP : EDI (Electronic data interchange)
Direction :Inbound : 1
: Outbound : 2
Status : 1 to 50 : outbound

and 50 above : inbound

Sucess : 53 sucess for inbound idcoc
: 12 Sucess for outbound idoc
•

IDoc or Intermediate Document is a standard SAP document exchange format. IDocs allow
different application systems to be linked via a message-based interface. The IDoc interface
consists of the definition of a data structure (where the data structure is the IDoc) and a
processing logic for this data structure. There are three main aims behind the use of IDocs:

•

The structured exchange of business documents so that they can be processed automatically.

•

The various degrees of structural complexity as displayed by different application systems can
be reduced to a structure which is as simple as possible.
Example: The structure of an SAP application document and the structure of the corresponding
EDI message under the UN/EDIFACT standard.

•

IDocs allow for extensive exception handling before the data is posted to the application.

•

Electronic Data Interchange (EDI) was the first form of data transfer to use IDocs. In EDI
application scenarios, the processes, by definition, involve two partners: The sender and the
recipient of an EDI message. EDI is a bilateral, document-oriented form of data transfer

•

Application Link Enabling (ALE) enables integration of business processes that are developed
across several SAP systems or non-SAP systems. Thus, ALE is oriented to connect different
applications on different systems. System-wide ALE message flows are modelled in a so called
'distribution model'.
A typical scenario is the system data administration, where material master records have to be
distributed from one central to several satellite systems. Nowadays, pure EDI scenarios are
more and more executed on the basis of ALE technology, only that the system connection is
'just' bilateral.
•

In an SAP System the Application Link Enabling (ALE) is one of the core integration technologies.
It involves the exchange of hierarchical data documents known as Intermediate Documents
(IDOCs).

Idocs detals
There are 3 record ,will be found out from anyIDOC
1: Control recored 2: Data record 3: Status Record
Control record is a kind of “envelope” record that contains information about the IDOC like














IDOC type (“what data is in the IDOC”)
Message type (“how is the IDOC being processed”)
Sender information (“who is the sender of that IDOC”)
Receiver information (“who is the receiver of that IDOC”)
Latest status of EDI processing.
EDI standard and version.
The only two mandatory fields that must be filled are the
Message type (MESTYP) and
IDOC type (IDOCTP)
Note that you have to use uppercase literals when you fill the two fields
The sender information - along with additional information - is automatically filled in by
the ALE layer (in function module “MASTER_IDOC_DISTRIBUTE”)
The receiver information is optional:

If a receiver is specified, a check is carried out against the Distribution Model if this receiver is valid. If it
is, an IDOC is created; otherwise no IDOC will be created.
If no receiver is specified, “MASTER_IDOC_DISTRIBUTE” will determine all valid receivers that are
maintained in the distribution model for that message type and create an IDOC for each receiver !
Data Record






The IDOC data records contain the data of the message. The data records are passed in an
internal table and they have to match the structure of the IDOC (sequence of segments,
min/max, hierarchy etc.)
EDIDD is a generic structure used for all IDOC segments
SEGNAM field identifies the segment type
SDATA contains the actual data of the segment

Status Record- table EDIDS –Information we get from Status record:







Status number
Message
IDoc type
Direction
Data and time stamp




Detailed description of status by code and text
Location of exception in Intermediate Document
Detector of exception by program and user.



The statuses for outbound IDocs are between '01' and '49', while the statuses for inbound
IDocs begin from '50'.
When an IDoc is created, the IDoc Interface sets the status in the function module
EDI_DOCUMENT_CLOSE_CREATE. All additional
status records are written explicitly by the function module
EDI_DOCUMENT_STATUS_SET.
It is possible to have Custom Statuses also.




TCODES

WE31 IDoc segments
WE30 : Idoc creation
WE19: To change the IDOC
WE02/WE05/WE09 : to search the IDOC
WE09 : To search the IDOC by segment
WE30 IDoc types
WE81 Message types
WE82 IDoc type / message
WE57 Message/Application objects
WE42 Assign a process code to the message type
WE34 IDoc styles
WE32 IDoc views
WE05 IDoc list
WE02 Display IDoc
BD51 Set Function attribute
BD64 Display distribute model
BD67Link the function module to the process code
BD54 Define logical system
SCC4 Assign logical system name to client
SM59 Define RFC destination
BD87 : Reprocess the IDOC

SALE - IMG ALE Configuration root
WE20 - Manually maintain partner profiles
BD64 - Maintain customer distribution model
BD71 - Distribute customer distribution model
SM59 - Create RFC Destinations
BDM5 - Consistency check (Transaction scenarios)
BD82 - Generate Partner Profiles
BD61 - Activate Change Pointers - Globally
BD50 - Activate Change Pointer for Msg Type
BD52 - Activate change pointer per change.doc object
BD59 - Allocation object type -> IDOC type
BD56 - Maintain IDOC Segment Filters
BD53 - Reduction of Message Types
BD21 - Select Change Pointer
BD87 - Status Monitor for ALE Messages
BDM5 - Consistency check (Transaction scenarios)
BD62 - Define rules
BD79 - Maintain rules
BD55 - Defining settings for IDoc conversion
WEDI - ALE IDoc Administration
WE21 - Ports in Idoc processing
WE60 - IDoc documentation
SARA - IDoc archiving (Object type IDOC)
WE47 - IDoc status maintenance
WE07 - IDoc statistics
BALE - ALE Distribution Administration
WE05 - IDoc overview
BD87 - Inbound IDoc reprocessing
BD88 - Outbound IDoc reprocessing
BDM2 - IDoc Trace
BDM7 - IDoc Audit Analysis
BD21 - Create IDocs from change pointers
SM58 - Schedule RFC Failures
Basic config for Distributed data:
BD64: Maintain a Distributed Model
BD82: Generate Partner Profile
BD64: Distribute the distribution Model
Programs:
RBDMIDOC – Creating IDoc Type from Change Pointers
RSEOUT00 – Process all selected IDocs (EDI)
RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
RSARFCEX - Execute Calls Not Yet Executed
RBDMOIND - Status Conversion with Successful tRFC Execution
RBDMANIN - Start error handling for non-posted IDocs
RBDSTATE - Send Audit Confirmations
For testing you can use WE19

Steps to create a new IDOC


1: The first step in creating a new IDOC is to create all the segments that go into that IDOC.
There are some rules that have to be followed while creating the segments:




The name of that segment type must start with „Z1‟
For each field in the segment you have to define a field name, a data element for the
segment structure and a data element for the segment documentation.
The data element for the segment structure has to be of data type „CHAR‟
The IDOC tools create overall three structures:
Z1nnnnn - field names
Z2nnnnn - data elements for structure definition
Z3nnnnn - data elements for documentation
IDoc type
IDoc structure type
Receiver port/partner type/partner number
Sender port/sender type/sender number











2: Second step
WE30
The next step is to create the IDOC type by “assembling” all the necessary segments. Part of our
scenario analysis was to define the layout of the IDOC. We should have addressed the following
questions:
Which segments should be used ?
What is the hierarchy of the segments ?
Which segments are mandatory and which are optional ?
How often may a segment be repeated ?
SAP recommends to create the structures as flat as possible. Usually each level of segment hierarchy
results in a looping structure in the corresponding program. Therefore it’s easier to deal with flat
structures.
Conceptually the IDOC type describes the technical structure of the message
3: Third step










Here is how to create a new IDOC type by assembling previously defined segments:
Go to the maintenance of IDOC types
In the ALE-IMG: Extensions->IDOC types -> Maintain IDOC type
Select creation of new basic IDOC type
Put segments into the IDOC
Segment -> Create
Enter segment name
Enter attributes (Mandatory/Minimum/Maximum number)
4: Fourth step

WE81
WE82

Once the IDOC type is defined a message type has to be created. A message type determines how the
data in the IDOC is being processed. This allows to use the same IDOC in different scenarios but process
the data differently through different message types. A Message Type is the equivalent of a business
document type. It characterizes the data being sent across systems, e.g. MATMAS is a message type for
Material Master.
Here is how to define a new message type :
Go to the maintenance of IDOC types
In the ALE-IMG: Extensions->IDOC types -> Maintain IDOC type
Go to message type maintenance:
Environment -> Message types
Table view -> Display -> Change
New entries
Customer message types should be in the customer name range (starting with Z)
Last step of the IDOC creation process is to link the new IDOC type with the new message type. Later in
the process the message type will be linked to the outbound and inbound programs. With these
configurations it is determined how the IDOC is being processed.
The relationship between IDOC type and message type is a 1-to-many relationship. That means an IDOC
can be associated with multiple message types thus allowing the IDOC to be processed differently, but a
message type refers to exactly one IDOC type.
Here is how to link the message type with the IDOC type :
Go to the maintenance of IDOC types
In the ALE-IMG: Extensions->IDOC types -> Maintain message type for Intermediate structure
Choose function “EDI: Message types and assignment to IDOC types”
Link your message type with your IDOC type
Table view -> Display -> Change
New entries
Message type : Z……
Basic IDOC type: Z…..

5: fifth step
Assignment of Messgae type to the Idoc type

IDOC STATUS
Note:
Harmless events are generated only if the specific IDOC was in an error state in the previous
polling cycle. Otherwise, no events are generated.
The following table describes outbound IDOC status codes that generate Tivoli Enterprise Console
events:
Outbound IDOCs
Code

Error

Event Severity

SAP Meaning

02

Yes

Error

Error passing data to port

03

No

Error if transaction SM58
Data pass to port OK
indicates an RFC transmission
error

04

Yes

Error

Control information of EDI subsystem

05

Yes

Error

Translation

06

No

Harmless

Translation

07

Yes

Error

Syntax check

08

No

Harmless

Syntax check

09

Yes

Error

Interchange handling

10

No

Harmless

Interchange handling

11

Yes

Error

Dispatch

12, 13, 14

No

Harmless

OK

15

Yes

Warning

Interchange acknowledgement negative

16

No

Harmless

Functional acknowledgement

17

Yes

Warning

Functional acknowledgement negative

18

No

Harmless

Triggering EDI subsystem

20

Yes

Error

Triggering EDI subsystem

22

No

Harmless

Dispatch OK, acknowledgement still due

23

Yes

Error

Retransmission

24

No

Harmless

Control information of EDI subsystem

25

Yes

Warning

Processing despite syntax error

26

Yes

Error

Syntax check

27

Yes

Error

ALE error

29

Yes

Error

Error in ALE services

30

No

Harmless

Ready for dispatch (ALE)

31

No

Harmless

IDOC is marked for deletion

33

No

Harmless

Original of an IDOC which was edited

34

Yes

Error

Error in control record of IDOC

36

Yes

Error

Timeout error; electronic signature not
performed

37

Yes

Error

IDOC added incorrectly

38

No

Harmless

IDOC archived

39

No

Harmless

Receive confirmed

40

Yes

Error

Application document not created in target
system

41

No

Harmless

Application document created in target
document

The following table describes the inbound IDOC status codes that generate Tivoli Enterprise Console
events:
Inbound IDOCs
Code

Error

Event Severity

SAP Meaning

51, 52

Yes

Error

Posting error

53

No

Harmless

Posting successful

54

Yes

Error

Error during formal application check

55

No

Harmless

Formal application check

56

Yes

Error

IDOC with error added

60

Yes

Error

Syntax error

61

Yes

Warning

Processing despite syntax error

62

No

Harmless

IDOC passed to application

63

Yes

Error

Error passing IDOC to application

64

No

Harmless

IDOC ready to be passed to application

65

Yes

Error

ALE error

68

No

Harmless

IDOC is marked for deletion

70

No

Harmless

Original of an IDOC which was edited

73

No

Harmless

IDOC archived

More Related Content

PPTX
Ale idoc training kit sap Anilkumar chowdary
PPT
IDOC , ALE ,EDI
PPTX
SAP ALE Idoc
PDF
PPT
Ale Idoc Edi
PPTX
SAP IDoc Overview and Outbound IDoc.pptx
DOCX
Edit idoc , reprocess and test idoc
PDF
IDOC.pdf
Ale idoc training kit sap Anilkumar chowdary
IDOC , ALE ,EDI
SAP ALE Idoc
Ale Idoc Edi
SAP IDoc Overview and Outbound IDoc.pptx
Edit idoc , reprocess and test idoc
IDOC.pdf

What's hot (20)

PDF
Idocs
PDF
Bapi step-by-step
PDF
Credit Management in SAP SD
PPT
SAP SD Sales Deal & promotion
PDF
S4 HANA SD By PROPEL RAVI AMEERPET HYDERABAD
DOCX
Rollout solution template SAP SD
DOC
Sap sd question
DOCX
SAP SD Configuration Document
PDF
Output determination
PPTX
SAP BADI Implementation Learning for Functional Consultant
PDF
How to extend an outbound i doc
PDF
SAP SD Copy Controls
PPT
Module pool programming
PDF
Text determination
PDF
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
DOC
Fi tds report
DOCX
Revenue account determination
PDF
SAP SD Training | SAP SD Configuration Guide | SAP SD Study Material
PDF
SAP STO config
PDF
SAP ATP check for Sales Order
Idocs
Bapi step-by-step
Credit Management in SAP SD
SAP SD Sales Deal & promotion
S4 HANA SD By PROPEL RAVI AMEERPET HYDERABAD
Rollout solution template SAP SD
Sap sd question
SAP SD Configuration Document
Output determination
SAP BADI Implementation Learning for Functional Consultant
How to extend an outbound i doc
SAP SD Copy Controls
Module pool programming
Text determination
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Fi tds report
Revenue account determination
SAP SD Training | SAP SD Configuration Guide | SAP SD Study Material
SAP STO config
SAP ATP check for Sales Order
Ad

Viewers also liked (20)

PDF
SAP IDoc
PDF
PDF
Curso soa v10
PDF
PDF
Bapi jco
PPT
DOC
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
PPT
IDOCS ALE
PDF
Web Dynpro
PDF
Master data distribution in SAP: implementation guide
PDF
Vertex Configuration Guide. A to Z Steps with Description.
PDF
Sap mm configuration document ramesh kamishetty
DOCX
Sap interface overview
PDF
Introducción a las Arquitecturas Orientadas a Servicios
PDF
Smartforms interview questions with answers
PPTX
Transportation in sap
PDF
SAP Configuration Guide for Functional Modules (Based on IDES)
PPT
Sap abap ale idoc
PDF
Sap configuration-guide
PPT
SAP Organization Structure
SAP IDoc
Curso soa v10
Bapi jco
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
IDOCS ALE
Web Dynpro
Master data distribution in SAP: implementation guide
Vertex Configuration Guide. A to Z Steps with Description.
Sap mm configuration document ramesh kamishetty
Sap interface overview
Introducción a las Arquitecturas Orientadas a Servicios
Smartforms interview questions with answers
Transportation in sap
SAP Configuration Guide for Functional Modules (Based on IDES)
Sap abap ale idoc
Sap configuration-guide
SAP Organization Structure
Ad

Similar to Idocs tcodes and others , sap idoc (20)

DOCX
All about idoc definition architecture, implementation
DOCX
All about idoc definition architecture, implementation
PPT
Ale Idoc
PDF
15. ALE IDOC.pdf
PPT
SAP IDOC implementation document for .ppt
PPTX
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
PPTX
SAP Inbound IDoc.pptx
DOCX
I doc in SAP
PDF
SAP Material management IDoc concept for data migration
PPT
ALE IDOC configuration documents FIC.ppt
PDF
Sujith ~ cross applications
DOC
Edi,idoc,ale
PDF
ALE IDOC - FOR SAP sales order and payments
PDF
Introduction to EDI & ALE Details On the full proces
PPT
PPT
PDF
ALE EDI.pdf
PDF
I doc packaging and mapping techniques.doc
PDF
IDoc_Guide.pdf
PDF
All about idoc definition architecture, implementation
All about idoc definition architecture, implementation
Ale Idoc
15. ALE IDOC.pdf
SAP IDOC implementation document for .ppt
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
SAP Inbound IDoc.pptx
I doc in SAP
SAP Material management IDoc concept for data migration
ALE IDOC configuration documents FIC.ppt
Sujith ~ cross applications
Edi,idoc,ale
ALE IDOC - FOR SAP sales order and payments
Introduction to EDI & ALE Details On the full proces
ALE EDI.pdf
I doc packaging and mapping techniques.doc
IDoc_Guide.pdf

Recently uploaded (20)

PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
Computer Architecture Input Output Memory.pptx
PDF
HVAC Specification 2024 according to central public works department
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Empowerment Technology for Senior High School Guide
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Weekly quiz Compilation Jan -July 25.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Computer Architecture Input Output Memory.pptx
HVAC Specification 2024 according to central public works department
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
My India Quiz Book_20210205121199924.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
What if we spent less time fighting change, and more time building what’s rig...
Environmental Education MCQ BD2EE - Share Source.pdf
Introduction to pro and eukaryotes and differences.pptx
Empowerment Technology for Senior High School Guide
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Weekly quiz Compilation Jan -July 25.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
Share_Module_2_Power_conflict_and_negotiation.pptx

Idocs tcodes and others , sap idoc

  • 1. IDOCS Tcodes : jayprakash Barik (JP), @: [email protected] Intermideate documentes SAP to SAP : ALE(Application link emblening) SAP to NON SAP : EDI (Electronic data interchange) Direction :Inbound : 1 : Outbound : 2 Status : 1 to 50 : outbound and 50 above : inbound Sucess : 53 sucess for inbound idcoc : 12 Sucess for outbound idoc • IDoc or Intermediate Document is a standard SAP document exchange format. IDocs allow different application systems to be linked via a message-based interface. The IDoc interface consists of the definition of a data structure (where the data structure is the IDoc) and a processing logic for this data structure. There are three main aims behind the use of IDocs: • The structured exchange of business documents so that they can be processed automatically. • The various degrees of structural complexity as displayed by different application systems can be reduced to a structure which is as simple as possible. Example: The structure of an SAP application document and the structure of the corresponding EDI message under the UN/EDIFACT standard. • IDocs allow for extensive exception handling before the data is posted to the application. • Electronic Data Interchange (EDI) was the first form of data transfer to use IDocs. In EDI application scenarios, the processes, by definition, involve two partners: The sender and the recipient of an EDI message. EDI is a bilateral, document-oriented form of data transfer • Application Link Enabling (ALE) enables integration of business processes that are developed across several SAP systems or non-SAP systems. Thus, ALE is oriented to connect different applications on different systems. System-wide ALE message flows are modelled in a so called 'distribution model'. A typical scenario is the system data administration, where material master records have to be distributed from one central to several satellite systems. Nowadays, pure EDI scenarios are more and more executed on the basis of ALE technology, only that the system connection is 'just' bilateral.
  • 2. • In an SAP System the Application Link Enabling (ALE) is one of the core integration technologies. It involves the exchange of hierarchical data documents known as Intermediate Documents (IDOCs). Idocs detals There are 3 record ,will be found out from anyIDOC 1: Control recored 2: Data record 3: Status Record Control record is a kind of “envelope” record that contains information about the IDOC like             IDOC type (“what data is in the IDOC”) Message type (“how is the IDOC being processed”) Sender information (“who is the sender of that IDOC”) Receiver information (“who is the receiver of that IDOC”) Latest status of EDI processing. EDI standard and version. The only two mandatory fields that must be filled are the Message type (MESTYP) and IDOC type (IDOCTP) Note that you have to use uppercase literals when you fill the two fields The sender information - along with additional information - is automatically filled in by the ALE layer (in function module “MASTER_IDOC_DISTRIBUTE”) The receiver information is optional: If a receiver is specified, a check is carried out against the Distribution Model if this receiver is valid. If it is, an IDOC is created; otherwise no IDOC will be created. If no receiver is specified, “MASTER_IDOC_DISTRIBUTE” will determine all valid receivers that are maintained in the distribution model for that message type and create an IDOC for each receiver ! Data Record     The IDOC data records contain the data of the message. The data records are passed in an internal table and they have to match the structure of the IDOC (sequence of segments, min/max, hierarchy etc.) EDIDD is a generic structure used for all IDOC segments SEGNAM field identifies the segment type SDATA contains the actual data of the segment Status Record- table EDIDS –Information we get from Status record:      Status number Message IDoc type Direction Data and time stamp
  • 3.    Detailed description of status by code and text Location of exception in Intermediate Document Detector of exception by program and user.  The statuses for outbound IDocs are between '01' and '49', while the statuses for inbound IDocs begin from '50'. When an IDoc is created, the IDoc Interface sets the status in the function module EDI_DOCUMENT_CLOSE_CREATE. All additional status records are written explicitly by the function module EDI_DOCUMENT_STATUS_SET. It is possible to have Custom Statuses also.    TCODES WE31 IDoc segments WE30 : Idoc creation WE19: To change the IDOC WE02/WE05/WE09 : to search the IDOC WE09 : To search the IDOC by segment WE30 IDoc types WE81 Message types WE82 IDoc type / message WE57 Message/Application objects WE42 Assign a process code to the message type WE34 IDoc styles WE32 IDoc views WE05 IDoc list WE02 Display IDoc BD51 Set Function attribute BD64 Display distribute model BD67Link the function module to the process code BD54 Define logical system SCC4 Assign logical system name to client SM59 Define RFC destination BD87 : Reprocess the IDOC SALE - IMG ALE Configuration root WE20 - Manually maintain partner profiles BD64 - Maintain customer distribution model BD71 - Distribute customer distribution model SM59 - Create RFC Destinations BDM5 - Consistency check (Transaction scenarios) BD82 - Generate Partner Profiles BD61 - Activate Change Pointers - Globally
  • 4. BD50 - Activate Change Pointer for Msg Type BD52 - Activate change pointer per change.doc object BD59 - Allocation object type -> IDOC type BD56 - Maintain IDOC Segment Filters BD53 - Reduction of Message Types BD21 - Select Change Pointer BD87 - Status Monitor for ALE Messages BDM5 - Consistency check (Transaction scenarios) BD62 - Define rules BD79 - Maintain rules BD55 - Defining settings for IDoc conversion WEDI - ALE IDoc Administration WE21 - Ports in Idoc processing WE60 - IDoc documentation SARA - IDoc archiving (Object type IDOC) WE47 - IDoc status maintenance WE07 - IDoc statistics BALE - ALE Distribution Administration WE05 - IDoc overview BD87 - Inbound IDoc reprocessing BD88 - Outbound IDoc reprocessing BDM2 - IDoc Trace BDM7 - IDoc Audit Analysis BD21 - Create IDocs from change pointers SM58 - Schedule RFC Failures Basic config for Distributed data: BD64: Maintain a Distributed Model BD82: Generate Partner Profile BD64: Distribute the distribution Model Programs: RBDMIDOC – Creating IDoc Type from Change Pointers RSEOUT00 – Process all selected IDocs (EDI) RBDAPP01 - Inbound Processing of IDocs Ready for Transfer RSARFCEX - Execute Calls Not Yet Executed RBDMOIND - Status Conversion with Successful tRFC Execution RBDMANIN - Start error handling for non-posted IDocs RBDSTATE - Send Audit Confirmations For testing you can use WE19 Steps to create a new IDOC
  • 5.  1: The first step in creating a new IDOC is to create all the segments that go into that IDOC. There are some rules that have to be followed while creating the segments:   The name of that segment type must start with „Z1‟ For each field in the segment you have to define a field name, a data element for the segment structure and a data element for the segment documentation. The data element for the segment structure has to be of data type „CHAR‟ The IDOC tools create overall three structures: Z1nnnnn - field names Z2nnnnn - data elements for structure definition Z3nnnnn - data elements for documentation IDoc type IDoc structure type Receiver port/partner type/partner number Sender port/sender type/sender number          2: Second step
  • 6. WE30 The next step is to create the IDOC type by “assembling” all the necessary segments. Part of our scenario analysis was to define the layout of the IDOC. We should have addressed the following questions: Which segments should be used ? What is the hierarchy of the segments ? Which segments are mandatory and which are optional ? How often may a segment be repeated ? SAP recommends to create the structures as flat as possible. Usually each level of segment hierarchy results in a looping structure in the corresponding program. Therefore it’s easier to deal with flat structures. Conceptually the IDOC type describes the technical structure of the message
  • 7. 3: Third step         Here is how to create a new IDOC type by assembling previously defined segments: Go to the maintenance of IDOC types In the ALE-IMG: Extensions->IDOC types -> Maintain IDOC type Select creation of new basic IDOC type Put segments into the IDOC Segment -> Create Enter segment name Enter attributes (Mandatory/Minimum/Maximum number)
  • 9. WE82 Once the IDOC type is defined a message type has to be created. A message type determines how the data in the IDOC is being processed. This allows to use the same IDOC in different scenarios but process the data differently through different message types. A Message Type is the equivalent of a business document type. It characterizes the data being sent across systems, e.g. MATMAS is a message type for Material Master. Here is how to define a new message type : Go to the maintenance of IDOC types In the ALE-IMG: Extensions->IDOC types -> Maintain IDOC type Go to message type maintenance:
  • 10. Environment -> Message types Table view -> Display -> Change New entries Customer message types should be in the customer name range (starting with Z) Last step of the IDOC creation process is to link the new IDOC type with the new message type. Later in the process the message type will be linked to the outbound and inbound programs. With these configurations it is determined how the IDOC is being processed. The relationship between IDOC type and message type is a 1-to-many relationship. That means an IDOC can be associated with multiple message types thus allowing the IDOC to be processed differently, but a message type refers to exactly one IDOC type. Here is how to link the message type with the IDOC type : Go to the maintenance of IDOC types In the ALE-IMG: Extensions->IDOC types -> Maintain message type for Intermediate structure Choose function “EDI: Message types and assignment to IDOC types” Link your message type with your IDOC type Table view -> Display -> Change New entries Message type : Z…… Basic IDOC type: Z….. 5: fifth step Assignment of Messgae type to the Idoc type IDOC STATUS Note: Harmless events are generated only if the specific IDOC was in an error state in the previous polling cycle. Otherwise, no events are generated.
  • 11. The following table describes outbound IDOC status codes that generate Tivoli Enterprise Console events: Outbound IDOCs Code Error Event Severity SAP Meaning 02 Yes Error Error passing data to port 03 No Error if transaction SM58 Data pass to port OK indicates an RFC transmission error 04 Yes Error Control information of EDI subsystem 05 Yes Error Translation 06 No Harmless Translation 07 Yes Error Syntax check 08 No Harmless Syntax check 09 Yes Error Interchange handling 10 No Harmless Interchange handling 11 Yes Error Dispatch 12, 13, 14 No Harmless OK 15 Yes Warning Interchange acknowledgement negative 16 No Harmless Functional acknowledgement 17 Yes Warning Functional acknowledgement negative 18 No Harmless Triggering EDI subsystem 20 Yes Error Triggering EDI subsystem 22 No Harmless Dispatch OK, acknowledgement still due 23 Yes Error Retransmission 24 No Harmless Control information of EDI subsystem 25 Yes Warning Processing despite syntax error 26 Yes Error Syntax check 27 Yes Error ALE error 29 Yes Error Error in ALE services 30 No Harmless Ready for dispatch (ALE) 31 No Harmless IDOC is marked for deletion 33 No Harmless Original of an IDOC which was edited 34 Yes Error Error in control record of IDOC 36 Yes Error Timeout error; electronic signature not performed 37 Yes Error IDOC added incorrectly 38 No Harmless IDOC archived 39 No Harmless Receive confirmed 40 Yes Error Application document not created in target system 41 No Harmless Application document created in target
  • 12. document The following table describes the inbound IDOC status codes that generate Tivoli Enterprise Console events: Inbound IDOCs Code Error Event Severity SAP Meaning 51, 52 Yes Error Posting error 53 No Harmless Posting successful 54 Yes Error Error during formal application check 55 No Harmless Formal application check 56 Yes Error IDOC with error added 60 Yes Error Syntax error 61 Yes Warning Processing despite syntax error 62 No Harmless IDOC passed to application 63 Yes Error Error passing IDOC to application 64 No Harmless IDOC ready to be passed to application 65 Yes Error ALE error 68 No Harmless IDOC is marked for deletion 70 No Harmless Original of an IDOC which was edited 73 No Harmless IDOC archived