Multiple occrance of idoc

Folks,
I have reframe my last question which was idoc splitting, how to generate multiple instance of idoc in mapping .
Manish

HI,
unfortunately Message Split with IDoc adapter is not possible without using BPM.
This link gives a list of supported Adapters (all in J2EE Engine).
http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm
This topic was already discussed a few times in earlier threads.
Re: SP14 Multi-mapping - error in receiver idoc adapter
Split one message to multiple
regards,
Peter

Similar Messages

  • Creation of multiple Records in the file as per multiple segments in IDOC

    Hi SapAll.
    i have got a requirement to create a multiple records in a file based on multiple segments at sending Idoc in a File To Idoc Interface.
    the Scenario  is the reciever message type is mapped with fields of 3 segments in sending IDOC.
    SEG01   1.....1(PARENT SEGMENT)
      SEG02  0...999999(CHILD SEGMENT)
      SEG03 0...9999999(CHILD SEGMENT)
    in an instance where if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 2 times PI is creating the file with 2 records in it but
    when if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 1 time it is raising the error in message mapping where it is supposed to create 2 records in a file with empty values in the fields (mapping with seg03) segment.
    can anybody help me in this.
    regards.
    Varma

    you can create a UDF after you validate if the count match. if match you create the message if not, call de UDF.
    this UDF should receive two parameters -->Queue SEG2 and queue of SEG3.
    then you should loop by the count of SEG2. if you find a Supress Value in the queue of SEG3 add a "" to result. for example.
    for(i=0;i<=SEG2.count;i++){
    If SEG3<i>.equals(ResultList.SUPPRESS) {
           result.addValue(" ");
    }else{result.addValue(SEG3<i>);
    the result of UDF is a queue which should map to target field directly coz it has context changes
    I think that is what you are needing. if no let me know.
    RP
    Edited by: Rodrigo Alejandro Pertierra on Jun 17, 2010 11:56 AM

  • Multiple records from IDOC should be processed one by one Thru Web service

    Hi Experts,
    I have a requirement where in the idoc (custom one) will collect data from R/3 system at the frequency of One hour and send them to XI and from XI i need to call the Web serice which would post only one record at a time. In this case how should i manage by mapping. Its something like records from a Table needs to be posted sequentially thry Web service at the receiving end..
    Thanks for your replies in advance.
    Regards,
    Rajesh

    Hi,
    Please see the below links
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change - IDOC bundling
    idocs - /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    Idoc - Multiple - interfaces - Idoc to multiple interfaces in XI
    Multiple mappings into one Im - Multiple message mappings in one integration scenario
    Multiple Idocs
    How to send Multiple Idocs?
    Regards
    Chilla..

  • Multiple files to idoc without bpm

    Hi
    I have gone through the previous threads and came to know that n:1 is not possible without bpm. But in case of idocs you can collect them in r/3 system itself using RSEOUT00 program. But if my scenario is like.......you have 10 files which are coming through ftp and we have  to send the idoc to the target system. Is there any way to do this scenario without bpm ??
    Thanks
    kumar

    Hi palnati !
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible 
    Multiple IDocs without BPM(occurance change)
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    In case you have multiple IDoc types ref:
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    Have a look at this blog.. Might be helps to you..
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748. [original link is broken] [original link is broken] [original link is broken]
    Pls reward if useful

  • Split an inbound xml message in to multiple o/b idocs

    HI,
    We have a requirement to split an XML message(Source) into multiple idocs with different order nos and respective item details. We are working on XI 3.0 and we have a restriction not to use the BPM. Could you please let me know whether its possible to do 1:n mapping in XI 3.0 and how can we do this ?
    Thanks,
    Hari

    Then how you can do that in PI,we should know how many Target IDocs required,then we can import it in to PI.
    if you want to genarate same IDoc multiple times then we can do this,like change IDoc occurace to 0 to Unbounded then import as a external def and use it in mapping,logic you have to write in mapping.
    Regards,
    Raj

  • Mapping of multiple segments of  Idoc HRMD_A06 to flat file

    Hi Experts,
               I am doing an Idoc to file scenario. Idoc i am using is HRMD_A06, which is having around 38 segments, contains the hiring action details of multilpe employees (Infotypes 0000,0001,0002,0003,0302,1001).
              When i have send the idoc , I am getting the file in the destination path, but having only one line which is having the the details of first employee.
              As the segments are repeating my mapping is not proper. Can anyone please help me with some details for mapping Idoc to file, when the segments repeats in a single idoc.
             Please also give me the details regarding the destination message interface.

    Hi
    Please go through below link,
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Its very simple to do some changes in your existing mapping and some occurance changes.
    Verify that if your file message structure has 0..Unbounded Occurance.
    Use 0..Unbounded and map accordingly to target structure with 0...unbounded..
    and test with sample xml in message mapping with multiple idocs data and see whther u get multiple records in target
    Also if you need each sengment on new line with FCC then refer below links
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM

  • Multiple destinations for idoc metadata necessary in AAE

    Hello,
    we are trying to setup the AAE IDOC adapter in netweaver PI 7.3 sp5.
    I am still trying to find my way in the new system, but I get the impression that you can only implement one destination for idoc metadata in the NWA.
    This is not suffcient of course since different connected systems can have different custom idoc types.
    Is this true? If not how should I configure multiple destinations? the inboundRA resource adapter only points to one destination.
    Can I define multiple inboundRA resource adapters or is it possible to have multiple destinations in it?
    One parameter of the inboundRA is programID which would lead me to think that multiple destinations based on program id must be possible somehow
    See also the saplinks on this:
    overviwe
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/c2/91865252c84716b3b8be394851c9c0/frameset.htm
    inboundRA
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/c2/91865252c84716b3b8be394851c9c0/frameset.htm
    Thanks
    Tom

    Hi Tom,
    It is possible to have multiple destinations and this can be achieved by maintaining the multiRepository parameter value in properties in inboundRA resource adapter. We can specify as many values depending upon the number of destinations. The convention to specify the destination is as follows:
    <SID>=XI_IDOC_DEFAULT_DESTINATION_<SID>
    Thanks,
    Ramya

  • Multiple target files - Idoc to File scenario - Simple question

    Hi,
       I have a simple IDOC to File scenario. However at the occurence of a node say node A I need to generate a file
    For example if the input IDOC has 3 Nodes for Node A I need to have 3 different files one for each node.
    Any help is appreicated.
    Thanks
    Joe

    Hi,
    Map your node A to the Target root node.
    it will generate the Flat files based on node A.
    Regards,
    sukarna.

  • Creation of multiple Records in reciever  as per multiple segments in IDOC

    Hi Sap All.
    i have got a requirement in an IDOC to Webservice where the node in the reciever webservice should be repeated as many times as sender segment in the IDOC repeats.
    here the problem is the sender IDOC-Segment has got occurance as 0..999 but the recierv structure node has got the occurance as 1.1.
    your answer would be appreciated.
    regards.
    Varma

    Hi Varma,
    it is very simple,change your target strcute occurance,it wil solve your problem,
    If you want to know how to chnage the occurance take XSD in to XSL Spy and add max occurs to 999. then you can see the element occurace to 1..999.
    Regards,
    Raj

  • Multiple Currency in Idoc ACC_DOCUMENT02

    Hi,
    I am using IDOC ACC_DOCUMENT02 to post certain data in FI. It works fine also.
    We have a segment in this idoc type named as 'E1BPACCR09'(i.e. Currency). Following fields are there in this segment,
    AMT_DOCCUR - Document Currency
    EXCH_RATE - Exchange rate
    CURRENCY - Currency
    If i want to make payment in foreign currency e.g. in USD, i will enter USD in CURRENCY. Program will pick up the exchange rate and calculate the Local currency.
    But the requirement is , i have to enter Foreign as well as local currency (no need for exchange rate).
    Is there any way i can enter both the currency at same time in idoc?

    Don't have an answer, just a related question. In the case of a multi-national company, the document currency can be one amount, the equivalent in the local operation's functional currency a second (and not necessarily derivable via an exchange rate), and the reporting currency of the parent a third (also not necessarily derivable via an exchange rate). This is especially a challenge for data conversion, where many ledger balances reflect an historical rate or a blend of historical rates applied over time. The volume is generally too high to use tools like LSMW...what have others done to meet this challenge?

  • Problem in creating UDF to read multiple rows of IDOC segment

    Hi Experts,
    I am working on IDOC to File scenario, in message mapping i have to read segment of idoc (occurence of this segment is 0..4) and check the key of this segment and accordingly pass the value. I am creating a UDF to send the data in target field
    My logic in UDF is as follows
    if id = BB and payment = V
    return variable1
    else
    return variable2
    this logic is not working
    Note: The id BB is in second line of the segment and first line of the segment has id BA.
    Please help me to send me the correct logic.
    Regards,
    Shradha

    Hi Amit,
    My source and target structure are as follows
    My requirement is if FIIQUALI = BB than return D_1131 = 25 else D_1131= 20.
    +Source IDOC structure:+
    - <E1IDB02 SEGMENT="1">
      <FIIQUALI>BA</FIIQUALI>
      <FIIBKENN>206151</FIIBKENN>
      <FIIBKCDE>013</FIIBKCDE>
      <FIIBKNAM>BARCLAYS BANK PLC</FIIBKNAM>
      <FIIBKORT>NORTHAMPTON NN1 4YD</FIIBKORT>
      <FIIBLAND>GB</FIIBLAND>
      <FIIKONTO>18150680</FIIKONTO>
      <FIIKWAER>USD</FIIKWAER>
      <CTABNAME>Norman Jackson</CTABNAME>
      <FIIBRANCH>NTHAMPTON WELLINBOROUGH RD</FIIBRANCH>
      </E1IDB02>
    - <E1IDB02 SEGMENT="1">
      <FIIQUALI>BB</FIIQUALI>
      <FIIBKENN>BOFAUS3NWDC</FIIBKENN>
      <FIIBKCDE>002</FIIBKCDE>
      <FIIBKUKN>054001204</FIIBKUKN>
      <FIIBKUCD>003</FIIBKUCD>
      <FIIBKNAM>BOFA</FIIBKNAM>
      <FIIBKORT>WASHINGTON DC</FIIBKORT>
      <FIIBLAND>US</FIIBLAND>
      <FIIKONTO>1920901042</FIIKONTO>
      <FIIKNAME>VERISIGN INC</FIIKNAME>
      </E1IDB02>
    Target File structure:
    - <G_SSG2>
    - <S_FII>
      <D_3035>OR</D_3035>
    - <C_C078>
      <D_3194>18150680</D_3194>
      </C_C078>
    - <C_C088>
      <D_1131>25</D_1131>
      <D_3434>206151</D_3434>
      <D_1131_2>154</D_1131_2>
      <D_3055_2>133</D_3055_2>
      <D_3432>BARCLAYS BANK PLC</D_3432>
      <D_3436>NORTHAMPTON NN1 4YD</D_3436>
      </C_C088>
      </S_FII>
      </G_SSG2>
    - <G_SSG2>
    - <S_FII>
      <D_3035>BF</D_3035>
    - <C_C078>
      <D_3194>1920901042</D_3194>
      <D_3192>VERISIGN INC</D_3192>
      </C_C078>
    - <C_C088>
      <D_1131>20</D_1131>
      <D_3434>BOFAUS3NWDC</D_3434>
      <D_1131_2>154</D_1131_2>
      <D_3055_2>133</D_3055_2>
      <D_3432>BOFA</D_3432>
      <D_3436>WASHINGTON DC</D_3436>
      </C_C088>
      </S_FII>
      </G_SSG2>
    Regards,
    Shradha

  • Collect multiple type of idocs in one target message

    Hi,
    I want to collect several idocs (WP_PLU, WP_EAN) on one target message (FILE), group by partner.
    I known it's possible to to that using BPM but, because of performance reason, i can't use this option.
    There is another way to do it?
    Thanks,
    Carme.

    Hi ,
    Other than BPM you can do but it will be complex.
    Then you drop all the IDOC XML  file in a folder.
    And then pick up all the file using file adapter.
    File adapter can support attachments in Sender File adapter (NFS)
    you can use additional Files option - http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    one file will come as a main payload otheres will come as an attachment.
    Then in mapping you need read those attchment from input data and map it to target.
    Check this link: /people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
    Also this thread Attachment in Java mapping
    http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/Attachment.html

  • Multiple occurence of IDOC node for certain input combination in mapping

    Hi All,
    My scenario is as below:
    Input sturucture:
    FieldA
    FieldB
    FieldC
    FieldD
    FieldX
    FieldY
    FieldZ
    Output structure is IDOC WPUWBW01.
    Now field A,B,C and D forms key of my source record. So as far as key remains same i have to post all items in one idoc. I am able to achieve this with combination of split by value Fn and collapse context Fn.
    Now in addition to above if my Field B = "1200" and Field Y = "1" it should generate IDOC node twice ...
    and if Field B = "1200" and Field Y = "6" it should generate IDOC node once.
    Any idea how this can be achieved.
    Regards,
    Siddhesh S.Tawate
    PS: Also let me know how to use the container and queue in UDF's

    Now in addition to above if my Field B = "1200" and Field Y = "1" it should generate IDOC node twice ...
    and if Field B = "1200" and Field Y = "6" it should generate IDOC node once.
    duplicate the IDOC node twice so that you have three IDOC nodes in all.
    For two IDOC nodes apply the condition
    Field B = 1200
                        ------And ----ifWithoutElse     --------------------TargetIDOCNode
    Field Y = 1                     Then(Blank Constant)
    For the remaining IDOC node apply the condition:
    Field B = 1200
                        ------And ----ifWithoutElse     --------------------TargetIDOCNode
    Field Y = 6                     Then(Blank Constant)
    You can also try using createIf function....
    regards,
    Abhishek.

  • Multiple instance of idoc

    Hi ,
          I am using idoc to file scnerio.When i am testing idoc using we19 its working fine.But its always created 1 XML message for any number of idoc.I want to create seprate xml for each idoc.please suggest me.
    Below is source side view:
    <?xml version="1.0" encoding="UTF-8"?>
    <YDEBMAS_AM>
       <IDOC BEGIN="">
          <EDI_DC40 SEGMENT="">
             <TABNAM/>
             <MANDT/>
             </EDI_DC40>
          <E1KNA1M SEGMENT="">
             <MSGFN/>          
             </E1KNA1M>
       </IDOC>
       <IDOC BEGIN="">
          <EDI_DC40 SEGMENT="">
             <TABNAM/>
             <MANDT/>
          </EDI_DC40>
        <E1KNA1M SEGMENT="">
             <MSGFN/>
            </E1KNA1M>
       </IDOC>
    </YDEBMAS_AM>

    Hi,
    I am using idoc to file scnerio.When i am testing idoc using we19 its working fine.But its always created 1 XML message for any number of idoc.I want to create seprate xml for each idoc.please suggest me.
    Two settings you need to do:
    1.IN the partner profile WE20-select the receiver partner,in the outbound side select the message type and double click.Check what the Outbound Options has been set.Maximize packet size,change Output mode to 999 or so.
    2.Come to PI ESR,make a external definition of the IDOC that you have imported and go to the XSD change its maximum occurrence to 999 or so (it should not set like that by default).Use that External definition instead of the idoc interface for ur use.
    Now you are sending the packet from ECC in collection and PI is capable of holding those in collection .
    Check it.
    Cheers,
    Abhishek Paul.

  • Single file to multiple IDOC's (on Multiple R3 Clients):

    Hi,
    We have a complex Landscape with multiple (4) businesses (multiple R3) instances and most common R3 --> DEV 4 instances with 5 clients each, QAS 4 instances with 2 clients each with some additional clients, PRD 4 instances with a client each and Training 4 instances with 2 clients each in the Landscape along with BW systems.
    We are trying to implement standard MDM - XI - R3 distribution scenario. Only difference being MDM Production will be the Master distribution client and have to be distributing to all the R3 clients. For those who doesn't know SAP MDM - is Master Data Management Engine and within this scenario the output from MDM is standard XML IDOC file.
    To achieve this syndication is being planned as MDM production to distribute files to 4 businesses to 4 file share folders. These files will be picked up by XI production and will be distributing(Creating IDOCs) on multiple receivers (R3 --> DEV, QAS and PRD) clients of the respective instances.
    The one to one scenario is very simple to build MDM XML file from file adapter to R3 IDOC of IDOC adapter, but for our business it becomes one file to multiple R3 clients (IDOCs) on multiple R3 instances;
    My question is: Is there an easy way to configure single file to mutiple R3 client IDOC receivers scenario? Also there might be additions and deletions of the R3 clients based on business requirements. Is there any proposed or already implemented procedure to achieve this complex distribution?
    We have planned on trying to define a business system for each R3 client (DEV/QAS/PRD) and to have the integration directories configuration built for all the 47 clients that the data needs to be distributed. With IDOC Adapter is this the only way to go? Also, in future if there are additions or deletions of clients it becomes maintenance intensive and there won't be a quick way to stop the distribution?
    Your time and input is appreciated.
    Thanks and Regards,
    -Raj.

    Michal,
    Thanks for your answer and FAQ.
    I think I am confusing everyone with my long messages!
    We already have XI DEV, XI QAS, XI PRD.
    But business requirement for the global harmonization MDM scenario is that MDM PRD should be able to distribute the XML files (IDOC fields in GLMAST01 - IDOC format) to all the DEV, QAS and PRD (R3) systems in the landscape. For this distribution XI is used as the integration partner (File adapter picks up the XML file from MDM file share location and IDOC adapter creates an IDOC on the respective R3).
    For this specific scenario though XI-DEV and XI-QAS systems are present they are available only for testing phase. After the scenario is moved into production, XI-PRD should be able to pick up the XML file from MDM and distribute it to all the DEV, QAS, PRD R3 systems.
    Same file needs to be distributed to 20 DEV clients across 4 DEV instances, 27 QAS clients across 4 QAS instances and 12 PRD/TRN(training clients).
    Yes, as you said in your answer earlier deleting a client from the distribution is removing the client from the receiver determination (and removal of corresponding Interface determination, sender agreement and receiver agreement).
    Addition of a client for distribution is adding the client (business system) in receiver determination (and addition of of corresponding Interface determination, sender agreement and receiver agreement).
    Do I have to maintain all the 59 (Clients from different systems) sets of config within the ID and all the systems in SLD of XI - DEV/QAS/PRD? Even if I do so, Is this the right way to go, defining all the DEV/QAS/PRD clients within all the SLD's of XI -  DEV/QAS/PRD?
    I am not finding an easy way to architect this.
    I appreciate your time and patience.
    Thanks and regards,
    Rajani Kanth Yalamanchili.

Maybe you are looking for

  • OSX 10.8.2 made battery life on macbook pro early 2010 even worse

    After upgrading to mountain lion, like everyone else I noticed that my battery took a hit but from what I could tell I lost about an hour's worth of time at the most when I used to almost 6 - 7 hours. Now that I have upgraded to 10.8.2 my battery lif

  • Bug 6002713: Describe table@db_link gives an error that the object does not

    Not sure if this is correct place to report on a known bug, can't seem to find a bug site/database on the SQL Developer home page. Anyway in SQL Developer 1.2.1.32.13 release notes it says that the bug that stops you describing tables via a database

  • Semi colon madness

    At the end of my quiz, the email opens up fine and the information is there, but there is a semi-colon added to the end of my email address for some reason. This brings up a syntax error message from the email program. My quiz is going to go out to a

  • Execution of planning sequence

    Hello Forum, Can some one plz tell me How to execute a planning sequence before the execution of my layout. Im having a layout and i need to execute my planning sequnce each time before my layout gets executed. Plz suggest. regards, KK

  • Web Interface for Bex Maps in WAD 7.0

    Hi Everyone, I have a requirement to be able to display values in a table when an area on a map is clicked. This functionality is supported in 3.5 WAD where a property for a map layer could be set to affect values in corresponding tables within a tem