How to get inbound idoc in xi

Hi experts,
Please tell how to get idoc number in xi. scenario is third party-- xi-- ECC. file to idoc scenario.
I have some mising PO in ECC side.
Can you please tell the corresponding ioc number found in XI which is found in ECC.

Hi,
the IDoc no will be created in the ERP, not at PI. Therefore you cannot pick it up at PI.
As Neethu recommended, copy instead the PI msg ID from details tab of control record and use it for msg selection at PI (SXMB_MONI)
Regards,
Udo

Similar Messages

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • How to post inbound idoc in sap system?

    Dear All,
    How to post inbound Idoc in sap system?
    Regards,
    Amar
    Edited by: amar kumar on Nov 23, 2009 2:53 PM

    Hi Amar,
    Use the FM IDOC_WRITE_AND_START_INBOUND to post an inbound IDoc. Just build the EDIDD and *EDIDC8 tables and enter a profile for a inbound message type from a partner. It returns a IDoc number. Don't forget to do commit work.
    Regards
    Abhii

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • How to Test, Inbound idoc ,with out the Sender System, using a Text File

    Hi Guru's .
    we wanted to test BLAORD03 inbound idoc (Message Type BLAORD).with out the SENDER SYSTEM.
    on the same client.
    we wanted to test this idoc with text file from our local machine.
    Can anyone give us detail steps.like how to create  File layout
    with Segment name,and values for the fields.how to pass this file to the system.
    Thanks in advance.

    Hi Aparna.
    My requirement is to test the idoc with Inbound File.
    Generate a file with the data entered through segments through we19 ,and use the same file for processing through we16.
    when i am trying to do this syst complaing about
    Partner Profile not available, and some times
    port not available. and some  times with
    'No further processing defined'.
    but i maintained part profiles and port perfectly.
    Can you help me in testing with test 'File' port.

  • How to process inbound idoc in R/3 with status 75 - idoc received via qRFC?

    Hi gurus,
    we are using EOIO for source to R/3, and all the idocs a received in r/3 with this status. But they can't be processed from BD87. How to process these?
    Thanks,
    Olian
    Edited by: Olian Saludew on Sep 11, 2008 11:44 AM

    Hi,
    Idocs Works on tRFC Queues.
    Check this Report to Process Inbound Idocs with Specified Status.
    RBDAPP01
    Regards
    Seshagiri

  • How to create inbound idoc and FM

    Dear All,
    How to create custom inbound idoc, the program and FM.
    Can anyone send me step by step process to create it, steps in FM and Coding.
    I have created for outbound and its working fine.
    Plz reply ASAP.
    Regards,
    Arun.

    Hi Arun,
    1) Create segment (WE31)
    2) Create IDOC Types (WE30)
    3) Create message type (WE81)
    4) Link message type with basic type (WE82)
    5) Create FM (SE37)
         here in the source code part of the function module you have to loop into the data records table of the idoc. then loop into the status recod table  to update the status of the idoc(Posted/Postedwitherrors/errors).
    6) Create Process Code (Inbound - WE41/ Outbound - WE42)
    7) Link FM and process code (WE57)
    go to WE19 to test it.
    Edited by: Chinna guntur on Sep 2, 2008 9:17 AM

  • How to get the IDOC name attached with message type (IDoc at receiver end)

    Hello Friends,
    I have configured the Order Confirmation Idoc.And the port used is XML_HTTP. in this port generally the idocs are sent to a java servlet.
    So there the idocs are being created with name  :- Idoc_no.XML
    but i need to get the IDoc name prefixed or attached with the message type name, that the particular idoc uses.
    waiting for your replies .
    thanks,
    jeevan

    Hi Jeevan,
    I am sorry for the confusion, the solution i provided is used when we go for XML FILe port. But when we go for XML HTTP port, this option is not available in SAP. So we need to check with the target system, whether there is any option available to read the file contents before saving , so that we can save the idoc with the required file name .
    With my knowledge i assume why this option is not there for XML HTTP port is when we use XML HTTP port the idoc will be converted into XML and will be transported over HTTP protocol to an remote system which may be any type like XI, Java Servlet, Business connector, .Net etc. So in that case all the systems may not support the file name what we propose from the SAP. This is my assumption.
    Please go through the help provided by SAP for XML Port types
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c975eb1911d6b2ea00508b6b8a93/frameset.htm
    Please check with the Java guys who are working at the target end, whehter they may help you to resolve.
    Thanks & Regards
    Vijayanand Poreddy

  • How to edit inbound idoc with data errors in multiple segments and reproces

    Hi friends,
    i have a requirement for error handling of inbound sales order(ORDERS04) without using WORKFLOW and WE19.
    i have seen some function modules like edic_* ..
    but my doubt is how to edit the error data(how can i identify the particular error fileds in the segments)and how to reprocess the same idoc.
    Please help me...
    Thanks in advance

    Hi Narasimh,
    Please find the following steps to edit IDOC segment after you find the error using WE02.
    The example codes can be found in website 
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    STEP 1 - Open document to edit
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
           EXPORTING
                document_number               = t_docnum
           IMPORTING
                idoc_control                  = itab_edidc
           TABLES
                idoc_data                     = itab_edidd
           EXCEPTIONS
                document_foreign_lock         = 1
                document_not_exist            = 2
                document_not_open             = 3
                status_is_unable_for_changing = 4
                OTHERS                        = 5.
    STEP 2 - Loop at itab_edidd and change data
    LOOP AT itab_edidd WHERE segnam = 'E1EDKA1'.
      e1edka1 = itab_edidd-sdata.
      IF e1edka1-parvw = 'LF'.
        e1edka1-partn = t_eikto.
        itab_edidd-sdata = e1edka1.
        MODIFY itab_edidd.
        EXIT.
      ENDIF.
    ENDLOOP.
    STEP 3 - Change data segments
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
               TABLES
                    idoc_changed_data_range = itab_edidd
               EXCEPTIONS
                    idoc_not_open           = 1
                    data_record_not_exist   = 2
                     OTHERS                  = 3.
    STEP 3a - Change control record
    CALL FUNCTION 'EDI_CHANGE_CONTROL_RECORD'
           EXPORTING
                idoc_changed_control         = itab_edidc
           EXCEPTIONS
                idoc_not_open                = 1
                direction_change_not_allowed = 2
                OTHERS                       = 3.
    STEP 4 - Close Idoc
    Update IDoc status
    CLEAR t_itab_edids40.
      t_itab_edids40-docnum      = t_docnum.
      t_itab_edids40-status      = '51'.
      t_itab_edids40-repid       = sy-repid.
      t_itab_edids40-tabnam      = 'EDI_DS'.
      t_itab_edids40-mandt       = sy-mandt.
      t_itab_edids40-stamqu      = 'SAP'.
      t_itab_edids40-stamid      = 'B1'.
      t_itab_edids40-stamno      = '999'.
      t_itab_edids40-stapa1      = 'Sold to changed to '.
      t_itab_edids40-stapa2      = t_new_kunnr.
      t_itab_edids40-logdat      = sy-datum.
      t_itab_edids40-logtim      = sy-uzeit.
      APPEND t_itab_edids40.
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
           EXPORTING
                document_number  = t_docnum
                do_commit        = 'X'
                do_update        = 'X'
                write_all_status = 'X'
           TABLES
                status_records   = t_itab_edids40
           EXCEPTIONS
                idoc_not_open    = 1
                db_error         = 2
                OTHERS           = 3.
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to get an idoc?

    Hi gurus:
        When i change a record in R/3,how can i get the record's idoc?
    alex zhang

    hi
    U can use Change pointers:
    <b> ALE Change Pointers</b>
    Applications which write change documents will also try to write change pointers for ALE
    operations. These are log entries to remember all modified data records relevant for ALE.
    Most applications write change documents. These are primarily log entries in the
    tables CDHDR and CDPOS.
    Change documents remember the modified fields made to the database by an
    application. They also remember the user name and the time when the modification
    took place.
    The decision whether a field modification is relevant for a change document is
    triggered by a flag of the modified field’s data element. You can set the flag with
    SE11 by modifying the data element.
    For the purpose of distributing data via ALE to other systems, you may want to
    choose other fields, which shall be regarded relevant for triggering a distribution.
    Therefore R/3 introduced the concept of change pointers, which are nothing else
    than a second log file specially designed for writing the change pointers which are
    meant to trigger IDoc distribution via ALE.
    So the change pointers will remember the key of the document every time when a
    relevant field has changed.
    Change pointers are then evaluated by an ABAP which calls the IDoc creation, for
    every modified document found in the change pointers.
    The Change pointers are written from the routine CHANGEDOCUMENT_CLOSE
    when saving the generated change document. So change pointers are automatically
    written when a relevant document changes.
    The following function is called from within CHANGEDOCUMENT_CLOSE in
    order to write the change pointers.
    <b>CALL FUNCTION 'CHANGE_POINTERS_CREATE'</b>
    EXPORTING
    change_document_header = cdhdr
    TABLES
    change_document_position = ins_cdpos.
    Change pointers are log entries to table BDCP which are written every time a transaction
    modifies certain fields. The change pointers are designed for ALE distribution and written by
    the function CHANGE_DOCUMENT_CLOSE.
    Change pointers are written for use with ALE. There are ABAPs like RBDMIDOC
    which can read the change pointers and trigger an IDoc for ALE distribution.
    The change pointers are mainly the same as change documents. They however can
    be set up differently, so fields which trigger change documents are not necessarily
    the same that cause change pointers to be written.
    In order to work with change pointers there are two steps to be performed
    • Turn on change pointer update generally
    • Decide which message types shall be included for change pointer update
    R3 allows to activate or deactivate the change pointer update. For this purpose it
    maintains a table TBDA1. The decision whether the change pointer update is active
    is done with a
    <b>Function Ale_Component_Check</b>
    Currently (release 40B) this check does nothing else than to check, if this table has
    an entry or not. If there is an entry in TBDA1, the ALE change pointers are generally
    active. If this table is empty, change pointers are turned off for everybody and
    everything, regardless of the other settings.
    The two points read like you had the choice between turning it on generally or
    selectively. This is not the case: you always turn them on selectively. The switch to
    turn on generally is meant to activate or deactivate the whole mechanism.
    The change pointers which have not been processed yet, can be read with a function
    module.
    <b>Call Function 'CHANGE_POINTERS_READ'</b>
    The ABAP RBDMIDOC will process all open change pointers and distribute the
    matching IDocs.
    <b>Dispatching ALE IDocs for Change Pointers</b>
    Change pointers must be processed by an ABAP, e.g. RBDMIDOC.
    The actual distribution of documents from change pointers must be done by an
    ABAP, which reads the change pointers and processes them. The standard ABAP
    for that is RBDMIDOC. For recurring execution it can be submitted in a scheduled
    job using SM35 .
    <b>Reward points for helpful ans.</b>
    Regards
    Aarti

  • How to get inbound delivery number according to materail document number

    Our business scenario:
    1) ME21N, to create NB purchasing document
    2) VL31N, to create inbound delivery based on NB purchasing document
    3) MIGO, to receive the material to storage location based on inbound delivery, then materail document number will be generaated.
    My question is that how shall I find the original inbound delivery based on the materail document number? Thanks very much.
    King qi
    2008-08-21

    Sridhar,
       Yes, you can find inbound delivery in confirmation tab, and GR material document in PO history, but still can not find the matching relattionship between inbound delivery and GR material document.
    For example
    PO             inbound delivery/qty     GR material  document/qty
    450000690      6900001/100             5000001/40
                          6900001/100             5000004/60
                          6900003/80               5000008/70
    this is my simulation for the matching relattionship between inbound delivery and GR material document.
    in fact, this will be more complex in real world, my question is to get the original inbound delivery  based on the GR materail document number.
    thanks.

  • How TO Update Inbound IDOC....

    Hi experts,
    I have a requirement to update inbound ORDERS IDOC.
    On receive of IDOC we need to check value for E1EDP01-PSTYV and change it .
    Can we change values back to the IDOC?
    Regards,
    Akshay Jamgaonkar.

    Hi Akshay !
    Do you need an IDOC-XI-IDOC scenario? Yes it is possible. You can change any value.
    You need to import the IDOC type from R/3 in Integration Repository. Then create a message mapping object and interface mapping object to map the idoc type as source to the same idoc type as target. Inside the mapping you can map automatically all fields with same name (not just one by one) and then for the mapping of the PSTYV field, just do the conversion you need right there.
    Regards,
    Matias.

  • How to get latest Idoc no.

    Hi,
    I need to get the latest Idoc no created in the system.
    I do understand that in production enviromnet an idoc can be generated every second. Please can anybody suggest me any way to get the latest idoc no.
    <REMOVED BY MODERATOR>
    Thanks.
    Aafaque Husain.
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 12:34 PM

    Hi Mate,
                 You can go to WE02 transaction and run the transaction for todays date. Then you can see all the Idocs generated for today including the latest one.
    Regards.
    Raghav

  • How to get Alert IDOC fails in WE02?

    Hi all,
    Iam working FILE-XI-IDOC senario were client need to trigger an alert or any message if IDOC fails to post the data.
    Manually we have to go and check in WE02,but with out looking there client want to know the error.Is it possible? if yes then how?
    Regards,
    Phani

    Hi Phani
    Normally you should set up the CCMS Monitoring on the receiving SAP Backend.
    Find more information under
    http://help.sap.com/saphelp_nw04/helpdata/en/90/c4b523c4c411d2a5ee0060087832f8/frameset.htm
    Here you should also find possibilities to set up a mail in case of errors.
    Regards Oliver

  • How to get IDOC schema in XML

    Please tell me how to get an Idoc schema into XML from SAP.
    I want all the details of an Idoc, i.e Segments and fields in one file.
    Quick response will be appriciated.
    Thanks
    Kiran

    WE60 enter the IDoc type then menu path Documentation->XML Schema. This may depend on what version of SAP you are on.

Maybe you are looking for

  • Import a jpeg sequence on 2's

    I had my first try at Stop Motion over the weekend. After finishing the shoot (a test really), I tried to import the sequence into AE? I've seen a few things about the sequences automatically coming in at 30fps? How do you import the footage on 2's a

  • Having problem connecting to server

    wont let me connect to the server on new phone start up and apple store ect

  • Fixing display when connecting HP monitor to Macbook pro

    Hi There, I'm trying to connect a HP Monitor to my macbook pro but the display on the HP monitor is all weird, any advice on how to fix? I'm using the screen adaptor that the apple store sold me, so not sure if another adopter is needed.

  • 0IC_MP04 and 0IC_MC01

    We are implementing Inventory and need to understand the difference between the multiproviders 0IC_MP04 and 0IC_MC01. I have browsed through the help.sap.com definitions but it doesn't tell me why these are two different multiproviders. I understand

  • Updation in other user

    Hi, I want to connect to another user in database proceedure , and do some updation and insertion in that user and then switch back to where I am first. Any body can help me for this task. I tried with alter session set current_schema. But i can only