ALE funda doubt

hi experts,
First of all let me request you to not answer this question by linking it to some sites or threads.I want its answer written by you in short and brief.
Why ALE is required??
Thanks,
Gaurav

Hi,
ALE allows the user to perform an SAP transaction in the sending system, after which the following steps occur:
1. 1 or more communication IDocs (intermediate documents: container for the application data) are created in the sending system database. An ALE distribution model, that needs to have been configured, determines which systems the IDocs are to be sent
2.These communication IDocs, that contain the relevant application data of the transaction that was performed, are then passed to the ALE communication layer
3. This layer performs an RFC call using the port definition and RFC destination determined through the customer model
4. The IDocs are then transferred to the respective receiving systems. These could be SAP R/3, R/2 or external systems
5. If the receiving system is an SAP system then:
-In the case of master data distribution the same transaction that was performed on the sending system is again performed on the receiving system with the data contained in the IDoc. This allows the data to go through the SAP checks before posting occurs
-In the case of transaction scenarios the relevant data is passed to the respective transactions in order to load the required application document. E.g.. A PO is loaded on the sending side, yet a SO is created on the receiving system
6. Master data has another difference:
-It can be set up in such a way that any changes made to specific fields in master data tables can automatically trigger off the ALE distribution process for that particular master data object
-If a master data object is created or changed on a sending system and distributed to another system the respective transaction is used to either create or change that respective master data object on the receiving system
In general, if standard SAP can't perform the task required then neither can ALE. It doesn't add functionality, it merely decouples it and allows you to distribute it onto other remote systems.
The Detail as described by SAP
In the output processing one of the function modules of the application creates an IDoc, the so-called master IDoc. This IDoc is sent to the ALE layer where the following processing steps are applied:
Outbound processing
Receiver determination
An IDoc is similar to a normal letter in that it has a sender and a receiver. If the receiver has not been explicitly identified by the application, then the ALE layer uses the customer distribution model to help determine the receivers for the message.
The ALE layer can find out from the model whether any distributed systems should receive the message and, if so, then how many. The result may be that one, several or no receivers at all are found.
For each of the distributed systems that have been ascertained to be receiver systems, the data that is specified by the filter objects in the customer distribution model is selected from the master IDoc. This data is then used to fill an IDoc, and the appropriate system is entered as receiver.
Data selection
Segment filtering
Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -> Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.
Field conversion
Receiver-specific field conversions are defined under Functions for the IDoc processing -> Conversions.
General rules can be specified for field conversions; these are important for converting data fields to exchange information between R/2 and R/3 Systems. For example, the field "plant" can be converted from a 2-character field to a 4-character field.
The conversion is done using general EIS conversion tools (Executive Information System).
Version change
SAP ensures that ALE functions between different R/3 System releases. By changing the IDoc format you can convert message types of different R/3 releases. SAP Development use the following rules when converting existing message types:
-Fields may be appended to a segment type;
-Segments can be added;
ALE Customizing keeps a record of which version of each message type is in use for each receiver. The correct version of the communication IDoc is created in the ALE output.
The resulting IDocs (it is possible that several IDocs could be created in the receiver determination) are referred to as communication IDocs and are stored in the database. The dispatch control then decides which of these IDocs should be sent immediately. These are passed to the communications layer and are sent either using the transactional Remote Function Call (RFC) or via file interfaces (e.g. for EDI).
If an error occurs in the ALE layer, the IDoc containing the error is stored and a workflow is created. The ALE administrator can use this workflow to process the error.
Inbound processing
After an IDoc has been successfully transmitted to another system, inbound processing is carried out in the receiver system, involving the following steps in the ALE layer:
Segment filtering
Segment filtering functions the same way in inbound processing as in outbound processing.
Field conversion
Specific field conversions are defined in ALE Customizing.
The conversion itself is performed using general conversion tools from the EIS area (Executive Information System).
Generalized rules can be defined. The ALE implementation guide describes how the conversion rules can be specified.
One set of rules is created for each IDoc segment and rules are defined for each segment field.
The rules for converting data fields from an R/2-specific format to an R/3 format can be defined in this way. An example of this R/2 - R/3 conversion is the conversion of the plant field from a 2 character field to a 4 character field.
Data transfer to the application
Input control
When the IDocs have been written to the database, they can be imported by the receiver application.
IDocs can be passed to the application either immediately on arrival or can follow in batch.
You can post an inbound IDoc in three ways:
1. by calling a function module directly: A function is called that imports the IDoc directly. An error workflow will be started only if an error occurs.
2. by starting a SAP Business Workflow. A workflow is the sequence of steps to post an IDoc.
3. by starting a work item A single step performs the IDoc posting.
The standard inbound processing setting is that ALE calls a function module directly. For information about SAP Business Workflow alternatives refer to the online help for ALE programming.
Regards

Similar Messages

  • ALE & Idocs doubts

    Hi  Experts,
       I have big doubts in ALE & Idocs
    1.There are lot of function modules to create idocs.
      So how to find the relavent function modules for our
      requirement.Is there any criteria for this.
    2.When will we go to create idocs through BAPI,when we
      have both systems(sending & Receiving) are SAP.
    3.In INBOUND Idocs processing program,do we need to
      compulsary use BDC to update the data in conserned
      tables?
    Advanced Thanks for your replies

    Hi Murali,
    u can findout the list of fm related to the concerned msgtypes in <b>WE57</b> tcode.
    We have standard inbound function modules wich takes care of process/updation in inbound side. (Se37--> search by IDOC_INPUT* ).
    if those doen't suits to ur req. u can develop ur custom one and use BDC to update.
    Thanks
    eswar

  • Ale idoc doubt

    hi,
             when i send any material/customer from client 000 to 800.While,sending everthing goes ok till bd10,when i check in receiver 800 by tcode we02,it comes there also ok,but when i run tcode bd11/bd13 for getting the stuffs.one error comes
    Could not determine recipients for message type DEBFET
    Could not determine recipients for message type MEBFET
    HOW TO CORRECT THIS.
    Thanks,
    Gaurav

    Hi gaurav,
       BD10 is used to send the material to the ale layer.
    Then using bd11 in the receiving system u have to receive that material.
    BD10 will not transfer the material to the receiving system directly.
    Regarding ur error it might be some problem in ur customizing of the things.
    Regards...
    Arun.

  • ALEs/IDOCs doubt

    Hello Friends,
    I need suggestions for this typical issue
    The business scenario is like that when we are creating <b>purchase orders</b> in one server it should create <b>sales order</b> in the another server automatically.
    In the outbound it is moving without any error, and in the inbound side it is getting <b>51-status code</b> after I am trying to post the idoc with respective process code.In the <b>error</b> it is shows the message like “<b>The material number for item 000010 could not be identified”.</b>
    Thanks in advance
    Ramu.

    HI,
    Adding further...
    Although both Purchase Order & Sales Order use the same idoc type orders01, the data content will be different.
    for example...the purchase order will have purchasing related data like purchasing organization, purchasing group, vendor etc...
    however, sales order idoc requires the data like, sales organization, division, distribution channel, sold-to paty etc,...
    You have to do the conversion of the PO idoc to an SO idoc(this has to be done after the inbound requirements for a sales order idoc is studied)...
    Thanks,
    Renjith

  • BAPI Funda Doubt

    hi,
         If i'm developing a BAPI for any composite application which will communicate with .NET/Java application to pass data.Assume this scenario is working fine with fetching data for material 100-200 material.Now in a day i added 10,000 more material in my master.Now the performance may degrade and .net/Java application has to wait for the data to come into its environment and often it will get timeout.So how to deal with these kind of situations or What is the Error Handing Process in these types of scenario.
    Thanks,
    Gaurav

    Hi
    U have to use extension structure (EXTENSIONIN)
    In the table parameter of the BAPI you can see EXTENSIONIN structurated as BAPIPAREX.
    U need to do the following steps before using it:
    By SE11:
    - Extend the structure BAPE_VBAP and BAPE_VBAPX in order to insert the new fields
    - Extend the structure VBAPKOM and VBAPKOMX (if it's necessary) in order to insert the new fields
    In your report
    - Transfer the value to EXTENSIONIN:
    BAPE_VBAP-POSNR = <POSNR>.
    BAPE_VBAP-NEW FIELD = .......
    EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
    EXTENSIONIN+30        = BAPE_VBAP.
    APPEND EXTENSIONIN.
    BAPE_VBAPX-POSNR = <POSNR>.
    BAPE_VBAPX-NEW FIELD = 'X'.
    EXTENSIONIN-STRUCTURE = 'BAPE_VBAPX'.
    EXTENSIONIN+30        = BAPE_VBAPX.
    APPEND EXTENSIONIN.
    Max

  • Doubt regarding  ALE SETTINGS in IDOC scenario.

    Hi Friends,
            I have some doubts regarding ALE settings for IDOC scenarios,  can anyone  please clarify my doubts.
    For exmaple take IDOC to FILE scenario
    The knowledge i got from SDN is --
    One need to do at the  R3 side is  --- RFC DESTINATION (SM59)  for the XI system.
                                                       --- TRFC PORT  for sending IDOC  to the  XI system
                                                       --- CREATING LOGICAL SYSTEM
                                                       --- CREATING PARTNER PROFILE 
                   at the XI side is  --- RFC  Destination ( For SAP sender system)
                                           --- CREATING  PORT  for receiving IDOC from the SAP sending system(IDX1).
    1. Do we create two logical systems for both Sender ( R3 system ) and Receiver( XI system ) in R3 system itself or in XI system or in both systems we create these logical systems? Is this a mandatory step in doing ALE configurations?
    In IDOC to IDOC scenario-------
      2.  Do we craete two RFC destinations in XI system? One RFC DESTINATION for the Sender R3 system and another RFC DESTINATION for the Receiver R3 System? and do we create RFC DESTINATION for the XI system in receiver R3 system? If not.....y we don't create like this........Please give me some clarity on this.............
      3.  If we use IDOC adapter ,since IDOC adapter resides on the ABAP STACK ,we don't need sender communication channel ,for the similar reason----
    y we r creating receiver communication channel in the case of FILE to IDOC scenario?
      4. Can any one please provide me the ALE settings for IDOC to FILE scenario,
                                                                                    FILE to IDOC scenario,                                                                               
    IDOC to IDOC scenario individually.
    Thanks in advance.
    Regards,
    Ramana.

    hi,
    1. Yes, we create two logical systems for both Sender ( R3 system ) and Receiver( XI system ) in R3 system itself and
    it is a mandatory step in doing ALE configurations
    2. We create 1 RFC destination each in R3 and XI.
        R3 RFC destination points to Xi and
        XI RFC destination  points to R3
    3 We need to create Communication Channel for Idoc receiver as the receiver channel is always required but sender may not be necessary
    4. ALE settings for all IDOC scenarios are same  as follows....
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 6)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    Step 7)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.
    SAP r3
    sm59(status check)(no message)
    WE02(status check)
    WE05(status check)
    BD87(status check)
    Xi
    IDx5(Idoc check)
    SU53(authorization check)
    Reward points if helpful
    Prashant

  • Doubts in funda's of XI

    Hello Gurus,
        I am some doubts in funda's of XI.  PLEASE HELP ME BY WRITING YOUR OWN IDEAS ( NOOOOOO! LINKS PLEASE   ).
    when in SLD .... you have buttons for creation of "new product" and "new software version component" ..... when SLD is set to show all the products/Software version  components automatically by SAP.... what is the need of these two buttons? 
    when my XI server is connected to R/3 systems i am not able to see this product (R/3 system) in SLD .... but i am able to import the IDOC/RFC to XI server.... why is that happening?
    Well! it also said by one of our gurus that R/3 systems should be defined in SLD of XI to be seen in SLD of XI... as your basis guy is quite busy to answer ... can some one me help to answer my curiousity?
    Cheers!
    SY

    Hi,
    >>><i>when in SLD .... you have buttons for creation of "new product" and "new software version component" ..... when SLD is set to show all the products/Software version components automatically by SAP.... what is the need of these two buttons?</i>
    SLD shows all the products and SWCV of SAP. The button you have specified allow us to create our own software component versions and products.
    One of the reasons as to why we create software component versions,is for modularity.
    Moreover, each of the namespaces under a SWCV has some commonality.
    >>><i>when my XI server is connected to R/3 systems i am not able to see this product (R/3 system) in SLD .... but i am able to import the IDOC/RFC to XI server.... why is that happening?</i>
    You will find an entry for R/3 in the technical system list.
    >>><i>Well! it also said by one of our gurus that R/3 systems should be defined in SLD of XI to be seen in SLD of XI... as your basis guy is quite busy to answer ... can some one me help to answer my curiousity?</i>
    Yes! If this is not done, how will xi know where the R/3 system is? You will have to tell xi, that r/3 is at this IP right? This is what you do in SLD.
    Regards,
    Smitha.

  • Doubt in ALE

    hi all
         In ALE configuration, how may logical systems we have to create?
    As per my knowledge 2 logical systems will be created.is it not?
    But we r sending the data ,so one logical system(destination) is enough, to send the data to destination.  ...
             please clear my doubt , with example

    Check the link below:
    http://www.atomhr.com/know_preview/ale_logical_system.htm
    Logical System
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/5aa2a0deb91548a1842f8485dee4a2/frameset.htm
    Setting Up a logical system
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b4/b0b13bb3acef3ce10000000a11402f/frameset.htm
    Securities of Logical system
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/98a340f590a35be10000000a1550b0/frameset.htm
    Assigning Logical Systems
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cb/0f3040cbe60d418d7b4373c0cbf84a/frameset.htm
    Assigning Logical Systems to client
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/b4b13b00ae793be10000000a11402f/frameset.htm
    Regards.

  • Doubt in ale/idocs urjent

    hi,
    i have a doubt in ALE/IDOCS requirement is add a field to segment
    in tcode BD53(reduce message type) after adding a field.
    what configuration i need to do.

    welcome to SDN.
    Post this ABAP forum for quicker response.
    ABAP Development
    Regards
    Raja

  • Doubt on EDI/ALE

    hi folks,
            i have one basic doubt XApps...what is the differenece betwwen ALE and EDI. when do we go for which scenario......cld ay one xplain me in detal...thnx in advance...
                 santosh...

    Hi,
    Please refer to the documentation below:
    The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    The philosophical difference between EDI and ALE can be pinned as follows: If we send data to an external partner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trusting systems to store a redundant copy of the IDoc data. The difference is made clear, when we think of a purchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier will store the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3 system, then the receiving system will store the purchase order also as a purchase order.
    Thanks,
    Sandeep

  • New to SAP...Doubts regarding ALE.

    Hi all,
    I am new to SAP.
    Can any one please explain me the following.!
    What is the difference between EDI and ALE?
    What is Logical system, Port, RFC destination, Customer Distribution Model, Partner Profile, Message type, Message control and if any of the important terminology that I have missed in the ALE concept?
    Please help to explain me clearly in detail as I have no knowledge reg these and tried searching for info in various links, but still found difficult to understand?
    Many thanks in advance....
    Regards
    Nani Ancha

    ALE/EDI
    Purpose
    Electronic Data Interchange (EDI) and Application Link Enabling (ALE) are used for exchanging business data between different systems.
    For both these forms of communication, you require the IDoc Interface. The IDoc interface is made up of the definition of a data structure and the processing logic of this data structure. The data structure is the IDoc. The IDoc is the general exchange format of the communicating systems. IDocs can be sent using different methods (for example, Structure linkRFC or as a file).
    Application Link Enabling (ALE)
    You distribute data using ALE if you want to communicate from one system to one or more other (mostly internal) systems. ALE transfers data in IDoc format and uses the methods of tRFC for data transfer.
    ·       ALE enables the integration of business processes across several SAP or non-SAP systems.
    Electronic Data Interchange (EDI)
    You use EDI if you want to exchange business application documents with an (external) partner system (for example, a customer or vendor). The SAP system sends EDI messages in IDoc format to an EDI subsystem, where they are converted to a universal EDI standard (UN/EDIFACT or ANSI/X12). This enables communication with non-SAP systems.
    ·       By definition, two partners are involved in the process in an EDI application scenario: The sender and the recipient of an EDI message.

  • Basic doubts in ALE/IDOC processing

    Hi All,
    1.How are IDOC Type and Message Type related? Many to one or One to Many?
    2. what is the prominence of msg code and msg function in ALE outbound processing?
    3. During outbound processing what is the startegy followed by the ALE service layer to pick up the customer model?
       It would be great if any one can answer these questions in plain words rather than referring links. Reward guaranteed.

    Hi Ravi,
    1.Can'te we assign more than one IDOC to the same msg type if the IDOC's are of different versions?
    Yes we can. Doesn't SAP do that? For example, ORDERS01, ORDERS02 ... ORDERS05 are having the same message type ORDERS. You can also create your own IDoc type or extend the standard IDoc type.
    3. When we run a stand alone program to trigger IDOC processing the only mandatory field will be the message type, so how can the sending system identify the receiving system?
    You need to setup partner profile (t/code WE20) and distribution model (t/code BD64). Once this configuration are done, The system will populate automatically the IDoc Control Record for sender and recepient system information when the IDoc generated based partner profile setup.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Doubt in ALE/IDOC's

    Hi Friends,
        I have 2 inbound idocs in which
         one idoc posts the document in SAP
         seecond oneconfirms that document.
    what my problem is if the second idoc comes first and try to confirm before the documnet posted it gets fail. SO that i want this confirmation to be done only after the document is posted. How can i achieve this.
    Thanks& Regards,
    Naren.

    hi,
    there is an excellent concept in ALE called <b>SERIALIZATION</b>.
    1. goto transaction code SALE.
    2. MODELLING AND IMPLEMENTING BUSINESS PROCESS -> MASTER DATA DISTRIBUTION -> SERIALIZATION FOR SENDING AND RECEIVING DATA -> SERIALIZATION USING MESSAGE TYPES
    3. what u actually do is,
    <b>example :</b>
    let us say IDoc1 is of message type CLFMAS, IDoc2 is of message type MATMAS. now u configure in the path given above that, MATMAS should be received first and CLFMAS should be received next. this is known even to the partner.
    this is how u correctly receive IDoc in the sequence.
    hope it helps.
    reward if useful...

  • Doubt in bdc and ale reg

    using we can transfer the data from one system and another system. in ale also we can do same thing. what is the need of using ale

    BDC is used in scenarios where a company decides to do away with an existing ERP system and choses to use a SAP R/3 system in its place(Like from Oracle to SAP, or from any legacy system to SAP).
    In the process, the company wil store all the legacy data in flat files before discarding the original system.
    The flat file data, will have to be uploaded into the R/3 System again. It such cases BDCs/ Batch Iput programs are used.
    ALEs are used in a totally different scenario.
    If the company is using two loosely coupled sap systems, and the same data is to be maintained in both the systems, then you will use ALE concept.
    It is like latching them together and changes made to one system are automatically refelected in the other system as well.
    Regards,
    Ravi

  • EDI ALE DOUBTS

    hi ,
    1) if an idoc is failed , how wil u create it again (not reprocessing bd87).
    2)how wil u debug idoc program.
    3) how to configure edi and ale.
    4) status 51(application not posted) error records will get stored in which table.
    5)is it possible to send idoc using trfc port in edi
    Regards,
    Ganesh
    Message was edited by:
            ganesh ram

    Hi,
    1. use WE19
    2. use same WE19 here you can find processing using debug mode
    3. Check in this site , there will be lot of link how to configure.
    4. EDIDS
    5. Yes possible
    aRs

Maybe you are looking for

  • Issue with variable selection

    Hello friends                 I have created a sample iView which has a BW query. I have attached a variable form to the input of the Query and a table view to its output. However when I am deploying the iView, I cannot see a selection list for the v

  • How do I create an image like this?

    Completely new to PS. How would I create an image like this with text? https://www.facebook.com/photo.php?fbid=10151570901245020&set=pb.50687255019.-2207520000.1 366989903.&type=3&theater A link to a tutorial would be helpful. Thanks!

  • Step by Step details on how to load data from a flat file

    hi can anyone explain how to load data from a flat file. Pls giv me step by step details. thnx

  • Scroll JScrollpane to the bottom automatically

    I have a JScrollPane attached to a textarea         textArea = new JTextArea("Test", 5, 30);      textArea.setEditable(false);         JScrollPane scrollPane = new JScrollPane(textArea);I use         textArea.append("text\n");to append text, and afte

  • How to calculate the frequency of the search string in a row

    Hi, I would like to find the frequency of the number of the occurences of a search string in a row which is of type of xmltype content. For ex: I would like to find the frequency of the word "oracle" in a row which is of type xmltype content. Is ther