Gui_download - not work

hi everyone,
i have a test program and there i use gui_upload/download and its work fine.
when i use those function in the main program it not work.
so i tried to use read dataset....and its not work in both cases.
(test prog and not in the main program)
do you have any idea?
thanks,
dana.

i have a test program and there i use gui_upload/download and its work fine.//
yes this is working fine cause the fm's are executing as it has a valid legacy  flat file in ur pc(presentation server)...
when i use those function in the main program it not work.//
yes casue the main program is checking the file and it is not getting from the right path .. main program might be taking the file from application server and not pc.. check this..
so i tried to use read dataset....and its not work in both cases.
(test prog and not in the main program)
read dataset works for  files in application server and not presentation server ..so you cannot replace read dataset for gui_*load for files present on pc .. right ..
application server files are present in tcode AL11 .. navigate till here to pick the file ur main program is using ..
just put a break -point at the gui_* fm or read statemet to check what file it will pick ..
call function 'gui_upload' "-->it should be in caps between quotes
exporting
filetype = 'asc' ""-->it should be in caps between quotes
filename = p_path
tables
data_tab = itab
exception
br,
vijay.

Similar Messages

  • CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD not working in Windows 7 OS

    Hello experts,
    The FM CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD is not working in windows 7 OS.  The error is - Data provider exception.  But is is ok in XP. 
    Is there any solution for this.
    Thanks in advance,
    Balaji

    Now
    I've applyed patch 8 and no problem with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    Have you sure you've have all authorization to write a file there?
    Max

  • Gui_download Function module is not working in Background Scheduling

    Hi Experts,
    Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
    Please provide me solution for this challenging task.
    you could be rated well for this question.
    Thanks,
    Rama Krishna.

    Hello,
    work with open dataset and close dataset...
    just loop over itab and transfer itab field for field into a string field separated by ;
    Here is an extract of coding:
    OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT itab_pos.
        CLEAR satz.
        MOVE itab_pos-vbeln TO satz-vbeln.
        MOVE ';' TO satz-fill1.
        MOVE itab_pos-kunnr TO satz-kunnr.
        MOVE ';' TO satz-fill2.
        MOVE itab_pos-ktgrd TO satz-ktgrd.
        MOVE ';' TO satz-fill3.
        MOVE itab_pos-fkdat TO satz-fkdat.
        MOVE ';' TO satz-fill4.
        MOVE itab_pos-budat TO satz-budat.
        MOVE ';' TO satz-fill5.
        MOVE itab_pos-cpudt TO satz-cpudt.
        MOVE ';' TO satz-fill6.
        MOVE itab_pos-fkimg TO satz-fkimg.
        MOVE ';' TO satz-fill7.
        MOVE itab_pos-netwr TO satz-netwr.
        MOVE ';' TO satz-fill8.
        MOVE itab_pos-vrkme TO satz-vrkme.
        MOVE ';' TO satz-fill9.
        MOVE itab_pos-ktgrm TO satz-ktgrm.
        MOVE ';' TO satz-fill10.
        MOVE itab_pos-matnr TO satz-matnr.
        MOVE ';' TO satz-fill11.
        MOVE itab_pos-mattxt TO satz-mattxt.
        MOVE ';' TO satz-fill12.
        MOVE itab_pos-gewei TO satz-gewei.
        MOVE ';' TO satz-fill13.
        MOVE itab_pos-brgew TO satz-brgew.
        TRANSFER satz TO p_dath.
      ENDLOOP.
      CLOSE DATASET p_dath.
    It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!

  • GUI_DOWNLOAD  "BIN"  filetype in Browser not working

    Hi ,
    I am downloading an internal table with XML data using GUI_DOWNLOAD  and FILETYPE as BIN.
    This is not working in the SRM browser
    Please let me know if anyone has any idea on this
    Thanks
    Sekhar J

    Just make your default browser working.
    Goto configuration in settings and select correct settings for default config. Settings and preferred access point and select default in all apps and select yes.
    Now your default browser should be working for downloads.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

  • Gui_download is not working at background

    Hi,
    I have a req to download a file to presentation server. I m using gui_download.
    But the gui_download will not work when we are running the program at background.
    To run the program at background and generate a file at peresentation server which FM should i need to use.
    Pls. provide pointers.
    Thanks.

    hi Deepti,
    please search  SDN before posting ..
    you cannot download to the persentation server using  a background job because the GUI is not available
    see the below link..
    GUI Download In BackGround
    thanks

  • GUI_DOWNLOAD does not work for background printing

    Hi,
    Need some help urgently.
    Function moduel GUI_DOWNLOAD does not work for background printing. I want to know how this issue can be handled or we have to use some other function module.
    We are using this in a report and i get the error dump OBJECTS_OBJREF_NOT_ASSIGNED when we run this report in background.
    Kindly suggest.
    Best Regards,
    Abbasi

    you can not use gui_download in background.
    Try searching first, this thing has been posted a thousand times already

  • GUI_DOWNLOAD not writing BOM for UTF-8

    We are using the following code to produce an Excel Spreadsheet. But the parameter WRITE_BOM is not working - SAP does not write a byte-order mark to the file. The result is that Excel does not open the file correctly. When we add the BOM manually in UltraEdit the file opens correctly.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = 'C:\export.xls'
          filetype              = 'DAT'
          trunc_trailing_blanks = 'X'
          write_field_separator = 'X'
          codepage              = '4310'
          write_bom             = 'X'
        TABLES
          data_tab              = gt_textsi
        EXCEPTIONS

    Please check the function help:
    Short Text
         If set, writes a Unicode byte order mark
    Description
         If data is written in a Unicode codepage, at the top of the file the
         respective byte order mark (BOM) is included.
         Unicode - Little Endian codepage 4103, binary values 'FFFE'
         Unicode - Big Endian codepage 4102, binary values 'FEFF'
         UTF-8 codepage 4110, binary values 'EFBBBF'
         Note: Microsoft Excel supports Unicode data only if they have been
         written in Unicode - Little Endian format.

  • Several Standard functions are not working properly in CRM Web

    We are working on different ABAP developments embedded on a Web environment, and we are facing some issues with different standard functions. This functions such as GUI_DOWNLOAD, GUI_UPLOAD, MS_EXCEL_OLE_STANDARD_DAT, POPUP_TO_CONFIRM which are used in the ABAP developments work fine on the GUI environment while in the WEB environment they do not work.
    This functions allow us to perform files uploads and downloads in .txt format as well as in .xls format.
    Some of the suggested solutions were to solve this by using BSP application or Web Dynpros.
    Does this WEB tool contain any update, SAP note or any function which may replace the 4 functions mentioned above is order to solve this issue?
    Thanks in advance
    Best Regards,
    Alexis Chavero.

    There are no standard functions in Web UI  that replicate what these functions do in GUI. This was discussed before [here|Read file from presentation server (like GUI_UPLOAD);. As far as I know, we have to code ourselves. One way to try is published [here|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI-UploadingdatafromExcelfiles].

  • Method GUI_DOWNLOAD not creating CRLF at end-of-each-line of output

    Hello SDN Community,  has anyone experienced CL_GUI_FRONTEND_SERVICES=> GUI_DOWNLOAD not putting the CRLF at end of exported lines?  This can be seen when you view the output file in notepad (the file contents wrap) or an editor with hex view enabled  (0A0D).
    I have tried running an ABAP that runs this method and on some people's laptop's the file wraps and on others the file is formatted (as would be expected) as per the CRLF's. 
    My understanding is that the GUI_DOWNLOAD method should provide the CRLF's.   And on my laptop (running Vista and SAP ECC 6.0 back-end) it wraps the output because there are no CRLF's in the file.
    Your experiences would be appreciated.
    Thank you,
    Dean Atteberry.

    Thank you, Alejandro, for your comments.  I am using two systems - on one it works and on the other it does not.
    The one that works is an SAP ECC 6.0 where the CL_GUI_FRONTEND_SERVICES class has a Last Change date of 03.07.2006.
    The one do not work is SAP ECC 6.0 where the CL_GUI_FRONTEND_SERVICES class has a Last Change date of 07/08/2009.
    If I look at the code in GET_PLATFORM, it is verry different between the two systems.
    On the one that works, it executes following code and platformID has value of '5'.  This later used to assign the correct value for CRLF variable which is used to concatenate to end of records  (value is '0A0D').
    ELSE.
    *     SAP GUI for Windows
          IF ACTIVEX IS NOT INITIAL.
    * returns Windows Platform
    * VER_PLATFORM_WIN32s             0
    * VER_PLATFORM_WIN32_WINDOWS      1       (Win95/98)
    * VER_PLATFORM_WIN32_NT           2
            CALL METHOD HANDLE->CALL_METHOD
              EXPORTING
                METHOD     = 'GetWindowsPlatform'
                P_COUNT    = 0
                QUEUE_ONLY = ' '
              IMPORTING
                RESULT     = platformID
              EXCEPTIONS
                OTHERS     = 1.
            IF SY-SUBRC <> 0.
              RAISE CNTL_ERROR.
            ENDIF.
    On the one that does not work, it executes following code.  In the debugger, when control comes back from CL_GUI_CFW=>FLUSH call, I can see the PLATFORMID variable change to '15'.  This is moved to M_PLATFORM and ultimately is used later in a case statement to assign the appropriate value to CRLF variable. 
    HOWEVER, THERE IS NO "WHEN 15" statement in the CASE statement - IT ONLY GOES UP TO '14'.   Because of this, no value is assigned to the CRLF variable and when subsequently this variable is concatenated to the output line, there is no CRLF (0A0D) at the end of the line.  Because the CRLF variable is blank.  [see coding snippets at end-of-note]
    Is there an better place than General ABAP forum to discuss this?  Possibly this item might benefit from the attention of SAP developers?
    Following are code snippets illustrating findings from debugging...
    This shows the FLUSH statement that causes '15' to appear in the PLATFORMID variable.
    IF bPLATFORMEX = ABAP_TRUE.
            CALL METHOD HANDLE->CALL_METHOD
              EXPORTING
                METHOD     = 'GetPlatformEx'
                P_COUNT    = 0
                QUEUE_ONLY = ' '
              IMPORTING
                RESULT     = PLATFORMID
              EXCEPTIONS
                OTHERS     = 1.
            CALL METHOD CL_GUI_CFW=>FLUSH
              EXCEPTIONS
                CNTL_SYSTEM_ERROR = 1
                CNTL_ERROR        = 2
                others            = 3.
            IF SY-SUBRC <> 0.
              RAISE CNTL_ERROR.
            ENDIF.
            MOVE PLATFORMID TO M_PLATFORM.
    This shows the method GET_LF_FOR_DESTINATION_GUI, where you can see that values only go up to 14.  [look in attributes for CL_GUI_FRONTEND_SERVICES to see attribute values]
    CASE PLATFORM_ID.
          WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_WINDOWSXP.   <---- this is '14'
            MOVE CL_ABAP_CHAR_UTILITIES=>CR_LF TO GUI_CRLF.
          WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_NT50.
            MOVE CL_ABAP_CHAR_UTILITIES=>CR_LF TO GUI_CRLF.
         <...lines snipped...>
          WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_TRU64.
            MOVE CL_ABAP_CHAR_UTILITIES=>NEWLINE TO GUI_CRLF.
          WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_OS2.
            MOVE CL_ABAP_CHAR_UTILITIES=>NEWLINE TO GUI_CRLF.
          WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_UNKNOWN.
            RAISE CNTL_ERROR.
        ENDCASE.
      ENDIF.
      MOVE GUI_CRLF TO LINEFEED.
    This shows the FORM put_char_linebuffer you can see CRLF being concatenated to output line...
    prc_column_idx = prc_column_idx + 1.
        ENDWHILE.
        CONCATENATE prc_encoded_string prc_encoded_crlf
          INTO prc_encoded_string IN BYTE MODE.
      ENDIF.
    * Add data lines
      LOOP AT par_data_tab ASSIGNING <f_data_tab>.
        PERFORM put_char_linebuffer USING <f_data_tab>
                                          par_write_field_separator
                                          par_trunc_trailing_blanks
                                          par_col_select
                                          par_col_select_mask
                                          par_write_lf
                                          strDecimal
                                          strDatFormat
                                          par_dat_mode
                                          par_trunc_trailing_blanks_eol
                                    CHANGING converter
                                             prc_encoded_string.
        IF par_write_lf IS NOT INITIAL.
    *     Add CR to line.
          CONCATENATE prc_encoded_string  prc_encoded_crlf
              INTO prc_encoded_string IN BYTE MODE.
        ENDIF.
      ENDLOOP.
    * Write BOM if requested and Unicode encoding
      CLEAR prc_bom_string.

  • DOWNLOAD function module not working in Portal

    Hello,
    We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
    I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
    Anyone face this issue? Please advice possible resolutions.
    Thanks!

    Correct, but the following thread got me started:
    Adobe Acrobat Reader and MIME-DOWNLOAD
    Rob

  • DOWLOAD function module not working in Portal

    Hello,
    We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
    I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
    Anyone face this issue? Please advice possible resolutions.
    Thanks!

    check the following thread where your issue is discussed before
    Re: webgui - unwanted msg screens during save of local file
    you should use GUI_DOWNLOAD  - this FM will work both in SAP gui environment and ITS environment.
    Regards
    Raja

  • Programm not working when scheduled via SE16

    I created a job in SE16 for a custom ABAP programm exactaly the way we always do,
    for one programm te job is finished after 1 second, when this programm is startend manualy it runs like it is supposed to run.
    Does anybody have a clue what can be wrong??

    Hi Rechard,
    Have you used any function in that.. !!?? like GUI_DOWNLOAD will not work when you ll go for sheduler of that program..
    Make sure where the dump arises...
    -Maharshi

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe bridge raw not working with windows vista in photoshop cc, why?

    adobe bridge raw not working in photoshop cc, is there a fix?

    Your sure your using photoshop cc on windows vista?
    I was under the impression that photoshop cc would not even install on windows vista.
    What version of camera raw do you have?
    In photoshop under Help>About Plugin does it list Camera Raw and if so which version is it?
    (click on the words Camera Raw to see the version)
    Camera raw doesn't work if it's a camera raw file or some other file type such as jpeg or tif?
    What camera are the camera raw files from?
    Officially camera raw 8.3 is the latest version of camera raw that will work on windows vista.

Maybe you are looking for

  • Clean Windows 8.1 install on Split 13 x2

    I have been unable to solve a Windows 8.1 boot failure on a customer's Split 13 x2.  The system will boot from a Windows 8.1 recovery USB stick that I created.  I can see the volumes on the disk and bcdedit seems to display the correct information bu

  • I upgraded my iPhone 4 to ios 5.1 and it broke bluetooth

    I upgraded my iPhone 4 to ios 5.1 and it broke bluetooth with my Altec in-motion bluetooth speaker. I now have to "Forget the Device" and re-pair them each time I want to use the iPhone with that speaker. This always seems to work, but it takes way t

  • JavaFX image url

    Hello everybody! I have troubles understanding the way image urls work in JavaFX. The tutorials only use __DIR__, which of course references the package the script lies in or an absolute URL. But i dont want to place an image folder inside my package

  • Use of native SQL-select statment

    hi, in my z-abap i use a native sql, saying the following: EXEC SQL.   select agzdau into :gf_agzdau from APZD08/AG                 where AGMAID = '77732' and                       AGJAHR = 2008 and                       AGMON  = 09 and              

  • Conversion of PO into Sale order

    Hi All, Is it possible to convert a PO to a sale order in the same client for two different plant in two diffrent company codes. I mean to say a PO is generated from one plant in company code 1 should become a saleorder for company code 2 in second p