Filename in gui_download and ws_download

Hi Friends..
if i using like this..
concatenate 'C:\'
              syst-date
              '.xls'
    into mc_filename.
in program and gave the mc_filname as a filename in the function module.its working fine in ws_download but it was not working in gui_download function module.
so please give your valuable suggetion regarding this..
Thanks
Gowrishankar

Hi Gowrishankar,
In WS_DOWNLOAD Function module Filename type is char but
In GUI_DOWNLOAD Function module Filename type is string.
so it is going to dump. first change the type of filename in your program
Plzz reward if it is helpful,
Mahi.

Similar Messages

  • Gui_download and ws_download

    Hi Guys,
    What is the difference between <b>gui_download</b> and <b>ws_download</b>.

    Hi,
    WS_DOWNLOAD is an outdate and obselete.
    <u><b>Functionality of GUI_DOWNLOAD:</b></u>
         File transfer from an internal table on the backend to a file on the
         presentation server.
         Storing SAP data in a file on the file system of the presentation
         server.
         The functionality is similar to that of module WS_DOWNLOAD. The
         difference is that the DataProvider is used for downloading the data
         instead of GMUX.
    Example
         1.) Binary download (not converted)
         begin of itab,
               raw(255) type x,
         end of itab occurs 0.
        CALL FUNCTION 'GUI_DOWNLOAD'
        exporting
           bin_filesize = 500
           filetype =  'BIN'
           filename = 'C:\DOWNLOAD.BIN'
        tables
          data_tab = itab.
        loads 500 bytes of internal table itab into the file 'C:\DOWNLOAD.BIN'
        on the frontend PC. The data transferred is not converted.
    JLN

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • GUI_DOWNLOAD and UPLOAD Function Modules?

    Hi All,
    What exactly done by GUI_DOWNLOAD and UPLOAD Function Modules?
    Akshitha.

    What you exactly want know?
    Here is the Sap documentation for both FM:
    FU GUI_UPLOAD
    Short Text
    Upload for Data Provider
    Functionality
    The module loads a file from the PC to the server. Data can be transferred binarily or as text. Numbers and date fields can be interpreted according to the user settings.
    Example
    Binary upload: No conversion or interpretation
                begin of itab,
                      raw(255) type x,
                end of itab occurs 0.
               CALL FUNCTION 'GUI_UPLOAD'
               exporting
                  filetype =  'BIN'
                  filename = 'C:\DOWNLOAD.BIN'
               tables
                 data_tab = itab.
    Text upload
               begin of itab,
                     text(255) type c,
               end of itab occurs 0.
               CALL FUNCTION 'GUI_UPLOAD'
               exporting
                  filetype = 'ASC'
                  filename = 'C:\DOWNLOAD.TXT'
               tables
                 data_tab = itab.
    Parameters
    FILENAME
    FILETYPE
    HAS_FIELD_SEPARATOR
    HEADER_LENGTH
    READ_BY_LINE
    DAT_MODE
    CODEPAGE
    IGNORE_CERR
    REPLACEMENT
    CHECK_BOM
    VIRUS_SCAN_PROFILE
    NO_AUTH_CHECK
    FILELENGTH
    HEADER
    DATA_TAB
    Exceptions
    FILE_OPEN_ERROR
    FILE_READ_ERROR
    NO_BATCH
    GUI_REFUSE_FILETRANSFER
    INVALID_TYPE
    NO_AUTHORITY
    UNKNOWN_ERROR
    BAD_DATA_FORMAT
    HEADER_NOT_ALLOWED
    SEPARATOR_NOT_ALLOWED
    HEADER_TOO_LONG
    UNKNOWN_DP_ERROR
    ACCESS_DENIED
    DP_OUT_OF_MEMORY
    DISK_FULL
    DP_TIMEOUT
    Function Group
    SFES
    FU GUI_DOWNLOAD
    Short Text
    Download an Internal Table to the PC
    Functionality
    Data transfer of an internal table form the server to a file on the PC. The Gui_Download module replaces the obsolete modules Ws_Download and Download. The file dialog of the download module is available in the class Cl_Gui_Frontend_Services.
    Further information
    TYPE-POOLS: ABAP.
    Binary download table
    DATA: BEGIN OF line_bin,
             data(1024) TYPE X,
          END OF line_bin.
    DATA: data_tab_bin LIKE STANDARD TABLE OF line_bin.
    Ascii download table
    DATA: BEGIN OF line_asc,
             text(1024) TYPE C,
          END OF line_asc.
    DATA: data_tab_asc LIKE STANDARD TABLE OF line_asc.
    DAT download table
    DATA: BEGIN OF line_dat,
             Packed   TYPE P,
             Text(10) TYPE C,
             Number   TYPE I,
             Date     TYPE D,
             Time     TYPE T,
             Float    TYPE F,
             Hex(3)   TYPE X,
             String   TYPE String,
          END OF line_dat.
    DATA: data_tab_dat LIKE STANDARD TABLE OF line_dat.
    Get filename
    DATA: fullpath      TYPE String,
          filename      TYPE String,
          path          TYPE String,
          user_action   TYPE I,
          encoding      TYPE ABAP_ENCODING.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
       EXPORTING
         WINDOW_TITLE         = 'Gui_Download Demo'
         WITH_ENCODING        = 'X'
         INITIAL_DIRECTORY    = 'C:\'
      CHANGING
         FILENAME             = filename
         PATH                 = path
         FULLPATH             = fullpath
         USER_ACTION          = user_action
         FILE_ENCODING        = encoding
      EXCEPTIONS
         CNTL_ERROR           = 1
         ERROR_NO_GUI         = 2
         NOT_SUPPORTED_BY_GUI = 3
         others               = 4.
    IF SY-SUBRC <> 0.
      EXIT.
    ENDIF.
    IF user_action <> CL_GUI_FRONTEND_SERVICES=>ACTION_OK.
      EXIT.
    ENDIF.
    Download variables
    DATA: length TYPE I.
    Binary download
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                         = fullpath
           FILETYPE                         = 'BIN'
        IMPORTING
          FILELENGTH                       = length
        TABLES
          DATA_TAB                         = data_tab_bin
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                         = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                     = 4
         NO_AUTHORITY                     = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                        = 17
         DP_TIMEOUT                       = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                           = 22.
    Ascii download
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                         = fullpath
           FILETYPE                         = 'ASC'
        IMPORTING
          FILELENGTH                       = length
        TABLES
          DATA_TAB                         = data_tab_asc
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                         = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                     = 4
         NO_AUTHORITY                     = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                        = 17
         DP_TIMEOUT                       = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                           = 22.
    DAT download
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                         = fullpath
           FILETYPE                         = 'DAT'
        IMPORTING
          FILELENGTH                       = length
        TABLES
          DATA_TAB                         = data_tab_dat
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                         = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                     = 4
         NO_AUTHORITY                     = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                        = 17
         DP_TIMEOUT                       = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                           = 22.
    Parameters
    BIN_FILESIZE
    FILENAME
    FILETYPE
    APPEND
    WRITE_FIELD_SEPARATOR
    HEADER
    TRUNC_TRAILING_BLANKS
    WRITE_LF
    COL_SELECT
    COL_SELECT_MASK
    DAT_MODE
    CONFIRM_OVERWRITE
    NO_AUTH_CHECK
    CODEPAGE
    IGNORE_CERR
    REPLACEMENT
    WRITE_BOM
    TRUNC_TRAILING_BLANKS_EOL
    WK1_N_FORMAT
    WK1_N_SIZE
    WK1_T_FORMAT
    WK1_T_SIZE
    WRITE_EOL
    FILELENGTH
    DATA_TAB
    FIELDNAMES
    Exceptions
    FILE_WRITE_ERROR
    NO_BATCH
    GUI_REFUSE_FILETRANSFER
    INVALID_TYPE
    NO_AUTHORITY
    UNKNOWN_ERROR
    HEADER_NOT_ALLOWED
    SEPARATOR_NOT_ALLOWED
    FILESIZE_NOT_ALLOWED
    HEADER_TOO_LONG
    DP_ERROR_CREATE
    DP_ERROR_SEND
    DP_ERROR_WRITE
    UNKNOWN_DP_ERROR
    ACCESS_DENIED
    DP_OUT_OF_MEMORY
    DISK_FULL
    DP_TIMEOUT
    FILE_NOT_FOUND
    DATAPROVIDER_EXCEPTION
    CONTROL_FLUSH_ERROR
    Function Group
    SFES

  • How to find out the filename of javascript and pathname of javascript?

    I got the filename of javascript and pathname of javascript(not the active document file name) using the below code in illustrator cs3.
    var path = $.fileName;
    But my problem was if i run the javascript through "extendscript toolkit" i got it correctly. But if i run my script through illustrator cs3 application(File->Scripts->test.jsx) i got some integer value only(did not get the javascript filepath and filename). Kindly advice how to get the javascript file name and file path in windows platform through illustrator cs3 javascript. Please help me.

    I already have that extension, but I'm not sure which idx I need to look at. Also, I suppose that the numbers I'm looking for depend on places.history.expiration.transient_current_max_pages and therefore there is no way to get them relative to the installation of Firefox. My point is, I can see my history only up to 1 year, even though I have Firefox installed for 3 years. Correct me if I'm wrong.

  • $PROFILES$.FILENAME, $PROFILES$.PRINTER and $PROFILES$.CONC_COPIES

    Hello All,
    I am developing BI Publisher reports. One of my requests is to auto print the generated output(PDF) file.
    When I asked the client to use normal printing functionality from concurrent manager, they said it requires user level profile option setup and it will affect all other reports.
    When I googled it, I found the following profile options used as arguments while creation driver,
    $PROFILES$.FILENAME, $PROFILES$.PRINTER and $PROFILES$.CONC_COPIES
    When these values will be initialized. Can we initialize and reset the values at run time.
    Does this will affect other reports.
    Regards,
    Kannan B

    Hi,
    Not sure on your full requirements, but you can set the printer name on the concurrent program, force the print to 1 copy, and I would guess you don't need the file name.
    Regards,
    Gareth

  • Need help: GUI_DOWNLOAD and tab-separated in between fields.

    hello everyone,
    this is the layout of the interface that i created:
             sy-title
    total records processed: XX
    total records failed: XX
    summary of the error
    pernr<tab>name<tab>error message<tab>otherfieldshere
    i wanted the error log to be saved locally thus, i have to use GUI_DOWNLOAD.
    ok, here's the current parameters i supplied with my gui_download:
    CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename                    = v_file_string
                filetype                      = 'ASC'
                write_field_separator   = 'X'
           TABLES
                data_tab                    = i_error_log
    (exceptions not displayed)
    the problem that i have is that, there is a difference between the error logs displayed after the execution and the error logs saved in my local directory.
    i did find a way to resolve this BUT, i still need to refine it. also, the spaces between the fields seems not tab delimited, but separated by space.
    to explain further here's the current error log that i have downloaded:
    10000001<tab>10/23/2006<tab>01<tab>P<tab>11<tab>01
    the header:
             sy-title
    total records processed: XX
    total records failed: XX
    summary of the error
    is not included in the downloaded errorlog file.
    i added some modification of my report to include it because, i want to to look exactly the same as of the errorlog generated/displyed after the execution.
    the result looks as it is what i've expected BUT,
    when i checked the spaces in between fields...
    it is all separated by spaces... not tab.
    here is the actual error log that i have obtained:
             sy-title
    total records processed: XX
    total records failed: XX
    summary of the error
    pernr<space><space><space>name<space><space><space><space><space><space>error message<space><space>otherfieldshere
    What i wanted to resolve is that, i want the error log to be tab delimited and not separated by space.
    is this possible? if it is, any suggestion will truly be appreciated.

    Hi,
    Please check your flat file i think it they have used the Three spaces instead of using a SINGLE TAB. between the fields.
    Thanks & Regards,
    Chandralekha.

  • GUI_DOWNLOAD and codepage problem

    I'm trying to download XML data using this function module to a local PC file. It contains finnish characters such as Ä.
    When I open the XML file with an XML editor, it tells me that "Byte 0xFF found in file ... is invalid for encoding utf-8'
    I think I need to save the file  with ISO-8859-9 encoding, but I tried to use a codepage for that in the function module, and that also didn't work.
    Can anybody suggest what I may be doing wrong?
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_filename
          filetype                = 'BIN'
          write_lf                = ' '
    *     codepage                = '1611'
        TABLES
          data_tab                = lt_table.

    Try using the following method:
    TRY.
          cl_bcs_convert=>string_to_solix(
            EXPORTING
              iv_string   = lv_string
              iv_codepage = '1611'
              iv_add_bom  = 'X'
            IMPORTING
              et_solix  = binary_content
              ev_size   = size ).
        CATCH cx_bcs.
          MESSAGE e445(so).
      ENDTRY.
    For your table run it for every line and append the lines of the 'binary_content' into a collecting table (binary_content_all or something). Play with the BOM (Byte order mark) to see if you need it or not. After the table has been processed you can download the binary_content_all with your function module but I recommend using:
    CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                  = l_filename
          filetype                  = 'BIN'
        CHANGING
          data_tab                  = binary_content
    Let me know if this was helpful!
    Cheers,
    Roel van den Berge

  • Issue with filename in gui_download fn module

    Hi,
    i have an issue with the filename of text file that was dowloaded using gui_download fn module.
    PARAMETERS : p_file TYPE rlgrap-filename.
    CONCATENATE s_laufd-low6(2) s_laufd-low4(2) INTO gv_dt.
    CONCATENATE 'HINL' gv_dt '.001' INTO p_file.
    START-OF-SELECTION.
      DATA: v_file TYPE string.
      v_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          append                  = 'X'
        TABLES
          data_tab                = it_tab[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    data is downloaded into the textfile with filename as HINL2411 truncating the decimal part.
    How can i get the filename along with the decimal part as HINL2411.001.
    Thanks

    Hi ,
    Declare p_file  as TYPE string

  • Actions - How to replace GUI_DOWNLOAD and CL_GUI_FRONTEND_SERVICES= FILE_SA

    Hi,
    In sap gui was trigered action whih is using smartform and then output was being downloaded and saved as using:
    CALL FUNCTION 'GUI_DOWNLOAD' - to
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    After the ubgrade this action is not working in web ui.
    Anyone knows how to change this to work in web ui?
    Thank you in advance

    Hi Tanja Lukovic 
    Pls check the settings defined in the SPRO path CRM->Basic settings->actions under this select your relevant application area and check whether any start/schedule conditions are not met (check in conditions) , apart from this reason there could be other reasons also pls check the trigger  processing type (it should be smart form print).
    if the actions are already created , you can change actions and conditions.
    Thanks & Regards
    Raj

  • GUI_DOWNLOAD and background processing

    Hello,
    I have created a process which creates a file. this process uses GUI_DOWNLOAD to put the file on the users C drive or other directory on our network. The user wants to run this process in background and the program is returning a 6  (error unknown) from the GUI_DOWNLOAD FM. I was looking on SDN and found out the GUI_DOWNLOAD only works in foreground. You have to use OPEN and CLOSE DATASET statements to process in background. I am thinking about putting a button to denote foreground/background processing and using the appropriate statements to process the file. I will then have to get the file from the app server to a place will the user can get access to it.
    <b>first question</b> - is there a FM to do a FTP from the app server to a directory on our network for the user to access?
    <b>second question</b> - is this the right approach or is there something else that I should be doing.
    thanks in advance for your help

    Hi,
    Yes, your right, GUI_DOWNLOAD wil not work in background mode, you need to place the file in Application server, here.
    See the below link for a FTP program, use the proper commands(i do not know whether downloading the file is possible through the commands)
    http://www.sap-img.com/ab003.htm
    or else, write a small program which downloads the data from the application server, but it should run in the foreground
    Regards
    Sudheer

  • Cl_gui_frontend_services= gui_download and logical path issue

    Hi all!!
       I'm downloading a table with this class/method, and when i have worked with a LOCAL folder, it worked fine, but now, i need to put the file into a server folder. So i get the logical path in this way:
    10.20.xx.xx
    but when i pass the filename to the method: v_filename = '
    10.20.xx.xx\file.txt' the file is not generated into this folder.. and i have permission to access and modify this folder..
    Thanks for your feedbak!

    If you need transfer each record of the table (I suppose itab with header line):
    LOOP  AT itab.
      TRANSFER itab TO file_path
    ENDLOOP.
    Note: All of fields in itab must be character-type if the file was opened as a text file.
    Other example:
    OPEN DATASET '/usr/sap/tmp/ztest.txt' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      TRANSFER zdepmentt TO '/usr/sap/tmp/ztest.txt'.
    ENDIF.
    CLOSE DATASET '/usr/sap/tmp/ztest.txt'.
    Here the content of the data object (flat structure) "zdepmentt" is transferred to the application server file  '/usr/sap/tmp/ztest.txt'.
    Note: The file ztest.txt is automaticaly created.

  • What is difference between GUI_download and Open dataset

    Dear All,
    I know there are 2 options for downloading SAP data.
    1)  GUI_DOWNLOAD Functional Module.
    2)  OPEN DATASET DSET FOR OUTPUT IN TEXT MODE.
    What is the difference ??
    When I should use ?? What are the deciding factors ??
    Regards
    venkat

    Hi All,
    Thank You very Much for quick replies.
    1) GUI_DOWNLOAD is used to download data into your local PC. can be run only in frontend.
    2) OPEN DATASET is used for downloading into Application Server
    Thank You one and all.
    Closing Thread, Alloting Points.

  • [Oracle 11g] Store filename as VARCHAR2 and its content as XMLType

    Hi all,
    The version of Oracle used is 11.2.0.3.0.
    I would like to load a XML file into a table from AIX with a Shell script.
    Here is the test case table:
    ALTER  TABLE mytable DROP PRIMARY KEY CASCADE;
    DROP   TABLE mytable CASCADE CONSTRAINTS;
    CREATE TABLE mytable (
       filename VARCHAR2 (50 BYTE),
       created DATE,
       content SYS.XMLTYPE,
       CONSTRAINT pk_mytable PRIMARY KEY (filename) USING INDEX
    XMLTYPE content STORE AS BINARY XML;The problem is to store the the file name too.
    So I add a step to create the control file from a generic one like this:
    #!/bin/ksh
    FILES=$(sample.xml)
    CTL=generic.CTL
    for f in $FILES
    do
        cat $CTL | sed -e "s/:FILE/$f/g" > $f.ctl
        sqlldr scott/tiger@mydb control=$f.ctl data=$f
        rc=$?
        echo "Return code: $rc."
    doneThe filename and the data are stored in the table, but I get this error message after executing the Shell script:
    SQL*Loader: Release 11.2.0.3.0 - Production on Mon Jun 11 13:42:21 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-275: Data is in control file but "INFILE *" has not been specified.
    Commit point reached - logical record count 64And here is the content of the log file:
    SQL*Loader: Release 11.2.0.3.0 - Production on Mon Jun 11 14:13:43 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-275: Data is in control file but "INFILE *" has not been specified.
    Control File:   sample.ctl
    Data File:      sample.xml
      Bad File:     sample.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table MYTABLE, loaded from every logical record.
    Insert option in effect for this table: APPEND
       Column Name                  Position   Len  Term Encl Datatype
    FILENAME                                                  CONSTANT
        Value is 'sample.xml'
    CONTENT                           DERIVED     *  EOF      CHARACTER
        Dynamic LOBFILE.  Filename in field FILENAME
    Record 2: Rejected - Error on table MYTABLE.
    ORA-00001: unique constraint (PK_MYTABLE) violated
    Record 3: Rejected - Error on table MYTABLE.
    ORA-00001: unique constraint (PK_MYTABLE) violated
    Record 4: Rejected - Error on table MYTABLE.
    ORA-00001: unique constraint (PK_MYTABLE) violated
    Record 5: Rejected - Error on table MYTABLE.
    ORA-00001: unique constraint (PK_MYTABLE) violated
    and so on...
    Record 52: Rejected - Error on table MYTABLE.
    ORA-00001: unique constraint (PK_MYTABLE) violated
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table MYTABLE:
      1 Row successfully loaded.
      51 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                   1664 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:            64
    Total logical records rejected:        51
    Total logical records discarded:        0
    Run began on Mon Jun 11 14:13:43 2012
    Run ended on Mon Jun 11 14:13:43 2012
    Elapsed time was:     00:00:00.23
    CPU time was:         7586:56:08.38It seems that the control file try to insert as many rows than the number of lines in the file sample.xml !!!
    So, I cannot check if load is done correctly since return code is allways 2!
    Is it the correct way to solve my problem ?
    What can I do to get it better ?

    Another question !
    Here is an other way of doing it.
    #!/bin/ksh
    FILEPATH=./data/sample.xml
    FILENAME=$(basename ${FILEPATH})
    CTLFILE=load_data.ctl
    cat > ${CTLFILE} <<EOF
    LOAD DATA
    INFILE *
    INTO TABLE mytable APPEND
        filename CONSTANT "${FILEPATH}",
        created "SYSDATE",
        content LOBFILE (filename) TERMINATED BY EOF
    BEGINDATA
    ${FILEPATH}
    EOF
    sqlldr scott/tiger@mydb control=${CTLFILE}
    rc=$?
    echo "Return code: $rc."I've tested this script, it's okay.
    Now I want to store the basename of the file : ${FILENAME}.
    How can I do that ?
    The problem is that I can no more write "LOBFILE (filename)" because it does not point to the correct path of the file !!!
    Someone can help me please ?
    Thanks.

  • Flash gallery - filename on thumbnail and get rid of sequence display next to slideshow controls

    Hello. Thanks in advance for you help. I'm wondering two things as I'm trying to tweak my use of flash web galleries for client image selection.
    First, is there any way to get the filename to display on the thumbnails in the gallery? Used to have this with html galleries from bridge/pshop. Clients are complaining about this - especially when picking images for compositing, and it makes it difficult if not impossible to compare images within a big gallery.
    Next, I've had one client (IQ challenged), that told me to process file number 10. Instead of filename # ABC001_010, what they were referring to was the 10/250 that's next to the slideshow controls. Stupid, but true. Anyway, I have no use for the sequence number so I'm wondering if there's a way to get rid of it on the gallery without having to do a custom edit to the code or whatever.
    Thank you!
    John Linn
    http://www.adventurecreative.com

    John,
    I totally agree with you: also my clients start to complain that they miss the filenames on the thumbnails (I use an edited version of the Lightroom HTML Template). Seems that clients don't take (have) the time nowadays to go through the full versions...
    As a convinced convert from Iview Media Pro this is about the only thing I really miss. Would be very nice if someone (G. Jardine?) would throw in some code here!
    Thanks in advance!
    Roy Beusker

Maybe you are looking for

  • HD cam with FCP 5.1.4 ?

    Hi everybody, as I encounter big problems with my DV Canon XM1, I plan to buy a new one maybe HD cam. I saw that most of those cams have USB connection and no more FW, will I be able to capture an HD cam from FCP ? I doubt of it but can you tell me h

  • Re: Satellite Z30-A with Win 8.1 - Driver update confusion

    Hello, I have a question regarding driver updates. Currently, Windows Update recommends me to update the audio driver (important) and the LAN driver (optional). Toshiba Service Station, however, doesnt offer new drivers for these devices. My question

  • JSP Newbie

    Hi, I want to know when we include this statement import java.sql.*; import java.io.*; in our scriplet...Where does this statement look for the class file? is it in C:\jdk1.3.1_04 or in one of the classes file in Tomcat folder?

  • Xml structure being ignored

    XML structure in "Bus Card Order Form" created in inDesign is being ignored by Acrobat>Tools>Forms>More Form Options>Export Data.  inDesign form also has DTD. 1. inDesign "BC Order Form" is output to interactive pdf fillable form 2. pdf filled form i

  • Idoc packaging - Can it be done this way?

    I am just thinking about - creating a ZIDOC - which would have structures - of type another idoc - say HRMD_A07 (0 to Unbounded). In the other words, <ZIDOC> <HRMD_A07></HRMD_A07> <HRMD_A07></HRMD_A07> <HRMD_A07></HRMD_A07> </ZIDOC> I am not sure if