IDOC to (multiple) file design help

Hi all,
i am trying to do a IDOC to multiple file scenario.
Requirement:
An outbound idoc has 4 segments.
now i want the output of first 2 segments in one file and second 2 segments in another file.
How to approach this design (without BPM).
Waiting for reply,
Senthilprakash.

Hi,
Use multimapping (use external definition of Idoc in source side) in which target message occurance should be 0..unbounded.
  write one UDF like below
for(int i=1;i<=4;i++)
     if(i==2||i==4){
     result.addValue("");;
                 so that it will split the target structure 2 time(when i=2 and i=4). so that you map all the source fields to target fields(all one to one mapping except UDF).
start doing this so that you will get the required output easily.
thanks,
madhu

Similar Messages

  • Idoc to Multiple file scenario

    Hi Experts,
    My scenario is IDOC to Multiple files..
    IDOC will be triggered from the ECC system and i have three differient structures and need to drop those 3 files in the ftp server at the target system.
    Here we can use multimapping for such scenario but the problem here is ..
    In my scenario for all the 3 mappings i am using combination of message mapping and xslt mapping as below
    1st case:
    Idoc -
    Message mapping -
      Target First File.
    XSLT Mapping1
    XSLT Mapping2
    XSLT Mapping3
    XSLT Mapping4    -
    The output of the xslt 4th mapping will go to the target ftp server
    In similar for the other 2 mappings also uses the combination of messag mapping and xslt mapping.
    Here as the receiver system is one in the interface determination (PI 7.1-- NO Enhanced determination)when i add these operation mapping in the interface determination when i execute the scenario all the operation mappings are not getting executed.
    For example;; If the first target file has no records then it is not executing the 2nd operaion mapping, does the occurence of the operation mapping needs to changed.
    could anyone suggest on this..
    Thanks,
    sai

    Hi,
    Why cannot you use three mappings when you want to generate the three files for the same input instead of multimapping as the multimapping generates either of the three messages only...
    you can later provide the condition at the interface determination to execute the mappings if not all mappings to be executed..
    if there are no conditions provided by you at the interface determination level then mappings will get executed automatically..
    provided your mapping is working fine..so in your case check /test the message mapping..
    HTH
    Rajesh

  • HOW TO - Create new from clipboard and process multiple files - please help

    Need help - have new version of photoshop on trial only ATM...
    Want to know - HOW TO:
    1. Create new from clipbaord
    2. Process multiple files
    Please help.

    For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
    You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
    For processing multiple files,
    File > Automate > Batch or
    File > Scripts > Image Processor...
    Check the User guide or google information for those commands if you have specific needs.
    Gene

  • IDOC to multiple file with dynamic file names with same content

    Hi,
    My scenario is from IDOC to file.
    The number of files which i need to create is dynamic, which depends on the number of plants.
    I have a Z-table where i will maintin list of all plants ( non SAP plant names).
    I need to fetch the data from this z-table and depending on the nunber of plants i need to create the file for each plant and fiel name should contain plant name in it. EX: abc_<plant>_datatype.txt
    I want to use only receiver one CC, and files should be created in the same directory.
    Can we do this without BPM?

    Hi,
    You can use the Mapping lookup concept to fetch the plant names from Z-tables and then you can use the variable substitution technique to resolve your purpose.
    Here you need to create multiple interfaces ie.e per plant to create multiple files. You can use common Communication channel for all.
    Mapping Lookup
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
    Mapping Lookups - RFC API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
    Variable Substitution
    An interesting usage of Variable Substitution in XI
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    SP12 -Variable Substitution option
    Receiver File Adapter:Variable substitution :FATAL  ERROR
    Thanks
    Swarup

  • Multiple Idocs to Multiple files

    Hi,
    I have a Idoc to File Scenario, where I get multiple Idocs and I need to generate multiple files with different file names
    Assume I am using file XML port at SAP to collect the Idocs.
    Target files are generated based on two field values (Delivery Type and Shipping Point)from Idoc.
    Eg:
    I have three Idocs at a time.
    Idoc1 has Delivery Type = EL & Shipping Point = 2550 --> Target file name is test1.bpr
    Idoc2 has Delivery Type = LF & Shipping Point = 2551 --> Target file name is test2.bps
    Idoc3 has Delivery Type = NL & Shipping Point = 2552 --> Target file name is test3.bpr and test3.bps
    1) Does Mult-mapping support in the case... ?
    2) Do I need to change the Idoc Occurrence 0 to unbounded ?
    3) What will be the Occurrences in the interface Mapping
    4) Can i generate Multiple fileswith different names at one time as specified above using Dynamic Configuration?
    5) What will be the Target Structure Occurrence ?
    Thanks,
    Varun

    Hi,
    Though I am using Multi - Mapping only 1 file is being created. I tested with two Idocs, where 2 files should be created.
    In Moni, under Payload,  I can see 2 sets of Main Document and SubMainDocument been created.
    How to generate 2 files/multiple files ?
    If Dynamic Configuration is not supported in case of Multi Mapping, If I want to use Variable Substitution, then What will be the Target path to be defined in the comm channel since Multi mapping is there. I am trying to define for Action field. Does Variable Substitution support Attributes in the aml payload ?
    My target structure
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:Root xmlns:ns1="urn:ap:xi:dwn:Logi:100">
    - <Shipment Company="XX" Warehouse="01" ErpOrder="0830001212">
      <Action>0830001212_2551.bpr</Action>
      <Customer Customer="DEMO" Company="DEMO" />
      </Shipment>
      </ns1:Root>
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
    <Shipment>
    <Action>0830001212_2551.bpr</Action>
    </Shipment>
    </root>
    Shipment Occurrence is 0 to unbounded and above root I have Messages and message1 node (since Multi mapping)..
    so How do I specify Path for variable substitution in this case, i tried all possibilities, but i am getting error as
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var2: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var2
    I am working on PI 7.0 SP 21
    Thanks
    Edited by: Varun Reddy on May 9, 2011 4:38 PM

  • 1:N mapping without using BPM -- IDOC to multiple files

    Hi all,
    I am facing a problem while sending multiple files,
    I need to send files ( File1, File2 or FIle3) ...
    I was able to successfully send the first 2 files and along with it the 3rd file is being created without any data... How to stop this file( either file2 or file 3 should be created) in creating..
    I have done the sceanrio like this, )ALL the source and target files are XSD's imported)
    In the Message Mapping <b>Messages Tab</b>
    <b>Source is AFS_DELVRY03   occurence is 1,
    Target files
    rootI8 occurence is 1,
    rootI9 occurence is 0...1,
    rootIB occurence is 0...1</b>
    I have done all the maping part , problem is all 3 files are being created(eventhough 2nd or 3rd has no data) , I need rootIB, either rootI9 or rootIB based on condition,
    So any one has done the similar scenario, If please suggest me how to hadnle so that only 2nd or 3rd file should be created,
    In Interface Determination i have selected the extended option also...
    Should i do any specific handling in the Configuration part or should i create more than one mapping?..
    U r suggestions are welcome and will be rewarded with points,
    Regards,
    sridhar

    Venu,
    Using a BPM, you can do the mapping / Split as needed and then send the files individually, using a Sens Step as needed. There are multiple ways in which this can be done with a BPM.
    But, for a solution without a BPM, as the requirement is such that only 2 of the 3 target messages need to be created, multimapping would not work and the need for conditional routing occurs.So, this would require additional mappings.
    The solution is either use a BPM or  do the logic using Conditional Routing. Ofcourse the second solution requires 3 mapping programs , but you are avoiding a BPM which can cause a perfromance bottle neck.
    If perfromance cannot become a bottle neck, then using BPM would make much more sense , but again it all boils down to the exact requirements and the feasibilty of the solutions!
    Regards,
    Bhavesh

  • 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

  • Single iDOc to multiple files based on a condition

    Hi Friends
    need your help in one scenario which is something like this:
    there is one iDOC as the sender and this iDOC has to be mapped to files based on a condition means let us say if there is a particular field "R" in iDOC(WPDBBYY01) than it should go and create the file "ABC"
    and if the particlar field is P or G or M than it should create another 2 files named "XYZ" and "WUV" .
    Please guide me how can i put this condition ?
    Any help would be rewarded with points
    Thanks

    Have a single receiver and 2 inbound interfaces.
    So you will have 2 different mappings. In the first mappng source is IDOC and the target is file ABC.
    In the second mappping the source is IDOC and the target is 2 files XYZ and WUV.
    In Interface determination, add both the inbound interfaces and put the condition for each interface.
    Regards,
    Jaishankar

  • Idoc to multiple file...

    Hi Experts,
    My Scenario is : Idoc to File We are using PI 7.1..
    Requirement is when i trigger an Idoc,  at the target end at one location some fields of Idoc needs to be dropped as an .txt file and some fields of idoc needs to be dropped as an XML file in the other location of same FTP server.
    Eg: If Idoc has 40 fields, in the txt file first 30 fields and in the XML file lat 30 fields needs to be dropped there is no condition checked for dropping the files, when an idoc triggers the contents of IDocs needs to be passed to both text and as well as XML file.
    The file names for the both should be dynamically configured.
    In ESR: --> Idoc needs to be imported, one data type for text file and another data type for xml file. so 2 data types & 2 message types, 2 services interfaces, one message mapping ( Need to use Multi Mapping), one Operation mapping.
    In ID:  -->  My doubts: How many receiver communication channels are required? As we are using multi mapping  i think we need to use only one reciver comm channel ( Correct me if i am wrong).
    what are the other configurations required here the receiver system is one so one reciever determination and one interface determination.
    Note: File names for both the files ( Text and XML) needs to be dynamically configured.
    Suggest me whcih one should be used either Variable substitution or Dynamic UDF..
    Your valuable inputs are appreciated..
    Thanks,
    --Kishore.

    Hi Mike & Abhi,
    At the target end we are using File Adapter and it basically relies on Java Stack, Since we are using multimapping with out checking any condition both the files needs to be dropped at the target directory,
    so as the receiver system is one do we need more than one receiver determination i think it is not required ..
    how many Interface determinations are required. (If we use the both message types in single service interface, i belive with one interface determination can we achive this.. else anyone will execute)
    Correct me if i am wrong
    Thanks,
    --Kishore

  • How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    Did you check the help page for Correct Camera Distortion and Process multiple file
    Correct Camera Distortion: http://helpx.adobe.com/photoshop-elements/using/retouching-correcting.html#main-pars_headi ng_5
    Process multiple files: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6

  • Creation of multiple files as per  segment repeating multple times  in IDOC

    Hi SapAll.
    i have got a  requirement where in an IDOC to File Interface pi need to create 3 different files with same content but with different names based on single Idoc-Segment.
    its an IDOC to 3 File Inteface.
    the file names will be determined by the IDOC-SEGMENT(Zregion)-Field (where Zregion Which will repeate for 3 times )
    for achiving this
    i just created 3 message (Service )Interfaces and one message mapping,3 Interface(Operation) mappings in the design and In the configuration i created three reciever communication channels with one reciever detarmination ,one Interface determination and 3 reciever agreements (with 3 communication channels 1 for each)
    in the Interface Determination i just defined 3 operation mappings,3 reciever Service Interfaces with one condition each.
    the condition is like below
    (/ZARTMAS05/IDOC/Z1EDRMDFRH_REGION01/REGION = JNB) then Rec Interface1
    (/ZARTMAS05/IDOC/Z1EDRMDFRH_REGION01/REGION = DBN) then Rec Interfacde2
    (/ZARTMAS05/IDOC/Z1EDRMDFRH_REGION01/REGION = CPT) then Rec Interface 3 where (/ZARTMAS05 is the sender idoc.
    but iam getting only one file in the reciever side instead of 3 files.
    can any body help me in providing me the differnt solutions for this without use of any script executions.
    will be waiitng for response.
    regards.
    Varma

    what ever you designed if you want to create always three files then your approach is correct.
    if you want create multiple files based on all the condition you you have to change the logic as like below.
    your message mapping sould me - one source target message type -> three traget message type all are occurance is 0..1
    and check the message type level contion if the region=ABCD create the first message type..
    same thing in your interface determination one source interface -> target three interface occrance is 0..1
    ID Steps - 1 RD, 1 ID, 3 Receiver coom channesl and 3 receiver aggreee...
    after develope this scenario it will split different message types in SXMb_MONI under the Technical Routing...payload level.
    hope it will help you to solve your requirement...
    Regards,
    Venu.

  • 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

  • Idoc outbound to file with multiple records

    Hi Friends,
    I want to export multiple materials into one flat file per ale (idoc).
    I know I can create îdocs per "bd10" and download into file per WE19,
    but only several files not many idocs in one file.
    Can somebody help me with this requirement.
    Actually I want to extract material data per Idoc and import it later per LSMW.
    Many Thanks.
    Jimbob

    Your file port defintion (WE21) specifies the function module for creating the pathname (path + filename) for the IDOC file; most likely , it's EDI_PATH_CREATE_CLIENT_DOCNUM.  You can replace this with your own Z-function or one of the other EDI_PATH_CREATE_ functions that will use the same path name over and over.  You would not need to change the write mode, since it's already append mode by default in the system.  Of course, you are correct, there are many other approaches available to get the data moved...

  • Can't create a multiple file PDF from PDF forms created in Designer

    Hi
    I want to create a single PDF which combines 6 pdf forms created in Adobe Designer (all as separate pages).
    When I try to create a single PDF from these multiple files using the "Create a PDF from Multiple files" command, my A-3D won't let me do this returning a dialog box saying
    "The file "filename.pdf" is protected. It cannot be used for this command".
    I can't find any properties that control this, either in the original file or in A-3D. Can I overcome this and how?
    Many thanks in anticipation.
    Phil

    Designer-created files aren't really PDF files any more and cannot be
    edited or combined in Acrobat (including Acrobat 3D). You CAN make a
    package of them, however, in Combine Files.
    Aandi Inston

  • HR - XI - External System: one IDOC to multiple XML Files

    Hi,
    I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files:
    The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000).
    The IDOC will be generated with change pointers with all the needed filters (I can add/remove if needed).
    My goal is to generate 3 types of XML files:
    - 1 for the persons (containing basic info like name, firstname, persnr,etc)
    - 1 for the various unit (with basic info of unit like number, description & name)
    - 1 for the links between persons and units (this person is linked with that unit)
    The structures of the 3 XML files are know and can be imported via XSD definition.
    Do I need to use BPM for doing so or is there a way to do that with simple mapping?
    If BPM is needed, as I new to that, if you have a link to a begginer guide, fell free to send it
    Cheers,
    greg

    hi,
      For your scenario there is no need of BPM.
      In message mapping select the message tag.
      In the target add 3 message types.
      Just map the fields.Go to Interface mapping add the 3 message in the target.
      Get the mapping.
      In ID sender agreement,Receiver Determination is same.
      In Interface Determination select extended.Get the mapping.
      Create 3 Receiver agreement for each Receiver.
    Regards,
    Prakasu

Maybe you are looking for

  • How to make use of AM Pool Monitor

    Hi, I get Java.lang.OutOfMemory when i run my OA application depoyed in the server. (It works fine for 5 to 6 rounds of testing.next time when i access the page I get the error) Oracle FAQ answer suggests to make use of AM pool Monitor. What is this

  • Addresses migration

    Hi all, I'm starting migrating a address base into my system via LSMW and RSADRLSM02. I have some basic problem with this program RSADRLSM02. I don't know where to fing logical patch to log file. In specyfing files I configured converted data to be s

  • Need for help

    can any body help me. I hv taken business area GSBER in my report. when I run my report it come and showing like 1101.but when we filter it and select any one then it shows 1101######.while it should come 1101. I hv taken GSBER TYPE BSIS-GSBER. event

  • FRM-41214 unable to run report from forms with parameters

    Hi all, I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly. I used set_report_object_property to pass the parameters. Any clues to solve this problem? Pr

  • Safari can't open webpage after lion upgrade

    safari unable to open webpage, occuring after upgrade to Lion