40
ALE-IDOC‘s BY ARJUN ALE- Application Link Enabling ALE NETWORK (SAP –TO- SAP Communication) It is a network which is used to create a connection between the servers available at different geo-graphical locations is called as ALE NETWORK. The data transfer is always done through a Document called as IDOC IDOC- Intermediate Document. Types of data transfer 1. Outbound data transfer 2. Inbound data transfer When ever we send the data from one SAP server to another, it is called OUTBOUND data transfer. When ever we receive the data in to SAP server from remote server is called INBOUND data transfer.

CA-ALE IDOC

Embed Size (px)

DESCRIPTION

ALE IDOCS

Citation preview

Page 1: CA-ALE IDOC

ALE-IDOC‘s

BY ARJUN

ALE- Application Link Enabling

ALE NETWORK (SAP –TO- SAP Communication)

It is a network which is used to create a connection between the servers available at

different geo-graphical locations is called as ALE NETWORK.

The data transfer is always done through a Document called as IDOC

IDOC- Intermediate Document.

Types of data transfer

1. Outbound data transfer

2. Inbound data transfer

When ever we send the data from one SAP server to another, it is called OUTBOUND

data transfer.

When ever we receive the data in to SAP server from remote server is called

INBOUND data transfer.

ALE is a technology or network which is used to communicate from one SAP server to

another SAP server.

Since both are SAP server’s the data transfer is always done through IDOC’s

Page 2: CA-ALE IDOC

Electronic Data Interchange

EDI (SAP –To -NON SAP communication)

IDOC

IDOC is intermediate document which is a container of the data.

Technically IDOC is a group of segments

Each segment is a group of fields

Segment is similar to structures

All the standard SAP segments will start with E1.

All the custom SAP segments will start with Z1.

WE30 – is the TCODE for IDOC types

WE31 – is the TCODE for Segment definition

DEBMAS05 is the IDOC type for customer data

E1KNA1 fields are KUNNR, LAND1, and NAME1

E1KNBK fields are KUNNR, BUKRS

E1KNB1 fields are KUNNR BANKS, BANKT

CREMAS05 is the IDOC type for Vendor data

MATMAS05 is the IDOC type for material data

Runtime components of IDOC

When ever we transmit the IDOC from one server to another server automatically some

components were added at runtime.

The components are,

1. Control - Stored in table EDIDC

2. Data - Stored in table EDIDD

Page 3: CA-ALE IDOC

3. Status - Stored in table EDIDS

Message Type

It identifies the type of the application for which IDOC is used

That is same IDOC is used for different applications

So to identify each application uniquely we use message types

Ex

MATMAS Message Type

Matmas01

Matmas02 IDOC TYPE

Matmas03

CREMAS Message Type

Cremas01

Cremas02 IDOC TYPE

Cremas03

DEBMAS Message Type

Debmas01

Debmas02 IDOC TYPE

Debmas03

First we have to create the IDOC with segments then we should create message type

Then we have to link message type and IDOC type.

Page 4: CA-ALE IDOC

Steps to create SEGMENTS

- Go to TCODE we31

- Give the segment name as Z1KNB1 then click on create

Give the description and field names and data elements as below

Page 5: CA-ALE IDOC

Then click on save button it shows

Then click on back button then fallow as below

Page 6: CA-ALE IDOC

Once you release the segments only, it can be used in the IDOC

Similarly create the more segments Z1KNA1, Z1KNBK.

Steps to create IDOC’S

- Go to TCODE WE30

- Give the IDOC name as ZDEBMAS05 and click on create

Page 7: CA-ALE IDOC

Then give the description as below

Page 8: CA-ALE IDOC

Then put the cursor on IDOC name and click on create as below

Page 9: CA-ALE IDOC

Then put the cursor on Z1KNA1 then click no Create button as below

Page 10: CA-ALE IDOC

Then automatically its added under

And same for Z1KNB1 segments

Page 11: CA-ALE IDOC

Click on save and back

Click on edit release

Now the IDOC is ready to use to transmit the data.

Page 12: CA-ALE IDOC

Sending material master from source system to (800) to receiver (810)

Sender System

Step 1: Define Logical system (SALE)

Step 2: Assign client to Logical System

Step 3: Maintain RFC destinations (SM59)

Step 4: Maintain PORT (WE21)

Step 5: Maintain outbound partner profile (WE20)

Step 6: Maintain Distribution model (BD64)

Step 7: Run the Outbound Program

Receiver System

Step 1: Define Logical system (SALE)

Step 2: Assign client to Logical System

Step 3: Optional

Step 4: Optional

Step 5: Maintain inbound partner profile (WE20)

Step 6: Not Required

Step 7: Not Required

Page 13: CA-ALE IDOC

- Go to SALE transaction

1. Expand the Basic settings, Logical Systems

It gives the below screen click on new entries button as below

Enter logical system names as ZZ800 and ZZ810

Page 14: CA-ALE IDOC

Click on save button

Page 15: CA-ALE IDOC

Click on back, back

Then click on assign client to logical system

Page 16: CA-ALE IDOC

Double click on 800 client

And give the logical system name as zz800

Page 17: CA-ALE IDOC

Press enter, click on save then back

Then double click on 810 client and give the RX Logical System name as ZZ810

Click on save

Then maintain the RFC destination in SM59

Page 18: CA-ALE IDOC

- Go to SM59 follow as below- Give RFC Destination name as 820_CONNECT

Provide HOSTNAME AS GCEECC2

PROVIDE LANGUAGE,CLIENT,USERNAME,PASSWORD

Page 19: CA-ALE IDOC

Then click on Remote Logon automatically u ill switch to 810 client.

Maintaining the PORT

- Go to WE21

Page 20: CA-ALE IDOC

Select the Transaction RFC then click on create

Select the own port name Radio Button

Give the name as ZPORT1

Page 21: CA-ALE IDOC

Give the description and RFC destination here 820_CONNECT

Then click on save it shows as below

Page 22: CA-ALE IDOC

Then maintain the distribution outbound partner profile in we20

Goto WE20

Select the folder partner type LS folder then click on create

Page 23: CA-ALE IDOC

Specify the partner no as ZZ810 (Receiver LS) click on save immediately

Page 24: CA-ALE IDOC

Then give the outbound parameters by clicking on + symbol as shown below

Here specify massage type as MATMAS

Receiver port as ZPORT1

Select Transfer IDOC Immediately

Basic type as MATMAS05

Page 25: CA-ALE IDOC

Then click on save.

Then go to receiver 810 client -- Maintain the Inbound Partner Profile

Login in to 810 client

- Go to WE20

Page 26: CA-ALE IDOC

Give the Partner no as ZZ800

Click on save immediately

Then create the inbound parameters by clicking on + symbol.

Here specify massage type as MATMAS

Process code as MATM

Page 27: CA-ALE IDOC

Then maintain the distribution model in BD64 as below

- Go to BD64

- Click on change Button or CTRL+F1

- Then click on create model view button

Page 28: CA-ALE IDOC
Page 29: CA-ALE IDOC

Here select the ydmv1 MODEL VIEW as above and click on add message type button as

below

Add sendor name , receiver name and message type

Press enter and click on save.

Page 30: CA-ALE IDOC

Then run the outbound program

- Go to BD10 Tcode

- Specify material no , message type , logical system and select checkbox as below

Then click on execute (F8) button

Page 31: CA-ALE IDOC

Checking the status

- Go to WE02

- Click on execute of F8

- Then the IDOC information is displayed below

Expand DATA RECORDS,STATUS RECORDS FOLDER TO check data

Checking the Status of receiver system

- Go to WE02

- Click on execute of F8

- Then the IDOC information is displayed below (Double click it)

Page 32: CA-ALE IDOC

Double click on error record number 51

Page 33: CA-ALE IDOC

Then click on Application log button

The errors will be clearly defined as below

Here the error is plant does not exist.

Page 34: CA-ALE IDOC

UNIT Test Case 1 for correct data :

Lets create a new material and send it.

- Go to MM01

Press enter select the BASIC DATA 1 check box press enter

Page 35: CA-ALE IDOC

Then click on save button.

Page 36: CA-ALE IDOC

A material will be created

Then go to SENDOR SYSTEM (800) Execute the BD10 TCODE

Give the material number as 1417

Page 37: CA-ALE IDOC

Then go to WE02 click on execute

Filtering