Complete ALE Working

Embed Size (px)

Citation preview

  • 8/3/2019 Complete ALE Working

    1/23

    This DOC help you to Pass Data Between two separate sap System

    Introduction to EDI and ALE:---

    EDI (Electronic Document interchange)

    EDI is the electronic exchange of business documents between the computer systems of business partners, using a s tandard format over a

    communication network.

    EDI is also called paperless exchange.

    Advantages:

    Reduced Data entry errors

    Reduced processing time Availability of data in electronic form Reduced paperwork Reduced Cost

    Reduced inventories and better planning Standard means of communications Better business process

    EDI has two process

    1. Outbound process

    2. Inbound process

    Outbound Process:

    1.Application document is created.

    2. IDOC is generated

    3.Idoc is transferred from SAP to Operating system layer

    4.Idoc is converted into EDI standards

    5.Edi document is transmitted to the business partner

    6.The Edi Subsystem report status to SAP

    Inbound Process:

    1. EDI transmission received

    2 .EDI document is converted into an IDOC

    3. IDOC is transferred to the SAP layer

    4. The application document is created

    5. The application document can be viewed.

    IDOC:

    IDOC is a container that can be used to exchange data between any two processes. Each IDOC is assigned a unique number for tracking and future reference. IDOC consists of several segments, and segments contain several fields.

    IDOC contains the following three types of records...

    1. One Control Record.2. One or many Data Record3. One or many Status record.

    In IDOCs the following terms are to be known.

    PORT:Port is used in the outbound process to determine the name of the EDI subsystem program, the directory path where the IDOC fi le will be created atthe operating system level, the IDOC file names and the RFC destinations.

    RFC Destination:Used to define the characteristics of communication links to a remote system on which a functions needs to be executed.

    Partner Profile:Partner profile specified the various components used in an outbound process (Partner number, IDOC type, message type, Port, Process code), the

  • 8/3/2019 Complete ALE Working

    2/23

    mode in which it communicates with the subsystem (batch or immediate) and the person to be notified in case of errors.

    Message ControlUsed in pricing, account determination, material determination, and output determination. The message control component enables you to encapsulatebusiness rules without having to write ABAP programs.

    To process IDOC following Tcodes are needed:---

    On both sides:

    Logical System Names :SALE

    Setup RFC destinations :SM59

    Port Destinations :WE21

    In Source system:

    Segment Creation : WE31Basic IDOC Type Creation: WE30Message Type Creation : WE81Assign Message Type To Basic IDOC Type: WE82Distribution Model : BD64Writing Report Program : SE38Partner Profile : WE20Message control : NACECheck IDOCs : WE02, WE05

    In Destination System:

    If both system are separate then, we have to again do

    Segment Creation : WE31Basic IDOC Type Creation: WE30Message Type Creation : WE81Assign Message Type To Basic IDOC Type: WE82 , with the same as created in Source System, otherwise if we have two instances in same R/3system then no need to do above one , do the below one only

    Creating FM SE37

    Assign FM to Logical Message WE57Define I/P method for Inbound FM BD51Create Process Code WE42Generate Partner Profile BD64

    Idoc processing among two different R/3 server:---

    NOTE:- To transfer the data between two clients the table structures and their data types should be match.

    Common Steps in Both Clients:--

    1.Creating Logical System name and assigning them to clients:--

    Goto Tcode SALE:--

    IMG path IDoc Interface / Application Link Enabling (ALE) -> Basic Settings -> Logical Systems -> Define Logical System

  • 8/3/2019 Complete ALE Working

    3/23

    Click on Display / Change Button .Note: - In this example , as logical system is already existing ,so no need to do new entries .Otherwise we have to click New Entries tab and enterLogical client name with naming convention CLNT.In this case it will be JEDCLNT800(sender) and JETCLNT800(receiver)

  • 8/3/2019 Complete ALE Working

    4/23

    Click on Save and Back buttons

    Now you will come back to the IMG path screen. Click on Assign Logical System to client.

    Click on new enteries:

  • 8/3/2019 Complete ALE Working

    5/23

    Click on save button and Press back a new client will be assigned .

  • 8/3/2019 Complete ALE Working

    6/23

    Now new logical system is assigned to both client.

    2. Now 2nd

    step , Create RFC Connection Name:---

    Tcode SM59

    Next screen will look like, we have to give RFC destination , in which we have to enter logical client to which we want to connect , for e.g. in JED

    server we will give RFC destination as JETCLNT800.

  • 8/3/2019 Complete ALE Working

    7/23

    In JET client we will enter RFC destination as JEDCLNT800

    To check connection press test connection (Ctrl + F3)

    To login to other server , click on Remote Logon(Ctrl + F7).

    Depends upon your settings the destination client wil l open. If you check the Current user option under Logon/ Security tab, then it will show the screen

    directly without asking the user name and password details.

    Now come to 3rd

    step,

    3. Create RFC PORTS(Tcode WE21)

    On pressing create , in dialog box you can select either Generate port name or own port name. If you select Generate Port name system will generate

    automatically. Here I selected Own port name. Click on Continue.

  • 8/3/2019 Complete ALE Working

    8/23

    Now common steps for both server are done, now we will concentrate on Sender client ,i.e JEDCLNT800

  • 8/3/2019 Complete ALE Working

    9/23

    4.Now create a table in JED say ZJEET_STUDENTS(SE11), with some enteries.

    Create a table with same structure in client JET , say ZJST.

    5.Now creating IDOC Segments in JED

    Tcode WE31.

    6.After creating segment type we will create BASIC IDOC Type

    Tcode : WE30

  • 8/3/2019 Complete ALE Working

    10/23

    Click on Save and back button , Basic Idoc type is created and segment is assigned to it.

    Goto Edit->Set Release

    In next dialog box click on , yes

  • 8/3/2019 Complete ALE Working

    11/23

    7.Now to create Message Type(WE 81)

    New Message type is created:--

    8.Assign Message type(ZJSTSEGMSG) to basic Idoc Type(ZJSTIDOC):---

    Tcode WE82,

    Click on Display/Change Button , and then click New Entries

  • 8/3/2019 Complete ALE Working

    12/23

    9.Creating Model View and Distributing and Generating Partner profile:

    Go to TCODE BD64

    Click on Display/ Change button

  • 8/3/2019 Complete ALE Working

    13/23

    Now , generate partner profile for created Model View, i.e. ZJSTMV--

    Press F8(Execute)

  • 8/3/2019 Complete ALE Working

    14/23

    Now Press Back , and distribute Model View.

    In display dialog box ,select partner client system i.e. JETCLNT800 and click continue, the following screen will appear.

  • 8/3/2019 Complete ALE Working

    15/23

    10.To check partner profile Go to TCODE WE20

    In displayed screen select the partner system in left side tree under Partner Type LS.

    Now execute the program, and specify the range of records to transfer to JET

    Go to TCODE WE02 to check the generated IDOC control records.

    Click on Execute

  • 8/3/2019 Complete ALE Working

    16/23

    If status record is 30, run standard report RSEOUT00, give generated IDoc Number.

    At receiver client , i.e. JET:--

    12. Create a FM to update the table from IDOC Segment.

    1. Goto SE37

  • 8/3/2019 Complete ALE Working

    17/23

  • 8/3/2019 Complete ALE Working

    18/23

  • 8/3/2019 Complete ALE Working

    19/23

    Click on Save and activate.

    12. Assign Fm to logical Message.

    Tcode :-- WE57(Message name should be same as in sender client )

    Segment creation at JET(Tcode we31)(If 2 different R/3 ,i .e. not on same instance):-

  • 8/3/2019 Complete ALE Working

    20/23

    13. Define Input Method for Inbound Function Module:

    Go to TCODE BD51

    Click on Display / Change button

  • 8/3/2019 Complete ALE Working

    21/23

    14.Creating Process Code:

    Go to TCODE WE42

    Click on Display / Change Button

    Double click on Logical Message ---

  • 8/3/2019 Complete ALE Working

    22/23

    15.Generating the Partner Profile:

    Go to TCODE BD64.

    Select the Model View which you distributed in client JED.

  • 8/3/2019 Complete ALE Working

    23/23

    Transferring the IDOC control records from Client JED to JET:

    In source system, go to TCODE SE38. (In client JED)

    Execute the Report program (ZJEET_IDOC)which you created.

    Check in JED Tcode WE02 , if status is 30.

    Run Standard Report RSEOUT00, at JED.

    Check in Destination System: (Here client JET)

    Go to TCODE WE02, if status is 64 , Run Standard report RBDAPP01 at JET.

    To know more about ALE Status ,

    http://help.sap.com/saphelp_erp2004/helpdata/en/52/16adef543311d1891c0000e8322f96/content.htm

    http://help.sap.com/saphelp_erp2004/helpdata/en/52/16adef543311d1891c0000e8322f96/content.htmhttp://help.sap.com/saphelp_erp2004/helpdata/en/52/16adef543311d1891c0000e8322f96/content.htmhttp://help.sap.com/saphelp_erp2004/helpdata/en/52/16adef543311d1891c0000e8322f96/content.htm