Does we need to Create a file Before using Open dataSet

Hi Guys,
            Can  any body tell me whether we have to create a File before using Open dataset  for writing files in Application Server.
           Can anybody write a program for EKPO table to store it in application Server using OpendatasSet ?Is there any specific care we have to take for Executing   pgm in Background?
I wrote the pgm for Foreground using GUI- Download.
PGM.
      select * into table it_ekpo  from  ekpo .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename ='c:\EKPO.xls'
filetype = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
data_tab = it_ekpo
*fieldnames = l_heading
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3 .
                   Plzzzzzzzzz Make the changes for existing Pgm.any help is awarded with points.Its Urgent.
Thanks,
Gopi.

Hi Guys,
             Thanks for ur immediate response.I am sending the code just confirm me whether is correct r not?
DATA : wa_EKPO_file   TYPE file_table-filename.
select * into table it_ekpo  from  ekpo .
  OPEN DATASET wa_EKPO_file FOR OUTPUT         "Write to appl. server
                                      IN TEXT MODE
                                      ENCODING DEFAULT.  "Open dataset Return code
IF sy-subrc = 0.
LOOP at IT_EKPO into WA_EKPO.
TRANSFER wa_ekpo to wa_ekpo_file.
ENDLOOP.
ENDIF.
                                         I want write the data into SPREAD Sheet .Can u guys  tell me how to write into Spread Sheet using Open data Set.
Thanks,
Gopi.

Similar Messages

  • Upon launch of Lightroom after initial instalation a warning came up that said lightroom needs to create temporary files and cant open.  The it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

  • Create an Excel File Using OPEN DATASET Command

    Hey, everyone.
    How can I create an Excel file by using OPEN DATASET command ??
    The file is created but the columns are no seperated like thay should.
    I need to seperate the internal table's fields with a comma - How can I do it ?
    Here's my code:
    OPEN DATASET filename1 FOR OUTPUT IN TEXT MODE.
    IF SY-SUBRC = 0.
       LOOP AT gt_vend_info into gwa_vend_info.
         TRANSFER gwa_vend_info TO filename1.
         IF SY-SUBRC <> 0.
           EXIT.
         ENDIF.
       ENDLOOP.
    ENDIF.
    Thanks in advance.

    Hi Beki,
    REPORT  ZTESTAA.
    TYPE-POOLS:TRUXS.
    DATA: BEGIN OF ITAB OCCURS 0,
          VBELN LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          END OF ITAB.
    DATA:
    ITAB1 TYPE TRUXS_T_TEXT_DATA.
    SELECT  VBELN
            POSNR
         UP TO 10 ROWS
         FROM VBAP
         INTO TABLE ITAB.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        I_FIELD_SEPERATOR    = ';'
      TABLES
        I_TAB_SAP_DATA       = ITAB
      CHANGING
        I_TAB_CONVERTED_DATA = ITAB1
      EXCEPTIONS
        CONVERSION_FAILED    = 1
        OTHERS               = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO         WITH SY-MSGV1
    SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    OPEN DATASET filename1 FOR OUTPUT IN TEXT MODE.
    IF SY-SUBRC = 0.
    LOOP AT gt_vend_info into gwa_vend_info.
    TRANSFER gwa_vend_info TO filename1.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    the above code give CSV format file, all fields will be separated by ';'
    Regards
    vijay

  • Need to create .wav file

    Hi,
    I need to create .wav file 1KHz left, 2KHz right, 1V peak, 10 Second, CD quality.
    I am having trouble setting parameters samples/sec and other parameters.
    Does anyone has example?
    Any help would be helpful!
    Thanks.
    CVI 2010
    LabVIEW 2011 SP1
    Vision Builder AI 2011 SP1

    Hi Sheetal,
    Here is a small example that does what you need. The only thing that
    you have to change is the "Gain" value so it matches your soundcard.
    Have fun!
    Message Edited by Philip C. on 09-02-2005 01:27 AM
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    SineWav.PNG ‏8 KB

  • I wanted to send some photos out but was told I need to create a new profile, use mail icon in control panel no icon there how do I get it done?

    I want to send some photos from Firefox, when I tried it said I need to create a new profile, use mail icon in control panel. I went to control panel and do not know what to do.'''bold text'''

    As all of the msuic came from your computer in the first place it should still be there.  Is it not?
    EVERYTHING on your ipod should also be on your computer and should be included in your regular backup copy of your computer.
    Make sure that everything is on your computer.  You can transfer itunes purchases from the ipod.  Without syncing:  File>Transfer Purchases.
    When everything is on your computer, then it can be synced back to the ipod after updating.

  • Is it possible to create .ncd file without using MAX?

    Is it possible to create .ncd file without using MAX? I am trying to read the data given by hundreds of possible Arb. IDs on one of the CAN port without having to create it from the MAX.
    Thank you

    Hi,
    the NI-CAN driver software does not provide functions/VIs to generate
    *.ncd files. However the *.ncd file format is just plain XML (ASCII text). Take a
    look at the example.ncd file that gets installed with NI-CAN
    (<ProgramFiles>\National Instruments\NI-CAN\):
    <?xml version="1.0" encoding="UTF-8"?>
    <nican_config version="0.1">
    <saved>8/8/2005,17:58</saved>
    <message name="TransmissionFluids">
      <id extended="0">82</id>
      <dbc>C:\Program Files\National Instruments\NI-CAN\example.ncd</dbc>
      <conflicts>0</conflicts>
      <bytes>6</bytes>
      <interface>1</interface>
      <comment></comment>
      <channel name="ClutchPressure">
        <conflicts>0</conflicts>
        <bitfield start="0" bits="8" order="0" type="1"/>
        <linear_scaling factor="1.600000e+001"
    offset="0.000000e+000" max="4.000000e+003" min="0.000000e+000"
    default="0.000000e+000" unit="kPa"/>
        <comment></comment>
      </channel>
    </message>
    </nican_config>
    Thus, you could generate *.ncd files with simple file I/O. Having XML-specific file I/O functions simplifies this task.
    -B2k

  • I need to create a iTunes account using my work email but...

    I need to create a iTunes account using my work email address but when I try it says that there is already an iTunes account linked to my work email - I have never done this so I know that I have not created this and therefore can't answer the security questions in order to check it out.  It also means I can't set up this iTunes account - any ideas?

    When Apple increased security on the accounts we were asked to create security questions and answers and to offer a rescue email address, could you have used the work address then?
    http://support.apple.com/kb/HT5312

  • Download file using open dataset

    Hi all,
    I download a .CSV file to sap server using open dataset. I have a column which stores a number with length upto 30 char. I get the output in this format '2.34234E+25' for '23423423423423400000000000' in that particular column.
    Please send your suggestions to solve this issue.
    Rajesh.

    Do you want to use the csv file in Excel or in another application.
    If you display the CSV file created by open dataset using Notepad, you will probably see the 30 digit number.  This is fine for many applications, but not Excel!
    Excel cannot store a 30 digit number internally.  Try entering a 30 digit number into an Excel cell and see what happens - it is converted to scientific format with only 14 decimal places.
    If you need to see the number in Excel, you need to have it displayed as Text and not a number.  There are a few options:
    1. Put a character at the start of the field
    2. Don't use CSV, but use OLE to start Excel and put the data in the cell with text format (complicated I know).
    3. Save as a file with a .txt extension, open in Excel, and in the Text import wizard (step 3)  specify that the column data format is Text
    Michael

  • Problem in accessing application server file using open dataset

    Hi All,
    I am trying to access application server file using open dataset command, its working fine for normal path which imention. But when i am giving path of XI server file, its not working. How to access XI server file using open dataset. Please let me know.
    Thanks in advance.
    Regards,
    Vishal

    Hi Vishal,
    You need to verify if the location where you are trying to save the file is in the same server of SAP. In case that the location is in other server you need to map that directy into the same server of SAP.
    You need to point always to a location in the same server of SAP, in order that the open dataset could work.
    Regards,
    Eric

  • Fetch excel file from app. server using open dataset...

    Hello Experts,
    Our functional consultant is asking me if it possible to get an excel file from the
    application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.
    Thank you guys and take care!

    Hi Viraylab,
    to download this the procedure:
    you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.
    this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.
    Here are some of the parameters:
    file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?
    data_tab: Name of the internal table that should be uploaded to Exvcel
    fieldnames: Internal tabel with column headers
    How to build the field names table:
    data: begin of i_fieldnames occurs 20,
    field(60), end of i_fieldnames.
    i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.
    i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.
    to upload follow this:
    OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET dsn INTO itab-field.
    IF sy-subrc = 0.
    APPEND itab.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    [/code]Rob
    or Try this function module.
    FILE_READ_AND_CONVERT_SAP_DATA
    pass 'XLS' to I_FILEFORMAT..
    Dont forgot to Reward me points .....All the very best....
    Regards,
    Sreenivasa sarma K.

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • NCP Rights needed to create a file

    I have to give users Read, Write, Create, Modify, File Scan and ERASE rights to create a file. There are some folders that we want users to be able to create documents in but not be able to delete them. I think what is going on is as the document is being created it is creating a temp file that has to be deleted and it cannot do it with out the erase right. It happens in all word processors that I have tested, Word, Word Perfect, notepad. Does anybody know if that is what is happening and is there a solution? Thanks

    dgonnse wrote:
    >
    > I have to give users Read, Write, Create, Modify, File Scan and ERASE
    > rights to create a file. There are some folders that we want users to
    > be able to create documents in but not be able to delete them. I
    > think what is going on is as the document is being created it is
    > creating a temp file that has to be deleted and it cannot do it with
    > out the erase right. It happens in all word processors that I have
    > tested, Word, Word Perfect, notepad. Does anybody know if that is
    > what is happening and is there a solution? Thanks
    I know when you use MS Office apps, it creates a temporary, hidden
    version of the file and then deletes it when you exit the application.
    Your best solution here would be to advise users to create the file
    locally, then when they are finished save it to the location on the
    network. This would allow you to revoke E without causing any issues.
    In fact, the only permission they would need is C but if you want them
    to also see what's out there then give them R,F as well.
    Your world is on the move. http://www.novell.com/mobility/
    Supercharge your IT knowledge. http://www.novell.com/techtalks/

  • Create source structure -Need to create flat file or table?

    Hi All,
    Can any one let me know what needs to be created?? it should be flat file or a table on the data base?
    I am going to reecive flat files from the source system??
    If it is a flat file then is there any way to create flat file structure in the DS using SQL query statements?
    Thanks
    Rajeev

    you can create table same as file structure and use the table instead, but how are you going to populate the table with the data from flat file ? you will need some application to do that, you can do this is DS by creating a file format and using the source file as input for that file format and create a template table as target for the database datastore to wihch you want to load data from this source file, and use that table as source in other dataflows
    you can also create the table with the same structure in the database and import that in Datastore and use that as target for the source file

  • Oracle 10g need to create respose file

    I am running oracle 10g rev2 and I would like to create response file from my exist system. I think there is oracle utility that I can create the response file from my exist system.
    Please advise me.
    Thanks

    Hi,
    You question is not clear whether you are asking to generate / creation of reponse file while installaing ORACLE
    Creating a response file (https://students.kiv.zcu.cz/doc/oracle/gateways.102/b19084/app_nonint.htm#CIHGFAAF)
    http://download-uk.oracle.com/docs/cd/B19306_01/install.102/b15681/advance.htm#BBAHEGFF
    or
    Are you tlaking about the spooling the Commands on Sql Plus to Command Prompt
    If spooling then you go for
    spool file name with path
    spool off
    - Pavan Kumar N

  • Need to create PAR files from JSP

    Hi,
    In my project we are creating portal archives from JSP iviews .
    Using NWDS we can easily create par files by going to Enterprise Portal workspace  .But in my project we are not using NWDS or any other JSP editor .
    Can anybody tell me how to create par files if i am using only notepad to develop my JSP .
    Thanks a lot .

    Hi
    here is the link how to create a par file without using any editor
    http://support.sas.com/rnd/itech/doc9/portal_dev/tasks/dg_portlet_parfile.html
    all the best..
    thanks Regards ,
    Boopalan.M

Maybe you are looking for

  • ALV doesn't go back

    Hi Experts, based on the SAP ALV example for "cl_salv_table" I wrote an ALV report. The first screen is for data selection. After this the ALV grid is displayed. The problem is that the standard back button doesn't work as expected. So after clicking

  • Need a link to download Itunes 11.1.3

    Anyone know a valid link. Tried a few, "offbrand" links, downloads software that doesn't really work.

  • FPY1 Payment medium

    Hi gurus.. I created 3 function modules.  These are called thru the payment medium that I configured to be used in FPY1.  How can I debug FPY1 so that it will stop in the 3 function modules that I created?  I tried to put breakpoint or use DBUG but i

  • Send mail from r/3 System to Microsoft outlook.

    Hi All, I am trying to send the mail from the ABAP program to the Microsoft outlook. When i execute the program , it creates a mail and puts it in the SAP office workplace "Outbox". It says waiting for the communication..or something like that. I thi

  • Is Adobe Form Central compatible with WIX?

    Is Adobe Form Central compatible with WIX.com?