Multiple Idoc to a file

Hi,
  I gone through the blog
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm but i am not able to understand about message mapping
I am using two idoc EUPEXR.IDCREF01.ZDCREF01 and PAYEXT.PEXR2002.ZEXR2002 and I created file DT, MT and MI.  Please let me know what are all the soure and target message need to give while doing mapping
Regards,
Dhil

hey
u have to create 3 message mappings and 3 interface mapping.
step 4 and 5 say it clearly
Step 4:
Create three Message Mapping to convert Outbound type of IDOC into Abstract type so that we can collect it in our BPM. Message Mapping for conversion of three different types of IDOCs to their Abstract type are as follows:
MM_ISU_UKGAS_NOM1_to_NOM1_ABS
(ii) MM_ISU_UKGAS_NOM2_to_NOM2_ABS
(iii) MM_ISU_UKGAS_NOM3_to_NOM3_ABS
Below mapping is for N:1 transformation. (Here input will be having three different types of Abstract IDOCs and target will be having Abstract Target File type)
(iv) MM_ISU_UKGAS_NOM_to_NOM_ABS
Step 5:
Create the Interface Mapping as follows.
(a) Interface mapping for IDOC outbound to IDOC abstract.
IM_ISU_UKGAS_NOM1_to_NOM1_ABS (Message Mapping is used here)
IM_ISU_UKGAS_NOM2_to_NOM2_ABS (Message Mapping (ii) is used here)
IM_ISU_UKGAS_NOM3_to_NOM3_ABS (Message Mapping (iii) is used here)
(b) Interface mapping for collected IDOCs of Abstract type to the file of Abstract Asynchronous type.
IM_ISU_UKGAS_NOM_to_NOM_ABS (Message Mapping (iv) is used here)
thanx
ahmad
Message was edited by:
        Ahmad

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

  • 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 - 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

  • 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

  • Multiple idoc to flat file

    Hi,
    i have  a scenario from idoc to flat file.There is two idoc that send message in same file.Without flat file content messages come succesfully.the format should be following:
    at the first  row should be the first idoc,
    at the second row should be the second idoc
    01  1FONEX0045               FONEX0045               FONEX SIVI SABUN 400+850ML FLOWERS                    =>1.idoc
    02  1FONEX0045               8691988000162           8691988000162                                                             =>2.idoc
    01  1DOVE0199                DOVE0199                   DOVE SAC DOKULMELERINE COZUM SAC BAKIM M     =>1.idoc
    02  1DOVE0199                8718114638348           8718114638348                                                               =>2.idoc
    Thanks in Advance
    Nurhan

    Hi,
    You have to MessageTransformBean Module.
    The MessageTransformBean module enables conversion of XML files to flat files and vice versa. You can use this module in the sender and receiver communication channels.
    In receiver communication channel, specify MessageTransformBean module before standard adapter module CallSapAdapter and use
    Module Name: localejbs/AF_Modules/MessageTransformBean
    Module Key : XML2Plain
    Please see the below links, it might be useful to you.
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
    Regards,
    P.Rajesh

  • Collection of multiple IDOCS in one file to send once a day

    Hello,
    There are number of documents created for a vendor and we need to send the IDOCs for all the orders in one file collectively.  The transfer should happen at the end of day.
    Currently we are using correspondance mechanism for it, but it creates one file for each idoc.
    Is there any standard solution to combine the IDOCS ?
    Thanks and rgds,
    Anand

    Hello Anand
    I have used the approach described in [SAP Network Blog: Collecting IDocs without using BPM|Collecting IDocs without using BPM] to collect IDocs.
    Regards
      Uwe

  • Collection of multiple idocs into a file

    while activating the BPM,i m getting error "Expression must not return a multiline value" in transformation step of BPM at the source message.My source message is Abstract asynchronous type idoc which i m sending into BPM and value is container variable of same interface type and which is of multiline type.Can,anyone help me to solve out this error in BPM?

    ref: http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Use that as a checklist !!!
    Also make sure that you have provided the message (that needs to be collected) (in message mapping and interface mapping) as 0-unbounded

  • Multiple Idocs (DEBMAS06) into one single file

    Hi All,
    Multiple Idocs(DEBMAS06) are sent from SAP in bulk to be sent to FTP server via XI...(Cannot use Append the file as The structure is with Header,Detail(all the idoc details) and Trailer)
    I have seen different threads which speaks about the same,
    But Please suggest me the best approach to proceed with this kind of scenario...
    Multiple IDocs -> XI -> Flat file which is speaking about BPM and also Packaging(SAP note 814393)
    and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b
    (How Tou2026 Send Multiple IDocs Within One XI Message)
    I prefer not to use BPM... but if required then....
    Please suggest me which is the best approach to proceed with it..
    Thanks and Regards,
    Sridhar Reddy

    Hi ,
    I had tried the scenario Multiple IDOC's coming from R/3 and send all of them into a Single File
    But it did not work...
    Of course i changed as Micahel mentioned in
    The specified item was not found.
    (Collect and make pack size to 50) but still the idocs are posting as 50 messages in XI and 50 files are being created ...
    But as per his remarks we need customization which is very difficult...
    And also i checked Michaels blog
    The specified item was not found.
    But this is dicussing reverse of my scenario...
    and finally i am thinking of going with the stefens weblog...
    Collecting IDocs without using BPM
    Can any one please suggest any other best way to handle this...
    Instead of going for BPM i am implementing as Stefen suggested ... This is because we have many such interfaces where SAP sends collective idocs....
    Regards,
    Sridhar Reddy
    Edited by: sridhar reddy kondam on Oct 22, 2008 6:20 AM

  • Collect Multiple IDOC(Single IDOC type) to single file using BPM

    Hi All,
    When i am generating multiple IDOC for the same message type, i am getting multiple payload for the same as a result i used to get multiple files generated in application server.
    Now if i use BPM only to collect multiple IDOC to a file then what all the steps that i need to follow for the same.
    Ex: I want to post 10 IDOC for a single IDOC type,, Now using BPM in XI i want to collect all the 10 IDOCs with multiple payload into one single message and then want to process this in XI to generate the file.
    It would be glad if anyone refer me a good step by step blog for the same.
    Thanks in advance,
    Jay

    Thanks a lot Abhisek.
      I have also got a blog explaining the exact thing. But in the blog the ID part was missing which is present in the link you have provided.
    I will be glad if you can through some light on the ID part,, however the IR part and the BPM part is now mostly okay to me.
    I will configure this today only,, and may seek your help for any huddle.
    Thanks a lot once again.
    Regards,
    Jay.

  • File to multiple idoc

    Scenario is Fileu2013TOu2013Idoc. We have a requirement where we need to produce multiple idocs from one file.
    The input file is something similar to this:
    HEADER;XYZ;123;123456
    DETAIL;XYZ;123;123456
    DETAIL;XYZ;123;123456
    DETAIL;XYZ;123;123456
    DETAIL;XYZ;123;123456
    TRAILER;XYZ;123;456
    Now for every 1000 "DETAIL" records from the above structure it should create MULTIPLE IDOC's in SAP.
    In PI, Integration directory, under "File Content Conversion" added 2 lines as below:
    Recordset Structure=DETAIL,1
    Recordset per Message=1000
    This splits the FILE to many messages (each 1000 DETAIL) in PI (SXMB_MONI) and creates many IDOC (only if FILE has DETAIL records).
    However this works only if the FILE has all DETAIL records (no HEADER, no TRAILER).
    Can someone suggest how to use "Recordset per Message" if there are more NODEs in the input FILE?
    Thank you very much.

    Suraj
    Thanks.
    I got your point. I also read Enhanced (Mapping-Based) Interface Determination http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm.
    It appears target IDOC message splits are not supported since the IDOC adapter is not part of the AE. /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    So I will use your approach in two steps. Please let me know if my understanding is correct.
    Step 1:
    FILE to FILE
    1. Read the source file and do a FCC.
    2. Write splitting logic (per 1000) in udf
    3. Use multimapping and enhanced interface determination
    4. Write source file to multiple target files. FILE1,2..N
    Step 2:
    FILE1,2,3..N to IDOC
    1. Normal mapping. (Note: no change of IDOC occurrence of idoc to 1 ot unbounded is needed as original message is split to multiple files in step 1)
    Appreciate the input.

  • File-XI-multiple IDoc Scenario

    Hi there -
       I am working on single File-XI-multiple IDoc Scenario and have following questions:
    (please keep in mind that there is already an existing multiple IDocs-XI-single File scenario between the same systems)
    1. Please provide any detailed step by step documentation from end-to-end.
    2. I am thinking it's compulsory to use BPM, is there any way to aviod?
    3. Is it possible to update existing IDocs in R/3 directly from the data from XI?
    Thanks everyone in advance...
    Pat

    HI,
    Pls go thru following links-
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Single inbound file -> XI -> Multiple IDOCs in SAP
    One file for multiple IDOCs
    Hope this helps..
    Regards,
    Moorthy

  • Error: Multiple IDOC to File

    Hi
    I am trying to send Multiple IDOCS to a file. While testing the same I am getting following error.
    NO_RECEIVER_CASE_ASYNC
    ATTRIBUTE_INV_SND_SERV IDOC to file
    Follwing things I have tested:
    I have Configured all the directory objects( Receiver Determination and Receiver Agreement)
    I have checked the cache. It is up to date
    Also the logic system is there is system----> Adapter specific configuration
    Thanks
    Abhishek

    U said u checked system----> Adapter specific configuration
    Do this check both for Sender business system and receiver (File) business system. The logical system name for file adapter must be present in SLD.
    Regards,
    Prateek

  • Single File to multiple IDoc

    I am working on single XML file input to multiple IDoc scenario. Single file contains multiple set of data for Customer and Vendor for example 20 Customer and 40 vendor together in one file between <CMData>...</CMdata> tag individually. I have to map Customer and Vendor based on one of the tag value. I seen the IDoc structure does not allow multiple records and occurrence shows only one. What is the best way to establish this scenario. I know ccBPM is required and Transformation Step picks respective mapping based on XML tag value for Customer or Vendor, but I have doubt how can I send one by one IDoc by identifying correct mapping based on XML tag. Thanks and appreciate your help.
    --PKT

    Thanks Paul for prompt response and support.
    I changed the Occurrence of both IDOC TAG to "9999" through "xsd" and upload the same in XI and I created two mapping one for Customer and one for Vendor i.e.
    File--->Customer with multiple IDoc tag attribute
    File--->Vendor with multiple IDoc tag attribute
    Now in BPM I have to apply loop and look to the tag XMLType and where it is "C" I have to call Customer mapping and where it is "V" I have to call Vendor mapping. How I can do this . Please help me on this. Thanks.

  • FILE TO MULTIPLE IDOC QUERY

    Hi,
    I have a file (PO details)from which i create multiple idoc. The structure of file and idoc is as follows
    --BATCH   
       ---HEADER
    ITEM
    --/BATCH
    IDOC IS
    --IDOC
         ---BATCH
    HEADER
    ITEM
    now in order to get multiple idoc from the file structure i changed the idoc segment cardanility to 0-unbounded and mapped
    HEADER of file to IDOC node of idoc so that idoc gets created for each header,
    my requirement is that for each idoc
    1) the batch segment should also get populated
    2) there is a feild batchid in the batch of file value of that feild should be populated in one of the header feilds
    Presently suppose the file has 10 POs, then it creates 10 IDOCS where in only the first idoc has the batch segment populated and the header of first idoc has batch id populated , rest 9 IDOCS the batch segment is blank and even i am not getting the batchid value in the header.
    Edited by: Sudhakar Gongloor on Jun 21, 2010 4:12 PM

    exactly.
    so in your case if source field A has 5 values and you need there values to go into 5 IDocs, you will use
    Source field A -> Split by value -> Idoc field
    Also note that you will have to similarly maintain a context mapping for the parent node of the target field.

Maybe you are looking for

  • Photoshop (all versions): Inconsistency/Bug in automatic File Naming algorithm

    Hello, I discovered this problem in PS CS3 and CS5 (don't have CS4) after a student of mine found it in PS Elements 8. Here's one way to replicate the issue: 1) Open any image in Camera Raw. Let's call that file FILENAME.dng 2) Click "Save Image" but

  • User re-name

    after a user re-name i'm losing user personnel settings, user created queries, variants and report formats as well as PO history.  i imagine the PO history will not be retained as it's in essence a new user but is there any way to transfer over the u

  • If the maximum RAM is 8gb, is there a way  to higher?

    I have a macpro 2010.  The maximum RAM it has is 8gb and that is what currently have.  Is there a way to go to 16gb or is the maximum set in stone?

  • How to Change S012  Table Structure ..?

    Hi MM Experts, How to copy and how to create new structure  and new caracterstics and MAterial type from  table S012 . T-code for execute MCE1 . How to Change S012  Table Structure ..? Regards, Anthyodaya. Edited by: anthyodaya Reddy Nagaram on Jul 7

  • A question about threads

    Hi to everybody, I'm learning Java and I would like to know what's the difference between extending the Thread class and implementing the Runnable interface. Why when I run two objects that are instances of a Runnable class they seem to run concurren