GUI Upload Issue

Hello Folks,
My requirement is that i will scan documents in some application server and when clicked on the link in WDA the scan document need to displayed it can be either TIF or PDF format containing more than 1 page.
I dont not need any upload element on the screen. For testing  i tried uploading a file from my desk top using Function Module GUI_UPLOAD and i get an error while executing this FM saying "Access via 'NULL' object reference not possible".
the function call is as below, please suggest if there is something wrong with the call or if ther is another approach to do this. Thanks.
  TYPES : BEGIN OF ty_doc ,
           raw(64) TYPE x,
          END OF ty_doc.
  DATA : lt_doc TYPE TABLE OF ty_doc,
         lf_doc TYPE ty_doc,
         l_size TYPE i.
CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = 'C:\Documents and Settings\user\Desktop\doc.tif'
      filetype                = 'BIN'
    IMPORTING
      filelength              = l_size
    TABLES
      data_tab                = lt_doc
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.

If I understand what you want to do is import a file into your WebDynpro application then the method to be followed is as shown below.
>Steps:
>> 1. Right click on the application you are creating.
>> 2. Follow the menu option: Create->Mime Objects -> Import
>> 3. You will get a popup with the header SAP Custom-Open File Menu
>> 4. Choose the file you want to import and click on Open
>> 5. You will get a new document for Creating New Document. Enter description and click on Save .
>> 6. Choose the Package and save. Your file will be stored under the same application under MIMEs.
If what you want is to import a file into the system, and not to the WebDynpro application, then you can
>> 1. go to SE80.
>> 2. Choose MIME Repository. Open a folder where you want to import the file.
>> 3. Right Click on the folder that you desire to import the file to. Menu: Import MIME Objects.
>> 3. Repeat the steps 3 - 6.

Similar Messages

  • HI all pls give me diff btwn upload ws_upload and GUI Upload

    HI All,
             pls give me difference  between
            upload
            ws_upload and
            GUI Upload
    Thanks & regards .
    Bharat Kumar

    Hi,
    WS_* Function modules are replaced by GUI_* FMs from 4.7 SAP version.
    GUI_* modules have additional parameters when compared with WS_* FMs.
    Both FM are used for uploading data .
    But ws_upload is obsolete now .
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
    WS_UPLOAD, GUI_UPLOAD FMs are used in BDCs.
    WS_UPLOAD loads files from the Presentation Server to Internal ABAP Tables.
    This is used upto SAP 4.6 version.
    GUI_UPLOAD is used to loads a file from the PC to the server. The data can be
    transferred in binary or text format. Numbers and data fields can be
    interpreted according to the user settings.
    You can check this for some info
    http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm
    http://www.sapdevelopment.co.uk/file/file_otherpc.htm
    Regards,
    Priyanka.

  • Problem while uploading data with GUI UPLOAD Function

    Hi,
      I am facing problem while uploading data with FM GUI UPLOAD    in out text file there are 7 row  but after the FM GUI UPLOAD  there are 14 entries are coming in Internal table   and each alternate row is coming as blank  with  0000 in some column   in internal table first row is proper and second line is blank so on.
    what can be the problem .
    The program in which we are using this we are using it from last 2 year but we are facing problem today only.
    regards,
      zafar

    Hi,
      The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change  in the file formate.
      So waht can be the problem  to check any inconsistancy in system  i have develop a samll program fro  uploading a text file with same function module ,  but it is working fine.
    regards,
      zafar

  • Uploading issues to other providers than .mac

    has anyone had uploading issues to other providers than .mac??

    can the names of the pages have spaces in them, or do
    i have to change both the file name and the name of
    the page?
    As the note says, some servers will let you upload files with spaces in their names, and some will not. Names without spaces will always work.
    In iWeb, the name you give to a site or page is the same as the name of the folder or file associated with it. So to avoid spaces in folder or file names, you need to omit them in the site and page names, or replace by hyphen or underscore.

  • Help on gui upload

    HI ,
    I am using GUI upload function and i get the data into table and i want to move this data to field type string how can i do that ?
    Regards
    Joy
    DATA: gt_itab TYPE STANDARD TABLE OF char2048.
    START-OF-SELECTION.
    CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = gs_file
        CHANGING
          data_tab                = gt_itab
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.

    Hi,
    Refer following code
    types :        BEGIN OF ty_s_download,
            data            TYPE string,                          "Tax Data
            END OF ty_s_download.
    G L O B A L  D A T A   D E C L A R A T I O N S
    *Global Internal tables
    DATA :  gt_download      TYPE STANDARD TABLE OF ty_s_download. "Download data
      LOOP AT gt_tax_data INTO ls_tax_data.
      Pass All the tax data to screen output table
        ls_output-bukrs           = ls_tax_data-bukrs.
        ls_output-state           = ls_tax_data-state.
        ls_output-store           = ls_tax_data-store.
        ls_output-tax_type        = ls_tax_data-tax_type.
        ls_output-tax_rate        = ls_tax_data-tax_rate.
        ls_output-discount_amount = ls_tax_data-discount_amount.
        lv_discount               = ls_tax_data-discount_amount.
        lv_tax_rate               = ls_output-tax_rate.
      Calculate Gross tax due
        ls_output-gross_due = ls_tax_data-report_amount.
        lv_gross_due        = ls_output-gross_due.
        IF NOT ls_tax_data-tax_rate IS INITIAL.
        Calculate Taxable Purchase
          ls_output-purchase = ls_output-gross_due / ls_tax_data-tax_rate.
        ELSE.
          ls_output-purchase = 0.   "Default it to zero if the tax_rate is zero.
        ENDIF.
        lv_purchase = ls_output-purchase.
      Calculate Net Tax Due
        ls_output-net_due = ls_output-gross_due - ls_tax_data-discount_amount.
        lv_net_due        = ls_output-net_due.
      Concatenate all field values
        CONCATENATE ls_output-bukrs
                    ls_output-state
                    ls_output-store
                    ls_output-tax_type
                    lv_purchase
                    lv_tax_rate
                    lv_gross_due
                    lv_discount
                    lv_net_due
                    INTO  ls_download-data
                    SEPARATED BY lc_tab.
      Append all the downloaded tax data
        APPEND ls_download TO gt_download.
      Clear work areas
        CLEAR : ls_output,
                ls_tax_data,
                ls_download,
                lv_purchase,
                lv_discount,
                lv_tax_rate,
                lv_net_due,
                lv_gross_due.
      ENDLOOP.
    Regards,
    Prashant

  • How to upload (.txt) file by using GUI Upload?

    I tried to upload .csv file in using GUI upload and it works.
    THIS IS MY SAMPLE CODE.
    CLEAR w_rawfile.
      DESCRIBE TABLE i_rawfile LINES v_read.     "Counter for records read
      Condense w_rawfile-field.
    Separate header record from detail records
      LOOP AT i_rawfile INTO w_rawfile.
        IF sy-tabix = 1.           "header is always the first record
          SPLIT w_rawfile-field AT ' ' INTO
            w_header_file-name1
            w_header_file-name2
            w_header_file-name3
            w_header_file-cntry
            w_header_file-address1
            w_header_file-address2.
      APPEND w_header_file TO i_header_file.
          CLEAR: w_header_file.
        ELSE.            "succeeding records are detail records
          SPLIT w_rawfile-field AT ',' INTO
                 w_inputfile-nachn
                 w_inputfile-vorna
                 w_inputfile-nach2
                 w_inputfile-land1
                 w_inputfile-stras
    APPEND w_inputfile TO i_inputfile.
    ENDIF.
    IF i try to replace my file into a .txt format. An error occurs. Please kindly give me the code to do this correctlt. ThanX!

    Reading Data from Presentation Server (Dialog)
    To read data from the presentation server into an internal table with a user dialog, use the function module UPLOAD. The most important parameters are listed below. For more information, refer to the function module documentation in the Function Builder (Transaction SE37).
    Important Import Parameters
    Parameters
    Function
    CODEPAGE
    Only for upload under DOS: Value IBM
    FILENAME
    Filename (default value for user dialog)
    FILETYPE
    File type (default value for user dialog)
    ITEM
    Title for dialog box
    Use the FILETYPE parameter to specify the transfer mode. Possible values:
    BIN
    Binary files
    ASC
    ASCII files: Text files with end of line markers.
    DAT
    Excel files, saved as text files with columns separated by tabs and lines separated by line breaks.
    WK1
    Excel and Lotus files saved as WK1 spreadsheets.
    Important Export Parameters
    Parameters
    Function
    FILESIZE
    Number of bytes transferred
    ACT_FILENAME
    Filename (as entered in the user dialog)
    ACT_FILETYPE
    File type (as entered in the user dialog)
    Tables Parameters
    Parameters
    Function
    DATA_TAB
    Internal table (target for the import)
    Exceptions Parameters
    Parameters
    Function
    CONVERSION_ERROR
    Error converting data
    INVALID_TABLE_WIDTH
    Invalid table structure
    INVALID_TYPE
    Incorrect FILETYPE parameter
    Suppose the presentation server is running under Windows NT, and contains the following Excel file:
    If this table is saved as a text file "D:\temp\mytable.txt" with tabs between the columns, the following program can read the table:
    PROGRAM SAPMZTST.
    DATA: FNAME(128), FTYPE(3), FSIZE TYPE I.
    TYPES: BEGIN OF LINE,
             COL1(10) TYPE C,
             COL2(10) TYPE C,
             COL3(10) TYPE C,
           END OF LINE.
    TYPES  ITAB TYPE LINE OCCURS 10.
    DATA: LIN TYPE LINE,
          TAB TYPE ITAB.
    CALL FUNCTION 'UPLOAD'
         EXPORTING
              CODEPAGE            = 'IBM'
              FILENAME            = 'd:\temp\mytable.txt'
              FILETYPE            = 'DAT'
              ITEM                = 'Read Test for Excel File'
         IMPORTING
              FILESIZE            =  FSIZE
              ACT_FILENAME        =  FNAME
              ACT_FILETYPE        =  FTYPE
         TABLES
              DATA_TAB            =  TAB
         EXCEPTIONS
              CONVERSION_ERROR    = 1
              INVALID_TABLE_WIDTH = 2
              INVALID_TYPE        = 3.
    WRITE: 'SY-SUBRC:', SY-SUBRC,
         / 'Name    :', (60) FNAME,
         / 'Type    :', FTYPE,
         / 'Size    :', FSIZE.
    SKIP.
    LOOP AT TAB INTO LIN.
       WRITE: / LIN-COL1, LIN-COL2, LIN-COL3.
    ENDLOOP.
    The program displays the following dialog box:
    Here, the user can change the default values. When the user chooses Transfer, the system imports the data from the file D:\temp\mytable.txt into the internal table TAB.
    The output appears as follows:
    SY-SUBRC: 0
    Name : d:\temp\mytable.txt
    Type : DAT
    Size : 69
    Billy the Kid
    My Fair Lady
    Herman the German
    Conan the Barbarian
    The contents of the internal table TAB are exactly the same as the contents of the original Excel table.

  • Gui upload Function module

    hi,
    when i upload a file using gui upload Function module , the dot in the excel sheet gets converted into 'e' . is there any other Function module i can use to do that .
    Thanks,
    Amit

    HI,
    You need to USe the FM <b>'ALSM_EXCEL_TO_INTERNAL_TABLE'</b>
    *& Report  UPLOAD_EXCEL                                                *
    *& Upload and excel file into an internal table using the following    *
    *& function module: ALSM_EXCEL_TO_INTERNAL_TABLE                       *
    REPORT  UPLOAD_EXCEL no standard page heading.
    *Data Declaration
    data: itab like alsmex_tabline occurs 0 with header line.
    * Has the following format:
    *             Row number   | Colum Number   |   Value
    *      i.e.     1                 1             Name1
    *               2                 1             Joe
    TYPES: Begin of t_record,
        name1 like itab-value,
        name2 like itab-value,
        age   like itab-value,
        End of t_record.
    DATA: it_record type standard table of t_record initial size 0,
          wa_record type t_record.
    DATA: gd_currentrow type i.
    *Selection Screen Declaration
    PARAMETER p_infile like rlgrap-filename.
    *START OF SELECTION
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_infile
                i_begin_col             = '1'
                i_begin_row             = '2'  "Do not require headings
                i_end_col               = '14'
                i_end_row               = '31'
           tables
                intern                  = itab
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
      if sy-subrc <> 0.
        message e010(zz) with text-001. "Problem uploading Excel Spreadsheet
      endif.
    * Sort table by rows and colums
      sort itab by row col.
    * Get first row retrieved
      read table itab index 1.
    * Set first row retrieved to current row
      gd_currentrow = itab-row.
      loop at itab.
    *   Reset values for next row
        if itab-row ne gd_currentrow.
          append wa_record to it_record.
          clear wa_record.
          gd_currentrow = itab-row.
        endif.
        case itab-col.
          when '0001'.                              "First name
            wa_record-name1 = itab-value.
          when '0002'.                              "Surname
            wa_record-name2 = itab-value.
          when '0003'.                              "Age
            wa_record-age   = itab-value.
        endcase.
      endloop.
      append wa_record to it_record.
    *!! Excel data is now contained within the internal table IT_RECORD
    * Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    See the Below wxamples to uploa the excel file
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    http://www.sap-img.com/abap/upload-material-master-finish-goods.htm

  • Batch Input Recording - GUI Upload Function

    Hello,
    i want to record a batch input.
    Within the recording a Gui Upload Function is called, so that the user have to select a file from the local disk, which should be uploaded into the system. That step wasn't recorded by the bach input recording.
    Is there any soluion for that?
    Regards,
    TomSd

    As Suhas said, these kind of UI dialogs cannot be handled by batch input technology.
    Sometimes transactions allow the batch input by displaying another kind of UI dialog that is allowed. Try to record using "simulate background mode", maybe the program will display another UI dialog. Make sure also to untick the "no BI mode" checkbox.
    But maybe this transaction isn't planned to be used in batch input at all (which transaction do you need to record?). In that case, the only solution is maybe eCATT (with external tool connected as I am aware).

  • LR 4/4.1RC and flickr uploading issues - resolved?

    Have the uploading issues between LR 4/4.1RC and flickr been resolved?  Waiting on upgrading from LR3, but the forum reports from unhappy flickr users wanting to "downgrade' are making me nervous.  Should I wait, just upgrade to 4.0 and leave the RC alone for now?  

    An update ...
    I have discovered that RC2 publishing does seem to be working (for me) but Flickr or LR seems to be objecting ("Invalid at the top level of the document") to specific images possibly relating to the contents of the caption field.
    I narrowed down the failure to just one image ... removed its caption... it published, I put the caption back on - "Invalid ..." error came back.
    FYI and not sure if relevant - I sometimes put http links in my caption fields.
    I would have come back with a more comprehensive test, but it now appears that LR will not communicate with Flickr at all, now saying it cannot contact the Flickr service, so I cannot investigate further yet.
    I know a little off the wall here ... but is it conceivable that Flickr itself has locked me out due to "erroneous" or suspicious content?     I have never had problems with LR talking to Flickr before today and publishing to SmugMug is still working fine.  

  • WEB Gui logon issue.

    Dear Support,
    I've activated the SAP Webgui and it is working fine. The problem is that the username and password textboxes on login screen are disabled with a message 'via popup' and when i click logon a popup ask me for the username and password. I want to enable these textboxes so that despite a popup occur user can input their information directly on logon page.
    Please help me to resolve this issue. Thanks in advance
    With best regards,
    Basis Team

    Dear Edgar,
    Thanks a lot for your prompt reply. I've made the settings you specify and now the text boxes are visible. but when i enter username and password and press logon button then it give me the following error:
    "Erorr start here
    The URL http://172.16.100.180:8000/sap/bc/gui/sap/its/webgui was not called due to an error.
    Note
    The following error text was processed in the system T01 : Communication failure
    The error occurred on the application server ideskesc_T01_00 and in the work process 0 .
    The termination type was: IMC_CANCEL_TX
    The ABAP call stack was:
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_ITS===============CP
          Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
          Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
          Module: %_HTTP_START of program SAPMHTTP
    Error ends here".
    Please help and guide me to resolve this issue.
    Thanks a lot.
    Basis Team.
    Edited by: Basis team on Jun 19, 2009 9:06 AM

  • SAP Gui 730 issue with crobu theme

    Hello Frineds, Our developer team is facing some strange issue. They are able using corbu theme in SAP GUI 720. but after the new SAP GUI 730 implementaion, they are not able to use this theme. Checked all the notes etc, but its not clear on themes part.  Any one faced this kind of issue or any suggestions. Thanks in advance. Regards Munish

    Hi Munish,
    Can you raise this in ABAP community ?
    Also, to help you further can you drill down to some more relevant information ?
    As far as one can understand, it's a rendering problem with SAP GUI 730.
    This can also be compatibility issue with your kernel and application.
    I would suggested you to check all above options.
    Regards,
    Divyanshu

  • SAP GUI Compatibility issue with Windows 2008R2 64 Bit

    Hi Gurus
    Is anyone experienced connectivity issue with SAP GUI (32bit)  on Windows 2008R2 64bit? Except base version of 7.3 every Service Pack failing
    to connect, Strange thing was it was working with SP5 in WINDOWS 7 64bit.
    Your inputs greatly appreciated.
    -giri

    Hi Giri
    Yes, You can do the normal installation on windows 2008 / 2008 R2 systems. we are using in our environment. is this any error message while installation or SAPGUI execution time?
    Refer the SAP Note  66971 - Supported SAP GUI platforms
    BR
    SS

  • SAP GUI EDITOR issue

    Hello Experts,
    I am having some issue in the SAP GUI editor.
    Whenver I open the SCREEN painter. It opens in line editor with error "EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'"
    My graphic layout editor option is checked.
    The Component version is SAP EHP 1 for SAP Solution Manager 7.0
    GUI version is 640
    My other box whose component version ECC 6.0. There editor is opening in the Graphical format.
    kindly help.
    Regards,
    Hema

    Hello,
    This is version compatibility issue. You can talk to BASIS administrator and get the lastest SAP GUI installed.
    Thanks,
    Augustin.

  • Multiple cffile upload issues

    Hello all. I'm having a little issue with a multiple upload I
    am trying to achieve. I've been searching and searching but could
    not find an answer, and maybe you guys could help me. Well I'm
    doing multiple uploads on a form i created and it's uploading the
    file and file name correctly, but it's inserting 6 records
    everytime I'm hitting the submit button. Also, I've notice in my
    database is when you click the submit button, it's inserting the
    same file in one record 6 times, then it creates a new record and
    inserts the second file 6 times. I'm going to post the code here,
    maybe it's something I'm missing, not sure. Thanks for the help.

    dame.cranon wrote:
    > Hello all. I'm having a little issue with a multiple
    upload I am trying to
    > achieve. I've been searching and searching but could not
    find an answer, and
    > maybe you guys could help me. Well I'm doing multiple
    uploads on a form i
    > created and it's uploading the file and file name
    correctly, but it's inserting
    > 6 records everytime I'm hitting the submit button. Also,
    I've notice in my
    > database is when you click the submit button, it's
    inserting the same file in
    > one record 6 times, then it creates a new record and
    inserts the second file 6
    > times. I'm going to post the code here, maybe it's
    something I'm missing, not
    > sure. Thanks for the help.
    >
    >
    >
    > <cfloop index="i" from="1" to="6">
    >
    > <cfif isDefined("form.upload")>
    >
    > <cffile action="upload"
    > destination="D:\Hosting\streetzmag\dev\crush_images\"
    > filefield="pic#i#"
    > nameconflict="makeunique"
    > result="cffile.pic#i#"
    > accept="image/jpeg, image/pjpeg, image/gif" >
    >
    > <!--- Code for insert of information --->
    > <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    > INSERT INTO Information(firstname,
    > lastname,
    > email,
    > contact_info,
    > nickname,
    > recent_work,
    > hair_color,
    > eye_color,
    > ethnicity,
    > age,
    > height,
    > measurements,
    > pic_1,
    > pic_2,
    > pic_3,
    > pic_4,
    > pic_5,
    > pic_6
    >
    >
    > )
    > VALUES('#FORM.firstname#',
    > '#FORM.lastname#',
    > '#FORM.email#',
    > '#FORM.contact#',
    > '#FORM.nickname#',
    > '#FORM.work#',
    > '#FORM.hair#',
    > '#FORM.eye#',
    > '#FORM.ethnic#',
    > #FORM.age#,
    > '#FORM.height#',
    > '#FORM.measurements#',
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>
    >
    > )
    > </cfquery>
    > </cfif>
    > </cfloop>
    >
    of course it will do everything 6 times since you have your
    whole code
    wrapped with cfloop from 1 to 6... so the code execution will
    happen 6
    times... plus your synatx for inserting filenames inside your
    query
    makes it insert same file 6 times (since the code is inside
    one same
    cfloop)...
    you should separate your code and wrap only the cffile part
    in a cfloop:
    <cfif isDefined("form.upload")>
    <cfloop index="i" from="1" to="6">
    <cfif len(trim(form.pic#i#)) gt 0>
    <cffile action="upload"
    destination="D:\Hosting\streetzmag\dev\crush_images\"
    filefield="pic#i#"
    nameconflict="makeunique"
    result="uploadedpic_#i#"
    accept="image/jpeg, image/pjpeg, image/gif" >
    </cfif>
    </cfloop>
    <!--- Code for insert of information --->
    <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    INSERT INTO Information
    (firstname,
    lastname,
    email,
    contact_info,
    nickname,
    recent_work,
    hair_color,
    eye_color,
    ethnicity,
    age,
    height,
    measurements,
    pic_1,
    pic_2,
    pic_3,
    pic_4,
    pic_5,
    pic_6)
    VALUES('#FORM.firstname#',
    '#FORM.lastname#',
    '#FORM.email#',
    '#FORM.contact#',
    '#FORM.nickname#',
    '#FORM.work#',
    '#FORM.hair#',
    '#FORM.eye#',
    '#FORM.ethnic#',
    #FORM.age#,
    '#FORM.height#',
    '#FORM.measurements#',
    <cfloop from="1" to="6" index="x">
    <cfif isdefined("uploadedpic_#x#")>
    <cfqueryparam value="#evaluate('uploadedpic_' & x)#"
    cfsqltype="cf_sql_varchar"/>
    <cfelse>
    NULL
    </cfif>
    <cfif x lt 6>,</cfif>
    </cfloop>)
    </cfquery>
    </cfif>
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • SAP GUI Memory issues on Windows Terminal Server 2003!!

    Hi All
    We are currently experiencing serious issues with our terminal servers and SAP GUI. It appears that SAP GUI is consuming a large amount of memory inorder to run, which in term is causing our terminal servers to page more.
    I am not sure where to start with this issue so any help would be great!
    Thanks
    Phil
    Loads of points if someone helps me solve this!!!

    Citrix won´t help much, it´s "just" a different protocol between the client and the server, Citrix itself will use even more memory.
    Why are you sure, that the reason for this is the SAPGUI and not any other Office program?
    Let´s calculate:
    I´m writing this message on a TS too. My Outlook (2003) consumes ~ 32 MB memory (incl. virtual), I have 4 SAPGUI windows open which consume 64 MB and some telnet sessions (no Word, Excel etc.)
    Let say roughly 128 MB all in all.
    If you have 2000 users with 20 servers, means, 100 users on one server, that would be 12,8 GB memory - not caclulated other services running on that box (printserver etc.) including the operating system itself.
    If your users have Internet Explorer (or other browsers) open too, you will need to add that amount too. 128 MB per user is the minimum.
    If users use BEx (or other .NET based BI developer tools), that amount will doubled (at least).
    SAP recommends a PC with at least 256 MB memory to run a SAPGUI with acceptable performance, do you have that much per users? How big are your single servers?
    Markus

Maybe you are looking for

  • Loading picture problem

    I'm having problem with loading picture in applet window. Here is the example CODE: * <applet code="SimpleImageLoad" width=248 height=146> * <param name="img" value="seattle.jpg"> * </applet> import java.awt.*; import java.applet.*; public class Simp

  • How do I add a "PDF printer"  print to PDF so that I can create PDFs from any source I can print ?

    How do I add a "PDF printer"  print to PDF so that I can create PDFs from any source I can print ? I am using ADOBE Reader X Thanks

  • Accessing oracle on linux.

    Can I access my oracle8i database installed on LINUX through forms6i running on the web.If yes then what all software will I need. please reply fast.

  • C310 photosmart cartridges showing empty after 300 pages printed

    The c310a has been going through cartidges like crazy with hardly any pages printed.  I call tech support which informed me that it was a sensor defect(hardware problem).  The tech then continued to tell me that for $168.00 I could buy another model

  • SOAP Station to BPEL

    Hi, From SOAP station, I am sending the large message as attachment in .gz format. Other end I am giving BPEL flow endpoint as Managed Service point in SOAP station. Can I process the Attachment as input to BPEL process ? Thanks, bharath