ALE IDOC  with T-code :IE01

How is an ALE IDOC generated when an equipment is created with T-code :IE01

Hi K.R.,
First of all you need to check if everyting works fine.
For this specific IDoc you can check table T705Z with KANAL='2' and AKTIO='4' and with DATUM=<Date of receiving IDoc>. You can also use UZEIT as a filter here.
Why?
At the moment this IDoc (CONF21) comes inbound to SAP, through the process code CON2 it actually must start function module KK2A_GET_DATA_FROM_IDOC. This places the entry and you can then see that your function has been called.
Secondly inside function module KK2A_GET_DATA_FROM_IDOC the process for updating is started in a parallel (asynchronous) process. Actually function module PROCESS_CC2_MESSAGES_PARALLEL is triggered as a background task that controls its own parallel processing. On its turn this calls the logic in function module PLANT_DATA_ANALYZE_PARALLEL and therein the function module PROCESS_CC234_MESSAGES.
With these mentioned function modules a table is preserved (named ET_PROT) and this table contains (internally) any message, so also error message text.
Unfortunately you are not able to get to this internal table if the proces is running in the background.
Now when SAP calls the parallel process (in background), programcontrol is returned immediately. So function module KK2A_GET_DATA_FROM_IDOC can then finish. Finishing here without setting any error status will lead to final status 53 for the inbound IDoc.
And as you can imagine, it does NOT wait for the result of the background process. Therefore status 53 represents only the fact that function module KK2A_GET_DATA_FROM_IDOC has runned without errors. It does not report errors possibly occuring in PROCESS_CC2_MESSAGES_PARALLEL.
Now how is this then to be solved?
You need to create your own data for running the above mention logic, preferrably based on failed IDoc data and then debug the whole thing (to find the error).
Hope this helps you a bit on your way,
Regards,
Rob.

Similar Messages

  • Problem in ALE inbound With process code

    i want to give a function module to the in bound process code in transaction WE42 but i am not able to give the function module name .after giving the function module name if i say save system giving message "The ALE table is not yet maintained for process code ZTEST".

    Hi,
    This are the steps which involoves the Idoc processing .
    For ur query, check the bold letters .. do that part . it will solve ur problem
    Create Idoc type – Transaction WE30.
    Idoc type Idoc segments
    Z_idoc
    Create Message Type – Transaction WE81.
    Message type
    z_msg
    Assign Message Type to Idoc type – Transaction WE82.
    Idoc type Message type
    z_idoc z_msg
    <b>Create a function module through SE37
    z_idoc_input
    Assign characteristic of function module BD51
    Assign fn module to Idoc type and Message Type WE57
    Idoc type Message type Fn Module
    z_idoc z_msg z_idoc_input
    Create Inbound process code and assign inbound function module – Transaction WE42.
    Process code Inbound function module
    zcode z_idoc_input</b>
    Create a distribution Model - Transaction BD64
    Create distribution model for distribution of messages
    with the message type of z_msg
    Update inbound parameters of the Partner profile – Transaction WE20
    For the Logical system A for the above message type update the partner profile
    inbound parameter and specify the process code of zcode.
    For Outbound ALE Configurations: (Example)
    IDoc definitions and necessary ALE configurations settings for the outbound .
    Create Idoc segments – Transaction WE31.
    Create Idoc type – Transaction WE30.
    Create Message Type – Transaction WE81.
    Assign Message Type to Idoc type – Transaction WE82.
    Create a distribution Model - Transaction BD64.
    Reward points if it is Useful.
    Thanks,
    Manjunath MS

  • Inbound Idoc with T-code: BORGR ( Inbound delivery create) EDI cannection

    Dear all,
    Kindly help me to create inbound delivery with BORGR transaction.
    Here the we have to create the inbound delivery in the system with the help of vendor number and material without using Scheduling agreement number in BORGR
    Please suggest the processing code and the function module required for the BORGR document posting.
    I have done the following steps u2026but not able to post the dummy idoc through WE19 .
    1.     Use standard message Type DESADV (T code: WE81).
    2.     Use standard IDOC type DELVRY05 (T code: WE30).
    3.     Assign message type  to IDOC Type ( Tcode: WE82).Message Type:-DESADV, Basic Type:-DELVRY05,Release 700
    4.     Use standard assignment of process code DELS with the message type DESADV ( Tcode: WE42)
    5.     Inbound Function Module :  IDOC_INPUT_DESADV1 ( T code : WE57)
    6.     Define Port type File (Tcode: WE21) Port u2013 EDI_ASN Inbound Delivery.
    7.      Define Partner Profile (Tcode: WE20) Inbound Parameters.
    8.     Enhancement can be done in inbound IDOC as per the business requirement. Business has confirmed Field name wise Inbound IDOC data which will be received from vendor and all fields are available in the standard IDOC type DELVRY05.
    Please help if anything more required for posting dummy idoc .
    Thanks and regards,
    koshti

    Hi Dick,
    just one additional hint as we had recently such problems :
    It my happen that DESADV creates an inb.del <b>w/o</b> packing the HUs (idoc status is 'yellow' instead of 'red'). To avoid this OSS #912470 is the solution.
    Kind Regards
    Kay

  • HRMD_A Inbound Idoc with process Code:HRMD not updated in SAP

    Dear friends,
    I'm facing a problem with Personnel data creation in SAP (this is not a SAP HR system).
    I have a data file with Personnel data, in WE19, I use idoc_input_hrmd to process the data (with basic type: hrmd_a06). Idoc has been created with status '53'. However, when I check in SAP, t-code PA30 with the Personnel number, the record does not exist. Checked infotype tables PA0000, PA0001, PA0002 and PA0003 as well, no luck.
    I wonder where does the data go? Is it sitting somewhere in the system and waiting to be processed?
    Please help!!!!!

    Hi
    Authorizations might be one of the reason.
    So IDOC transfered but no records to be writeen to DB.
    regards
    vijay

  • Creation of custom idoc with entire code

    Hi
         I am kavitha ,working on abap skill , i want the entire documentation for creation of custom idoc , including writing of posting programe and also selection programe , if possible please forward me any real time scenarion . plz forward me its urgent

    Hi,
    Hoping that u would reward me all the helpful points please refer the link:
    <a href="http://abapcode.blogspot.com">http://abapcode.blogspot.com</a>
    regards,
    Ameet

  • Ale idoc interview questions

    how to develope a ale idoc with one example?

    hi,
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    Regards,
    S.Nehru

  • ALE/IDOC Scenerio

    Hi every one,
    I am new to ALE/IDOC can any one send me one or two complete scenerio  and faqs on ale/idoc. this is my mail id [email protected]
    Regards,
    Venkat

    There is no standard way to send ALE IDOC back to SAP R3 if mapping fails in middleware.
    But this can be handled through BPM.I am not sure if you are from XI background or R3 background
      The BPM design looks like this,
    Receive( IDOCs from R3 ) -
    > Block step ( Inside block Mapping-> If mapping success>.Send to Target application
                                                                                    If mapping Fails(System Error)>Mapping (MAP ALE IDOC with respective details)->Send IDOC to R3 system.
    Hope thsi helps

  • Integrating SAP CRM with the SAP HR module using ALE/IDOC

    Hi,
    We replicated HR data(employee and position) from SAP HR to SAP CRM system using ALE/IDOC.
    Here I have one question,If I change the position to the employee in CRM system,will changes happen in SAP HR system automatically? or Delta changes will haapen? If yes pl explain.
    Using change pointers master data changes flowsfrom SAP HR to SAP CRM .
    TIA.
    PV.

    Hi
    To integrate... between those systems
    first of all u have to create message type to tose fields with t code bd52.
    then activate that massege type in bd50.
    and after that one u have to activate chaneg pointers globally with bd61.
    if u did these thigns if u made any chnegs to those fileds that witll be reflected in the next system
    Regards,
    Prasad.

  • Sample code  ale/idoc n user exits

    Hi
    could any one post me two objects each for ALE/IDOCs and Enhancements with explanation about business scenarios ,complete code plz....

    I do not see any FM idoc_input_deladv1   ,but i see FM IDOC_INPUT_DELVRY
    There are user exits related to FM IDOC_INPUT_DELVRY
    Check the enhancement : V55K0001
    FM : EXIT_SAPLV55K_001
    Check the enhancement : V55K0002
    EXIT_SAPLV55K_002
    Check the enhancement : V55K0003
    EXIT_SAPLV55K_003
    Thanks
    Seshu

  • IDOC with example and T.codes ??

    hii
    Some body explain me about the scenario and steps to be followed in configuration and in front process with transaction codes .
    Jus some experts can explain me about over all procedure of IDOC in SAP with transaction code (Full cycle with examples...??
    In MM , exaplin me with some examples and with transaction codes ..
    Thanks

    Check these links
    [IDOC Configuration|http://sapmm.posterous.com/idoc-configuration]
    [Learn SAP u2014 IDOC basic|http://blogs.moovar.com/sap/learn-sap-idoc-basic/]
    1) What is IDOC?
    IDoc means intermediate document is a standard data structure for electronic data interchange (EDI) between application programs written for the popular SAP business system or between an SAP application and an external program. IDocs serve as the vehicle for data transfer in SAP's Application Link Enabling (ALE) system.
    2) Why its is used with SAP?
    IDocs are used for asynchronous transactions: each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. Another SAP mechanism, the Business Application Programming Interface (BAPI) is used for synchronous transactions.
    3) What its advantages & disadvantages?
    a) IDOC - Advantages :
    The target system need not be always online. The IDOC would be created and would send the IDOC once the target
    system is available.
    No additional programming required. Configuration is the only one need to be set up.
    b) IDOC - Disadvantages :
    Receipt/Processing on the target system need not be immediate
    When no standard IDOC is available, then it is very hard to create a custom IDOC when compared to creating a
    standard BAPI
    Unless ALE is used, it is difficult to trace if the IDOC has actually reached the target system
    4) IDOC flow with MM :
    In order to make use of the workflow for IDoc processing, you do not have to go through the cumbersome
    workflow design procedure as it is described in the workflow documentation. For the mentioned purpose, you can
    register the workflow handler from the menu, which says Event Coupling from the BALD transaction.
    Triggering the IDoc from a workflow event has a disadvantage: if the IDoc has to be repeated for some reason, the
    event cannot be repeated easily. This is due to the nature of a workflow event, which is triggered usually from a
    precedent action.
    Edited by: Afshad Irani on Aug 26, 2010 5:48 PM

  • Data migration with ALE/Idoc

    Hello .
    I want to migrate data between two SAP system using ALE / IDOC, and I want to know the settings to make on each system (source and target).
    Does someone has an idea?
    Thank you all

    Outbound Settings
    Define Logical Systems and Assign Client to Logical System u2013 Transaction SALE
    u2022     Go to Define Logical System (See the figure)
    u2022     Define a new logical system to identify the local system and save it
    u2022     Now, go to Assign Client to Logical System (See the figure)
    u2022     Add a new entry
    u2022     Specify the client, previously created logical system and other attributes
    u2022     Save the entry
    u2022     Define a new logical system to identify the partner system and save it
    Maintain RFC Destinations u2013 Transaction SM59
    u2022     Create a new RFC destination for R/3 type connection
    u2022     Specify the target host on Technical settings tab
    u2022     Provide the Logon credentials on the Logon/Security tab
    u2022     Save the settings
    u2022     To verify the settings, Click on Test connection or Remote logon
    Define Ports u2013 Transaction WE21
    u2022     We need to define a tRFC port for the partner system
    u2022     Click on Transactional RFC node
    u2022     Create a new port
    u2022     Provide a description
    u2022     Specify the name of the target RFC destination
    u2022     Save the object
    Maintain Distribution Model u2013 Transaction BD64
    u2022     Click on Change
    u2022     Create a new model view
    u2022     Provide a Short text and Technical name to the model view
    u2022     Add message type
    u2022     Specify sender and receiver systems
    u2022     Also, specify the message type that we created previously
    u2022     Save the Distribution model
    Generate/Create Partner Profile u2013 Transactions BD82/WE20
    u2022     To generate Partner profiles automatically you may use BD82 or go to BD64 and use the menu path Environment -> Generate partner profiles
    o     Otherwise, you may use transaction WE20 to create a partner profile
    u2022     On selection screen, specify the model view, target system and execute
    u2022     The result log will be displayed on the next screen
    u2022     To verify the partner profile go to WE20
    u2022     Check the partner profile for the target system
    Distribute Model View u2013 Transaction BD64
    u2022     Select the Model View
    u2022     Go to menu path Edit -> Model View -> Distribute
    u2022     Result log will be displayed on the next screen
    Inbound Settings
    u2022     Define Logical Systems u2013 Transaction SALE (Please refer to Outbound Settings discussed)
    u2022     Assign Client to Logical System u2013 Transaction SALE (Please refer to Outbound Settings discussed)
    u2022     Maintain RFC Destinations u2013 Transaction SM59 (Please refer to Outbound Settings discussed)
    u2022     Define Ports u2013 Transaction WE21 (Please refer to Outbound Settings discussed)
    u2022     Generate/Create Partner Profile u2013 Transactions BD82/WE20 (Please refer to Outbound Settings discussed)
    u2022     Assign Function Module to Logical message u2013 Transaction WE57
    o     Create a new entry
    o     Specify name of the Function Module
    o     Also, specify Type as F, Basic IDoc type , Message type  and Direction as 2 (Inbound)
    o     Save the entry
    u2022     Define Input method for Inbound Function Module u2013 Transaction BD51
    o     Create a new entry
    o     Provide Function Module name 
    o     Specify the Input method as 2
    o     Save the entry
    u2022     Create a Process Code u2013 Transaction WE42
    o     Create a new Process Code
    o     Select Processing with ALE Service
    o     Choose Processing type as Processing by function module
    o     Save the entry
    o     On the next screen, select your function module from the list
    o     Save the changes
    o     Now you will be taken to the next screen
    o     Double-click on Logical message
    o     In the Assignment to logical message, specify the message type
    o     Save the changes

  • IDOC: How to create child segment with abap code.

    Hi,
    I'am trying to write an abap code to create segments for an Idoc which structure is the following:
    ZLE_00060_DLVY
    >  E1EDL20
    > Z1DEL_CONS
    >Z1DEL_MAT_HEADER
    > Z1DEL_MAT
    > E1EDL20RET2
    > E1EDL22
    > E1EDL21
    > E1EDL23
    > E1EDL51
    I receive a sintax error: Error in IDoc with status 26 .
    Checking the result I note all segment at the same level and an error about the segment E1EDL22
    EDI: Syntax error in IDoc (segment cannot be identified)
         Message no. E0078
    Diagnosis
         The segment E1EDL22 does not occur at the current level of the basic
         type DELVRY05 (extension ZLE_00060_DLVY).
         This error can have several reasons:
         o   The segment E1EDL22 is assigned to a group whose header segment does
             not occur.
         o   The segment E1EDL22 does not exist in the syntax description of the
             basic type DELVRY05 (extension ZLE_00060_DLVY).
         o   The sequence of segments in the group in which the segment appears
             is incorrect.
         Previous errors ('mandatory' segment or group missing) may be due to
         this error.
    Procedure
         Please check the IDoc or the syntax description of the basic type
         DELVRY05 (extension ZLE_00060_DLVY).
    After the error I have:
    data records
    E1EDL20
    Z1DEL_CONS
    Z1DEL_MAT_HEADER
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    E1EDL20RET2
    E1EDL22
    E1EDL21
    Abap code:
            idoc_data-segnam = 'Z1DEL_CONS'.
            idoc_data-sdata = s_z1del_cons.
            append idoc_data.
              idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
              s_z1del_mat_header-tsegment = 'MATERIAL'.
              idoc_data-sdata = s_z1del_mat_header.
              append idoc_data.
            clear idoc_data-sdata.                            <<<<<<<<<<< how to indent the structure because this is a child.
             idoc_data-sdata = s_Z1DEL_MAT.
             idoc_data-segnam = 'Z1DEL_MAT'.
             append idoc_data.
             idoc_data-segnam = 'E1EDL20RET2'.
             idoc_data-sdata = s_E1EDL20RET2.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL22'.
             idoc_data-sdata = s_e1edl22.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL21'.
             idoc_data-sdata = s_e1edl21.
             append idoc_data.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi,
    following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE  EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
    In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
    Then, I need to add a new segment and one child.
    Any suggestion will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

  • Any  having the Experiance with message type UTILMD and REQDOC in ALE Idoc

    Hi experts ,
    I am working with SAP ISU ,in ALE Idoc message types UTILMD and REQDOC,
    ver 3.0 and 4.0 ,I got the  almost all necessary details of UTILMD MESSAGE TYPE..but REQDOC is pending.If any one having the format of REQDOC segments and objectypes in SAP ISU please send it to me it will be very helpful to me .
    Regards
    Sarath

    Thak you for the responce,
    Hai Naveen,But i dont have message type or structure for REQDOC ver 3 or 4 .in SAP .do you have that structure for  REQDOC in the  transaction we30 .if so please send me its mainly used for SAP ISU .
    regards
    sarath

  • Message type, Idoc type and process code in ALE/Idoc

    Each Idoc version(creams01 or cremas03) will have seperate process codes in Inbound process?
    Whether Message type triggers the process code or the Idoctype/idoc  triggers the process code in Inbound process?
    regards
    Message was edited by: henry

    Hi Henry,
    About your question as how should you assign seperate process code for the same message type ( with different IDoc Type )-
    In We42, the message type can be assigned to the processing code. But here you will find that along with message type there are two more fields - Message Code & Message Function.
    You can use any one these to serve your purpose.
    e.g. you can assign
    -process code P1 to message type M with Message code 1
    -process code P2 to message type M with Message code 2
    Further these process types can be configured to call separate FMs.
    Now depending on IDOC types your external system should populate the message type as well as Message code so that accordingly process code will be determined at the time of inbound processing.
    I hope it's clear & correct
    Thanks,
    Ram

  • What is a process code in ale idoc

    what is a process code in ale idoc,what is the purpose of Process code.

    Hi,
         Let me tell some scenario then u would be able to understand what a process code is-------
    In ALE ie, the data requested system is receiver and the data already presented system is sender ie, from where we are having the data,
      here in sender side----
           we need a program to tranfer required data into idoc--( idoc is just a data container )    in sender side this program logic is in a function module it is configured in we41.
             ie this will transfer the data from database to idoc----in sender side it is a process code
    and in receiver side after receiving the data we have to post it in database again program needed it is also ie the required code is also in function module it is configured in we42
    it is about receiver side f.m or simply process code
    okkkkkkkkkkkk

Maybe you are looking for

  • Can't publish-project too long

    I will give more background later, but to put my issue shortly, I will give the following info: I have one video clip that I have trimmed (by taking a bit from the beginning and a bit from the end).  It is almost 2 hours long (1:56 to be exact). So,

  • Java.sql.SQLException: setNString, Exception = 3

    Hello, We have a situation where during a multi user testing, we are getting the following exception while excecuting a query. We are using the datasource mechanism provided by web logic. When we tries to set a param value using the setNString, we ge

  • I am unable to restore my iPhone 3 to factory orginal.  I keep getting error code 2003

    I had jail broken my iPhone 3 a number of years ago for travel use. I now wish to return it to factory original so that I can have it correctly unlocked to take to Europe for use when traveling. But when I try to do a restore to factory it keeps disp

  • Hmm...seems there is no upgrade from 1Z0-042 to 1Z0-052

    Hi guys, As Im currently holding 1z0-042 certificate I was planning to take 1z0-052 as well by upgrading it but on oracle's site amongst available upgrade exams i cannot find this one. Strange though, there is update exam from 1z0-043 to 1z0-053. May

  • Go back gesture on Mac OS X Lion

    Hi everyone, I just installed new Mac OS X Lion and the only thing which I am missing is "go back" gesture. In previous version of OS I was able to slide with three fingers to the left (go back) or to the right (go forward). I have used those gesture