Inbound interface with multiple IDOC processing

Hi,
I have to create an inbound interface which has to be triggered only when a batch job is completed in the middleware. The batch job will create 2000 records and 1 IDOC for each record. I have to get all the 2000 IDOCs and then process them together. I have to manipulate the data in these 2000 IDOCs and update them in a SAP table.
Please let me know how do I proceed with this.
Should I go with a custom func module or a custom program?
Thanks,
Abhishek

Hi,
Custom function module with standard parameters : For details refer to the topic Implementing Inbound Processing on page 85 of the
[ALE Programming Guide|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf]
regards,
Advait

Similar Messages

  • Any possiblity to use single Inbound Service Interface with multiple Receiver Agreements

    Hi All,
    Scenario: PROXY to FILE.
    Requirement is to receive to two locations.
    Is it possible to use single Inbound interface with multiple Receiver Agreements. I tried using two operation in the Inbound Service Interface, and Operation Specific in Determination. But couldnt proceed further. Do I need to use seperate Service Interface for two receiver locations?
    Please suggest some solution.

    Hi Naveen,
    There is a possibility but in the case in the same server location with dynamic configuration: Placing file in two different directories using single receiver communication Channel
    With different location you would need to develop a new adapter module as Amit Srivastava explains and develops here Send File to Two Different Locations using Adapter Module
    Regards.

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Error when trying multiple inbound interface determination for IDOC

    Hi !
    I have this scenario: File -> XI -> IDOC. 
    For each source file, I need to send multiple idoc packages, all to the same business system, but each package should be the result of different interface mappings.
    All mappings have same source and target message types...e.g. source: MT_MyFile, target: CREMAS04.
    To avoid creating a generic mapping program, we need to duplicate the current mapping program, make it handle the new case, and then add it as second interface mapping in Interface Determination, with same inbound interface, but different interface mapping, without conditions. All interface mapping should execute.
    We are receving this error:
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:P1>
      <SAP:Stack>Error when determining the inbound interface: Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:Stack>
    Any clues?
    Regards,
    Matias.

    Hi Satish !
    Thanks.
    I need to send different IDOCs to SAME business system.
    In Interface determination I need this:
    Inbound Interface -
    Condition -
    Interface Mapping
    <b>IF_1</b>                     no condition                   <b>M_1</b>
    <b>IF_1</b>                     no condition                   <b>M_2</b>
    I need to send BOTH IDOC packages to same business system.
    But it keeps throwing the posted error.
    Regards,
    Matias.

  • How to handle multiple inbound interfaces with WSDL messages

    Hi All,
    We have a synchronous: Abap Proxy -> XI -> WebService Scenario. The webservice has multiple SoapActions e.g. SearchForProduct_WithX, SearchForProduct_WithY each with different message types. We have tried to use the receiver determination to send the request to the correct soapaction using conditions e.g. if field X in the request is populated use SearchForProduct_WithX action/message.
    But when we run it through the proxy we get this error:
      <CODE>IF_DETERMINATION.TOO_MANY_IIFS_CASE_BE</CODE>
      <ERRORTEXT>Multiple inbound interfaces not supported for synchronous calls</ERRORTEXT>
    Does anybody know how we can get around this or how best to deal with the multiple soap actions per wsdl situation.

    Hi Yaghya,
    We have used conditions in the Interface Determination. Interestingly if we use an HTTP sender adapter we can use this configuration ... but once we try and use ABAP proxies we get the previous error.
    Another related question ... when we use the http adapter we get a connection time out exception. Same thing happens if we try and use the wsdl tester at /wsnavigator but we can open the wsdl through the browser. Any idea on this one?
    Thanks for all your help.

  • B2B Inbound File with Multiple Transactions failing

    Hi ,
    Problem Summary: When the inbound file is coming with multiple transactions (combination of 997 and non-997) ,
    If the 997 is the FIRST transaction in file, B2B is processing only 997 and remaning transactions are getting rejected.
    Where as if the 997 is the LAST transaction in file, then all the transactions are processing correclty.
    SOA Version: SOA 11G (11.1.1.5).
    Example 1: below sample we got two transactions, 997 and 214. here 997 is the FIRST transaction in the file.
    in this case B2B is processing 997 correctly, and 214 is errored with below error message
    "B2B-51507 - A data segment with 'Mandatory' status is missing. A data segment with 'Mandatory' status is missing. An X12 syntax error occurred. An X12 syntax error occurred. An X12 syntax error occurred. A data segment with 'Mandatory' status is missing. A data segment with 'Mandatory' status is missing.
    ISA00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005822*0*P*:~*
    GSFA*xxxx*1234555*20120516*1018*5822*X*004010~*
    ST997*58220001~*
    AK1SM*7159~*
    AK9A*1*1*1~*
    SE000004*58220001~*
    GE1*5822~*
    IEA1*000005822~*
    ISA*00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005823*0*P*:~
    GS*QM*xxxx*1234555*20120516*1018*5823*X*004010~
    ST*214*58230001~
    B10*2313813*M1213131*xxxx~
    N1*SF*xxxxxx*ZZ*124~
    N4*xxxxxx*AR~
    LX*1~
    AT7*AF*NS***20120516*1017*LT~
    MS1*xxxxx*AR~
    L11*01*QN~
    AT8*G*L~
    SE*10*58230001~
    GE*1*5823~
    IEA*1*000005823~
    Example 2 : below sample we got two transactions, 997 and 214. here 997 is the LAST transaction in the file.
    in this case B2B is processing ALL TRANSACTIONS correctly
    ISA*00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005823*0*P*:~
    GS*QM*xxxx*1234555*20120516*1018*5823*X*004010~
    ST*214*58230001~
    B10*2313813*M1213131*xxxx~
    N1*SF*xxxxxx*ZZ*124~
    N4*xxxxxx*AR~
    LX*1~
    AT7*AF*NS***20120516*1017*LT~
    MS1*xxxxx*AR~
    L11*01*QN~
    AT8*G*L~
    SE*10*58230001~
    GE*1*5823~
    IEA*1*000005823~
    ISA00* *00* *02*xxxx *01*1234555 *120516*1018*U*00401*000005822*0*P*:~*
    GSFA*xxxx*1234555*20120516*1018*5822*X*004010~*
    ST997*58220001~*
    AK1SM*7159~*
    AK9A*1*1*1~*
    SE000004*58220001~*
    GE1*5822~*
    IEA1*000005822~*
    Thanks,
    Naveen

    Hi,
    My name is Phil DeLaine and I work for one of Oracle's Gold Partners, TechDemocracy.
    I saw your post about the B2B transaction errors you are experiencing. We have great experience with B2B and have solved very complex problems. (References available.)
    Would you like to use one of our B2B expert technical resources to solve this problem and deliver your project error free and fully functional?
    Please let me know if you would like to discuss what we can do for you. You can reach me anytime.
    Regards,
    Phil
    Phil DeLaine
    Sales Director - Northeast
    TechDemocracy
    (978) 758-3156 (Cell)
    [email protected]
    http://www.techdemocracy.com/
    Our Successes:
    1) We won the 2011 Oracle Titan Award for the Best Middleware Implementation. Our award winning solutions included SOA, IAM and BI.
    2) We have been awarded with the highly prestigious Oracle ACE Director status for outstanding industry achievement and track record.
    3) We sit on several Advisory Boards for Oracle Product Management (for Fusion Middleware Products).
    4) We are an Oracle Center of Excellence Partner for SOA and IAM.
    5) We are frequently invited to speak at a number of Oracle Customer Success forums such as Oracle's "OpenWorld".
    6) We have been rated by Inc. Magazine as one of the top 10 fastest growing companies for 3 consecutive years.
    7) We have won and successfully deliveried several projects at Fortune 100, 500 and 1,000 companies. (References Available)

  • Mapping from File to IDoc with multiple Idocs and multiple line items?

    Hi All,
    Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
    Order_1 field-1 field-2 field-3 field-4
    Order_1 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
    Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
    Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
    IDoc-1 (Order_1)
    E1EDP01
    E1EDP01
    IDoc-2 (Order_2)
    E1EDP01
    E1EDP01
    IDoc-3 (Order_3)
    E1EDP01
    E1EDP01
    I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
    Regards,
    N@v!n

    Hi Navin,
    Create your source structure like below
    <Order>1 to unbounded
        <Order_No>
        <field1>
        <field2>
        <field3>
        <field4>
    </oder>
    to create mutiple IDocs based on order number,use below logic
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
    use below logic for E1EDPO1,
    Order----->removecontexts------>
                                                                                    formatByexample------>E1EDP01
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
    try above logic and let me know if you any issues.
    Regards,
    Raj

  • Mapping in Services Interface with multiple operation... ?

    Hi ALL,
    I have a SOAP to SOAP scenario here Just PI 7.1 with EHP1 acting a bus no mapping nothing .
    1) I have the WSDL file from the receiver system with multiple synchronous operations  in it ..i imported the wsdl as External Definition .. i used the same the WSDL file to create the sender Service interface also...
    when i created the service interface with the operation in it , i just gave the same operation name from the WSDL.this i followed for the sender and receiver service interface.
    1)now the issue is do i need any operation mapping if the service interface has more than one operation ...?
    2) I compelted the scenario without any operation mapping ..but i am getting this error ..Problem occurred in receiver agreement for sender -ICRM_D to receiver -EXACTTGETWEBSERVICE_D,http://ICRMtoExactTaetWebservice.com.si_os_ICRM_EXACTTETWEBSERVICE: No standard agreement found for , ICRM_D, , EXACTTARGEBSERVICE_D, http://ICRMtoExactarebservice.com, si_os_ICRM_EXACGETWEBSERVICE..?
    pls help me in this issue..
    Thanks
    Souz

    you might want to read this /people/shabarish.vijayakumar/blog/2010/09/08/service-interface-and-multiple-operations--is-it-just-an-hype
    you will need to create additional configurations for multiple operations to be supported

  • Interface with multiple msg.PM

    Hi, Experts,
    I’m considering the parallel migration to FS-PM from legacy system using migration solution.
    As far as I know, FS-PM has the business validation step (check data, recalculation the premium) after finishing the technical validation.
    To deal with the parallel approach for the business validation in the FS-PM, I would like to know that FS-PM can interface with the multiple msg.PM system.
    It means that 2 or 3 msg.PM can connect with a FS-PM system to reduce the migration time (or load balancing).
    My assumption may be wrong in the parallel migration. But I really want that multiple interface with msg.PM can be possible or not in terms of the technical aspects.
    Please let me know if you have some idea or relevant experiences.
    Thank you in advance.
    Best regards,
    Kyoungkeun

    Hi Kyoungkeun,
    If no reaction you should blog to Planet Insurance.
    If there is no reaction you should raise an internal message.
    Best regards
    Boris
    Boris Greven
    Insurance GTM Lead &
    Cloud Business Development
    IBU Insurance
    Visit Planet Insurance

  • Interface with multiple hard drives

    I am looking to buy a Mac Pro later this year, although want to learn about everything now, so I am well educated when I buy it ^^
    I was reading around http://macperformanceguide.com/Mac-LightingFast.html and it brought up a question. Right now I have a 170 GB MBP and a Time Capsule... If I were to get a Mac Pro with the proposed SSD Launch Drive and Hard Drive data drive, what would the interface be?  Would it be similar to the interface with a time capsule, with different hard drives listed in the finder window?  Or would it ask me to specify where to write?  Or would I manually choose a 'default write to' on all my applications?
    Thanks
    Ben

    Buy your own SSD, RAM and hard drives.
    Mercury Extreme Pro 6G SSD
    Mac Pro Memory
    There are 4 internal drive bays, get it stock, skip getting an apple branded SSD they tend to not be best of class. All drives have to be 3.5" SATA or use an adapter to fit the sleds.  Other than application preferences for where a media library is,  default location for documents, scratch, and of course you can put your /Users/myaccount on a data drive. 
    My PCs have 1.2GB/sec of SATA bandwidth. Double the 600MB/sec that is shared by 4 SATA ports.
    Macintosh Performance Guide  Articles & Reviews
    MacPerformance Blog
    That link you have is over a yr old out of date and talking about early Intel X25s for one.

  • Single inbound file - XI - Multiple IDOCs in SAP

    Hi XI pros,
    my file input file has very simple structure of header and item:
    H
    L
    L
    L
    Header has 2 fields snd item has 3 fields which I need to map to IDOC and post simple MM document in SAP.
    Mapping itself is very easy. I need to create separate IDOC for every item record type L.
    Question is whether I can do this in general without BPM ?
    Thank you, Forest.

    Hi Forest,
    Go thru this blog of <b>File to Multiple IDoc's</b>
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    I think this satisfy ur requirements.
    Hope it helps and u don't forget to give me points.
    Regards
    Arpit Seth

  • IDoc - IDoc interfacing with multiple mappings

    Hi,
    We want to use two different mappings for the same IDoc interface (based on a condition). So we use the ORDERS idoc for a sales scenario and also for a purchase scenario. The sending service is the same for both ORDERS messages, lets call it service SEND. Furthermore, for both ORDERS messages, the receiving service is also the same lets call it RECV.
    The problem is that we want to use a different mapping for the ORDERS sales scenario as for the ORDERS purchase scenario. The sending and receiving interface in both cases is the same.
    The receiver determination and interface/mapping determination is a problem in this case.
    One way to solve this is to use a party, but in the configuration of the party you can only use the same sending logical system name ONCE. So party A cannot have the same logical system name (SEND) as party B (SEND) for scheme ALE#LS.
    Another way would be to use different services, one for the first scenario and mapping and one for the second. Again the problem is that you need to enter adapter settings for both services (RECV1 and RECV2), but a logical system name can only be used in ONE service. If you want to assgin it to a second service, this is not allowed.
    Does anybody have a solution for this?
    thanks !

    Hi Alexander,
    why don't you try doing it in one BPM?
    something like this:
    one sender
    one receiver
    2 mapping programs
    <b>Receive step</b> -> <b>Swich Step</b> - if PO go to <b>Transformation step</b> one (mapping 1), else go to <b>Transformation step</b> two  (mapping for the SO) - <b>Send Step</b>?
    you can base you swith step on E1EDK14 segment qualifier = 013
    (As far as I remamber only Purches orders have it)
    but check it:)
    BTW
    if you use the Swith Step you probably want to use a Transformation step before the Swith step (mapping from ORDERS to dummy message with one TAG - indication if this is PO or SO based on content of the ORDERS) this way the swich step will work for sure  
    Regards,
    michal
    Message was edited by: Michal Krawczyk

  • 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

  • FI - Interface triggerring multiple idoc is not getting posted

    Hi all,
    I have a scenerio, where I am receving data from SAP PI, which calls standard idoc ACC_DOCUMENT03 and which posts FI Document.
    now, the problem is interface trigger's 2idoc with seperate number with same message type and same idoc type, but both the idoc are not getting posted and show's error like 'No currency line exists for line item 0000000001' and so on.
    But the same idoc, when i proccess indivisually get's process gets posted successfully.
    I have also done implementation in function module IDOC_INPUT_ACC_DOCUMENT.
    As an abaper, I am not able to understand problem to take corrective steps.
    Thanks & Regards
    shashikant

    hi,
    if the IDoc is stuck in a qRFC queue means that the message did not reach the pipeline to be send to R3 so, anything in wrong at PI side.
    please, go to SMQ2 and check whats happening. to know the queue name check the SXMB_MONI, select the proper message and scroll rightto the proper colum.
    let us know.
    Rodrigo P-.

  • HL7 Inbound - File with Multiple HL7 messages - how to configure?

    I have a file containing multiple HL7 v2 delimited messages, separated form one another with \r\r\n.
    Can I configure the inbound adapter in teh B2B to break up teh file into individual messages and process them through the B2B infrastructure individually?
    Thanks in advance for pointing me at the right documentation / blog / tutorial
    Edited by: Michael.Czapski on 22/07/2010 23:33

    Thanks, Anuj.
    I am using 11g R2, which I though is the current version.
    I don't have a HL7 Batch - I have a file with a bunch of HL7 messages separated by \r\r\n.
    Is there any way to configure the File adapter in the B2B to break up such a file at \r\r\n delimter characters and process each "record" as an individula HL7 message?
    If not, would I have to receive such a file using a File Adapter in the SOA Composite, have the File Adapter break it up and submit each "record" from the SOA Composite to the B2B using the outbound B2B Adapter in order to have them processed? If yes, can you point me at how I could configure teh SOA File Adapter to break up a delimited file into records?
    Thanks in advance
    Michael

Maybe you are looking for