Inbound idoc from file

i run a job to upload text file to inbound processing of IDoc
the job run in two steps with two program
RSEINB00 : to upload the file
RBDAPP01 :to activate the list of the idocs
but the job failed in the second step and it  return
" During inbound processing of IDoc , an error occurred. The event for object type 'IDOC' could not be triggered "
any one know why ???

Hi Kenny
I have also faced a similar issue in the past: To automate the process of file reading and triggering the inbound process whenever partner system (legacy system) copies a text file (containing data to be posted) to the SAP application server.
To automate file reading for inbound process, you have to use SAP events. You can define these events using transaction SM62.
This event will be used to execute the IDOC create program in a job based on this event.
Every time the partner system copies the extract file to the SAP application server, this event will be  triggered which then runs the job for processing the data file.
For more information on using SAP events, click the following link and look into topics under heading ‘Using events to trigger job starts’:
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm
the topic, ‘Triggering events from external programs’ is quite interesting.
Cheers
Ashish Jain
[email protected]

Similar Messages

  • How to create a inbound IDOC from flat file in Application server

    HI All
    Our requirement is to create the Inbound idocs from a flat file from application server with in R/3
    Could any body please let me know the steps required for this.
    Thanks
    Malli

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • 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 create an inbound Idoc from an inbound IDoc in same client

    How to create an inbound Idoc from an inbound IDoc in same client
    Idoc will come from XI as an inbound idoc to SAP, now I have to read this inbound Idoc and split it into Several Inbound Idocs and now needs to be posted in the same client.
    please let me know the procedure..
    Thanks in advance,
    Sagar

    Hi Sagar,
    Develop a cusom Z-Inbound function module, configure the Z-FM to trigger when idoc is recieved from XI. In your Z-Inbound function module split the idoc (Recieved from XI)  into respective Idocs and Using MASTER_IDOC_DISTRIBUTE post the IDOCs into the same system.
    Thanks & Regards

  • Create IDOC from file

    I have received an IDOC order file, and I know there is a standard program RSEINB00 to create IDOC in system.
    I would like to delete/add segments, change field contents in segements in the IDOC according to some of the segments in IDOC. Where can I manuplate it?
    Thanks for your advice.

    I am not test an IDOC file. I regularly receive IDOC file and need to manuplate the content, e.g. delete some of the segments, determine and fill in field content in some segments.
    I just wonder if I can change the IDOC content after it is created in system, just like what I can do in WE19, but using a program. Is there any standard program for this purpose?
    Or is there any user exit I can use when creating IDOC from file?
    Thanks.

  • Inbound IDOC from PLDA /SAPSLL/E2CCEHAA-CVRTQ

    Hello,
    We have an issue with inbound IDOCs from PLDA dumping - reason, we have exchange rates with ratio maintained in GTS for certain countries. However, when PLDA inbound IDOCs are received the segements do not return the values based on what was sent out (with the ratio), and we experience dumps.
    Understand that any inbound information for these IDOCS except the MRN number is used to update the customs declaration.
    What can we do to overcome this issue?
    Any pointers will be appreciated.
    Thanks,
    Padma

    Hi Padma,
    Surely this is the sort of problem that should be handled by SAP?  Have you created an OSS Incident?
    Otherwise, which Message are you talking about?  What error message is included in the dump?  And which program & line number is dumping?
    Regards,
    Dave

  • Creation of Inbound IDOC from a flat file.

    Hi all,
    I hav to create Purchse Order using inbound IDOC in which I hav to take data from a .xls or any flat file.
    Can any one help me with this. i.e wat r the steps involed to do so.
    Regards.
    Rahul

    Hello,
    Why do u want to create a Idoc for creating PO from flat file - you can simply use BAPI. Ok if you want to create PO only using Idoc.
    I think message type is ACC_PURCHASE_ORDER0.
    I just made one sample program to you how to create a PO with Idoc method. Here i am doing for Material Master Creation. Let me know if want any clarification.
    ********Poorna********
    TABLES : MARA, MAKT, EDP13.
    DATA : I_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
          I_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
    PARAMETERS : P_MATNR LIKE MARA-MATNR.
    START-OF-SELECTION.
      REFRESH I_EDIDC.
      SELECT * FROM EDP13 WHERE MESTYP = 'ZMATMASTER'.
        MOVE-CORRESPONDING EDP13 TO I_EDIDC.
        I_EDIDC-IDOCTP = EDP13-IDOCTYP.
        APPEND I_EDIDC.
      ENDSELECT.
      READ TABLE I_EDIDC INDEX 1.
      I_EDIDD-SEGNAM = 'ZMATMASTER'.
      SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
      SELECT SINGLE * FROM MAKT WHERE MATNR = P_MATNR
                                  AND SPRAS = SY-LANGU.
      I_EDIDD-SDATA+0(18) = MARA-MATNR.
      I_EDIDD-SDATA+18(40) = MAKT-MAKTX.
      I_EDIDD-SDATA+58(4)  = MARA-MTART.
      I_EDIDD-SDATA+62(1)  = MARA-MBRSH.
      I_EDIDD-SDATA+63(3)  = MARA-MEINS.
      APPEND I_EDIDD.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control                  = I_EDIDC
       OBJ_TYPE                            = ''
       CHNUM                                = ''
        tables
          communication_idoc_control          = I_EDIDC
          master_idoc_data                    = I_EDIDD
    EXCEPTIONS
       ERROR_IN_IDOC_CONTROL                = 1
       ERROR_WRITING_IDOC_STATUS            = 2
       ERROR_IN_IDOC_DATA                  = 3
       SENDING_LOGICAL_SYSTEM_UNKNOWN      = 4
       OTHERS                              = 5
      COMMIT WORK.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Using Inbound IDOC from Java system creation of Outbound delivery

    Dear Experts,
    The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
    After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
    Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
    1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
    2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
    3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Thanks for the feedback. This question is resolved

  • Stop generation of Inbound IDOC from Non - SAP

    Hi Experts,
    I have a requirement to update data base PA0105 for Email. The Email is coming for external system (Non SAP), which contains 1 employee in 1 IDoc. If SAP has valid email and same has been passed for external system to SAP via Inbound IDoc, it should not update PA0105. Hence, I am deleting the IDOC segments in Exit "ZXHALU07", before RBDAPP01 is getting called. As per the requirement its working fine.
    Question: Is there any way to stop generating the IDOC. If the email ID were same, then IDoc should not generate in SAP.  Please provide your valuable reply.  Thanks.
    Regards,
    Ganesh R K.

    Hi All,
    Scenario:
    Need to Create Inbound IDOC in SAP system and receive it from Non Sap system.
    Problem:
    IDOC is successfully dispatched from Non Sap system(Sender Side) but, it is not received to SAP system(Receiver Side).
    At receiver side(in SAP system) all configuration settings are fine (RFC destination is tested with no errors, partner profile are given with the inbound parameters, function module is successfully tested with no errors, distribution model is created etc).
    In receiving system(SAP) no IDOCs are generated in We02 after sending the IDOC from Non Sap side.
    Can any one please suggest me the reason for the above mentioned problem?
    Thank you,
    Swetha.C

  • Problem uploading an IDOC from File

    hello everybody,
    I'm using function IDOC_XML_TRANSFORM to upload an IDOC from a file, I have a problem with the function cause is searching the segments of the idoc in table EDSAPPL, now the problem is that the segment is not in that table, it should exist cause the IDOC was generated by the same system, now is there a process that should be done to update this table?, thanks in advance.
    Regards,
    Julio Cesar Ruiz

    hi
    chk this
    Re: iDOC creation from a flat file
    hope this helps
    regards
    Aakash Banga

  • Inbound Idoc Testing File Template

    Hello friends,
    Could any one guide me in preparing the Test file for testing Inbound IDOC (message type: ACC_DOCUMENT) and (basic type: Acc_Document01).
    Only these are the 4 segments I am going to use.
    E1BPACHE09
    E1BPACGL09
    E1BPACAR09
    E1BPACCR09
    Basically I would like to know how to create a template to upload multiple documents during testing and the procedure to upload.
    I am able to test post one document at a time thru WE19.
    Thanks for ur help.
    Sam.

    Hi Sam,
    Try this, to my knowledge this is only to test if idoc is posted properly or not (to check the configuration), we can only post one Idoc at a time i think...but try this...
    am not sure  but try this...
    Go to WE19-> acc_docume*>control on the data segment and copy it->insert(next to copy in menu bar) the segment at the same level> fill the data and post it ...to see..just try this...
    Thanks
    Ajay

  • Inbound Idoc (From DWM to ERP) Batch No. change

    Hi all,
    Our client requrement is changing Batch no. from DWM to ERP inbound process throough IDOC when Inbound delivery is confirmed in DWM.
    I tried SMOD_V50B0001 but Batch no. is changed both DWM and ERP. It doesnt work.
    I just want to change only ERP Inbound delivery.
    Is thre any solution?
    This is DWM inbound delivery.
    Inbound delivery in ERP is also confirmed by IDOC.
    We wanna change only ERP batch no.
    Regards
    Kiichiro

    Hello Kiichiro,
    Please let us know what is the Idoc type and message type which you are using for the confirmation.
    For inbound idoc go to the function module which processes the idoc and find exit in it, then do your changes to update the batch no.
    Also please explain in detail about your requirement like, what is the structure of the idoc you are using and also batch no. is received from Idoc or to be calculated within the system.
    Regards,
    TP

  • Inbound IDOCs - which file

    Is there a way to identify the name of an inbound IDOC file after it's been imported into SAP?
    I know the file processed correctly because the IDOC went to status 53.
    But, the file that created the IDOC isn't shown in the control record when it's displayed with transaction WE05.

    Hi guys,
    Thanks for replying, but that's not exactly what I was asking about.
    When a file is imported into SAP with program RSEINB00, the original file is automatically deleted by the program.
    What I wanted to know was if the path/name of the file was saved somewhere.
    Outbound IDOCs have the information details of the Status "03" segment. Unfortunately, inbound IDOCs don't seem to have anything similar.

  • IDOC Inbound Generation from File

    Hi All,
    I'm done with all the testing and config of partner profiles and ports.
    How do I automate the whole IDOC inbound process?
    Thanks.
    Kenny
    Message was edited by: Kenny  Martinez

    Hi Kenny
    I have also faced a similar issue in the past: To automate the process of file reading and triggering the inbound process whenever partner system (legacy system) copies a text file (containing data to be posted) to the SAP application server.
    To automate file reading for inbound process, you have to use SAP events. You can define these events using transaction SM62.
    This event will be used to execute the IDOC create program in a job based on this event.
    Every time the partner system copies the extract file to the SAP application server, this event will be  triggered which then runs the job for processing the data file.
    For more information on using SAP events, click the following link and look into topics under heading ‘Using events to trigger job starts’:
    http://help.sap.com/saphelp_erp2005/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm
    the topic, ‘Triggering events from external programs’ is quite interesting.
    Cheers
    Ashish Jain
    [email protected]

  • Retrieving(Inbound) IDOC from SAP Error WCF-SAP Adapter

    I am attempting to retrieve data from SAP using WCF-SAP Adapter. I used the wizard to retrieve the IDOCTYP(PEXR2002) and the appropriate docrel=740. Whenever I send the IDOC to BizTalk I receive the error below.  Anyone have insight to what could be
    the problem. BizTalk is not resolving the IDOC types properly.
    Also: I am using the schema in a flat file disassembler in the receive pipeline.
    Reason: Unexpected data found while looking for:
    'E2EDKA1003'
    'E2IDBL2000'
    'E2IDB02002'
    'E2EDL02'
    'E2EDL03'
    'E2IDLU5001'
    'E2IDPU1'
    'E2IDBW1'
    The current definition being parsed is E2IDKU5001GRP. The stream offset where the error occured is 1483. The line number where the error occured is 11. The column where the error occured is 0. 

    Hi Jordan ,
    This really happens when you receive untyped message from your SAP System .  Its been well described in below link 
    Receiving Idocs - getting the raw idoc data
    Better option here is to create a pipeline component which will be responsible for your message parsing or try something like below
    During the configuration of your one-way Receive Location using WCF-Custom, navigate to the Messages tab. Under the section "Inbound BizTalk Messge Body", select the "Path" radio button, and:
    (a) Enter the body path expression as:
    /*[local-name()='ReceiveIdoc']/*[local-name()='idocData']
    (b) Choose "String" for the Node Encoding.
    Thanks
    Abhishek

Maybe you are looking for