Workbooks not opening from a Business Server Page (BSP)

Hello Experts,
I need help with opening workbooks from a Business Server Page (BSP). The problem is that the workbook is not opening, but instead a blank Excel page opens. I am using Microsoft Excel 2003 and on BI 7.0 version. Here is the code: Could you please look at the below code and advice me. This does not have any selection screen.  Also, i have another workbook with a selection screen and I want to pass values to these selection variables. Is that possible? In the below code, my suspicion is either with 'application/vnd.ms-excel'  or moving content in to X string. Please give your suggestion. Thanks so much.
Layout
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2002+design2003" >
<htmlb:page title="Web Workbook LaunchPad" >
</htmlb:page>
</htmlb:content>
In page attributes:
file_content TYPE STRING
FILE_XCONTENT TYPE XSTRING
WA_WBDATA TYPE RSRWBSTORE
WBDATA TYPE RSR_RPEC_BIN_FILE
WBID TYPE RSSGUID25
On Initialization.
refresh wbdata .
clear: file_content .
data: temp_string type string .
select * from rsrwbstore into table wbdata
where workbookid = 'VXXGCMF53EVQAS7U8UA80OXN7'.
if not wbdata[] is initial .
loop at wbdata into wa_wbdata.
clear temp_string .
temp_string = wa_wbdata-clustd .
concatenate file_content temp_string into file_content .
endloop.
clear file_xcontent .
file_xcontent = file_content .
response->set_header_field( name = 'content-type'
value = 'application/vnd.ms-excel' ).
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 = 'content-disposition'
value = 'attachment;filename=webforms.xls' ).
response->set_cdata( data = file_content ).
finally display Excel format in Browser
data: l_len type i.
l_len = xstrlen( file_xcontent ).
response->set_data( data = file_xcontent
length = l_len ).
navigation->response_complete( ).
endif .

Hi Friend,
have a loook at the below specified threads.Hope it will help you.
[link1|download to excel in diffrent window;
[link2|Re: Exporting data from table to Excel in a particular format using BSP.]
[link3|download to excel in diffrent window]
With Regards,
SHARMILA BRINDHA.M

Similar Messages

  • Business Server Page (BSP) Error from EP

    Hi,
      We are implementing the standard business packages for CRM 4.0 .The test connection to the CRM Server works fine, but when we click on a CRM transaction,  it gives an error
    Business Server Page (BSP) Error
    What happened?
    Call of BSP page terminated due to error.
    Note
    Following error text processed in system:
    URL does not specify a complete domain (172.22.2.36 instead of 172.22.2.36.<domain>.<ext>)
    Exception Class CX_FQDN
    Error name 
    Program CX_FQDN=======================CP
    Include CX_FQDN=======================CM002
    ABAP Class CX_FQDN
    Method CHECK
    Row 10 
    Long Text -
    Error Type: Exception
    Your SAP Business Server Pages Team
    There is no dump in ST22 in the CRM Server
    Please help
    Regards
    Jayesh

    Hi Jayesh,
    The error shows you are not using Fully qualified domain name.
    Instead of the IP address give the server name with the fully qualified domain name.
    Regards
    Arun

  • Error Business Server Page (BSP)

    Hi.
    I am new to BSP.
    I have a Z_CRM_IC application and I am traying to create a new page to display into a pop-up window.
    I created a new page with flow logic type, and I include in iRecReason.htm a javascript function that open a pop-up window and activated the new page
    When run IC and select a link doesnt work.
    When a push a link the pop-up is opened but send a page error with this message:
    Error Business Server Page (BSP)
    ¿Qué ha sucedido?
    La llamada de la página PCS se ha interrumpido debido a un error
    |----
    |Nota
    |El texto de error siguiente se ha procesado en el sistema:
    |----
    Clase error:
    Su equipo de SAP Business Server Pages
    Please anybody has an idea about this problem...
    Thanks.
    Adrian

    Hi,
    Probably the javascript you are using is incorrect.There are two ways of calling your page from a link via navigation:
    1.Through defining navigation ie through creating inbound outbound plugs and a nvaigational link
    2.If you know the URL of the link and just want to call that on click..
    heres how it goes:
    1.
    For creating a navigational link follow the cookbook.Section 5.6
    2.
    In case you have a fixed URL use following code:
    <crm_bsp_ic:link id="link1" reference="http://www.google.com" target="_blank" text="Ext Link"></htmlb:link>
    thanks,
    ashish.

  • Business Server Page (BSP) error - CX_FQDN

    Hi All,
    I configured FDQN and Maintain SICF services in Solution Manager and still I am getting the following error:- Any help will be appreciated.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Die URL enthu00E4lt keine vollstu00E4ndige Domainangabe (prdr01d3801 statt prdr01d3801.<domain>.<ext>).
    Exception Class CX_FQDN
    Error Name 
    Program CX_FQDN=======================CP
    Include CX_FQDN=======================CM002
    ABAP Class CX_FQDN
    Method CHECK
    Line 10 
    Long text -
    Error type: Exception
    Your SAP Business Server Pages Team
    Please  see my ICM parameters in the server.
    ICM Parameter                                                                               
    Services                                                                      
    icm/server_port_0     = PROT=HTTP,PORT=8001                                   
    icm/server_port_1     = PROT=SMTP,PORT=0                                                                               
    Hard limits                                                                   
    icm/max_services               = 30                                           
    icm/listen_queue_len           = 512                                          
    icm/req_queue_len              = 500                                          
    icm/max_conn                   = 500                                          
    icm/max_sockets                = 2048                                                                               
    Thread handling                                                               
    icm/min_threads                = 10                                           
    icm/max_threads                = 50                                           
    icm/min_spare_threads          = 3                                                                               
    Tracing and statistic                                                         
    rdisp/TRACE                    = 1                                            
    icm/tracefile                  = dev_icm                                      
    icm/log_level                  = 0                                            
    icm/stat_level                 = 1                                            
    icm/security_log               = LOGFILE=dev_icm_sec,MAXSIZEKB=500            
    icm/accept_remote_trace_level  = 0                                                                               
    Monitoring                                                                    
    icm/ccms_monitoring            = 1                                            
    icm/ccms_refresh_rate (sec.)   = 30                                                                               
    Timeout handling                                                              
    icm/keep_alive_timeout (sec.)  = 60                                           
    icm/conn_timeout (msec.)       = 5000                                                                               
    HTTP settings                                                                 
    icm/HTTP/max_request_size_KB   = 102400                                       
    icm/HTTP/j2ee_0                = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50100
    icm/HTTP/server_cache_0        = PREFIX=/, CACHEDIR=F:\usr\sap\S4P\DVEBMGS01\d
       ata\cache                                                                  
    icm/HTTP/admin_0               = PREFIX=/sap/admin,DOCROOT=F:\usr\sap\S4P\DVEB
       MGS01\data\icmanroot/admin,AUTHFILE=F:\usr\sap\S4P                         
    icm/HTTP/auth_0                = PREFIX=/,FILTER=SAP                                                                               
    HTTP(S) error handling                                                        
    is/HTTP/show_detailed_errors   = 1                                                                               
    HTTPS (SSL) settings                                                          
    icm/HTTPS/verify_client        = 1                                            
    ssf/name                       =                                              
    ssf/ssfapi_lib                 =                                              
    sec/libsapsecu                 =                                              
    ssl/ssl_lib                    =                                                                               
    Context Quotas                                                                
    icm/HTTP/context_quota         = 90%                                          
    icm/HTTPS/context_quota        = 90%                                          
    icm/SMTP/context_quota         = 90%                                                                               
    Memory Pipe settings                                                          
    mpi/total_size_MB              = 80                                           
    mpi/buffer_size                = 65536                                                                               
    J2EE settings                                                                 
    rdisp/j2ee_start               = 1                                            
    is/HTTP/default_root_hdl       = J2EE                                                                               
    Content Filter settings                                                       
    csi/enable                     = TRUE                                         
    csi/SAP/csa_lib                = F:\usr\sap\S4P\DVEBMGS01\exe\sapcsa.dll                                                                               
    Misc                                                                          
    icm/host_name_full             = prdr01d3801.abcd.ae                        
    icm/cancel_strategy            = cancel requests without session (stateless)  
    rdisp/plugin_auto_logout       = 1800                                         
    is/HTTP/virt_host_0            = :;                                         
    is/SMTP/virt_host_0            = :;

    Hi Eddy,
    Yes I did,  in the first instance I am getting the following error from  Internet Explorer while try to access the link http://prdr01d3801.abcd.ae:8001/sap/bc/bsp/sap/ai_proj_setup/start.htm?sap-client=100&sap-language=E
    Network Error (dns_unresolved_hostname)
    Your requested host "prdr01d3801.abcd.ae" could not be resolved by DNS. 
    For assistance, contact Customer Support.
    Regards

  • Business Server Page (BSP) Application

    I have created a BSP iView, however I'm missing some parameters and I'm not sure what shoudl be added.
    For example:
    Customer Namespace
    Application Namespace
    Business Server Page (BSP) Application
    Start Page - (is this documents_todo.htm)
    Thanks

    Application namespace: sap
    customer name space : sap
    BSP application: name of the bsp application.
    start page: start page name from the same bsp appliction.

  • Business Server Page(BSP) Error!!

    Hi Friends,
    I have deployed the business package of Supplier Collaboration 2.0. When i click few of the iViews then i am getting the error as:
    <b>Business Server Page(BSP) error:</b>
    <u>SAP Note: The following error text was processed in the system:</u> <i>BSP Exception: Access to page default.htm requires HTTPS. HTTPS has not been configured on this server.</i>
    As per the BP guide, they havent mentioned anything to change the settings. We made sure the System alias used by this iview does exist., so there is no issue of system alias.
    Kindly let me know if anyone knows..about this.
    Thanks,
    Raghavendra Pothula

    Hi,
    Where we have to set this https service.....
    Thanks & Regards
    Ravi Shankar B

  • SAP Business server pages (BSP)

    Hi All.
    Can anybody provide study documents on Business Server Pages ( BSP ).
    Thanks and regards,
    Krish......

    try these links
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/24
    https://www.sdn.sap.com/irj/sdn/nw-wdabap?rid=/library/uuid/a6d78c90-0201-0010-b091-c05d5b3fa5e2
    https://www.sdn.sap.com/irj/sdn/nw-wdabap?rid=/library/uuid/2d0b74ae-0b01-0010-599a-94fc77b01e87
    BSP Trouble Shooting: Frequently Asked (Short) Questions
    https://www.sdn.sap.com/irj/sdn/nw-wdabap?rid=/library/uuid/2d0b74ae-0b01-0010-599a-94fc77b01e87
    u can find such links in below mentioned page under topic bsp
    /docs/DOC-18478#section5

  • ENRICH_ITEM_DATA + create Shopping Cart from external Business Server Page

    Dear SRM Gurus,
    I am on SRM 2.0 with EBP 3.5 and Requisite 3.5/88.
    On the Web Interface I get the message (German):
    "Sachkonto 6610005 ist nicht angelegt (Bitte Eingabe prüfen)  (Position 1) "
    which means translated: G/L Account No 6610005 not available - please check your entry (position1).
    I don't even find the Message Class which holds the message - It's not under package BBP_PU. In fact, when logging on in English - still the message is displayed German, while the messages in message class of package BBP_PU are translated.
    In fact, I think, I am almost done - all required fields are accessible in ABAP - I just don't know, when to put what where...
    thanx in advance, matthias
    Message was edited by: Matthias Kasig
    Message was edited by: Matthias Kasig
    Message was edited by: Matthias Kasig

    Hi CChung,
    I've got a pdf "Open Catalog Interface" which also gives an html example - i can email you.
    But let me tell you how I did it.
    1. You define a catalog in SPRO for your BSP. SPRO -- general settings -- Enterprise Buyer -- define catalogs
    there you place a parameter HOOK_URL as return URL. I guess that is what you already did.
    2. Now it's really simple. When you jump to your BSP the HOOK_URL gets also transferred to your BSP. You just have to set up the page attribute 'HOOK_URL' as string auto-value (don't forget to check auto), and then you should be able to deal with its value the way you want.
    In my case I transfer the value to a second result.htm.
    I set up an htmlb:form which includes an invisible input field:
    <htmlb:inputField id       = "I01"
                              value    = "<%= HOOK_URL %>"
                              disabled = "X"
                              visible  = "FALSE"
                              width    = "550" />
    I guess a hidden field will do to.
    In Event Handler OnInputProcessing I refer to this via:
    DATA: data_t TYPE REF TO cl_htmlb_inputfield.
    IF event->id = 'B01' AND event->event_type = 'click'.
      data_t ?= cl_htmlb_manager=>get_data(
                                  request = runtime->server->request
                                  name     = 'inputField'
                                  id       = 'I01'
      IF NOT data_t IS INITIAL.
        hook_url = data_t->value.
      ENDIF.
    and:
    navigation->set_parameter( name = 'HOOK_URL' value = hook_url ).
    or I use it for aborting in JavaScript like this:
          <script language="JavaScript" type="text/javascript">
          <!--
            function abbrechen()
               location.href = "<%= HOOK_URL%>";
           //-->
           </script>
    Hope you get it, regards, Matthias

  • Business Server Page error in RWB -alertConfig

    In XI, RWB, when i click to open 'Alert Configuration', it gives an error message:
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: the Application Name sap in URL /sap/bc/bsp/sap/sxms_alertrules/main.do?sap-client=400&adaptertypes=RFC%20BC%20Mail%20Marketplace%20File%20XIRA%20SOAP%20RNIF11%20JMS%20JDBC%20RNIF%20XI%20CIDX%20 is invalid.
    I tried testing the related service in SICF:
    it gave almost the same error:
    The following error text was processed in the system:
    BSP Exception: the Application Name sap in URL /sap/bc/bsp/sap/sxms_alertrules?sap-client=400 is invalid.

    run RSXMB_ACTIVATE_ICF_SERVICES in se38.
    or go to SICF and follow the path: sap/bc/bsp/sap/sxms_alertrules  and make sure it is active!

  • Has an error in CRM webui (Business Server Page Error)

    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Define component usage 'CUKNOWARTValueHelp'
    Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT
    Error Name
    Program CL_BSP_WD_REPOSITORY==========CP
    Include CL_BSP_WD_REPOSITORY==========CM00C
    ABAP Class CL_BSP_WD_REPOSITORY
    Method GET_CMP_USAGE_DEF
    Line 18
    Long text -
    Error type: Exception
    Your SAP Business Server Pages Team
    Not able to figure our how to fix it.
    Tx
    Sabina

    Hi Sabina,
    The error is caused because the Component usage 'CUKNOWARTValueHelp" is missing. Open the associated BSP application and check if there is a component usage defined in the Runtime Repository. If there is no custom enhancement to the BSP you are dealing with, then this issue might be present in Standard. If that is the case, check if the note suggested by Hasan helps.
    Good luck.
    Regards,
    Prathap

  • Business server pages

    hi,
    when i execute a business server page it gives the following error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
          Die URL enthält keine vollständige Domainangabe (160.1.1.50 statt 160.1.1.50.
    can anybody explain me about this error

    Hi Peter.
    This means that the URL generated does not contain complete domain name. Generally this error is thrown in case of the windows HOSTS file is not maintained with the domain name of the server on which you have developed your BSP.
    Just check if the 'hosts' file has an entry for the server used, if not then you can make an entry yourself by giving the IP address and then server name with tab delimited format. Then try executing your BSp.
    I hope this will help.
    Regards,
    Vaishali

  • Pages will not open from iCloud since Maverick update

    Pages will not open from iCloud since Maverick update

    I have a similar problem.  I upgrated to Maverick a couple weeks ago and at that time I saw a very different appearance to my Pages documents, especially my book lists.  Numbers appeared at the left side of the pages.  All seemed well.  Now the last few times I've tried to open those documents, I get the message that "YOU NEED A NEWER VERSION OF PAGES TO OPEN THIS DOCUMENT.  YOU CAN DOWNLOAD THE LATEST VERSION OF PAGES FROM THE MAC APP STORE".  I can't figure out how or why the version reverted back to the way it was.  That message doesn't always come though.  Some documents I can open but some I can't open at all.  If I click LEARN MORE, I am directed to the APP STORE where I can buy Pages 5.0.1 for $19.99!!!!!  What the heck is going on?????  Am I going to have to pay for pages where Maverick was FREE. 

  • Date format conversion in Business Server pages

    Hi Floks
    i am working Business server pages i got some problem in the date format. Igetting date as dd.mm.yyyy and i want to change this to MM/DD/YYYY format . i tried to change this in like in ABAP coding . it s not working can give how can fixthis issue  that i am working CRM application .so please proper code or anything ..
    thanks
    Preethid

    Hi Preethi,
    If you can not do it in SU01 you can do it using split .
    Something like:
    call function 'CONVERSION_EXIT_PDATE_OUTPUT'
      exporting
        input  = sy-datum
      importing
        output = gv_date.
    Now you get the date in dd.mm.yyyy format .
    DATA: str1 TYPE string,
          str2 TYPE string,
          str3 TYPE string.
    SPLIT gv_date  AT '.'  INTO: str1 str2 str3 .
    concatenate str2 '/' str1 '/' str3 into gv_date .
    Where gv_date is strign type or c(10) .
    I tried the above code and its working fine.
    Regards,
    Anubhav

  • Business Server Page error (BSP)

    Hi everybody.
    I've installed the Partfolio Management Businnes package, but when I try to use it I have the following error
        Business Server Page error (BSP)
    BSP exception: URL /webdynpro/dispatcher/sap.com/xappscprxrpmui~navigatr/NavigationProxy;jsessionid=(J2EE6375900)ID1437280550DB01043739459538015867End denied
    Thanks
    Alex

    Hi Alex,
    Even we are facing similar kind of issue so kindly provide me solution.
    The error we encounter :
    https://URL/webdynpro/dispatcher/sap.com/xappscprzrpmui~navigatr/NavigationProxy;jsessionid=(J2EE76150300)ID2002463950DB11213908491686403207End will run with a wrong client window ID!
    Do not continue; please report this problem to your administration.
    Suggest me in this issue.
    Best Regards
    DV

  • InfoSpoke fails with message "Could not open file on application server"

    BW Experts,
    I created an InfoSpoke that is configured to extract to a flat file. The name of the file is specified using a logical filename. During extraction, the infospoke reports the error message "Could not open file on application server" adnd  marks the extraction process as red(failed). I have tried to run the InfoSpoke in background mode and in dialog mode and the same error appears. After i run in dialog mode, i checked SU53 for authorization errors and did not find any. I also tried changing the Logical filename setup in transaction FILE to a more "friendly" directory in which i'm sure i have authorizations (e.g. my UNIX home directory) and im still getting errors.
    Can you please share your thoughts on this? Any help will greatly appreciated. I also promise to award points.

    Hi Nagesh,
    Thanks for helping out.
    If i configure the InfoSpoke to download to a file using "File Name" option and also check the "Application server" checkbox, the extract works correctly (extraction to the defualt SAP path and filename=infospoke name). If i configure the InfoSpoke to download to the local workstation, the InfoSpoke also works correctly. It's only when i configure it to download to the application server and use the "Logical filename" option, that i encounter a failed extract.
    Here are the messages is the Open Hub Monitor:
    (red icon) Request No.147515
    0 Data Records
    Runtime 1 sec.
    (red icon)Run No. 1
    0 Data Records
    Runtime 1 sec.
    Messages for Run
    Extraction is running RSBO 305
    Could not open file on application server RSBO 214
    Request 147515 was terminated before extraction RSBO 326
    Request 1475151: Error occured RSBO 322
    If i clink on the error message, no messages nor clues are displayed. Note, this is a new InfoSpoke that is currently in the dev system.
    Please help.

Maybe you are looking for

  • Acrobat pro 9.0 update needed

    I own a DVD set of CS3 Design Standard for Mac, including a second DVD named CS3.3 including Acrobat 9. I could not access the DVDs with the Remote Drive function of OSX (I am on a Macbook Air now, without DVD drive). Thus I downloaded CS3 from Adobe

  • Toshiba journe touch problem with youtube...

    Hello...I have a problem with my journ.e touch...I open opera browser and try to watch YouTube video but I get an error message Unsupported .swf file format. Some animated content may not play....and I cant see YouTube videos... I try on i.e.i press

  • Whats the difference on the logic boared from Fusion to flash drives

    Whats the difference on the logic boared from Fusion to flash drives?

  • Export Quicktime Custom Preset

    Sorry you can thrash me if you like, but Ive searched, rtfm and still confused. I have to export quicktimes all the time, not that it's important but our smokes across the hall only take quicktime at the moment. So I go export quicktime and scroll do

  • Computer crashed when Downloading an album

    Hi, I've just bought an album of 14 tracks and due to Photoshop CS4 crashing, I had to switch off my iMac, I lost tracks 5/6/7. Will I have to buy them again? Or can I re-start the download? Tried Store/Download and it thinks it's all ok! But it's no