Inbound IDOC using  XML

Hi,
I need to create an Inbound IDOC using Function modules using an XML file as Input.
I am using mySAP ERP 2004(WAS 6.4).
IDOC type : HRMD_A05
Message Type : HRMD.
I am using the FM's in an ABAP report for testing, reading the data from the XML File using the FM GUI_UPLOAD .
I tried using the FM <b>IDOC_INBOUND_XML_VIA_HTTP</b>,with import parameters XML_STREAM, CONTENT_LENGTH, CONTENT_TYPE, REMOTE_ADDR.(ALL Type Strings)
This FM creates the IDOC successfully but i do not get the status record for the IDOC as there are no export parameters or tables where i can get the value.
I am trying using the FM <b>IDOC_INBOUND_XML_SOAP_HTTP</b>,with import Parameters as <b>XML_STREAM type XSTRING</b>,and there is the export parameter ASSIGN ,type IDOC_ASSIGN_TAB and i was wondering if this could return the status.
I used the same XML and used the FM "SCMS_STRING_TO_XSTRING", to convert the file input string into XSTRING.
On executing this i get the exception,"NO DATA RECEIVED" .
Can anybody Please Tell me
1)How to get the status of an IDOC if i use the FM IDOC_INBOUND_XML_VIA_HTTP ?
2)How to use the FM IDOC_INBOUND_XML_SOAP_HTTP ?
3)Is there any other way to create an IDOC with XML input?
Thanks,
regards,
Siddhartha Jain

HI Nagarajan,
I had checked the first link mentioned by you and activated the required service from Transacttion SICF,but still it didn't help.
The second link points to the IDOC Adaptor for XI,guess it won't help as i'm not using XI.
I want to pass XML data read from file and call a FM which creates and posts and IDOC into R/3 and returns the IDOC Number and Status.
For this i found the FM's IDOC_INBOUND_XML_SOAP_HTTP and IDOC_INBOUND_XML_VIA_HTTP.
The FM IDOC_INBOUND_XML_VIA_HTTP accepts xml as string and posts IDOC succesully,but i do not get the status and IDOC Number.
The IDOC_INBOUND_XML_SOAP_HTTP accepts xml as xstring,so i used the FM SCMS_STRING_TO_XSTRING to convert the same xml string to xstring and pass it to the FM.But it gives an error 'NO DATA RECEIVED'.
If i make few changes to the XML doc,to include SOAP envelope ,like
<?xml version="1.0" encoding="UTF-8"?><HRMD_A05>.......</HRMD_A05>
to
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><IDOC BEGIN="1">.......</IDOC></soap-env:Body></soap-env:Envelope>
I get the error,the tag <IDOC BEGIN="1"> not found ,the IDOC XML should be of format <IDOC BEGIN="1"> <IDOC>.
Can anybody please help on what to do/how to proceed.
Thanks,
Regards,
Siddhartha

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

  • Creating Inbound IDoc Using LSMW

    How to create the inbound IDoc using LSMWu2026
    For example
    Input is Flat filesu2026.
    I created custom IDoc with header and items
    Structure looks
    Header 1
      Item 1
      Item 2
    Header 2
      Item 3
      Item 4
    Header 3
      Item 4
      Item 5
    u2026u2026.
    u2026u2026.
    u2026u2026..
    Do I need to create different flat files (item level & Header level) as input while creating IDoc using LSMW ??
    Can some one guide me on thisu2026with best way to create IDoc using LSMW with flat fileu2026.
    Ramesh

    can you please help me ... how input file to LSMS looks ..Sample file is helpful...
    My Structure
    E1EDK01    < Header Data    
    E1EDK14    < Header Data
    E1EDK14    < Header Data
    E1J3K03     < Header Data
    E1EDK05    < Header Data
    E1EDK05    < Header Data
    E1EDKA1    < Header Data
    E1EDKA1    < Header Data
    E1J3P01      < Header Data
         E1J3AIM     < Item Data
         E1EDP20     < Item Data
    E1J3P01      < Header Data
         E1J3AIM       < Item Data
         E1EDP20      < Item Data
    Header had 3 segement E1EDK14   E1EDK05  & E1EDKA1 repeating twice.... i am facing prolem with this
    What Structure format i used for above segement in LSMW and what file format i should use..for input to LSMW...
    Edited by: Ramesh on Mar 25, 2009 1:26 AM
    Edited by: Ramesh on Mar 25, 2009 1:41 AM
    Edited by: Ramesh on Mar 25, 2009 1:44 AM

  • Inbound IDoc using LSMW

    Hi..
    I am trying To Upload customer master data using LSMW with IDOc.
    I am debugging the Inbound IDoc Using BD87 and INPUT_METHOD = 'A'
    One segment E1KNB1M data is not passed to transaction 'XD01'  due that my company code data is not updated
    Pls tell me how to pass segment E1KNB1M data to transaction.
    I am using Message type :  /SAPSLL/DEBMAS_SLL
               Idoc type    :  Debmas03
            Function Module  : IDOC_INPUT_DEBITOR

    Hi Rishi,
         Thanks for the document. But the document mainly concentrates on LSMW(I'm aware of generic LSMW with BDC), it doesn't explain the inbound IDoc, segment merging, Creation of partner function or Message and Basic types WRT inbound IDoc. Please send any document with that relevance.
    Kiran

  • Conversion of inbound IDOC into XML file

    Hi experts,
    We have an inbound idoc (FIDCC2) that starts and triggers the creation of an FI document. We would like now, that, instead of creating the FI document, the inbound IDOC creates an XML file on a given directory, with the contents of the idoc. Can anybody explain how to configure this?
    Many thanks in advance,
    John De Coninck.

    John,
       Firstly, need more information. If I understand you correctly, you are getting an inbound FI document that is created as an IDOC and it posts into FI (using an underlying FM/transaction etc). Now you want to convert this IDOC into XML on a folder (which can be found on AL11 (a.k.a App Server)).
    Question 1: Where are you getting this IDOC from? Is it through EDI/ALE? What is your interfacing server (the one that is sending you this IDOC.
    Question 2: What format is this IDOC coming in? Is it flat/XML etc?
    Question 3: Is this an internally created IDOC? Is there an attached partner profile in WE20? If there is a partner profile that exists and you're using this to create the inbound IDOC, then there are process codes available to forward these IDOC's (e.g ED08).
    There are many ways you can achieve this but everything depends on how your system is configured and how this processing is going on.

  • Inbound IDoc used for updating Sales order status

    I have a requirements to set use standard IDoc to send out the Sales order to a non-SAP software as well as receiving Inbound IDoc to update the status of sales order in SAP. Could someone comment on my questions below:
    1. What are the difference between all the ORDERSxx Idoc types?
    2. What IDoc should be used for Inbound IDoc to update the sales order stataus in SAP?
    3. Can the same IDoc type be used for both Inbound and Outbound with only the difference in the segment of Direction?
    Thank you. Points will be awarded appropriately for helpful comments.

    Hi,
      1.Intially  standard IDOC types "ORDERS01"  is having limited
          segments. After few months the requirement got increased to
          add more fields to "ORDERS01".So,once you release the IDOC
          type you can not add any more fields .So SAP come up
          with "ORDERS02" with new fields.Like that all IDocs types have
          some more new seg ments.
    2.You  can use ORDER05
    3. Yes you can use same IDOC type

  • To create inbound idoc using we19.

    hi
    i am using we19 where i have mentioned the message type for purchase order
    now how do i fill the segments manually ,that is how do i come to know which fields are mandatory and which are optional, because for my case i am getting  many fields . Secondly how do i come to know whether it is valid data or not which i am filling.
    thanks in advance....

    Hi Sushil,
    Not all fields maynot be mandatory. Regarding the valid data, you can check with existing idoc's to use for this testing. Here is a sample of how you enter data and test it.
    1) Go to We19
    2) Enter either Existing idoc type(if you have one) or select basic type (for example) as "wVINVE02" and click on create.
    3) The test tool opens with the EDIDC and EDIDD.
    4) click on EDIDC to enter information if you want like port, partner number, partner type of recipient and sender along with message type.
    5) click on "E1WVINH" segment to enter data storage loc, phy inv. doc,
    fiscal year and etc.
    6) Expand "E1WVINH " segment to enter data for "E1WVINI" like item, qualifier and etc.
    7) Expand ""E1WVINI" segment to enter data for segments "E1WVI01" and "E1WXX01" .
    Once you are done with all the required information, click on Start Inbound or Inbound function module buttons on the pf-status to post the data.
    Use, Start Inbound if you know all the information like port number, partner profile. otherwise use Inbound function module to post the data.
    Once it is done, the test tool will tell you the idoc number generated which you can look through WE05.
    Hope this will give you some idea.
    Regards,
    Vivek
    PS: Award points if helpful

  • [URGENT] Get Inbound Message in EBS Using XML Gateway + SOAP

    Hi experts,
    I want to ask you about how to process the inbound message using XML Gateway and SOAP protocol.
    I have 2 EBS instances, let's called it A (source) and B (destination).
    FYI, I'm following this ebook: "Oracle E-Business Suite Development and Extensibility Handbook" in chapter 12 regarding Oracle XML Gateway.
    So I don't use BPEL PM to do this.
    I'm just using EBS with XML Gateway and Integrated SOA Gateway responsibilities.
    When I tried to send the XML from A to B using OXTA, it's success, the data can be processed in B and could store in the database.
    But when I tried to use SOAP, the XML message that has been sent from A is success, and when I check it on B (Integrated SOA Gateway -> SOA Monitor), the message is in there and I can see the SOAP request and response as well.
    SOAP request:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xmlns.oracle.com/apps/fnd/XMLGateway" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <env:Header>
    - <ns0:XMLGateway_Header>
    <ns0:MESSAGE_TYPE>XML</ns0:MESSAGE_TYPE>
    <ns0:MESSAGE_STANDARD>OAG</ns0:MESSAGE_STANDARD>
    <ns0:TRANSACTION_TYPE>XKLB</ns0:TRANSACTION_TYPE>
    <ns0:TRANSACTION_SUBTYPE>ORDER_DETAILS_XO</ns0:TRANSACTION_SUBTYPE>
    <ns0:DOCUMENT_NUMBER>9282</ns0:DOCUMENT_NUMBER>
    <ns0:PARTY_SITE_ID>142</ns0:PARTY_SITE_ID>
    <ns0:USERNAME>cons.ade</ns0:USERNAME>
    <ns0:PASSWORD>cons.ade</ns0:PASSWORD>
    </ns0:XMLGateway_Header>
    </env:Header>
    - <env:Body>
    <ns0:ReceiveDocument xsi:type="xsd:string"><ORDER_DETAILS_XO xmlns=""> <ORDER> <ORDNO>100002</ORDNO> <ORDWT>100002</ORDWT> <RDATE/> <CITY>JAKARTA</CITY> <ZIP>17121</ZIP> </ORDER> </ORDER_DETAILS_XO></ns0:ReceiveDocument>
    </env:Body>
    </env:Envelope>
    SOAP response:
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header />
    - <env:Body>
    - <ReceiveDocument_Response xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">
    <ResponseCode xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">200</ResponseCode>
    <ResponseMsgId xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">BD4EAD91E76051D5E0440021287448DA</ResponseMsgId>
    <ResponseInfo xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">Document received and pushed into queue for asynchronous processing. Enqueued message id is 'BD4EAD91E76051D5E0440021287448DA'.</ResponseInfo>
    </ReceiveDocument_Response>
    </env:Body>
    </env:Envelope>
    But the problem is the message that has been got in B can't store into the database yet.
    I had already changed the Queue in the XML Gateway -> Define Transaction, from APPLSYS.ECX_IN_OAG_Q (this is for OXTA) to APPLSYS.WF_WS_JMS_IN.
    After I invoke the webservice and the SOAP message has been got in B, I checked APPLSYS.WF_WS_JMS_IN in database and there is 1 record, the value of USER_DATA column is:
    ((, , , , , , ((BES_EVENT_NAME, 100, oracle.apps.fnd.wf.ws.inbound.xmltx.receive, , 27), (BES_EVENT_KEY, 100, 796550960, , 27), (BES_PRIORITY, 200, , 1, 23), (BES_FROM_AGENT, 100, [email protected], , 27), (BES_TO_AGENT, 100, [email protected], , 27), (MSG_ID, 100, 1334117503435, , 27), (ECX_MESSAGE_TYPE, 100, XML, , 27), (ECX_MESSAGE_STANDARD, 100, OAG, , 27), (ECX_PARTY_SITE_ID, 100, 142, , 27), (WS_PORT_OPERATION, 100, ReceiveDocument, , 27), (ECX_TRIGGER_ID, 100, 7101, , 27), (UserId, 100, 3020, , 27), (ECX_USERNAME, 100, CONS.ADE, , 27), (ECX_TRANSACTION_SUBTYPE, 100, ORDER_DETAILS_XO, , 27), (ECX_PASSWORD, 100, CONS.ADE, , 27), (ECX_DOCUMENT_NUMBER, 100, 9285, , 27), (BES_PAYLOAD_OBJECT, 100, false, , 27), (ECX_ATTACHMENTS, 100, , , 27), (ECX_TRANSACTION_TYPE, 100, XKLB, , 27), , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , )), 0, , )
    When I tried to select APPLSYS.WF_WS_JMS_IN for the 2nd time, there is no result, which means the business event has been triggered, right?
    So in this point I still don't have any idea why the process is (likely) ended after enter the Queue and the message can't store into B's database yet.
    Do I miss any setup when changing from OXTA into SOAP protocol to send XML message?
    Any urgent help most appreciated.
    Best Regards,
    Rheza

    Hi,
    Did you ever get any answers to this? We are thinking about the same thing.
    Thanks
    Darma
    [email protected]

  • Inbound Interface using HRSM_D01 Idoc

    Hi,
    We have an inbound Idoc using the HRSM_D01 idoc. This interface allows an external system to send data to our SAP HR system to update infotypes 2001 and 2002.
    We are planning on extending this interface by not only allowing new values to enter the system but also cancellations of old records. For example an employee has reported working time for one day but would like to change the record into absence. The employee should then be able to change the record in the source system and the cancellation of the old record (deduction from IT2002) for the attendance and a new record (IT2001) for the absence should be sent to SAP.
    There is a field in the Idoc that indicates if the record should be reversed. But it seems like the RBDAPP01 program that processes the inbound idocs does not update the interface table PTEX2000 with records that have X in the REVERSED field in the idoc.
    Does anyone have experiences from cancelling records in a source system and the passing the cancellation to SAP HR?
    Thank you
    /Björn

    Hi,
    We have an inbound Idoc using the HRSM_D01 idoc. This interface allows an external system to send data to our SAP HR system to update infotypes 2001 and 2002.
    We are planning on extending this interface by not only allowing new values to enter the system but also cancellations of old records. For example an employee has reported working time for one day but would like to change the record into absence. The employee should then be able to change the record in the source system and the cancellation of the old record (deduction from IT2002) for the attendance and a new record (IT2001) for the absence should be sent to SAP.
    There is a field in the Idoc that indicates if the record should be reversed. But it seems like the RBDAPP01 program that processes the inbound idocs does not update the interface table PTEX2000 with records that have X in the REVERSED field in the idoc.
    Does anyone have experiences from cancelling records in a source system and the passing the cancellation to SAP HR?
    Thank you
    /Björn

  • Inbound Invoice thru XML Gateway

    Hi to all,
    Thru XML Gateway i am trying to process an inbound invoice based on 171_process_invoice_002.dtd
    Invoice is matching with Receipt in our system and i dont know how to fill RECEIPT_NUMBER in invoice line (INVLINE)
    Thanks in advance
    Edited by: 980535 on 25 Απρ 2013 1:15 πμ

    Hi,
    Thru Oracle Transport Agent Send Imbound , i send an Inbound Invoice using XML
    the interface tables AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE are updated correctly and then i run the concurrent "Payable Open Interface Import"
    When the concurrent finish i receive an error "Insufficient Receipt Information" and the invoice can not be imported into AP tables
    From PO view, the PO is correct , and also there is a Receipt
    Invoice also match with Receipt , also the Supplier --> Invoices match with Receipt
    The above xml created based on 171_process_invoice_002.dtd, and i dont know how to pass the information of Receipt Number
    the above articles you mention in your post does not describe how you have to declare the element into xml file so RECEIPT_NUMBER in AP_INVOICE_LINES_INTERFACE must fill
    Thanks in advanced
    Edited by: 980535 on 25 Απρ 2013 3:52 πμ

  • URGENT:::::::::::::::INBOUND IDOC

    I 'VE CREATED A PURCHASE ORDER AND GENERATED AN IDOC FOR THE SAME. I WANT TO CONVERT IT INTO AN INBOUND IDOC USING WE19.
    WHAT ARE THE SEGMENT FIELDS TO BE CHANGED ??????WHAT ARE THE STEPS TO BE FOLLOWED

    HI Priyaraj,
    steps to be performed
    1. In the first option select the existing type of the idoc which you have created for example ZPURCHASEORDER.
    2.In the data records the first segment would be Z1ZPURCHASEORDER you need to make an entry for this segment .
    3. The second segment would be Z1BPMEPOHEADER which you can enter based on your requirement.
    Similarly you can create any number of segments based on your requirement.
    If useful please reward points.
    Regards,
    Adarsh Srivastava.

  • Inbound IDOC not Triggering Immediately

    I am processing an inbound idoc using startrfc, EDI_DATA_INCOMING.  It posts the idoc, but stuck with status 64.  Partner profile set to Trigger immediately.  Why will it not process immediately?  I can execute the RBDAPP01 to handle, but prefer immediately.  Is there something on the EDI_DC that needs to be set?

    Oh, unfortunately not with startrfc. I overlooked the startrfc word in your post.
    You can check this SAP note 168276. It talks about The event receiver linkage not activated in Customizing. (t-code OYEB)
    regards,
    Advait

  • Building Inbound IDoc

    I am creating an inbound IDoc using ABAP.  I have successfully created the IDoc, but I am getting errors, I believe because of the format of the Data Records in the IDoc.  Here are the fields for the Data Records:
    MANDT - using sy-mandt
    DOCNUM
    SEGNUM
    SEGNAM - populating with segment name
    PSGNUM
    HLEVEL
    DTINT2
    SDATA - populating with data based on segment format
    Can somebody either explain, or provide a link to instructions on how the other elements should be populated.  I am getting a "flat" IDoc, and I think it's because I am not populating the hlevel, and possibly other elements, properly.  I'm just not sure what to put in these elements to show the correct hierarchy of the IDoc.

    Denise,
    here is an example of updating contract prices using an ABAP, hope this helps
    DATA: I_IDOC_DATA     LIKE EDIDD      OCCURS 0 WITH HEADER LINE,
          I_IDOC_COMM     LIKE EDIDC,
    *--- Fills receiver tables
        CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
             IMPORTING
                  OWN_LOGICAL_SYSTEM             = WA_LOGSYS
             EXCEPTIONS
                  OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1
                  OTHERS                         = 2.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    *--- Create IDoc control-record
        CLEAR I_IDOC_COMM.
        I_IDOC_COMM-MESTYP = 'COND_A'.
        I_IDOC_COMM-IDOCTP = 'COND_A01'.
        I_IDOC_COMM-DIRECT = '2'.
        I_IDOC_COMM-SERIAL = SY-DATUM.
        I_IDOC_COMM-SERIAL+8 = SY-UZEIT.
        I_IDOC_COMM-RCVPOR = SPACE.
        I_IDOC_COMM-RCVPRT = 'LS'.
        I_IDOC_COMM-RCVPRN = WA_LOGSYS.
        I_IDOC_COMM-SNDPOR = P_SNDPOR.
        I_IDOC_COMM-SNDPRT = 'LS'.
        I_IDOC_COMM-SNDPRN = WA_LOGSYS.
        LOOP AT I_COND_UPD INTO WA_COND_UPD.
          REFRESH I_IDOC_DATA.
    *--- Fill E1KOMG segment
          CLEAR E1KOMG.
          E1KOMG-KVEWE   = 'A'.
          E1KOMG-KOTABNR = WA_COND_UPD-KOTABNR.
          E1KOMG-KAPPL   = WA_COND_UPD-KAPPL.
          E1KOMG-KSCHL   = WA_COND_UPD-KSCHL.
          IF WA_COND_UPD-KOTABNR = '017'.
            MOVE: WA_COND_UPD-LIFNR TO E1KOMG-VAKEY+0(10).
            MOVE: WA_COND_UPD-MATNR TO E1KOMG-VAKEY+10(18).
            MOVE: WA_COND_UPD-EKORG TO E1KOMG-VAKEY+28(4).
            MOVE: WA_COND_UPD-WERKS TO E1KOMG-VAKEY+32(4).
            MOVE: WA_COND_UPD-ESOKZ TO E1KOMG-VAKEY+36(1).
            IF E1KOMG-VAKEY+36(1) = SPACE.
              MOVE '0' TO E1KOMG-VAKEY+36(1).
            ENDIF.
          ENDIF.
          CLEAR I_IDOC_DATA.
          MOVE 'E1KOMG' TO I_IDOC_DATA-SEGNAM.
          MOVE E1KOMG   TO I_IDOC_DATA-SDATA.
          APPEND I_IDOC_DATA.
    *--- Fill E1KONH segment
          CLEAR E1KONH.
          E1KONH-DATAB  = WA_COND_UPD-DATAB.
          E1KONH-DATBI  = WA_COND_UPD-DATBI.
          CLEAR I_IDOC_DATA.
          MOVE 'E1KONH' TO I_IDOC_DATA-SEGNAM.
          MOVE E1KONH   TO I_IDOC_DATA-SDATA.
          APPEND I_IDOC_DATA.
    *--- Fill E1KONP segment
          CLEAR E1KONP.
          E1KONP-KSCHL  = WA_COND_UPD-KSCHL.
          E1KONP-STFKZ  = WA_COND_UPD-STFKZ.
          E1KONP-KZBZG  = WA_COND_UPD-KZBZG.
          E1KONP-KSTBM  = WA_COND_UPD-KSTBM.
        e1konp-konms  = wa_cond_upd-konms.
          PERFORM CONVERT_ISO_UNIT USING    WA_COND_UPD-KONMS
                                   CHANGING E1KONP-KONMS.
          E1KONP-KSTBW  = WA_COND_UPD-KSTBW.
          E1KONP-KONWS  = WA_COND_UPD-KONWS.
          E1KONP-KRECH  = WA_COND_UPD-KRECH.
          E1KONP-KBETR  = WA_COND_UPD-KBETR.
          E1KONP-KONWA  = WA_COND_UPD-KONWA.
          E1KONP-KPEIN  = WA_COND_UPD-KPEIN.
        e1konp-kmein  = wa_cond_upd-kmein.
          PERFORM CONVERT_ISO_UNIT USING    WA_COND_UPD-KMEIN
                                   CHANGING E1KONP-KMEIN.
          E1KONP-PRSCH  = WA_COND_UPD-PRSCH.
          E1KONP-KUMZA  = WA_COND_UPD-KUMZA.
          E1KONP-KUMNE  = WA_COND_UPD-KUMNE.
        e1konp-meins  = wa_cond_upd-meins.
          PERFORM CONVERT_ISO_UNIT USING    WA_COND_UPD-MEINS
                                   CHANGING E1KONP-MEINS.
          E1KONP-KZNEP  = WA_COND_UPD-KZNEP.
          E1KONP-ZAEHK_IND  = WA_COND_UPD-ZAEHK_IND.
          CLEAR I_IDOC_DATA.
          MOVE 'E1KONP' TO I_IDOC_DATA-SEGNAM.
          MOVE E1KONP   TO I_IDOC_DATA-SDATA.
          APPEND I_IDOC_DATA.
          ENDLOOP.
          CALL FUNCTION 'IDOC_WRITE_AND_START_INBOUND'
               EXPORTING
                    I_EDIDC                       = I_IDOC_COMM
                    DO_COMMIT                     = 'X'
               IMPORTING
                    DOCNUM                        = WA_DOCNUM
            ERROR_BEFORE_CALL_APPLICATION =
               TABLES
                    I_EDIDD                       = I_IDOC_DATA
         EXCEPTIONS
              IDOC_NOT_SAVED                = 1
              OTHERS                        = 2

  • Sample files for inbound IDOC's( EDI)

    Hi All,
    I am trying to get idoc's into system using EDI , wanted sample files for inbound idocs using EDI.
    If someone could send the files please.
    rgds
    Ajay Sharma

    HI,
    Here one sample file.U need to change the sender/receiver ID's accordingly to the setup at ur EDI subsystem.This 850 i/b file will create an ORDERS idoc in SAP.
    ISA³00³          ³00³          ³01³006906614GE    ³01³040986076      ³060714³0640³U³00401³000012157³1³P³>~
    GS³PO³006906614GE³040986076³20060714³0640³5008³X³004010~
    ST³850³020700691~
    BEG³00³NE³020700691³³20060714~
    N1³BS³ABC PHOENIX DIVISION³11³RA0290837~
    N1³SU³³11³II7930501~
    PO1³1³12³EA³123.45³³ND³0469520260~
    PO1³2³24³EA³190.23³³ND³0469520211~
    CTT³2~
    SE³8³020700691~
    ST³850³057796284~
    BEG³00³NE³057796284³³20060714~
    N1³BS³ABC RALEIGH DIVISION³11³RA0289036~
    N1³SU³³11³II7930501~
    PO1³1³48³EA³61.72³³ND³0469520230~
    PO1³2³12³EA³123.45³³ND³0469520260~
    PO1³3³6³EA³190.23³³ND³0469520211~
    CTT³3~
    SE³9³057796284~
    GE³2³5008~
    IEA³1³000012157~
    Also u can check in the system and find some ORDERS
    idocs and u can retrigger that from WE19.
    reward if helpfulll
    ram

  • 855 Inbound PO in XML Gateway

    hi,
    i am working on xml gateway and have to study a lot. so please help me in it. i am using EBS of version 11.5.10.
    1. how do we see a 855 Inbound PO acknowledgement?
    2. in which tables are the data stored?
    3. how to process the data through xml gateway from either a file or from table and display it in apps?
    please help me on this.

    Hi,
    Thru Oracle Transport Agent Send Imbound , i send an Inbound Invoice using XML
    the interface tables AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE are updated correctly and then i run the concurrent "Payable Open Interface Import"
    When the concurrent finish i receive an error "Insufficient Receipt Information" and the invoice can not be imported into AP tables
    From PO view, the PO is correct , and also there is a Receipt
    Invoice also match with Receipt , also the Supplier --> Invoices match with Receipt
    The above xml created based on 171_process_invoice_002.dtd, and i dont know how to pass the information of Receipt Number
    the above articles you mention in your post does not describe how you have to declare the element into xml file so RECEIPT_NUMBER in AP_INVOICE_LINES_INTERFACE must fill
    Thanks in advanced
    Edited by: 980535 on 25 Απρ 2013 3:52 πμ

Maybe you are looking for

  • Segment release cancellation error

    When I attempted to perform "Cancel Release" on segment type ZE1MARAM in ECC6.0, I encountered the following error message: "Error while resetting release of segment ZE1MARAM" I didn't have the problem when I performed the same action in 4.6c. Our Ba

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first,

  • Report colors

    Hello team, i have one more question ... I have a siple SQL report. f.e. a list of all emp's [email protected]> select * from scott.emp; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 7369 SMITH CLERK 7902 1980-12-17 00:00:00 800 20 7499 ALLEN SALESMAN

  • When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls

    When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls If I rename the file, it opens just fine, if I don't it opens all in one column. I had found a fix on my old macbook, but just got a new MBP and it's happening aga

  • Best Practice/Idea - purchasing of assembly

    Hello, we are looking for way how to buy/purchase configurable assembly where some parts of the assembly will be provided by our company for the vendor and other parts will be provided by the vendor itself. Then we will receive a completed assembly f