How to write file into multiple directories by using file adapter?

i need to write my file into multiple directories,i able to do in single directory.But i need to write to muliple directories.Please help me out.Thanks in advance.

If you are passing the values at runtime then you can loop it and and invoke the file adapter in loop by dynamically passing the value in invoke properties for "File Directory and File name" etc.

Similar Messages

  • How to write messages into system log(sm21) using c_write_syslog_entry

    Hi,
    May i know how to write my application messages into system log(sm21)
    using "c_write_syslog_entry". Any explanation regarding the Type. ID, Data
    will be useful with examples. Incase of any other FM's or C functions does
    the same Please let me know.
    Thanks
    Prasath

    Hello Prasanth
    I agree with Kareem that you should prefer the application log. If interface IF_RECA_MESSAGE_LIST is available on your SAP system this is the first choice for collecting messages AND storing them as application log.
    For an example you may have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    Not shown in this example is the storage of the application log. However, if you look at method CF_RECA_MESSAGE_LIST=>CREATE you see that you can add the application log references here.
    Regards
      Uwe

  • How to insert one table data into multiple tables by using procedure?

    How to insert one table data into multiple tables by using procedure?

    Below is the simple procedure. Try the below
    CREATE OR REPLACE PROCEDURE test_proc
    AS
    BEGIN
    INSERT ALL
      INTO emp_test1
      INTO emp_test2
      SELECT * FROM emp;
    END;
    If you want more examples you can refer below link
    multi-table inserts in oracle 9i
    Message was edited by: 000000

  • How to test File Adapter from EM Console

    Hi All,
    I have one issue with File Adapter where I am trying to implement a simple BPEL process. Below are the steps;
    1. I have created an empty BPEL process and then add a read file adapter to the left side which will read from a file aa.txt which is present in D:\work folder. File is having data like XXXX,YYYY,ZZZZ. (I have used Native builder for schema generation)
    2. Then I have added Write file adapter on the right side which will write to an other file bb.txt.
    Then I have rebuild and deploy this on weblogic SOA server but on the EM console I am not able to test it as Test button is disabled. Then how to test this scenario? Also I tried testing by placing a new file aa1.txt in the same directory with some content. Logically it should be picked up and then write it to the bb.txt but it is not happening.
    Can anyone please help me in this as how to troubleshoot it.
    Thanks
    RJ

    Thanks for the reply.
    So if i understood correctly it means that we cannot test it using EM console as we have read adapter on the left side because of which we have not exposed it as SOAP service. When we put any file in the D:\XXX then automatically read adapter will pick that up and create one instance in the EM console and then write adapter will write it into the destination file?
    But in our case no instance is getting created in the EM console even when I am copying a file to the directory. Below is the read_file.jca
    <adapter-config name="Read" adapter="File Adapter" wsdlLocation="Read.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="rj*.txt"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property name="DeleteFile" value="false"/>
    <property name="MinimumAge" value="0"/>
    <property name="PhysicalDirectory" value="D:\mywork"/>
    <property name="Recursive" value="true"/>
    <property name="PollingFrequency" value="60"/>
    <property name="IncludeFiles" value="rj.*\.txt"/>
    <property name="UseHeaders" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Please help as why it is not getting picked up?
    Regards
    RJ

  • "CLOSED":How to plan inventory from multiple orgs simultaneously using MRP?

    Hello everybody,
    How to plan inventory from multiple organizations simultaneously using SCP?
    My customer found that in supply chain planning (MRP) system always plans in single manufacturing organization, say, ATC, firstly. If set in organization item master, the source type as 'Inventory' and the source organization as another trading organization name, say, ANX. if there is insufficient inventory in ATC, SCP-MRP would plan in ANX, disregard of the inventory exist in ANX for the item.
    But for some items, there are both inventory in ATC and ANX and we want plan BOTH their inventory simultaneously instad of firstly ATC and then ANX.
    Is there any standard function in Oracle that can do so? I found that the sourcing rule cannot help in this case.
    A simple test case is described in
    https://gtcr.oracle.com/gtcr-dir/gtcr_4607/5580425.992/Alternative_to_plan_multi-org_MRP.doc
    Thanks
    Catalina
    Message was edited by:
    user447176

    Catalina,
    Net the inventory simultaneously? Its not quite clear what your client wants.
    Even in the old SCP, you can use sourcing rules to first net inventory in org1 and then net the inventory in org 2 via a transfer from rule. The key point is it is always incremental based on where you place teh demand and then you provide source to fill that demand.
    One restriction that ASCP still has up to 11.5.10 is that you can only have sourcing rules going in one direction. This means that you can't have a rule that sources ORG1 from ORG2 for item A, then have the revers in ORG2 sourcing from ORG1. That won't work, ASCP will randomly ignore one of the rules.
    The best choice may be to use GOP with a sourcing split % so that yo do consider the inventory in both orgs when demanding the order, but it would still be done by checking ORG1 then ORG2.
    Hope this helps.
    Kevin Creel

  • How to import metadata into EPMA application by using ODI

    Hi All,
    1.Can you tell anyone, how to import metadata into EPMA application by using ODI. Detailed steps with screen shots will be appreciated.
    2. What was the interface tables. How the interface tables will be useful while importing metadata into EPMA application (Detailed steps with screen shots will be appreciated.). And tell me the interface tables structure and work process. give me the clear idea bout interface tables. I don't know anything about interface tables.
    3.Which method(either using ODI or Interface tables) is optimized/bestcase for importing metadata into EPMA application.
    My database is Oracle 10g and I am using Planning 9.3.1.
    Thanks in advance.
    Thanks And Regards,
    Bhagya Lakshmi.

    Hi,
    Answer to your questions
    1. You can't import metadata directly into EPMA using ODI, the only option is use the EPMA interface tables which is your question 2.
    2. Interface tables are just a structure of database tables which you populate with metadata and then this is pushed into EPMA, the structure of the tables takes a while to get an understanding of. The best place to start would be the documentation :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/bpma_admin.pdf
    3. As explained in question 1 you can't use ODI directly to import metadata into EPMA but with a lot of hard work and effort you could probably populate interface tables from EPMA, though I must admit I am not a fan of the interface tables because I don't think they were designed with simplicity and ease of use in mind.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do I split a Large CSV file into Multiple CSV's Using Powershell

    I am a novice at powershell but this looks to be the best tool to do this task. have a csv file that looks like this:
    Date,Policy,Application
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    11/14/2013,Yes,AppBiz
    11/14/2013,Yes,AppBiz
    11/14/2013,Yes,AppBiz
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    Is it possible to split this CSV into multiple CSV's based on "Application".
    Lets say the output might look like:
    None.csv
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    10/13/2014,No,None
    AppBiz.csv
    11/14/2013,Yes,AppBiz
    11/14/2013,Yes,AppBiz
    11/14/2013,Yes,AppBiz
    PeopleBiz.csv
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    07/04/2013,No,PeopleBiz
    Any help would be greatly appreciated

    I think this might be what you want:
    Import-Csv applications.csv |
    Group Application |
    foreach {
    $_.Group | Export-Csv "$($_.Name).csv" -NoTypeInformation
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    Very nice! 4x faster..
    I doubt the OP will get what you just did there..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • How to write Header and Footer elements in Write file Adapter

    Hi,
    I have a requirement to write the file.The write file contains header and footer elements ,how we can write these elements. These elements are fixed for all files.these are not come from any input.below is the sample file.
    $begintable
    name,Id,Desg
    ad,12,it
    $endtable

    Hi,
    I have created the XSD for you, and i created a sample SOA Composite which writes the file same like what you want, the below XSD can write a file with one header record, multiple data records and one trailer record.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/WriteFile"
    targetNamespace="http://TargetNamespace.com/WriteFile"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:version="NXSD" nxsd:stream="chars" nxsd:encoding="UTF-8">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <!--xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=","-->
    <xsd:sequence>
    <xsd:element name="RECORD1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="header" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD2" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="data1" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy=","
    nxsd:quotedBy='"'/>
    <xsd:element name="data2" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy=","
    nxsd:quotedBy='"'/>
    <xsd:element name="data3" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD4" nxsd:conditionValue="$endtable">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="trailer" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Hope this helps,
    N

  • How to write file to server side?

    hello,
    Could anyone pls help me...
    I just want to see an example how can I write to a file that is placed at the server(save place as the applet).
    p.s. I have been successfully read a file from there...
    Suppose I have signed the applet (self-signed), anymore security problem I need to pay attention to?
    Thanks a lot!!

    hi mandy, from the applet u can send the file to be written into the server to a servlet running in server and the servlet can in turn write the file into the servlet. by applet - servlet communication, u can easily read and write files to the server.

  • How to write files to the filesystem with portal/plsql

    Hi,
    is there a way to write files to the filesystem via Portal?
    Or can i call an external programm (perl, php) to do so, while portal writes further information to database?
    thank you for the help
    Ralf Schmitt

    Hi Ralf,
    my primary task is to publish download-links to files stored ... somewhere as a linklist. I tried to store and download files to/from the database but i cant get it to run. Upload works, download doesn't.
    (i'm not talking about a single form-query-download-link! I need a report-like linklist)If you want to do this you'll have to write some code but sure it's possible - i did it myself.
    The links in the link list in your report should call a stored function retrieving the files from Wwdoc_document or whatever is the document table defined in your DAD. Simply select BLOB_CONTENT into a BLOB variable from the table, provided you know what file to read :-) The function would then read the BLOBs and send them to the client's browser via DBMS_LOB - it's poor design but it works just as smooth as it could and it's really performing. This would simply display the file into your browser or prompt for file save location, depending on what browser you are using and its client settings.
    I guess this is not so clear, if you want some more details feel free to e-mail me at [email protected]
    Another way would be to use wpg_docload to both download and upload files to/from the DB.
    Now i try to figure out if it is possible to store the files to the filesystem and write only additional info like description or path into db.Again, yes, it is. I can't recall exactly how I did it ^_^ but the trick is to create a virtual directory in the DB - pointing at a physical directory on the file system you want to write to, and you have to have full read-write permission on the directory itself, and its path must be included in the utl_file_dir database parameter. Then you use both COM Automation or UTL_FILE to write files.
    would it be possible to let a portal-form write info to the db and then pass the file to a php-script?
    regards,
    Ralf Schmitt

  • How to write settings into xml

    I?ve got a small class that returns the names of each JInternalFrame. The code is below; I have an xml file where I am saving various settings. In the xml file I have created a tag and in that tag I want to write all the name of the JInternalFrames. Can someone help me with writing a method which will write the frames names into the xml tag.
    package persisted_display_settings;
    import javax.swing.*;
    import mdi_internal_frame.FrameManager;
    import mdi_internal_frame.TSFrame;
    import state_manager.StateManager.Prerequisite;
    * The PersistDisplaySettings looks after the persisted screen settings for each frame.
    * It allows the user to save the layout settings of each screen so that the user doesn't
    * have to reconfigure layout every time they restart
    public class PersistDisplaySettings {
         * Gets the name of all TS frames and the last modified layout information and saves
         * this in a xml file
         * @param projectDir is the project directory
         public void SaveCurrentTsProfile(String projectDir) {
              System.out.println("Start Here");
              System.out.println(projectDir);
              JInternalFrame[] frames = FrameManager.getJDesktopTS().getAllFrames();
              System.out.println(frames.length);
    // Iterate through each frame that is open and get the names
              // Only get the names of the frames that are saved
              for (int noOfFrames = 0; noOfFrames < frames.length; noOfFrames++) {
                   String tsName = "";
                   boolean unsaved = true;
                   //Check to make sure the frames are TS frames
                   if (frames[noOfFrames] instanceof TSFrame) {        
                        JInternalFrame tsFrames = frames[noOfFrames];
                        if(tsFrames.getTitle().contains(":-")){
                             tsName = tsFrames.getTitle();
                             tsName = tsName.substring(17);
                             unsaved = getSavedTSNames(tsFrames);
                        else if(tsFrames.getTitle().contains("-")){
                             tsName = tsFrames.getTitle();
                             tsName = tsName.substring(16);
                             unsaved = getSavedTSNames(tsFrames);
                        if(!unsaved){
                             System.out.println(tsName);
              System.out.println("point 2");
              FrameManager.getSelectedTSFrame().isMaximum();
              System.out.println(FrameManager.getSelectedTSFrame());
              System.out.println(FrameManager.getSelectedTSFrame().isMaximum());
         * Returns all the saved TS frame names. This method is Called
         * by the SaveCurrentTsProfile method
         * @param save boolean flgg indicating if GUI should save modified test sequences
         public boolean getSavedTSNames(JInternalFrame frame) {
                        boolean[] modified = ((TSFrame)frame).stateManager
                        .getPrereqState(Prerequisite.TS_MODIFIED);
                        return modified[0];     
    }

    I have a GUI project which has frames consisting of data in table view. What i'm trying to do is save the layout of the frames into an xml file so that the user doesn't have to reconfigure layout every time they restart the application. The code which i have attached gets the names of each frame.
    I also have another class which is currently generating various other settings and writing it into the xml file. The xml file looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <PTMViewProfile>
    - <viewProfile>
    <testSequences />
    - <tsName>
    <tsName tag="arefa" />
    </tsName>
    <tsStatus />
    - <columns>
    - <tcc>
    <column tag="usim" visible="false" width="75" index="-1" />
    <column tag="dev" visible="false" width="75" index="-1" />
    <column tag="tp" visible="false" width="75" index="-1" />
    <column tag="iwd" visible="false" width="75" index="-1" />
    <column tag="tdma" visible="false" width="75" index="-1" />
    <column tag="selref" visible="true" width="75" index="2" />
    <column tag="md" visible="false" width="75" index="-1" />
    <column tag="timer" visible="false" width="75" index="-1" />
    <column tag="description" visible="false" width="75" index="-1" />
    <column tag="name" visible="true" width="120" index="0" />
    <column tag="domain" visible="true" width="75" index="5" />
    <column tag="note" visible="false" width="75" index="-1" />
    <column tag="hsdpa" visible="false" width="75" index="-1" />
    <column tag="wi" visible="true" width="75" index="4" />
    <column tag="ttcn" visible="false" width="75" index="-1" />
    <column tag="approval" visible="false" width="75" index="-1" />
    <column tag="inter" visible="false" width="75" index="-1" />
    <column tag="duration" visible="false" width="75" index="-1" />
    <column tag="etsi" visible="true" width="75" index="1" />
    <column tag="hsupa" visible="false" width="75" index="-1" />
    <column tag="auto" visible="true" width="75" index="3" />
    <column tag="cipher" visible="false" width="75" index="-1" />
    <column tag="suite" visible="false" width="75" index="-1" />
    <column tag="shield" visible="false" width="75" index="-1" />
    <column tag="hop" visible="false" width="75" index="-1" />
    </tcc>
    In the - <tsName> i want to print out all the names of the frames.
    This is the method thats creating the tags in the xml file. This method is stored in a different class;
    public Element writeViewProfile(String name) {
              Message.logInfo("Saving View Profile XML Document:" + name);
              Element root = XMLManager.createNamedElement("PTMViewProfile");
              Element viewProfile = XMLManager.createNamedChildElement(root, xmlViewTag);
              Element tsNameTag = XMLManager.createNamedChildElement(viewProfile, xmlTSFrameTag);
              Element tsFrameName = XMLManager.createNamedChildElement(viewProfile, xmlFrameTag);
              writeTsFrame(tsFrameName, "Arefa");
              Element tsFrameStatus = XMLManager.createNamedChildElement(viewProfile, xmlFrameStatusTag);
              Element columns = XMLManager.createNamedChildElement(viewProfile, xmlColumnsTag);
              writeColumnSet(columns, xmlTCCColumnTag);
              writeColumnSet(columns, xmlTSColumnTag);
              writeColumnSet(columns, xmlResTCCColumnTag);
              writeColumnSet(columns, xmlResTSColumnTag);
              Element sashes = XMLManager.createNamedChildElement(viewProfile, xmlSashesTag);
              for (int i = 0; i < sashList.size(); i++) {
                   writeSash(sashes, sashList.get(i));
              return root;
         };This is the method thats writing the xml file;
    private void saveProfile(String name) {
              if (!readyToSave)
                   return;
              ViewProfile viewProfile = viewProfiles.get(currentViewProfileName);
              if (viewProfile != null) {
                   // try {
                   Element root = viewProfile.writeViewProfile("ptmProfile");
                   // create an xml document with our data
                   Document doc = new Document(root);
                   // dump the document to file
                   XMLManager.dumpXMLDocToFile(doc, "ptmProfile", FileManager.baseDir());
                   // catch (Exception ignore) {
                   // System.out.println(ignore.getMessage() + ignore.getStackTrace());
         }In the xml file how can i print the names of the frames into that <tsName> tag using the SaveCurrentTsProfile() method .
    I hope this helps you understand whats hapenning.
    Thanks!

  • How to write file at server end?

    Hi,
    I use a af:inputFile component to receive uploaded files. And want to write files to the directory of server. However, when execute java.io.File.createNewFile(), it throw exception. How to resolve it?
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import javax.faces.event.ValueChangeEvent;
    import java.io.InputStream;
    import java.io.File;
    public class UploadFileHandler {
        public void doUpload(ValueChangeEvent event) throws IOException {
            File file = new File("C:\temp.txt");
            *file.createNewFile();* //Error happen here.
    }

    Hi Cheney,
    It is good practice to use System.getProperty("file.separator") instead of hardcoding "/" or "\" .
    Though your issue is resolved by using "//", you might want to consider changing to the above.
    -Arun

  • How  applet write file in local system by URL instead of FileOutputStream()

    hi,
    how can applet write a file in local system through URL instead of FileOupStream()
    plz.....plz.....plz......
    URL url = new URL(" file://c:/temp.txt");
    in this url how applet can write
    plz....

    URL uses http to cummunicate, this means you can send and receive data using the http
    protocol.
    The OS doesn't do anything with this, you need a http server to interpret these messages
    and take appropriate action (with server side script or CGI).
    So if the client has a http server installed and has server side script thad does
    something with your http request (that's what a url does) than it is possible.
    Since both having a http server , server side script and or CGI have nothing to do with
    signed applets I will not answer your question here.
    But the mail reason I won't answer it is because it makes no sence to use a URL to write
    to the local file system.

  • How to write files to phweb share drive(phweb is nonsap system)

    Hi all,
             Is there any way to write files directly to phweb share drive(phweb is Nonsap system).
    Thanks,
    Balalji

    Hi Rob,
               Yaa I got .But how to use that function modules and when to use.I heard that first we have to write to presenation server and then we can use one of those function modules.Is it right?
    Thanks,
    Balaji

  • How to spool data into multiple Excel sheet if result is more then 65k rows

    Hi all,
    Wann spool data into multiple excel sheet bocz my resultant no of rows are more then 65k.
    Thanks to all in advance.....

    many choices
    1) migrate to a newer version of Excel
    2) split the files after spooling
    for instance with split
    split -l65000 file.txtor with perl, java, vb or what-so-ever
    3) do more than one report by using rownum
    spool f1
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r<6 ;
    spool off
    spool f2
    select empno,ename  from (select * from (select rownum r,empno,ename from emp order by empno) where r<11) where r>5 ;
    spool off
    spool f3
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r>10 ;
    spool off

Maybe you are looking for