How do i create file  dynamically??

hi all,
i am trying to insert data by reading it from a table in the database and then writing into a file.
My problem is i do not want to specify the file name in the Definition tab/resourcename ...i need the file to be created dynamically in the folder specified and then write the contents of the table to that file..
is it posiible??
Regards
Ashwin...

hi GS,
you are right!!!
i have taken a source data store and a target data store.The source data store is a database table and in the resource name i have mentioned is table name from where i have to read the data..
in the target data store i have mentioned the file name into which it will write,also in the file i have specified the column names ,reversed the same,and i have mapped it in the interface against the table columns..
Now when i execute the interface it writes the content of the table in the file ..
But i do not want to specify the name of the file in the target data store, instead i want it to create the file itself and then write the contents in the file..
are you getting the picture?
regards
Ashwin..

Similar Messages

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • How can I create files in unicode format without "byte order mark"?

    Hello together,
    I have to export files in UTF-8 format and have to send them to another partner system which works with linux as operating system.
    I have tried the different possibities to create files with ABAP. But nothing works 100% how I want.
    Some examples:
    1.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    If I create a file in this way and download it from application server to local system the result for file format in a unicode text edior like NotePad is "ANSI AS UTF-8". This means I have no BYTE ORDER MARK inside.
    But it is also possible that the file format is only ANSI if the file contains no "special characters", isn't it?
    In my test cases I create 3 files. 2 of them has format "ANSI AS UTF-8", and one only "ANSII".
    After transfer to Linux I get as result 2 times UTF8 and one time ASCII as file format.
    2.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE ORDER MARK.
    With this syntax the result in local editor looks like ok. I get as format really "UTF-8".
    But I get problems with the system which receives the files.
    All files has the file format UTF-8 on Linux but the interface / script can not read the file with BYTE ORDER MARK.
    This is a very big problem for me.
    Do anybody of you know if it possible to force creation in UTF-8 without a BYTE ORDER MARK?
    This means more or less the first example but all files should have UTF-8 format!
    Thanks in advance
    Christian

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • How can i create a dynamic structure based on my input from a select-option

    Hello,
    This is to develop a custom report in FI for G/L Balance based on company code.
    I have an input select-option for Company code.
    Based on the range of company code my output layout should be modified.
    I am not very much sure to create a dynamic internal based on the input from a select-option.
    Can any one please let me know how can i do this.
    I would appreciate for anyone who turns up quickly.
    Thank you,
    With regs,
    Anitha Joss.

    See the following program, it builds a dynamic internal table based on the company codes from the select option. 
    report zrich_0001 .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    data: it001 type table of t001 with header line.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for it001-bukrs.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001
                     where bukrs in s_bukrs.
      perform build_dyn_itab.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = 'PERIOD' .
      wa_it_fldcat-datatype = 'CHAR'.
      wa_it_fldcat-intlen = 6.
      append wa_it_fldcat to it_fldcat .
      loop at it001.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = it001-bukrs .
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 4.
        append wa_it_fldcat to it_fldcat .
      endloop.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    Regards,
    Rich Heilman

  • Creating Files Dynamically based on Condition

    Hi Experts,
    I want to create a scenario in which I want to have N number of target files based on some condition.
    Suppose I have following Source structure .
    <ns0:MT_Employee_Src xmlns:ns0="urn://FileToFile_ERD">
       <Details>
          <EmpId>1</EmpId>
          <Name>Rabi</Name>
          <Designation>ABAP</Designation>
       </Details>
          <EmpId>4</EmpId>
          <Name>Satya</Name>
          <Designation>ABAP</Designation>
       </Details>
    </ns0:MT_Employee_Src>
    My requirement is I want to have 2 different target files based on EmpId.
    And this should be dynamic that means N number of EmpId in my source will create N number of files.
    Can anyone help me to solve this?
    Any kind of suggestion will be appreciated.
    Thanks
    Rabi

    Hi All,
    As my requirement was to create N files dynamically based on some condition so I first used 1:N multimapping without BPM.
    Then I followed RP's steps.
    Follow those steps
    1) in the message Mapping go to Signature T..Outbounded.
    2)later go back to main tab . you shoud create a mapping like this:
    3)<EmpId>--> change the context to MT_Employee_Src. to do that press right button on the field and go to context menu option.
    map this field to the proper header target structure E.X: MT_Employee_Tgt
    4) doing this you will create as many target files as <EmpId> you receive.
    5) map the rest of the fields
    This is great.And  this helped me a lot and finally gave solution.
    I want to share one thing that I faced.
    when you are doing 1:N multi-mapping then you have to change the occurrence of target .
    Then your source and target structure will be changed .If you are taking the source schema from mapping then remove the extra tags those got generated due to multi mapping such as
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    </ns0:Message1>
      </ns0:Messages>
    And then use the file and it will work fine.
    Thanks
    Rabi

  • How do I create files in Captivate 6 and save them in a lower version?

    I have Captive 6 at home and at work we are using 5.5.with no plans to upgrade.  How do I create or edit in Captivate 6 and still save files so my coleagues can contribute using the software we are given at work?

    Only between 6 and 7 this is possible, not with previous versions. And even between 6 and 7 you can have weird things happening. It has nothing to do with being a normal file or a template, I don't know why you tell that?
    OP was talking about 5.5 and 6, and there this is NOT possible at all.

  • How do I create a Dynamic PDF in ColdFusion

    I am using ColdFusion CS4 and I need to create a dynamic PDF certificate for the user when they finish a short test.
    Their name is in a session var and should dynamically enter in to the Name field of the certificate as well as the date.
    The user can print The PDF certificate, which must be protected to Allow Print only.
    I have a PDF created in Adobe Lifecycle Designer. This contains all the data and a text field Name and Data that needs the dynamic input from ColdFusion.
    <cfpdfform action="populate" source="certificate.pdf">
          <cfpdfsubform name="form1">
                <cfpdfsubform name="page1">
                      <cfpdfformparam name="employeeName" value="John Hollings" />
                      <cfpdfformparam name="date" value="#dateformat(now(), 'dd mmmm, yyyy')#" />
                      <cfpdfformparam name="submitURL" value="#CGI.SCRIPT_NAME#" />
                      </cfpdfsubform>
          </cfpdfsubform>
    </cfpdfform>
    Thsi work but the PDF textFields are open to edit, I need to lock down the PDF so only printing can operate...
    No Copy of data
    No Saving the file (if possible)
    Only print and close

    act332 wrote:
    If I make a form in Adobe Pro9 it opens Lifecycle and I am back there.
    Unfortunately, I am not using Acrobat 9/LiveCycle. So I cannot really provide any specifics there. For usage questions, you might try asking on the Acrobat/LiveCycle forums.   But from CF's perspective, the key is the form's _format_.  Acrobat (AcroForms) and LiveCycle forms are two totally different formats internally.  (Like MS Office 2007 files versus MS Office 2003 files). To flatten a form from CF, it must be an AcroForm:
    http://www.planetpdf.com/article.asp?ContentID=adobe_live_cycle_designer_and_acrobat_pdf_f orms_under_the_hood&page=1
    act332 wrote:
    I am trying to allow a user to print a document (certificate) with their name and date dynamically inserted, this document
    Well as I mentioned, you can use cfpdf or ddx to set whatever permissions you need. The default is "All" (ie all actions are allowed) but you can restrict the permissions by passing in a list of which permissions _should_ be allowed. Anything not included in the list will be restricted.
    <cfpdf permissions="None" ...>   OR
    <cfpdf permissions="AllowPrinting" ...>  OR
    <cfpdf permissions="AllowPrinting,AllowCopy" ...>  OR

  • How can I create classes dynamically?

    Guys
    My requirment is I want to create classes and their instancess too dynamically. First is it possible in Java?
    If so, then my next question is how can I refer such dynamically created classes in my code to avoid compilation error.
    Thanks in advance
    Regards
    Sunil

    For other ways to generate classes on runtime you could also have a look at BCEL:
    http://jakarta.apache.org/bcel
    And dynamic proxies:
    http://java.sun.com/j2se/1.4.2/docs/guide/reflection/proxy.html
    If so, then my next question is how can I refer such
    dynamically created classes in my code to avoid compilation
    error.Generally the classes that you load should either implement some interface or extend some abstract class you know of at compile time so that the compiler knows what methods are available for use. If that's not possible you can only use reflection.

  • How to partially created files in java

    In my program i am monitering a folder to identify a particular file is created.
    this file created by another program. i don't have any control to that.
    i am using a while loop to moniter the file folder.
    i am using following codeing for that.
    while ((! found)&&(loopcount<99999)){
    files = file.listFiles(
    new FileFilter() {
    public boolean accept(File pathname) {
    if (pathname.isFile() &&
    pathname.getName().startsWith(awbNumber+"_") &&
    pathname.getName().endsWith(".pdf")) {
    return true;
    return false;
    problem is if the file is partially created also this code identifies the file is created.then the contents of the file are encoded. therefore sometimes the partially created file will be encoded. it doesnot prompt any exceptions.
    how can i idntify the file is fully created or partially created.is there a way to read file mode that is if the file is in read mode or not.
    i need to encode the fully created file.
    please help me
    thanks in advance

    have you tried re-nameing the file? if the file is still open by the other program renaming will fail and thus you know to wait.

  • I have a new ipad and want to create files for my documents I brought over from my Mac. How do I create file folders?

    I would like to create file folders for my documents I brought over to my ipad from my desktop Mac. I downloaded pages and neu.annotate. My files synced without a problem. PDF articles I put in neu.annotate and pages documents into pages but I would like to organize into folders like on my desktop. How can I do this on the ipad3?

    Unlike a 'normal' computer the iPad doesn't have a file system and everything on it has to be stored/associated within an app, you can't have separate folders of documents/files on your iPad's homescreens. If the apps that you have support it then you could possibly use Dropbox to store your documents within a folder structure, but you'd then need internet access in order to access them.

  • How to not create File without any payload?

    Hi XI Experts,
    I have the following integration scenario:
    1.  One input file
    2.  One or more output files (up to four files)
    3.  At any given time, I could have one or more files (up to four files) filled with data in the payload.
    Question - there are times where only one file will have data in the payload and three files without any data in the payload (by design).  In this case, I do NOT want to create files that does not have any data in the payload.  Is there any way I can do this without BPM?  The output files that does not have any data in the payload is not going to be 0 byte as it will still have blank XML tags.
    Again, we do not want to use BPM if there is any way around it.  We are running XI 2004s SP7 (equivalent to 2004 SP16).  Any help would be greatly appreciate it.
    Here is the content of the ouput file WITHOUT any data in the payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
    </ns0:entity-data>
    Here is the content of the ouput file WITH data in the payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
        <com.Dow.customer.DCorporate>
            <VName>DCorporate</VName>
            <VLabel>013-ZZ</VLabel>
        </com.Dow.customer.DCorporate>
    </ns0:entity-data>
    Thanks,
    Jay

    Hi Jay..,
    You can achieve this without BPM too.Your input is one file,by doing the Multi Mapping (1: N) you can acheive this.If there is no payload for any of the four files means simply put your four message types occurences as 0..Unbounded.
    Check / Put an condition on your input file payload which field is determining whether data is containg for all or for some of the files.
    So, if your input file containg the data for four files, those files are would be populated otherwise the files are not getting populated.I guess there is no use to create the blank XML structure.
    Let me know your feedback.., It would be work for your case ..
    Cheers
    Tiger woods

  • How do I create continuous dynamic fields in Acrobat Pro?

    Hello everyone,
    I've created a legal PDF file and I need to add some dynamic fields inside.
    I know how to make the fields but I would like to make it so that if there are more than one on the same line, that they will affect each other's length in case the user inputs long / short data.
    For example:
    If I have 2 fields:
    NAME          SURNAME
    How do I make it that after the user inputs their NAME the SURNAME field will start a bit after the NAME field and there will be no big gap between them.
    Looking forward to hear some solutions
    Thanks.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • How can I create events dynamic for a Group/List?

    Hey,
    atm I'm programming a little application where i want to add elements to my center-pane.
    Simpyfied I got:
    - Center Pane : here shall the elements appear on right click in bottom-pane. This pane shall be used as anything like a playground where you can drag/drop and connect items from the bottom-pane
    - Bottom Pane: here I got about 180 elements which are quite equal. This is sth like a menu of items which you can use. I realised them in java classes extended from a parent class with differend calulations.
    What I want:
    I want to create an event handler for EACH of the "menu" elements dynamically. Just sth like:
        for (int i = 0; i < basic_menu_list.size(); i++)
          final Element el = hbox_bottom.getChildren().get(i);
          hbox_bottom.getChildren().get(i).setOnMouseClicked(new EventHandler<MouseEvent>()
            public void handle(MouseEvent event)
              if (event.isSecondaryButtonDown())
                playground.add(el);
                redrawPlayground();
        }But as i expected this doesnt work...
    Now my question:
    How can I solve this problem? Is there any option to listen to all elements of a group without hard-coding every single listener?
    Thanks for your help,
    Martin

    Hello User,
    Why did you expect that it wouldn't work?
    You have an example with "transition" apply on a bunch of circles in the Getting Started with JavaFx (http://download.oracle.com/javafx/2.0/get_started/jfxpub-get_started.htm)
    Here a basic example class...
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class HelloWorld extends Application {
        //~ ----------------------------------------------------------------------------------------------------------------
        //~ Methods
        //~ ----------------------------------------------------------------------------------------------------------------
        public static void main(String[] args) {
            // Entry point
            Application.launch(args);
        @Override
        public void start(Stage mainStage) throws Exception {
            Pane pane = new Pane();
            Scene scene = new Scene(pane, 200, 200);
            VBox vBox = new VBox();
            TextBox input1 = new TextBox();
            TextBox input2 = new TextBox();
            vBox.getChildren().addAll(input1, input2);
            for (Node input : vBox.getChildren()) {
                input.setOnMouseClicked(new EventHandler<MouseEvent>() {
                        public void handle(MouseEvent event) {
                            System.out.println("test click");
            pane.getChildren().add(vBox);
            mainStage.setScene(scene);
            mainStage.setVisible(true);
    }Niculaiu

  • How can I create a dynamic XML driven PDF Portfolio?

    I have built an XML application for which I maintain a library of individual PDF page "templates" used to assemble large (1000+ pages) PDF documents. The page templates are saved as PDFs without page numbers as they can be reused anywhere in any manual, the page numbers are applied during the document assembly process. I am now attempting to implement an update process, in which one template change can impact dozens of large documents. I am therefore looking at moving away from creating these large PDF documents and creating something more along the lines of a Package, Portfolio or other solution in which document pages/templates in the library are linked to rather than combined, so that changes across multiple large documents can be done quickly and transparently to the user. I am sure there is a solution using an Adobe spec like Portfolio or XDP, I just need a nudge down the right path, as nothing in what I've read explicitly states that these technologies can be used for this purpose. I would prefer to stay within technologies I am comfortable with to create/modify the necessary files, whcih are XML/XSLT and ANT. I would also like to know if it's possible to add page numbers on the footer of each page in the Portfolio without modifying the template, and if the resulting Portfolio can be saved as a normal PDF or printed with the dynamic page numbers included.
    I know this might be a tall order but if anyone can help clarify what's possible with existing Adobe technologies it would be greatly appreciated.
    Thanks,
    Keith

    Indeed - PDF Portfolios are a collection of static files attached to a one-page cover sheet, you cannot have references to externally-stored documents.
    You can replace individual files in a Portfolio (by adding a file of the same name) but nothing happens automatically, and the file when added to the Portfolio will have no idea about where it originally came from. There's no concept of "check for updates".

  • How can I create a dynamic Dropdownlist

    Hi Experts,
    I am new in the adobe forms and I have this problem.
    I am working on a Dropdownlist in Adobe Interactive Form. In my case, my form will be used in Offline-ABAP system without any web dynpro application.
    I have an internal table containing some values like this (number of rows depend on what is store on the database dynamic)
    A0  Dropdownlist1
    A1    Dropdownlist2
    A2    Dropdownlist2
    B0 Dropdownlist1
    B1    Dropdownlist2
    B2    Dropdownlist2
    B3    Dropdownlist2
    B4    Dropdownlist2
    C0  Dropdownlist1
    C5    Dropdownlist2
    C6    Dropdownlist2
    C7    Dropdownlist2
    I would like to create 2 dropdownlist. to be as follows:
    The first dropdownlist must have for example the values A0, B0, C0 .
    When the user select for example B0 from the Dropdownlist1, then dropdownlist2 must have only the value B1, B2, B3 and B4.
    How can i do that as I have seen the example in the purchase order (country and state).
    My requirement is that, the value must be dynamic, that means i must select the value from the SAP-Database into internal table and bind it to my dropdownlist.
    Thanks and Regards.
    mishak

    See the following program, it builds a dynamic internal table based on the company codes from the select option. 
    report zrich_0001 .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    data: it001 type table of t001 with header line.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for it001-bukrs.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001
                     where bukrs in s_bukrs.
      perform build_dyn_itab.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = 'PERIOD' .
      wa_it_fldcat-datatype = 'CHAR'.
      wa_it_fldcat-intlen = 6.
      append wa_it_fldcat to it_fldcat .
      loop at it001.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = it001-bukrs .
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 4.
        append wa_it_fldcat to it_fldcat .
      endloop.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    Regards,
    Rich Heilman

Maybe you are looking for

  • End-to-End user authentication with XI

    Dear community, we sit in a situation where the customer wants to have an end-to-end-authentication throughout an integration process. The setup is as follows: a dialog-user in a legacy system uses an application that triggers an integration process

  • Video stretching bug

    Ever since the last ipod update (when they added the fullscreen option) my videos have been playing STRETCHED to wide screen dimensions. When I have the widescreen function enabled in the video settings menu it plays the fullscreen videos STRETCHED t

  • Lightroom CC won't open after install

    I have a CC subscription, and I have just installed the new update for Lightroom CC.  It shows that it is installed, and "up to date" in the CC window, but it won't open.  Do I need to uninstall Lightroom 5 first?

  • Safari not opening sites

    I've noticed since I upgraded to version 3.1.2 that I am frequently getting the message "Safari can't open this site" or part of the time it just seems to hang up with the the first portion of the url highlighted and do nothing. I usually can copy th

  • Join, the reverse of split?

    Hi, doing split on a string is easy in express... and you get an array as a result... but there doesn't seem to be a corresponding join where you can add an array of string with a specific string as separator. So, I should use concat... probably in c