Ale Idoc Training

46
SAP ALE – IDocs

Transcript of Ale Idoc Training

Page 1: Ale Idoc Training

SAP ALE – IDocs

Page 2: Ale Idoc Training

2

Agenda

1. Introduction to ALE2. Overview of ALE3. Introduction to IDoc4. Process flow for outbound process5. Process flow for inbound process6. Configuring the ALE Infrastructure7. Creating the new IDoc type8. Configuring the system for new IDoc9. Case study10. Questions

Page 3: Ale Idoc Training

3

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Agenda

Page 4: Ale Idoc Training

4

Introduction to ALE

• Application linking and enabling (ALE) is SAP’s technology to support distributed process across several SAP systems.

• A distributed process is one in which part of a business is carried out in one system and part on another.

• A distributed process may contain SAP and non SAP Systems. It is not necessarily between only SAP systems.

• ALE can be used to exchange the data between, SAP to SAP system SAP to Non-SAP system Non SAP to SAP System

Page 5: Ale Idoc Training

5

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 6: Ale Idoc Training

6

Over view of ALE

R/3 System

R/3 System Non-SAP System

Translator

ALE Interface

ALE Interface

Page 7: Ale Idoc Training

7

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 8: Ale Idoc Training

8

Introduction to IDOC

• The term IDOC stands for Intermediate document. It is simply a data container used to exchange information between any two process. That can understand the syntax and semantics of the data.

• IDOC’s are made using the segments

• IDOC’s are stored in the data base

• Every IDOC has unique number

• An IDOC is attached to a message type and identified by its message type

• IDOC consists of three types of records One control record One or many data records One or many status records.

Page 9: Ale Idoc Training

9

Introduction to IDOC

• Control Record:

A control record contains all of the control information about an IDOC, IDOC number Sender and receiver information Message type it represents Its direction

Page 10: Ale Idoc Training

10

Introduction to IDOC

• Control Record

Page 11: Ale Idoc Training

11

Introduction to IDOC

• Control Record

Page 12: Ale Idoc Training

12

Introduction to IDOC• Data Record In an IDOC the data record contains the application data.

Page 13: Ale Idoc Training

13

Introduction to IDOC

• Status Record

Status records are attached to an IDOC throughout the process as the IDOC achieves different milestones or encounter an error. At every milestone a status code, date and time are assigned.

The system defines numerous status code, 0 – 49 are reserved for outbound process 50 and above are reserved for inbound process

Page 14: Ale Idoc Training

14

Introduction to IDOC

• Status record

Page 15: Ale Idoc Training

15

Introduction to IDOC

• IDOC as seen in transaction WE02

Page 16: Ale Idoc Training

16

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 17: Ale Idoc Training

17

Process flow for outbound process

Selection screen

Selection Program/Build IDOC data

Master IDOC

Application Repository

Conversion Filtering Version Change

Communication IDOC

RSEOUT00

ARFCDATA

RSARFCEX

Application Layer

ALE Service layer

Communication Layer

Destination system

Function module MASTER_IDOC_ DISTRIBUTE

Page 18: Ale Idoc Training

18

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 19: Ale Idoc Training

19

Process flow for inbound process

Application Repository

Direct input function module or CALL transaction

Posting program

RBDAPP01

Application IDOCs

Conversion Filtering Version Change

ID0C_INBOUND_ASYNCHRONOUS

Communication IDOC from remote system

Application Layer

ALE Service layer

Communication Layer

Page 20: Ale Idoc Training

20

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 21: Ale Idoc Training

21

Configuring the ALE Infrastructure

• The basic settings for the IDOC interface must be maintained once on each system involved in distributed process

• Basic settings for IDOCs

1. Maintaining logical system

2. Allocating logical system to the client

3. Setting up an RFC destination

4. The port definition

5. Maintain the distribution model

6. Create a partner profile

Page 22: Ale Idoc Training

22

Configuring the ALE Infrastructure

1. Maintaining logical system – Transaction ‘SALE’

Page 23: Ale Idoc Training

23

Configuring the ALE Infrastructure

1. Maintaining logical system

Page 24: Ale Idoc Training

24

Configuring the ALE Infrastructure

2. Allocating logical system to the client – Transaction ‘SALE’

Page 25: Ale Idoc Training

25

Configuring the ALE Infrastructure

2. Allocating logical system to the client – Transaction ‘SALE

Page 26: Ale Idoc Training

26

Configuring the ALE Infrastructure

3. Setting up an RFC destination – Transaction ‘SM59’

Transaction SM51 to Identify the Target Host of remote system

Page 27: Ale Idoc Training

27

Configuring the ALE Infrastructure

4. The Port definition – Transaction ‘WE21’

Page 28: Ale Idoc Training

28

Configuring the ALE Infrastructure

5. Maintaining the distribution model – Transaction ‘BD64’

Page 29: Ale Idoc Training

29

Configuring the ALE Infrastructure

6. Create the partner profile – Transaction ‘WE20’

Page 30: Ale Idoc Training

30

Configuring the ALE InfrastructurePartner profile : outbound parameters

Page 31: Ale Idoc Training

31

Configuring the ALE Infrastructure

Partner profile : Inbound parameters

Page 32: Ale Idoc Training

32

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 33: Ale Idoc Training

33

Creating the new IDOC type

1. IDOC is created using one or more segments. Each segment will have one or more fields. Group functionally related fields into segments. Then use segments to create the IDOC.

2. Release segment type and basic IDOC type

3. Allowed data type for the segments.

CHAR Character strings

CLNT Client

CUKY Currency key, referenced by CURR fields

DATS Date field (YYYYMMDD) stored as char(8)

LANG Language key

NUMC Character fields with only digits

TIMS Time field (HHMMSS) stored as char(6)

Page 34: Ale Idoc Training

34

Creating the new IDOC type

1. Create the segments – Transaction ‘WE31’

Page 35: Ale Idoc Training

35

Creating the new IDOC type

2. Create the basic IDOC type Transaction ‘WE30’ step 1

Page 36: Ale Idoc Training

36

Creating the new IDOC type

2. Create the basic IDOC type Transaction ‘WE30’ step 2

Page 37: Ale Idoc Training

37

Creating the new IDOC type

2. Create the basic IDOC type Transaction ‘WE30’ step 3

Page 38: Ale Idoc Training

38

Creating the new IDOC type

2. Create the basic IDOC type Transaction ‘WE30’ step 4

Page 39: Ale Idoc Training

39

Creating the new IDOC type

2. Create the basic IDOC type Transaction ‘WE30’ step 5

Page 40: Ale Idoc Training

40

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 41: Ale Idoc Training

41

Configuring the system for new IDOC

Configuring the outbound process Create the new message type (WE81) Link the IDOC type to the message type (WE82) Add the message to the ALE distribution model (BD64) Create the partner profile (WE20)

Page 42: Ale Idoc Training

42

Configuring the system for new IDOC

Configuring the inbound process Create the new message type (WE81) Link the IDOC type to the message type (WE82) Allocate the function module to the logical message (WE57) Define the attributes for the inbound function module (BD51) Create new process code (WE42) Assign the process code to the function module (WE42) Create the partner profile (WE20)

Page 43: Ale Idoc Training

43

Agenda

1. Introduction to ALE

2. Over view of ALE

3. Introduction to IDOC

4. Process flow for outbound process

5. Process flow for inbound process

6. Configuring the ALE Infrastructure

7. Creating the new IDOC type

8. Configuring the system for new IDOC

9. Case study

Page 44: Ale Idoc Training

44

Agenda

1. Introduction to ALE2. Over view of ALE3. Introduction to IDOC4. Process flow for outbound process5. Process flow for inbound process6. Configuring the ALE Infrastructure7. Creating the new IDOC type8. Configuring the system for new IDOC9. Case study10. Questions

Page 45: Ale Idoc Training

45

Questions?

Page 46: Ale Idoc Training

46

Thank You