Online program to create a flat file on Unix

Hi All,
Good day.
I got one requirement, where I need to write a Online program that will create a flat file on Unix. The probable Unix file will be send from the selection screen, where the user selects that with a fixed length & format.
Do I need to do it with the Datasets? or is it possible to go with Upload function modules?
Please, send one example program of such kind.
Thanks,
Kal Chand

Hi,
You are going to create a flat file in the Unix Operating system which is nothing but the application server.
There are no standard function modules to write the file in the application server, so you need to use the DATA SET concept only.
1. Open Data Set file name
2. Transfer Data Set file name
3. close Data set file name
I believe this will help you to finish your requirement.
Thanks,
Mahesh.

Similar Messages

  • How to create a flat files and how i used this

    hi Guys and gals,
    I am david. I want to know how to create a flat files. I don't know about it also. pls explain it and also pls help me to create a flat files. If u have any program for creating pls send me.
    I want to know about retrive the datas from flat files and also insert a record into it.
    pls guide me
    i need this immediately
    david

    void newMethod() throws Exception {
         // Reading from a flat file
         String data;     
         BufferedReader br = new BufferedReader(new FileReader("c:\filename1.txt"));
         while ((data = br.readLine()) != null) {
              System.out.println(data);
         // Writing to a flat file
         BufferedWriter bw = new BufferedWriter(new FileWriter("c:\filename2.txt"));
         bw.write("sample data");
         // After writing the data close the file
         bw.close();
    }

  • How we create a flat file on the application server

    hi,
    how we create a flat file on the application servere,this file have the header data and corresponding item data also.
    i.e. how we use the AT NEW and ATEND. statement in this file creation.
    pls send me some code related to this.
    thanks,
    vipin

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

  • Create a flat file with multiple characters for enclosures

    Hello,
    we use OWB 11g2 (11.2.02).
    Now we try to create a flat file with multiple characters for enclosures. The manual wrote:
    "Enclosures (Left and Right): Some delimited files contain enclosures that denote text strings within a field. If the file contains enclosures, enter an enclosure character in the text box or select one from the list. The list displays commonenclosures. However, you may enter any character. The default for both the left and right enclosure is the double quotation mark ("). You can specify multiple characters and hexadecimal characters as field enclosures."
    But it will not work. The OWB use the first character from the left enclosure definition as left enclosure and the second one as right enclosure !?!
    Did anyone know this behavior? Is there a solution for this problem?
    Thanks and regards
    Norbert

    HI Raghu,
               Use the function module 'GUI_UPLOAD'.
               In that you have to specify the field_separator value = 'X' in export section.
    Regards,
    S.C.K

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • Create a Flat File like text_io in forms6i

    Hello,
    how i create a flat file (to download or in files system) via apex, like I did in oracle forms using text_io, for example
    employees.txt
    Name                          Last Name Salary
    Fernando                     Medina      5000.00
    thanks in advance
    regard
    Edited by: Fdomedina on Mar 11, 2010 5:00 AM

    Now you have to do it from the database using the UTL_FILE package.
    Or (if it is a report) download it as CSV file, so you can open it in Excel.

  • Creating a flat file in the IDOC format

    Hi everybody,
    Need help.....urgently. Can somebody please tell me how to create a flat file in the IDOC format? I am creating a bill of lading/Documentary payments (EDI 858) and can't figure out a way to write the data generate through the report in a flat file in IDOC format. My deadline is right around the corner and I need help.
    Thanks,
    M

    Hi Minal,
    I still don't understand your question.
    So, you have a report which selects data and puts it into an internal table.  This part looks fine.
    You want to create a flat file?  Ok, to create a flat file on the application server then use the commands OPEN DATASET, TRANSFER, and CLOSE DATASET.  To create a flat file on the presentation server then use the FM GUI_DOWNLOAD (or the GUI class, I forgets its name for the moment).
    In both cases you should build up an internal table which has the exact structure required for your (EDIFACT?) EDI message, and then use the appropriate method to write the file.
    If the following steps are manual then there is nothing more for you to do.
    I don't see any need to use Idoc technology, or make any reference to it in your solution.
    I hope that helps.  If not, please be more specific when asking your questions.
    Brad

  • Create a flat-file upload for a BO XAI Inbound Service?

    Hello all,
    If we don't have a schema defined for a BO XAI Inbound Service, how can we create the XSL and the flat-file upload schema file for it.
    Any advice?
    Regards,
    Kerr

    I don't have problem to create the XSLT mapping.
    But because it is to create a flat-file upload for a Business Object XAI Inbound Service, it doesn't have a schema on the server as to the thread Create Schema for Business Object to use for XAI Inbound Service?
    And I can't create that flat-file upload without a schema on the server.
    Or I can use the BO XAI Inbound Service WSDL instead to create the mapping for the flat-file upload.
    Regards,
    Kerr

  • Need to create a flat file source system in bi?

    Hi all,
    i need to load the data from a flat file to an ods? can anyone pls tell me the steps to create the flat file source system in bi?
    Thanks

    Hello,
    http://help.sap.com/saphelp_nw70/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6581e07211d2acb80000e829fbfe/frameset.htm
    steps:
      create source system file (if you haven't)
    - create ods
    - create update rules for ods and activate
    - create infosource
    - assign infosource with datasource (source system file)
    - maintain transfer rules - maintain infoobject in sequence as flat file to transfer structure. map infoobject in transfer rules. activate transfer rules
    - create update rules ods-infosource and activate
    - create infopackage, specify external data path (recommended file put in application server)
    hope this helps.
    Regards,

  • FM to create a flat file in given IDOC type format

    Hi,
    I need to create a flat file having IDOC format.
    I have data in some other source file.
    Which function module can be used for the same?
    Could you pls provide some sample code?
    Appreciate the help.
    Thanks.
    -Shreyas

    My Exact requirement is:
    I have some data in a source file.
    Now I want to create a flat file while which should be in a standard IDOC format(WMMBID02) so that I can process it later using IDOC processing say EDI_DATA_INCOMING or any appropriate FM which will process IDOC later.
    I dont want IDOC to be created in the system right now. I just need to reformat my source file into a standard IDOC format flat file.

  • Create a flat file source in Designer in DIM

    I am trying to create a flat file source in Designer in DIM from Workflow Manager, select Tools > Designer.However , I am unable to see the Planning folder therein to open. Can anyone help me in this respect.Plz help - very urgent.
    Thanks in advance
    Manisha

    Hello,
    http://help.sap.com/saphelp_nw70/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6581e07211d2acb80000e829fbfe/frameset.htm
    steps:
      create source system file (if you haven't)
    - create ods
    - create update rules for ods and activate
    - create infosource
    - assign infosource with datasource (source system file)
    - maintain transfer rules - maintain infoobject in sequence as flat file to transfer structure. map infoobject in transfer rules. activate transfer rules
    - create update rules ods-infosource and activate
    - create infopackage, specify external data path (recommended file put in application server)
    hope this helps.
    Regards,

  • Create a flat file source in Designer in DIM from Workflow Manager

    I am trying to create a flat file source in Designer in DIM from Workflow Manager.However , I am unable to see the Planning folder therein to open. Can anyone help me in this respect.Plz help - very urgent.
    Thanks in advance

    Hello,
    http://help.sap.com/saphelp_nw70/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6581e07211d2acb80000e829fbfe/frameset.htm
    steps:
      create source system file (if you haven't)
    - create ods
    - create update rules for ods and activate
    - create infosource
    - assign infosource with datasource (source system file)
    - maintain transfer rules - maintain infoobject in sequence as flat file to transfer structure. map infoobject in transfer rules. activate transfer rules
    - create update rules ods-infosource and activate
    - create infopackage, specify external data path (recommended file put in application server)
    hope this helps.
    Regards,

  • Flat File in Unix to DB in Windows

    HI
    As part of POC I am trying to interface from a flat file in Unix server to a Oracle DB in Windows machine.
    I can access the file in Unix box using telnet/FTP. The directory and the file has rw-rw-rw- permissions.
    I have ODI installed in Windows machine. I do not have an agent or anything installed in Unix machine.
    When the file is in Windows machine, I am able to interface data as required. But, when I try with file on unix machine, I get directory does not exist. I tried both absolute path using $HOME/<directory>.
    Is it possible to achieve such integration or is it mandatory to install ODI Standalone Agent (at least) on the unix machine.
    Regards,
    G V Ranjith

    Another option without installing the Unix agent is to install the samba share on the Unix and access that from Windows.
    This post will help you:
    Re: File not able to see in designer

  • Create Excel/Word Files on UNIX ?

    Hello Everyone,
    What are my options (including products) for creating Excel/Word files on UNIX/Linux (no OLE) using ABAP ?
    Thank you

    I did some asking around outside the forum
    and I was told there were plenty of ways to create Excel, Word, PDF files etc. any where using various functions in ABAP.
    The reason I'm asking is that I recently wrote a project for generating .DOCX and .XLSX (OpenXML) files directly (without using MS Office or Open Office etc.) on a different platform
    and I was thinking of writing a similar Open Source project in ABAP as a pet project.
    The way you would use it is visually design the Excel or Word file in Office and sort of mail merge the data in 1 or 2 commands in ABAP.
    It works everywhere without Office and on any OS, and is literally 100x times faster then ACTIVEX/OLE.
    So ... does anyone actually have a definitive answer ??
    Thank you.
    Edited by: Alon Blich on Jun 23, 2010 9:05 PM

  • Is there ODBC driver for excel flat file in Unix Box

    Hello guys
    I have a question about importing flat file sitting on Unix box into OBIEE. Normally, if the file is somewhere in Windows, I could just use a DSN for text file where I can set the location of the flat file and then be able to import using admin tool.
    However, if the file is sitting on the unix box, I wouldn't be able to define the path using that DSN driver since the location of the file doesnt belong to C: drive or E: drive like it does in Windows.
    So in this case, how would i be able to proceed? What third party ODBC could I use for flat file in Unix? Also, there is a file called ODBC.INI in Unix OBIEE directory, do I have to modify the content of that file too? If so how would I do it in order to be able to import flat file from Unix using Admin tool?
    Your thoughts?
    Thanks

    You'd need to export the Excel file to CSV or something like that, and then read it in from there.
    Thanks rnm.
    I am more curious about what you said above.. Could you explain a little more?
    Do you mean changing the flat file into CSV format? If so, the flat would still be in Unix location after the changing right? Or am I not understanding you completely?
    Thanks and please advice
    Cheers

Maybe you are looking for

  • Where can I get Oracle 8i 8.1.5 for Linux (RH 6.0) On CD?

    I'm stuck in a 28.8 baud neighborhood. Most of my connections are 14.4 but at night - sometimes - I can get 28.8. There is no Cable Modem support (Not available), not DSL (maybe by Q1 2999), and ISDN is foolishly priced ($1800.00 to start and $300.00

  • Border levels not matching between columns

    Hi! Ihave a little problem within one of my reports as the border hights doesnt match between two columns, see  under Affordable and Core in the picture below. Anybody that has a solution to this problem? Br Arne Arne Olsson

  • Supervisor Desktop Agent View

    Hi, I'm currently running UCCX 8 and have strange issue in Supervisor Desktop with the name display for one of the agents! For all the other agents the information keyed into end user (on CUCM8) for the last name, first name fields is showing correct

  • E message in production server Error generating the test frame

    Hi all experts I developed a object using layout in smartforms .... we have 3 server in my company ..... 1] development 2] Quality 3] produ it is giving me a error 'Error generating the test frame' plz tell me thanx

  • Trying to install itunes after upgrade failed

    I am trying to install itunes. i tried to upgrade and it failed and the old version of itunes had already been uninstalled. This is exactly what the error message says: Error 1304.Error writing to file C:\Program Files\iTunes\CD Configuration\gcdrdll