Multiple IDocs-XI-Single File Scenario

Hi All,
   We need to send multiple IDocs from R/3 to XI and then to a single file using File Adapter. Please help us with your suggestions on how to proceed using a simple solution.
Regards,
Peter

I made a program that solved the issue of collecting the IDOC in to one file.
1.  The partent profile should be setup for collect idocs
2.  Make a report that will select and dispatch the idocs
seudo code:
select tables with select criteria:
edidc (idoc control)
edid4 (idoc data)
one yo have made you selection into internal tables
it_final_edidc
it_final_edid4
*you can apply rules and data tranformations, eg. PEXR2002 batch per payment type.
CALL FUNCTION 'EDI_OUTPUT_NEW'
           EXPORTING
                onl_option  = 'B'
            ERROR_FLAG  = ' '
            NAST_RECORD =
           TABLES
                i_edidc     = it_final_edidc
                i_edidd     = it_final_edid4
           EXCEPTIONS
                OTHERS      = 1.
  " EDI mesages dispatched
  IF sy-subrc EQ 0.
    COMMIT WORK.
    CALL FUNCTION 'DEQUEUE_ALL'
       EXPORTING
            _SYNCHRON = ' '
         EXCEPTIONS
              OTHERS    = 1.
That work like a charm when writting the IDOC to a single file.
But when I send the IDOCS to XI like XML-IDOC I still receive one transaction per IDOC.
if anyone know how to solve that, let me know.
juan

Similar Messages

  • Multiple idocs in a file

    Hi,
    How to transfer multiple idocs in a file? ( We can use BPM)  but i dont know how to implement using BPM.
    Kindly help.
    Regards
    sai

    Do you wish to  have multiple idocs coming through SAP merged into a single file
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/906fda31-0e00-2c10-4fb4-e264988a9263
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b?quicklink=index&overridelayout=true
    saptechnical website /Tutorials/XI/CollectMultipleIDocs/Collect1
    Regards
    Ninad

  • Regarding receiver determination problem in IDOC-XI-XML file scenario

    Dear All ,
    In IDOC-XI-xml file scenario , I have configured SLD , IR . But in ID , after file adapter , reciever agreement configuration when I am doing receiver determination configuration I am not able to insert mapping program in configuration overview of receiver determination as I am not getting "New Specific" option in mapping .
    Can anybody suggest what could be the reason behind this .
    Thanks in Advance
    Prabhat

    Hi PRabhat,
    In RCVR determination, you need to select the party & service (as appropriate) save the obeject
    then refresh the configuration overview of recr det.
    then you can see the partner/service
    then you can open it & add the necessary objects.
    Regards
    Vishnu

  • R/3 46C(IDOC) -- XI -- Flat file scenario

    Hi
    Is there anyone who could give me information on a R/3 46C(IDOC) --> XI --> Flat file scenario?
    Many thanks!
    br
    Göran

    Hi Manish
    We are using a standard IDOC called PROACT.PROACT01
    (We are using transaction sa38(Report RSMIPROACT) in R/3 to send our IDOC.)
    First we create the technical and business systems in SLD
    Second we transfer these to the repository.(I think the only thing you need to do is to update the SLD cache to get them there - Design : Integration builder --> Environment --> clear SLD cache)
    Then we just use the configuration wizard(Configuration : Integration builder --> Tools --> configuration wizard) to map everything together - defining sender and receiver etc(You get the configuration wizard tool by patching XI to patch level 4 or 5).
    I assume that you have made all the configurations accordingly to the XI configuration guide which you can download from the service marketplace.
    This is just a hint but maybe it can give you a start.
    br
    Göran

  • IDOC to XML file scenario with party

    Hi All,
    I am developing a IDOC to XML file scenario with party in which I have extended the MATMAS idoc and configured the receiver FILE communication channel.
    But its giving me the error *"No receiver could be determined"*  with party. If I run the same scenario without the sender party its working fine.
    And sender is my R/3 system under party P_Party and receiver is my third party system under P_Party.
    Thanks in advance.
    Gaurang

    U can give a try as follows.
    In the Partner Profile of Sender R/3 system,
    Give the Receiver Party P_Party in the PartnerNo. Give the 'Business Partner' as logical System type.
    In XI, Party Definition of P_Party
    Give the following Alternative Identifier
    Agency  -   Sender R/3  Business System       
    Scheme -   ALE#GP
    Value    -    P_Party

  • IDoc to Flat file scenario - abap mapping

    Hi All,
    I have to do some IDOC to Flat file scenarios. In Order to generate the file in required format I will have to add all segments(Nodes) of Idoc in FCC receiver. We also have other option of doing it through ABAP Mapping which I found in one blog.
    Now my question is : Is it better way of doing it through FCC or ABAP Mapping?
    Ofcourse from development point of view ABAP Mapping looks easier as FCC is very time consuming task.
    Is there and performance issues in either of the approach?
    Thanks and Regards,
    Atul

    Hi VJ and Harald,
    Thanks for your replies.
    I am not having PI7.1 however the given blog was very informative.
    I will try using file port approach as suggested.
    Thanks and Regards,
    Atul

  • 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

  • Multiple idocs from single flat file

    Hi All
    I want to send data from a flat file to SAP(file to idoc)
    My flat file structure is
    id,name,number,city
    2,R1,234,SD
    2,R2,457,MD
    3,R4,789,HG
    3,R6,235.HG
    The Field 'id' will change..after  every change in 'id' ,seperate idoc should be created.
    I have checked the following thread.
    Re: Content conversion for seperate idoc
    In the above thread ,it is asked to map v.no with remove context and use SPLIT BY VALUE on value change then do the mapping accordingly ,you can create 3 idocs for the same.
    I'm confused about how to do these mappings.
    Please explain the mapping in detail.
    Please help
    Regards
    Reema

    if  your source data type is like
    MT_Source
        Record           0-unbounded
           id                    ----1
           name              -----1
           number           -----1
           city               -------1
    then in the sender file communication channel you have to specify  file content conversion parameters as
    Parameter name               parametervalue
    Document Name                 MT_Source
    Recordset Structure           Record,*
    choose + to add more parameters
    Name                                  Value
    Record.fieldSeparator                      ,
    Record.fieldNames                        id,name,number,city
    Record.endSeparator                      'nl'
    then do the maping
    as
    id ---->removeContext---->SplitByValue(Value change)---->Target Idoc
    map according to your requirement for other fields

  • Multiple IDocs - XI - Flat file

    We are looking at a scenario to send multiple IDOCS from SAP to Flat File. We implemented this using the Collect Pattern in BPM, merge all the IDocs into a single message and write it in a file. But is there any a way to avoid BPM and still be able to send multiple IDOCS in a package to be written onto one file?
    Thanks
    Vinoda

    Hi,
    I think this is possible using PACKAGING.
    Check this note <b>814393</b> on Service Market Place.
    <i>You want to create or process an XI message with multiple instances of an IDoc (of the same IDoc or extension type) in the mapping.
    The payload of the relevant message is to have the following the format:
    <IDOCTYP>
    <IDOC>...</IDOC>
    <IDOC>...</IDOC>
    </IDOCTYP>
    To be able to process these messages in the message mapping of the source system and to create them in the target system, you need an XML schema for the IDOC that allows multiple instances of the IDOCtag.
    If the relevant IDOC is imported into the Integration Repository, the system generates an XML schema that sets the number of instances of the IDOC tag to exactly one.
    The following describes how you can manually change the XML schema so that multiple instances of the IDOC tag are allowed, and how you can make the modified XML schema available to an adequate message mapping.
    Other terms
    IDoc packaging
    Reason and Prerequisites
    The relevant IDoc is imported into the Integration Repository.
    Solution
    1) Log on to the Integration Repository.
    2) Open the relevant IDoc in the object editor.
    3) Select the "Export XSD" menu option in the "Tools" menu.
    4) In the subsequent dialog box, assign a file name and save the data to the hard disk of your local PC.
    5) Open the file that you have saved in step 4 in an adequate editor (for example, Notepad) for editing.
    6) Locate the first entry: <xsd:element name="IDOC" type="<
    Idocname>"> and add the following expression, maxOccurs="unbounded", between the value of the type attribute and the closing angular bracket.
    Example:
    <xsd:element name="IDOC" type="ADR2MAS.ADR2MAS02"
    maxOccurs="unbounded">
    7) Save the modified file to the hard disk of your local PC.
    8) In the message mapping, use the file saved in step 7 instead of the imported IDoc by using the "Import XML or XSD" function in the mapping tool to select the source or target messages.
    </i>
    Regards,
    Bhavesh

  • Help on - Multiple IDOC to single flatfile (without BPM)

    I got a business need, that the ORDERS05 IDOC's should be collected on hourly basis and single flatfile should be generated for each and every hour. This scenario can be easily handled through BPM but I need the problem to be solved without BPM.
    Please help me to overcome this.

    hi uv,
    in addition u can have a look ..
    Introduction to IDOC-XI-File scenario
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    ALE configuration for pushing IDOC from SAP to XI
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    IDOC Status
    http://www.erpgenie.com/sap/sapedi/idoc_statuses.htm
    Configuration steps required for posting IDocs
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    any case u need with BPM...
    IDOC (Multiple Types) Collection in BPM
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    regards
    biplab

  • Scanning multiple pages to single file

    I have the HP Officejet Pro 8600.  I use to be able to scan multiple pages to one file.  For some reason now it separates the pages into single files.  Under advanced settings it looks like the option "create a separate file for each scanned page" is checked, however, it is not highlighted so I can't change it or uncheck it. 

    KB-Sales,
    Welcome to the HP Forum.
    Assuming a recent Windows Operating System and that you install the Full Feature Software (printer software), then you may use the Printer Assistant shortcut to access Scan Document or Photo.
    From there, you may be able to use / create a Scan Template to combine files to output to a final, single file.
    The following Dragon Document may help:
    Scan_Multiple_Documents-Combine
    Note the hint about creating your own Shortcut / Template in the instructions.
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • Doubts in SAP(Idoc)-XI-Flat file scenario

    Dear All,
    I am sending Delivery Idoc from R/3 and I am able to view the Idoc in XI in transaction IDX5. Also i m able to see the XML structure with the data of the idoc in SXMB_MONI.
    Now as per my scenario I have to download this to a flat file from XI.
    My question is, should I have to do the creation of Data types, message types, mapping interface & interface mapping in IR or should I directly do the designing in the ID.
    waiting for your reply.
    Warm regards,
    N.Jain

    Hi,
    DT, MT, MI  : you will create these things for receiver flat file only.
    First create
    In Integration Repository :
    1.     Import structure of IDOC in your scenario, In imported objects &#61664; IDOCs
                  a.     In Interface Objects
    1.     Create Data type for your flat file
    2.     Create Message Type
    3.     Create Message Interface (inbound Asy.)
                  b.     In Mapping Objects
    1.     Message Mapping :  IDOC  to  Message Type of Flat File.
    2.     Create Interface Mapping  : IDOC to Flat file by using Message Mapping which you have created.
    Make activate all these things.
    In Integration Directory :
    1.     Create Communication channel for File Receiver.
    2.     Sender Communication channel is not required.
    3.     Create Receiver Agreement.
    4.     Sender Agreement is not required.
    5.     Interface Determination
    6.     Receiver Determination
    At sender side you will take your IDoc and at receiver side you will take your flat file.
    It can help you,
    Regards,
    Sandeep Kaushik

  • Error in IDOC(ALEAUD) to file Scenario

    Hi ..
    we have a client requirment were they want the ALEAUD  acknowledgement in the form of file.
    So we are creating a IDOC to file scenario, where IDOC is ALEAUD which is mapped to create a file in the traget system. but when we post the IDoc we get thwe following error.
    *Note: have a small doubt. Can we use ALEAUD Idoc as a normal IDoc to File Scenario. because with the documents i understand that ALEAUD is a acknowledgment IDoc which is generated based on the request IDOC. but in our scenario we are manually using the structure of ALEAUD in the source system*
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_NO_REQUEST</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>ALEAUDIT IDoc cannot find request IDoc in Integration Server</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Kindly help me out .
    Thanks in advance
    Deepika

    Hello,
    If you need to send the ALEADUIT back to the SAP system if the file returns a successful ack, then you will need to have a BPM with a separate SEND step to send back the ALEAUDIT.
    And check this ......
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    *******Reward points if found useful

  • File to Multiple RFC's to File scenario ....

    Hello Friends,
    We are implementing a scenario : File-RFC-File without BPM, but our output data is available with 3 BAPI's, If we are going to implement 3 File-RFC-File scenario's so we would be getting 3 output files. How can this be combined in a single file.... As we need to generate a single file.
    Pl. can anyone help me with this ......?
    Regards,
    Jayashri.

    Easiest way would be the use of BPM. Without BPM, you can create and append same file but that could not ensure the correctness of data, so not a good solution.
    Other way could be using one scenario with two RFC lookups.
    Regards,
    Prateek

  • IDOC TO HTML FILE SCENARIO WITH XSLT MAPPING

    Hi ,
                 I am doing idoc to html file using xslt mapping can anyone provide me some help(material or example ) please reply soon.
    Thanks & Regards,
    Vinay Yadav

    Hi ,
    For xslt mapping the place to start is
    http://www.w3schools.com/.
    in help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/64b93d0d4e6b3be10000000a114084/frameset.htm
    There are some blogs here which can proove to be good.
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards ,
    Deepak
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

Maybe you are looking for

  • Should I use a case for my iPhone 5?

    I have the iPhone 5 with AppleCare+.  I am very carefull with all of my Apple products.  I love the design of the iPhone 5, but am sadly using a case right now.  Should I leave it on or take it off?

  • Incomplete data loaded to BW

    Hi Gurus, APO data is being extracted to BW. The background job that extracts the data ran successfully but with incomplete data. As we checked with RSA3, all the data were extracted. Also, adhoc run was perform to check whether all the data will be

  • Network sharing administrating

    Hello, I'm using network sharing to share my internet connection (I'm tethering and sharing the internet). I have a problem: _If I set up a password for the sharing, windows OS on other computers cannot connect._ I solved it using no password, but no

  • Retrieve client ip address from LC process

    Hi, does anyone know is there any way to retrieve the client ip address when a flex client calls the amf endpoint of a livecycle process? This is on ADEP and unfortunately we can't do a flex call javascript on the client side to retrieve the ip addre

  • System file not suitable for running msdos or windows files ???

    Please help... I download the itunes 6.0.5 setup.exe file. I open it and I see a pop up with Quicktime and Itunes on it. It quickly loads and then a new application opens (a C:// black box It quickly gets an error (16 Bit MSDOS Subsystem Box) error r