Open/Transfer/Close Dataset file not downloading

Hello people apologies if this running rampant for me. I did post this from an attatched topic of mine but im guessing, due to its number or replies, that many people felt that it was pretty much covered. It was but another problem has riseng during my initial question.
My plan is to download a report in a file, (hopefully in background), as it is. Obviously WS_Download would not work because (1) it doesnt seem to function in background proccessing and (2) the layout is not aligned properly. After checking this out, in this forums as well as other sits, I realized Open Dataset ought to be the best approach. Im not touching the more complex ones yet you because I plan to take this step by step. 
So far I have searched the net and stuff and decided that I will use WWW_LIST_TO_HTML since I want to download it the way it is. I am also going to use open/close dataset as many of you have mentioned.
SO far Im just trying it out with a simple report program to see its funcitonalities. My code goes like this.
<b>REPORT Z**** NO STANDARD PAGE HEADING LINE-COUNT 100 .
DATA: IFIELDS TYPE TABLE OF W3FIELDS WITH HEADER LINE.
*DATA: ihtml TYPE TABLE OF w3html WITH HEADER LINE.
DATA: IHTML TYPE TABLE OF W3_HTML WITH HEADER LINE.
DATA: BEGIN OF I_TAB OCCURS 0,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
END OF I_TAB.
SELECT-OPTIONS: SO_MATNR FOR I_TAB-MATNR.
SELECT MATNR MAKTX
FROM MAKT
INTO TABLE I_TAB
WHERE MATNR IN SO_MATNR..
LOOP AT I_TAB.
WRITE: / I_TAB-MATNR,
I_TAB-MAKTX.
ENDLOOP.
CALL FUNCTION 'WWW_LIST_TO_HTML'
EXPORTING
list_index = sy-lsind
TABLES
HTML = IHTML.
DATA: FILE TYPE LOCALFILE.
FILE = '/usr/test.html'.
OPEN DATASET FILE FOR OUTPUT IN BINARY MODE.
LOOP AT IHTML.
TRANSFER IHTML TO FILE.
ENDLOOP.
CLOSE DATASET FILE.</b>
NOw the problem now though is that the file isnt downloading or saving at all. I cant seem to get what is wrong since the path does exist and the this seems the universal way to implement the program. Im guessing the problem lies in the file name, because everything seems to work fine. Hope to hear again soon. Sorry if people have see this twice. Again my sinceriest apologies.

for example,  open IE,  in the address bar, I enter
\SXXXXXX
,   SXXXXXX is my host name.  I hit enter.  now i see folders, one of which is USR,  then I click on the usr folder and there is my file that I created with your program. 
Maybe ask your basis person what the host name is.
Regards,
Rich Heilman

Similar Messages

  • Open/Transfer/close Dataset and delimiting

    Hi people hi have a situation regarding open/transfer/close dataset and delimits.
    I have a submit program that calls any other via variants. It works fine with using list_to_memory, convert to ascii, and open dataset. I can download the report in excel format to an application server.
    Problem is that the reports arent delimited properly in the excel report. Usually there is a vertial line "|" placed after each column and it would be eazy to mauiplate it during viewing the actual file.
    However I want this done automatically. My question is, is there a way to delimit the list before/during using open/transfer/close dataset?
    My solution before was to convert the vertical lines to a comma and just save the file as a CSV file. Problem here is the data could be affected as comma is being used normally. So the excel report would get messed up.
    Hope I get some help soon. Thanks guys and good day.

    Lets say you have fields A, B, C and D to be transfered to the dataset. You can use the below logic.
    concatenate a b c d into l_text separated by '$'.
    transfer l_text to dsn.
    Now, when you open the text file in excel it would ask you whether the file is delimeted or fixed width...if you select delimited..in the next screen you would be able to select the delimiter.
    Regards
    Anurag

  • How to apply WWW_LIST_TO_HTML - Open/Transfer/Close Dataset to ALV Reports

    hello people! So far I have done some good progress regarding this thanks to many of you people. I do have some hurdles and one of them involves ALV Reports. So far I use
    WWW_LIST_TO_HTML - to temporarly store the list report to a table known as ihtml.
    and Open/Transfer/Close data set to send the file to the application server using the syntax below
    <b>OPEN DATASET file FOR OUTPUT IN BINARY MODE.
    LOOP AT ihtml.
      TRANSFER ihtml TO file.
    ENDLOOP.
    CLOSE DATASET file.</b>
    So far the program works fine in the report with the expection if its one that generates an ALV Report.
    My question is that is there a way to successfully run the program the way it was mentioned above using ALV? If so what techniques do you guys suggest?
    <b>Note:</b> Also please note the report and transfering/writing of the file has to be done during background processing.
    Hope I get some replies soon as many of you have been most helpful thank you and good day.

    Hi chad,
    1. yes u are right
    2. it will give this error only.
    3. the reason is, the www_list_to_html
       is exected after list display,
    4. the code comes there when
       we press BACK, and at that time
       no list is there in memory.
    <b>5. So we have to use some workaround.
    6. END_OF_LIST
    7. We have to use this EVENT
       and inside this event,
       we have to export to HTML.</b>
    8. I tried and it works FANTASTIC
    9. Just copy paste this program.
          (it will show a alv list of t001,
        and write the HTML file also)
      ( i have used END_OF_LIST event)
    10.
    REPORT abc.
    TYPE-POOLS : slis.
    Data
    DATA : BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE t001.
    DATA : END OF itab.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    Select
    SELECT * FROM t001 INTO TABLE itab.
    *-------  Field Catalogue
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name         = sy-repid
        i_internal_tabname     = 'ITAB'
        i_inclname             = sy-repid
      CHANGING
        ct_fieldcat            = alvfc
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    DATA : alvev TYPE slis_t_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
      EXPORTING
        i_list_type = 0
      IMPORTING
        et_events   = alvev.
    PERFORM alv_setevent USING 'END_OF_LIST' 'ITAB'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        it_fieldcat             = alvfc
        i_callback_program      = SY-REPID
       i_callback_user_command = alvcallback_formname
        it_events               = alvev[]
      TABLES
        t_outtab                = itab
      EXCEPTIONS
        program_error           = 1
        OTHERS                  = 2.
    form itab_end_of_list.
    Display
    data : ht like table of W3HTML.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
    EXPORTING
    list_index = sy-lsind
    TABLES
    HTML = ht
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        filename                        = 'd:\my.html'
      tables
        data_tab                        = ht
    endform.
    *=============This Function Links the Event Name To The Specified Form
    FORM alv_setevent USING value(eventname) value(alvitabname).
      DATA: tempev TYPE slis_alv_event.
      DATA : formname(30) TYPE c.
      TRANSLATE eventname TO UPPER CASE.
      CONCATENATE alvitabname '_' eventname INTO formname.
      TRANSLATE formname TO UPPER CASE.
      LOOP AT alvev INTO tempev WHERE name = eventname.
        tempev-form = formname.
        MODIFY  alvev FROM tempev.
      ENDLOOP.
    ENDFORM.                    "alv_setevent
    regards,
    amit m.

  • PRoblem regarding Submit - Open/Transfer/Close Dataset

    Hello again, I know I keep asking the same topic (regarding datasets) for the past week. Its been a new topic for me. However, I have a program which I am testing that is shown below.
    <b>REPORT ZPROG_COOL7 NO STANDARD PAGE HEADING.
    DATA: ITAB_LIST TYPE STANDARD TABLE OF ABAPLIST WITH HEADER LINE.
    PARAMETERS: PNAME TYPE SYCPROG. (this does nothing yet ...)
    SUBMIT ZPROGRAM EXPORTING LIST TO MEMORY AND RETURN
                        USING SELECTION-SET 'CEDEX'.
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
              LISTOBJECT = ITAB_LIST
       EXCEPTIONS
            NOT_FOUND  = 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.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'WRITE_LIST'
           TABLES
                LISTOBJECT = ITAB_LIST.
    ENDIF.
    DATA: LD_FILENAME TYPE LOCALFILE.
    DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
    DATA: IHTML   TYPE TABLE OF W3HTML  WITH HEADER LINE.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
       EXPORTING
           list_index = sy-lsind
         TABLES
              HTML       = IHTML.
    CLEAR IHTML.
    LD_FILENAME = '
    H******\SAPReport\death.html'.
    OPEN DATASET LD_FILENAME FOR OUTPUT  IN BINARY MODE.
    LOOP AT IHTML.
      TRANSFER IHTML TO LD_FILENAME.
    ENDLOOP.
    CLOSE DATASET LD_FILENAME.
    CLEAR: LD_FILENAME.</b>
    As you can see it is suposed to get a list from a diffrent program, write the list, and then transfer the list into a directory in the SAP application server. This all works fine on foreground but in Background Proccessing the story is diffrent.
    Here is the problem:
    If Iam to send a job in background, the report will generate fine if you view the spool list <b>but there HTML file that is supposed to be saved becomes blank.</b> Is there a way to solve this issue? Thank you all take care, and good day.

    I am concerned that his part does not work in background.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    LISTOBJECT = ITAB_LIST
    * EXCEPTIONS
    * NOT_FOUND = 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.
    IF SY-SUBRC = 0.
    CALL FUNCTION 'WRITE_LIST'
    TABLES
    LISTOBJECT = ITAB_LIST.
    ENDIF.
    DATA: LD_FILENAME TYPE LOCALFILE.
    DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
    DATA: IHTML TYPE TABLE OF W3HTML WITH HEADER LINE.
    <b>CALL FUNCTION 'WWW_LIST_TO_HTML'
    * EXPORTING
    * list_index = sy-lsind
    TABLES
    HTML = IHTML.
    CLEAR IHTML.</b>
    LD_FILENAME = '\H******SAPReportdeath.html'.
    OPEN DATASET LD_FILENAME FOR OUTPUT IN BINARY MODE.
    LOOP AT IHTML.
    TRANSFER IHTML TO LD_FILENAME.
    ENDLOOP.
    CLOSE DATASET LD_FILENAME.
    CLEAR: LD_FILENAME.
    I ran across this before and I did find a solution, I'll get back.
    Regards,
    Rich Heilman

  • Outlook closes and will not download a particular message.How can i get that message to stop coming to my inbox?

    outlook closes and will not download a particular message.How can i get that message to stop coming to my inbox?

    Hi,
    May I ask your intention by doing this? Is the particular message harmful to your computer?
    Which type of email account are you using? If you want to prevent a particular message from being downloaded to Outlook, we can login to the web interface of your email account and then remove the particular email from your Inbox.
    If I've misunderstood something, please feel free to let me know.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • When any mp3 file downloading on Firefox so this file not download yet this file online play

    hello sir,
    my name is tushsr powar and I like Firefox browser but here is same problem when I any mp3 file download so this file not download this file auto play but I want this file download so please help me about this matter

    In Firefox 21 you can long press on the playback to download the file. Firefox 21 can be downloaded from http://aurora.mozilla.org and it will show up as Aurora on the all apps listing.

  • Open and Close Dataset problem

    Hi All,
    I am facing a weird problem in transferring data to application server.
    I have used Open dataset to write my file in text format to the application server.
    Now everything works fine when small amount of data is there.When the number of records increases and when it takes lot of time , the format of the text file is completely distorted.
    I have used tab as the delimiter. Please suggest me some solution for this.
    Is this due to the time taken?
    Regards.

    Hi
    in the above program , when i had created 1st i had same problem
    then i had worte the logic likethis
    parameter: file_nm type localfile.
    types : begin of it_tab1,
            f1(20),
            f2(40),
            f3(20),
           end of it_tab1.
    data : it_tab type table of ALSMEX_TABLINE with header line,
           file type rlgrap-filename.
    data : it_tab2 type it_tab1 occurs 1,
           wa_tab2 type it_tab1,
           w_message(100)  TYPE c.
    at selection-screen on value-request for file_nm.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       STATIC              = 'X'
      MASK                = ' '
      CHANGING
       file_name           = file_nm
    EXCEPTIONS
       MASK_TOO_LONG       = 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.
    start-of-selection.
    refresh it_tab2[].clear wa_tab2.
    file = file_nm.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = file
        i_begin_col                   = '1'
        i_begin_row                   =  '1'
        i_end_col                     = '10'
        i_end_row                     = '35'
      tables
        intern                        = it_tab
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>loop at it_tab.
      case it_tab-col.
       when '002'.
        wa_tab2-f1 = it_tab-value.
       when '004'.
        wa_tab2-f2 = it_tab-value.
      when '008'.
        wa_tab2-f3 = it_tab-value.
    endcase.
    at end of row.
      append wa_tab2 to it_tab2.
    clear wa_tab2.
      endat.
    endloop.</b>
    data : p_file TYPE  rlgrap-filename value 'TEST3.txt'.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *--- Display error messages if any.
      IF sy-subrc NE 0.
        MESSAGE e001(zsd_mes).
        EXIT.
      ELSE.
    *---Data is downloaded to the application server file path
        LOOP AT it_tab2 INTO wa_tab2.
          TRANSFER wa_tab2 TO p_file.
        ENDLOOP.
      ENDIF.
    *--Close the Application server file (Mandatory).
      CLOSE DATASET p_file.
    loop at it_tab2 into wa_tab2.
      write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
    endloop.
    with the bold letters above
    i had wrote that logic for that
    reward if usefull

  • Delete Dataset File not working

    Hi All,
      I am trying to delete file from application server (AL11) directory after processing using DELETE DATASET FILE is not working , after processing also file still exists.
    My code is like this,
    *&      Form  backup_file
          The file has been processed.  Go ahead and copy it to the
          backup directory and delete it from the processing directory.
    FORM backup_file .
      DATA: lv_oldfile TYPE string,
            lv_backup TYPE string,
            l_rc TYPE i.
      IF p_appl = 'X'.  "Unix file
        lv_oldfile = wa_files-filename.
      Replace the directory name with the backup directory.
        REPLACE p_dir IN wa_files-filename WITH p_back.
      Tack date/time onto the end of the file name to avoid duplicate
      files
        CONCATENATE wa_files-filename
                    sy-datum
                    sy-uzeit
                  INTO wa_files-filename.
        OPEN DATASET wa_files-filename FOR OUTPUT
                                       IN TEXT MODE
                                       ENCODING DEFAULT.
        IF sy-subrc NE 0.
          f_backup_error = 'X'.
          EXIT.
        ELSE.
        Write the file contents to the new backup file.
          LOOP AT itab_input INTO wa_input.
            TRANSFER wa_input TO wa_files-filename.
          ENDLOOP.
        ENDIF.
      Close the backup file.
        CLOSE DATASET wa_files-filename.
      Delete the original file from the processing directory.
    if sy-subrc = 0.
        DELETE DATASET lv_oldfile.
    endif.
    endform.
    Thanks Everyone!

    HI,
    You have to check the value of Sy-subrc after the delete statement,
    and the value present in the variable lv_oldfile that if there is correct
    value in the variable populated or not.
    Moreover after assigning the value to variable lv_oldfile in the step 
    lv_oldfile = wa_files-filename.
    then you should use this variable lv_oldfile only for open dataset and close dataset also.
    Hope ir helps
    Regards
    Mansi

  • Insert space between records from open .. close dataset

    I am generating a file that contains different information for a business partner with the aid of datasets. I want my records to look like this ...
    partner1 BPname1 address1 contact info1   - from table1
    partner2 BPname2 address2 contact info2
    partner1 agency1 address1 insurance obj1  - from table2
    partner2 agency2 address2 insurance obj2
    But the one I am seeing in the generated file in AL11 is like this ...
    partner1 BPname1 address1 contact info1
    partner2 BPname2 address2 contact info2
    partner1 agency1 address1
    partner2 agency2 address2
    I want to see a space between records from tables 1 and 2.
    Code:
    OPEN DATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
    IF SUBRC = 0
       LOOP AT TABLE1
         TRANSFER TABLE1 TO FILE
       ENDLOOP
       CLOSE DATASET
       OPEN DATASET FILE APPENDING
       IF SUBRC = 0
         TRANSFER TABLE2 TO FILE
       ELSE
         MESSAGE ERROR
       ENDIF
    ELSE
       MESSAGE ERROR
    ENDIF
    CLOSE DATASET
    Thanks.

    Hi Cor,
    Here is my code to create datagridview (see below)
    By the way, I would like to ask if i will always declare this code every time i will do the insert , update and delete records. Let say i have separate buttons for every process. its possible to create one time and i will call this function.
    Another question. can i put a auto number in the first column of Datagridview upon adding of records.
    Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\jov\Desktop\FeedBackSystem\FBSystems\FBSystems\Data\KPI.accdb"
    form load event (DataGridView)
        Dim dt As New DataTable        Private cma As CurrencyManager = DirectCast(BindingContext(dt), CurrencyManager)        'Set Data GridView
            With dgvReport            dt.Columns.Add("ItemNumber", GetType(String))            dt.Columns.Add("ReportName", GetType(String))            dt.Columns.Add("Ratings", GetType(String))            dt.Columns.Add("Comment", GetType(String))            AddHandler cma.CurrentChanged, AddressOf CurrentChanged            .ReadOnly = True
                .MultiSelect = False
                .AllowUserToAddRows = False
                .AllowUserToDeleteRows = False
                dgvReport.DataSource = dt            For Each c As DataGridViewColumn In dgvReport.Columns                c.Width = 200            Next
            End With
    This is the code to insert records from textbox to datagridview
    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
    Dim i As Integer
    dt.Rows.Add(txtItemNo.Text, CmbReportName.Text, CmbRate.Text, txtComment.Text)
    End Sub

  • Acrobat 9 Pro Slow opening and closing pdf files - "Not Responding"

    I was responsible for pushing to get and keep 25 enterprises licenses for Adobe Acrobat Pro Vers 9. Corporate is pushing Blue Beam!
    We are on Acrobat Pro Vers. 9.3.1. Windows XP Pro 32 bit OS.  (PCs and laptops 1 - 3 years old, min 2 GB RAM, 2.1 GHz CPUs)
    Recently pdf files have been slow to open and close to the degree that windows .  It's to the point where I thought we were having network issues since this the problem is widespread.  However, it can occur when opening files on the local machine as well.  Worse, it's intermittent.  We do not run any add-ins, 3rd party or Adobe.  Most of these file run from 25kb in size to 2MB, rarely are they 5MB+.
    I just installed 9.3.2 and will keep an eye on it.  Does anyone have any ideas or suggestions as to what might be causing this or, what to look for?
    Thanks!
    Brian

    Thanks Brennao.  Our Organizer90 files were 7MB - 9MB.  I've deleted them on my PC and a couple of others.  Adobe help was no help for disabling the the Organizer.  I had to search the forums again to find out where to do that, and low and behold, the app apparently defaults to store data for 12 months!  I've change the setting to "Don't Remember PDFs", on the same PCs and am monitoring the performance to see if this is the "Silver Bullet".  If it works we'll put the instructions in our company FAQs.
    Brian

  • How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " when file not downloaded

    How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " standart download manager when file not downloaded

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    You can try to set the browser.download.manager.scanWhenDone pref on the <b>about:config</b> page to false.
    *http://kb.mozillazine.org/about:config

  • AI plugin: When I try to close the file( not Illustrator), after I save, I've to close it manually.

    HI All,
    I use AI plugin- custom defined. When I try to close any AI file after I edit(without saving it), it gives me a pop-up saying "Save changes to AI document "xxxx.ai" before closing?" with three options- Yes, No or Cancel. If I click on "No" or "Cancel" it behaves normally(as expected) and when I click on "yes", it saves the file but doesn't close it. I have to close the file again, which is not the expected behavior. Please help me....

    This isn't an answer to your question, but rather some general debugging tips to use with the Illustrator API.
    First of all, almsot every API call returns an AIErr value.
    You can start to debug this code with
    AIErr error=kNoErr;
    AIDocumentHandle doc;
    error = sAIDocument->GetDocument(&doc);
    if(error)
      //There was a problem in the GetDocument call.  Inspect the value of 'error' to see which error it reports.
    error = sAIDocumentList->Close(doc);
    if(error)
      //There was a problem in the Close call.  Inspect the value of 'error' to see which error it reports.
    I wouldn't recommend it except when debugging because the API may change between versions, but the Handle classes are all pointers, so you can initialize them to zero.  Then, you should be able to see if GetDocument is changing doc and whether your error is from using -> with an uninitialized pointer.

  • Files not downloaded to the draft location on local pc with Sharepoint 2010

    I've recently upgrade my Office 2010 to Office 2013. Our sharepoint version is still 2010.
    After I check out a file from our sharepoint, the file is not downloaded to the local default location:
    C:\Users\username\Documents\SharePoint Drafts\
    My office option for the check out file is set to 'Save checked-out files to the server drafts location on this computer'.
    What steps should I do to make sure I can edit the checked-out file with Office 2013 on my computer?

    Anyone can help?

  • Open Dataset :  File Not Created In The Directory

    Hi Guru's,
    I have a small question, I try  trough my code  to create a file but when I use the "open dataset" nothing produces. I have no errors and in the debug mode the sy-subrc is always to "0".
    w_locdrive    = 'C:\RECON_SUP\'.
    w_rec         = '5499728464709 '.     "AO
    w_mess        = 'RECON_SUP'.
    SELECT /bic/ricr1_003  /bic/ricr1_061
           /bic/ricr1_010 /bic/ricr1_091 /bic/rikr2_001
          INTO CORRESPONDING FIELDS OF TABLE i_2006 FROM /bic/aro_r200600.
    CONCATENATE w_mess '.' w_send '.' w_rec '.' sy-datum sy-uzeit '.txt' INTO w_name.
    CONCATENATE w_locdrive w_name INTO w_path.
    IF i_2006[] IS NOT INITIAL.
      SORT i_2006 BY /bic/ricr1_003.
    *Open my file.
      OPEN DATASET w_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    * Put all records in the file output.
      LOOP AT i_2006 INTO wa_2006.
        w_rikr2_001 = wa_2006-/bic/rikr2_001. " Convert the Volume in char Field.
        CONCATENATE wa_2006-/bic/ricr1_003 ';' wa_2006-/bic/ricr1_061 ';' wa_2006-/bic/ricr1_010 ';'
                    wa_2006-/bic/ricr1_091 ';' w_rikr2_001
                    INTO  w_string.
        IF sy-subrc = 0.
          TRANSFER w_string TO w_path.
          CLEAR w_string.
        ENDIF.
      ENDLOOP.
    Thank you in advance for your help,
    Mohamed.

    Can you try like this
    OPEN DATASET w_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        IF sy-subrc = 0."<---Add here
    * Put all records in the file output.
      LOOP AT i_2006 INTO wa_2006.
        w_rikr2_001 = wa_2006-/bic/rikr2_001. " Convert the Volume in char Field.
        CONCATENATE wa_2006-/bic/ricr1_003 ';' wa_2006-/bic/ricr1_061 ';' wa_2006-/bic/ricr1_010 ';'
                    wa_2006-/bic/ricr1_091 ';' w_rikr2_001
                    INTO  w_string.
        IF sy-subrc = 0. "<---Remove here
          TRANSFER w_string TO w_path.
          CLEAR w_string.
        ENDIF."<---Remove here
      ENDLOOP.
    endif."<---Add here

  • I want to open online files, not download everything I click.

    This question applies to both Safari & Firefox.
    I search for online files to help me with school, could be PDF, PowerPoint, etc.
    When I click on a file it just downloads them. I want to open 1st and see if I even want the thing.
    With Windows, it would open and save in a temporary folder and I could save the file if I liked it. With my new Mac, it's just saving everything I click on then I have to go delete it if I didn't like it.
    Any settings to fix? Safari and Firefox doing this.
    I do have MS Office for Mac so when I click on these Power Points I do have the right programs.
    Thanks in advance.
    Message was edited by: medrep

    I tried the right click but it just opened a new window to save the file.
    There has got to be a way to open the file online to a temp without saving it.
    Just to clarify, with Windows if I found say a PDF I was interested in but not sure I wanted to download, my choices with Windows would be Open file using Adobe Reader or Save File.
    I could open it without saving it, and if I didn't like the file it wouldn't be saved on my hard drive. (It would in a temp folder, but that got automatically deleted.)
    With the Mac, I have to download everything I click on and then open the file and then if I don't like it, delete it.

Maybe you are looking for

  • Reading the serial number of a VXI-MXI-2 through software

    Is there a way to read the serial number of my VXI MXI 2 through software? I can find the model number and manufacturer number in the registers, but no serial number.

  • How to enable and install Enterprise Manager on Oracle E-Business Suite R12

    how to install Oracle Enterprise Manager. Were using single node Oracle E-Business Suite R12 (12.0.6) and our dbase version is 10.2.0, running under RedHat Linux 4 x64. I am following the below note How to Enable Enterprise Manager on the Oracle E-Bu

  • User Profile Disks - Backup/Restore

    I was considering deploying User Profile Disks in my 2012 R2 RDS environment instead of Roaming Profiles / Folder Redirection. However, I have noticed a potential flaw unless someone can shed some light on this. With UPD being relatively new there is

  • Bug in LR 5.6 export "Resize to Fit: Dimensions" feature?

    A site that I shoot for requires uploaded photos to be EXACTLY 3000 x 2216 pixel JPGs. In LR 5.6 I created a custom crop aspect 3.000 x 2.216 (~1.354:1). When I export the images, I set the "Resize to fit" parameters to be "Dimensions" and 3000 x 221

  • BBB Files Needed

    There seems to be a lot of confusion surrounding the new *.bbb BlackBerry Backup file format. I'm doing my best to sift through it all and I'm hoping some of you may be able to help me. Let me give you a little background first: I'm a software develo