Upload/download excel from BSP

Hi all
I am new to BSP's and and need to investigate the following:
Is it possible to create an excel file, manipulate certain cells (e.g. read only, format colours etc.) then export the file to a supplier via the portal. Then read the file and update R3. As the file will be quite large is it possible to compress it?
Thanks
Zane

Hi look at these blogs:
/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table
/people/sap.user72/blog/2006/02/07/downloading-data-into-excel-with-format-options
But I don't know any way of communication from the excel-sheet back to the R/3.
Regards,
Steffen

Similar Messages

  • In download to excel from bsp hw to increase excel column width to wrap txt

    in download to excel from bsp how to increase excel column width to wrap text
    in each column.
    My client does not want to manually click each cell aftet downloading to excel to see full text in each column

    Hi,
    You can achieve this by formatting your output using HTML table tag.
    Try the following code.
      DATA: lv_output  TYPE string.
      concatenate
      '<table border="1">'
      '<tr style="font-weight: bold; text-align:center; "><td>Name</td><td width="150">Description</td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>First Name</td><td>Some Description goes here..... ....... ...... </td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>2nd Name</td><td>XYZ.......</td></tr>' cl_abap_char_utilities=>cr_lf
      '</table>'
      into lv_output.
      response->set_cdata( data = lv_output ).
    Regards
    Geogy
    PS. Reward the useful answers.

  • Firefox crashes when uploading/downloading files from/to 'desktop folder'

    Hello
    I'm hoping, that you can help me!
    I'm using Firefox 28.0 on MacBook Pro Mavericks 10.9.2
    Firefox crashes/freezes when I try to upload/download files from/to my 'desktop folder'.
    I't only happens, when I use this folder. Download to 'download folder' or any other folder works fine.
    Download to 'desktop folder' when using Safari also works fine.
    I't only happens when desktop and firefox tries to communicate.
    It's very annoying when I accidentally forget, that the bugs is there, and I have to force quit and start all over again. And sometimes I don't even have a choice, because 'desktop' randomly opens as default folder, when I try to upload things.
    Thank you so much in advance!
    Kind regards Elizabeth

    Hi ESwan,
    I am not a Mac user so not the best person to attempt to assist but here goes.
    I am presuming that info such as
    PID: 1695 Event: cpu usage (microstackshots only)
    Relate to the Mac OS X crash & event logging and reporting.
    What we need are the ones that Firefox itself generates and submits for processing by Mozilla Firefox
    * See [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes#w_get-help-fixing-this-crash]]'''#w_get-help-fixing-this-crash'''
    From what you say the crashes occur after a certain action and I am hoping that you will be able to use the easy method as in the article linked above. Navigate to about:crashes by keying ''about:crashes'' into the address bar. You are loolking for the ones starting wth ''bp-'' Paste two or three of those into your next post. Include the bp- part but not any link information before that. After they are pasted into the forum the forum software changed them to be links.

  • Problm download excel from ALV

    Hi Experts,
             I am facing a problem when downloading data from alv into a excel file. all the datas written in english are coming correctly but the japaneese or other chars are replaced by '#'. I am using FM 'GUI_DOWNLOAD'. How can I solve the problem?

    Hi Mini,
               kindly explain your requirement, why you have output in combination of two languages.
              if you are talking about individual runs, kindly give value to sy-langu of the resepective language.
               if not solved , pls let me know.
    Thanks,
    Pavan

  • Upload/Download docs from DMS

    Hello,
    I am trying to learn how to up- and download documents from Business Document Service (trans. OAER) in a web page. Reading here and there I found some examples of code for it but it is for ABAP and not for WebDynpro. I performed my examples in ABAP and works but not when I try to do it from a Web page.
    Can somebody lead me to an example on how to save a file once it´s been uploaded and later how to download it ??

    Hello,
    I am trying to learn how to up- and download documents from Business Document Service (trans. OAER) in a web page. Reading here and there I found some examples of code for it but it is for ABAP and not for WebDynpro. I performed my examples in ABAP and works but not when I try to do it from a Web page.
    Can somebody lead me to an example on how to save a file once it´s been uploaded and later how to download it ??

  • How to upload/download Pictures from W3K Server

    I have an Ipad 4 running IOS7, Wi-Fi only and is connected to my Network.
    I have a Windows 2003 Server which has a File Server which holds all my pictures and I would like to know if there is some way I can access the server to upload pictures from my Ipad to the server and download pictures from the server to my Ipad.
    If this is possible, can you please give me some direction on how to get the Ipad connected to do this?
    Thanks

    I have an Ipad 4 running IOS7, Wi-Fi only and is connected to my Network.
    I have a Windows 2003 Server which has a File Server which holds all my pictures and I would like to know if there is some way I can access the server to upload pictures from my Ipad to the server and download pictures from the server to my Ipad.
    If this is possible, can you please give me some direction on how to get the Ipad connected to do this?
    Thanks

  • How to upload/download screen from one report to another report

    Hello experts ,
    I have to upload a screen from a report say zrept1 screen 0100 to another report say zrept2 screen 0100.
    Please , reply .
    regards,
    Jeet
    Moderator message: standard SE80 functionality for copying objects, please do more research before asking.
    Edited by: Thomas Zloch on May 19, 2011 3:14 PM

    Hi Anuj,
    I have given the function in the prompt message like as you suggested.Next i applied the changes.
    Post click on hyperlink still iam facing the same error.
    please tell me , Am i doing any thing wrong ?
    Regards,
    Ram

  • Download File from BSP to presentation server.

    Hi all,
    We have a requirement to Download and Upload a file in Standard BSP application HRECM_BDG_MAINT.
    Flow of the logic is : 
    1.  On click on Download button.  A Save file dialog should come and then user will select the path for saving the file.  Then the internal table sholud be save in excel on the presentation server.
    2.  User will modify the excel file.
    3   on click of upload button again the open dialog should come and then user will select the excel file from the presentation server and then file will be uploaded into the BSP application.
    Note : We are very much clear with the functionality.  Over main concern is to get the file dialog popup on the BSP application.
    Changes in the layout (Download & Upload Button) has been created.
    Actually HRECM_BDG_MAINT call another BSP application HR_ECM_BDG_SRV02.
    Controller class of of page budget_details.bsp (HR_ECM_BDG_SRV02) is CL_HRECM00_BSP_BDG_DETAILS.
    All the button displayed in this BSP page are created at runtime in class (CL_HRECM00_BSP_BDG_DETAILS) in method DO_REQUEST.  We have used enhancement spot and added two more buttons (Download and Upload).
    Now our main problem is to get file dialog popup on the BSP screen when we click on that button.
    Kindly help
    Ankit Gupta

    Hello
    I have a BSP that shows all the client data and generate a file when a boton is push.
    What I need to know is; how can i made that the system generate a file for each client without having the internet explorer pup-up for download each time, furthermore, I want that these files to be located at the local unit C:\.
    The code i have is as follow:
    DATA: fichero TYPE string.
      CONCATENATE 'F' vnomfich '.xls' INTO vnomfich.
    some Browsers have caching problems when loading Excel format
      response->delete_header_field( name = if_http_header_fields=>cache_control ).
      response->delete_header_field( name = if_http_header_fields=>expires ).
      response->delete_header_field( name = if_http_header_fields=>pragma ).
    start Excel viewer either in the Browser or as a separate window
      response->set_header_field( name  = if_http_header_fields=>content_type
                                  value = 'application/vnd.ms-excel' ).
      CONCATENATE ' attachment; filename= ' vnomfich INTO fichero.
      response->set_header_field( name  = 'Content-Disposition'
                                  value = fichero ).
    finally display Excel format in Browser
      response->set_cdata( data = l_output ).
    do not process Layout, response has been rendered
      navigation->response_complete( ).

  • Issue in downloading excel from SM37

    Hi Experts,
    I am facing a weird behavior in SM37, I am not able to download all pages of a particular program in excel format on the other side I am able to download 100-500 pages of spool of another programs. In that program's spool, when I am downloading other formats except spreadsheet, all pages are downloading without any error. There is an issue in spreadsheet downloading only.
    I have also created a program for that particular program spool's. But facing the same issue.
    Below is my code:
    REPORT ZSPOOL_DOWNLOAD_XLS.
    *  TYPE POOLS                                                                *
    TYPE-POOLS:TRUXS.
    *  SELECTION SCREEN                                                          *
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_SPOOL TYPE RSPOID,
                 P_FILE  TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN: END OF BLOCK B1.
    *  DATA DECLARATION                                                          *
    DATA: IT_SPOOL_XLS TYPE TABLE OF CHAR4000,
           LVAR_FILE    TYPE STRING,
           IT_XLS_SPOOL TYPE TABLE OF CHAR4000,
           WA_SPOOL_XLS TYPE CHAR4000.
    *  AT SELECTION-SECREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
       PERFORM FILE_SELECTION.
    *  START-OF-SELECTION
    START-OF-SELECTION.
       PERFORM SPOOL_DATA.
       PERFORM SPOOL_DOWNLOAD.
    *&      Form  FILE_SELECTION
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM FILE_SELECTION .
       CALL FUNCTION 'F4_FILENAME'
         EXPORTING
           PROGRAM_NAME  = SYST-CPROG
           DYNPRO_NUMBER = SYST-DYNNR
           FIELD_NAME    = ' '
         IMPORTING
           FILE_NAME     = P_FILE.
    ENDFORM.                    " FILE_SELECTION
    *&      Form  SPOOL_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SPOOL_DATA .
       CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
         EXPORTING
           RQIDENT              = P_SPOOL
           FIRST_LINE           = 1
         TABLES
           BUFFER               = IT_SPOOL_XLS
         EXCEPTIONS
           NO_SUCH_JOB          = 1
           NOT_ABAP_LIST        = 2
           JOB_CONTAINS_NO_DATA = 3
           SELECTION_EMPTY      = 4
           NO_PERMISSION        = 5
           CAN_NOT_ACCESS       = 6
           READ_ERROR           = 7
           OTHERS               = 8.
       IF SY-SUBRC <> 0.
    * Implement suitable error handling here
       ENDIF.
       LOOP AT IT_SPOOL_XLS INTO WA_SPOOL_XLS..
         REPLACE ALL OCCURRENCES OF '|' IN WA_SPOOL_XLS WITH CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
         APPEND WA_SPOOL_XLS TO IT_XLS_SPOOL.
       ENDLOOP.
    ENDFORM.                    " SPOOL_DATA
    *&      Form  SPOOL_DOWNLOAD
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SPOOL_DOWNLOAD .
       LVAR_FILE = P_FILE.
       CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
           FILENAME                  = LVAR_FILE
           FILETYPE                  = 'ASC'
         TABLES
           DATA_TAB                  = IT_XLS_SPOOL
         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.
    * Implement suitable error handling here
       ENDIF.
    ENDFORM.                    " SPOOL_DOWNLOAD
    Please suggest me asap.
    Thanks & Regards
    Shubhanshu Agrawal.

    Hello Shubhanshu,
    where in your report is something transformed in XLS file? I canot see that. You got your spool number and with help of function RSPO_RETURN_ABAP_SPOOLJOB, your spool list will be transformed into internal table. This internal table will be saved as ASCII then, but no XLS in your coding.
    And then the GUI download function deals with ASCII rows, but not with pages. The number of pages when you import ASCII rows in an excel file is definitely NOT the same like in your spool! I do not know any way to compare the page numbers..why so? It goes about the data rows.
    Did you have a look at your internal table IT_XLS_SPOOL, if any data row from your spool is listed there?
    Regards
    Michael

  • Download File from BSP-Application

    Hello !
    i hope i can get some help for my problem.
    from my BSP-Application i want to download an internal table to p:\eigenedateien\bv.txt (always the same filename)
    the internal table ist type table of string.
    i read that gui_download doesn't work in my BSP
    so i went through this weblog 756
    but it is really hard.
    i put some code from the weblog in my application:
    concatenate 'attachment; filename='
    w_para-pwert = p:\eigenedatieen\bv.txt
                w_para-pwert into dl_pathfile.
    Download der Datei
    Create the cached response object that we will insert our content into
    dl_xstring = 'Test'. "nur zum testen
                CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE
                       EXPORTING ADD_C_MSG = 1.
    set the data and the headers
                CACHED_RESPONSE->SET_DATA( DL_XSTRING ).
                CACHED_RESPONSE->SET_HEADER_FIELD( NAME  =
                                        IF_HTTP_HEADER_FIELDS=>CONTENT_TYPE
                                                   VALUE = 'text/html' ).
    Set the filename into the response header
           CACHED_RESPONSE->SET_HEADER_FIELD( NAME  = 'Content-Disposition'
                                       VALUE = DL_PATHFILE ).
    Set the Response Status
                CACHED_RESPONSE->SET_STATUS( CODE = 200 REASON = 'OK' ).
    Set the Cache Timeout - 60 seconds - we only need this in the cache
               CACHED_RESPONSE->SERVER_CACHE_EXPIRE_REL( EXPIRES_REL = 60 ).
    Create a unique URL for the object
                CALL FUNCTION 'GUID_CREATE'
                  IMPORTING
                    EV_GUID_32 = GUID.
                CONCATENATE RUNTIME->APPLICATION_URL '/' GUID INTO URL.
    Cache the URL
                CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD( URL      = URL
                                               RESPONSE = CACHED_RESPONSE ).
    Ende Download
    now it should be cached.
    but hot can i start the download to p:\eigenedateien... now?
    thanks very much for your help
    Helmut

    Hi,
    Could you try adding at the end:
    navigation->response_complete( ).
    and/or
    data: guid type guid_32,
          display_url TYPE string.
    call function 'GUID_CREATE'
    importing
    ev_guid_32 = guid.
    concatenate runtime->application_url '/' guid into display_url.
    cl_http_server=>server_cache_upload( url = display_url response = cached_response ).
    Best regards,
    Guillaume
    Message was edited by: Guillaume Garcia

  • Upload / Download to / from the Creative Cloud

    I can upload and download files to / from the CC using the CC Desktop app.   I thought that woujld come with the $10/Month CC subscription. 
    I expected that PS CC would have CC functionality built-in so that I coujld "save" or "open" directly from the cloud.
    What am I missing?

    This functionality does not exist in Photoshop CC.
    What you can do is use file syncing to Save and Open files in the Creative Cloud Files folder on your computer. They are then available to view and share from the Files page of the Creative Cloud at https://creative.adobe.com/files and available for Photoshop CC (and any other program) from the Creative Cloud Files folder on your computer.
    If you do not have file syncing available yet you can sign up from the Early Access page at https://creative.adobe.com/earlyaccess.

  • Download excel from spool.

    hi experts,
          i have a classical report which should be executed in background.
    the o/p is coming ok but when from spool i m downloading it to spread sheet each column is shifted towards left.
    what is the reason behind this?
    the o/p is coming well in spread sheet when executed in foreground mode.
    regards
    pankaj

    I am not an expert at all, but I will give it a try:
    what do you mean with downloading the spool? Just going to SP01 and save the list to a local file of the type Spread sheet? If that is the case, then the issue is probably caused by the fact that Excel automatically removes leading spaces! You should download it unconverted to your local file system (txt format), open excel and from within excel you open the file and use the wizard to open it. At the step where you can choose the types of the columns, you should select all columns and let them use type Text. Now the leading spaces should remain!

  • Function Group : Upload/ download

    Hi Experts,
    is there any Function group which will help me upload/download excel file?Kindly advise.
    thanks & regards,
    M.S

    Yes you can but you must save data in text mode (tabulation or delimited) . 
    It's not possible to upload directly a excel file with GUI_UPLOAD
    But it's possible with ALSM_EXCEL_TO_INTERNAL_TABLE.
    Rgds

  • Program to upload/download to MSP client?

    Hi,
    Is there any standard program that would upload/download projects from cProjects 4.0  to MS Project client?
    Regards,
    Remya

    Hi Remya,
    There are no programs for serving this purpose. However, you can try the import/export feature provided as a standard functionality in cProjects application.
    For importing/exporting files in bulk, you would need to write an ABAP Program.
    Regards,
    Vivek Pandey.

  • MySAP PLM + java 7 rev67 + OSX 10.9.5 : problem upload/Download

    Hello,
    I'm user from MySAP PLM on Safari or Firefox on Mac with OS 10.9.5 (Mavericks). Last Java version.
    I have to upload/download files but the window to choose direction doesn't appears.
    When I click on upload or download button, the window opens. But after, when I click on the button "Select files" nothing appears (see file attached).
    My first question is : is it possible to upload/download somethings from a Mac ? (from a PC, it works).
    Second : if yes, what settings should I set up ?
    Thank you for your help.
    A.Sigoillot

    This discussion thread belongs to the Product Lifecycle Management (SAP PLM) space. Generically speaking Safari support is somewhat restricted. In order to analyze the situation any further, please share the version of your SAP system, especially SAP_BASIS including the SP level.

Maybe you are looking for