MIME object download by BSP  with 'Save as' box

hello ,
  i am trying to download a Excel file which is in MIME objects in my BSP application. From portal i want to download this with 'Save as' box . Currently excel file is opening and i have to save it manually on local drive.
   can u suggest me any solution to open 'Save as ' dialogue box to download the MIME object on my local hard-disk drive by using BSP application.
Regards

Hi there,
I'm getting the same issue with the following code:
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=\"$newFileName\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ". filesize($fileName) );
echo $fileData;
The only issue seems to be with the filename being set to that of the php script. The contents of the file are correct. Have you had any luck with this issue?
Cheers,
Jeremy

Similar Messages

  • Can we code to import MIME object(Image)  on bsp page

    hi
    can we code to import MIME object(Image)  on bsp page
    i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
    thanks

    Hi,
    save the image into ur system.
    Right click on object name->create->MIME object->import.
    Then select hte image which u want to import and save it.
    Then in the layout write code as
    <html>
    <img height="130" src="image.bmp ">
    </html>
    Regards,
    jaya

  • Cant get downloads to show the save & run boxes.. Adobe flash player

    Cant get downloads to show the save & run boxes in Adobe Flash Player

    You need to proved more information or a screenshot; I cannot understand what you mean.

  • Check if file downloaded successfully , through Open Save dialog box

    hi,
    In the jsp I have a download link through which user can download a file which is located on the server . I have achieved this by setting the response type in servlet as follows => response.setHeader("Content-Disposition", "attachment; filename=" + fileName); .When the jsp page loads the user is shown a Open Save dialog box for downloading the file. The user can download the file or cancel the operation.
    But now I need to track if the user has downloaded the file successfully on his m/c , depending on which a flag will be updated in the database . I am not able to track this event . Pls help how I can check if the file has been downloaded successfully and do further processing.

    This is fully dependent on the client side. You can never rely on that.
    In most cases you could check if any byte of the file is written to the outputstream and/or no IOException is been thrown, but some webbrowsers (such as Firefox) will download the file immediately while the client still need to choose 'save' or 'cancel'. Only when the client chooses 'cancel' the download will be aborted and the file will be deleted. But if the file is small and/or the network is fast, then the file download might be already completed at that time.
    Again, you can never rely on what happens at the client side.

  • WPC - MIME object in web article with anonymous user doesn't work correctly

    Hi all,
    we have a problem with the Web Page Composer (NW07 SP14 + Patch 01) and contents for anonymous users.
    We have define a site with the following elements: article (with text and jpg), paragraph (with text and pdf link) and a jpg image. All texts and the "standalone" jpg (not used in article/paragraph) are displayed correctly. The jpg in the article and the pdf link does not work correctly ("broken" link, PDF link requires a login name ?).
    The direct image in the website has the following link:
    <server>/irj/go/km/docs/wpccontent/Sites/alogis_v01_home/Site%20Content/graphics/bild01.jpg
    (short url is turned off for error search...)
    The jpg in the article has the following link (this is the same jpg as the previous picture bild01.jpg):
    <server>/irj/servlet/prt/portal/prtroot/docs/guid/10c76155-d8c8-2a10-a4a5-fa0a0c7246fc
    And the PDF link is:
    <server>/irj/servlet/prt/portal/prtroot/docs/guid/707470fb-e3c8-2a10-94b4-972b06419c40
    For anonymous users the last two urls are not reachable. These urls require a login (the first link not). The links work correctly with a registered user, not with an anonymous user.
    Does anybody have an idea? Is there someone who had this problem before and solved it?
    Many thanks in advance.
    Mirko Galetzka

    Hi,
    I'm not sure if you're aware, but there is a 3.0 beta version of Data Modeler.
    You can download it freely from here :
    http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
    There are many bugs fixed there.

  • Problem with save as box

    Hello, i have a PHP script that will pop up a save as dialog box.
    This script works well at Firefox and IE7, but when i test it with Safari for Windows.
    It will download the PHP script itself and not the file that i want to give to user.
    Can someone help me, pls? I really need this. Thanks in advance....
    Below is my code :
    <?php
          include("database_setup.php");
          $getType = $_POST['photo_type'];
          $getName = $_POST['photo_name'];
          $getEmail = $_POST['textfield'];
          $user = $_SESSION["username"];
          if(strcmp($getType, "home") == 0) {
                $file = "Homepage_Photo";
                if(copy("./homepage_photo/" . $getName, "./encrypted_files/".$getName)) {
                      $location = "./encrypted_files/" . $getName;
          else if(strcmp($getType, "watermark") == 0) {
                $file = "Watermarked_Photo";
                if(copy("./watermarked_photo/" . $getName, "./encrypted_files/".$getName)) {
                      $location = "./encrypted_files/" . $getName;
          if(strcmp($getEmail, $user) != 0) {
                $_SESSION["downloadMsg"] = "Sorry, username that you input : $getEmail, is not a valid user";
                header("Location: ./photo.php");
          else {
                $gabung = "encrypt " . $location . " " . $getEmail;
                $aes = `java AESfile $gabung`;
                if(strcmp(trim($aes), "Encryption Success") == 0) {
                      @unlink($location) or die("Cannot delete file");
                      $onlyName = substr($getName, 0, strlen($getName) - 4);
                      $fileName = $onlyName . ".uow";
                      $fileLoc = "./encrypted_files/" . $fileName;
                      header("Content-disposition: attachment; filename=".$fileName);
                      header("Content-type: application/octet-stream");
                      header("Pragma: no-cache");
                      header("Expires: 0");
                      $fp = fopen("$fileLoc","r");
                      $str = fread($fp, filesize($fileLoc));
                      echo $str;
                      fclose($fp);
    ?>

    Hi there,
    I'm getting the same issue with the following code:
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header("Content-Type: application/force-download");
    header("Content-Disposition: attachment; filename=\"$newFileName\";");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ". filesize($fileName) );
    echo $fileData;
    The only issue seems to be with the filename being set to that of the php script. The contents of the file are correct. Have you had any luck with this issue?
    Cheers,
    Jeremy

  • Mime objects

    I have the following problem: A BSP has just been migrated from XI to R/3, along with some MIME objects that are used in the BSP.
    In the transport order, the MIME objects are present.
    But they are not present in the BSP's object tree, and the BSP displays a "missing image" square where the images corresponding to the MIME objects should have been.
    How can I solve this?
    Thanks in advance,
    S.

    You have to upload that MIMe object in the BSP application.Also you have to specify the name of the
    MIMe object where it is used insdie the layout code.

  • How to avoid Multiple download of Mime Objects with cleared Cache

    Hii!!
    When using IC we client and when we are searching for the CSR multiple Mime Objects are getting Downloaded ..Can anybody tell me exactly in which class or function module these mime objects are getting downloaded or where  the URL of the same is getting generated?

    I think I've figure out what is happening here. Previous post didn't descript the situation quite clear, it is acturally like this:
    // previous code:
    var container:Sprite = new Sprite();
    var bitmapCantainer:Sprite = new Sprite();
    bitmapCantainer.addChild(bitmapCache);
    bitmapCantainer.mouseEnabled = false;
    bitmapCantainer.mouseChildren = false;
    container.addChild(bitmapCantainer);
    container.hitArea = someSpriteMadeUp;
    // it turns out there'is a parent container of the "container" sprite I created
    // and I disable that
    parentContainer.mouseEnabled = false;
    So now I don't need to avoid any interaction of transparent part of bitmap with mouse evnets, JUST set mouseEnabled property to false of the parent display object which is in the same depth of display list of which those display objects you don't what be "covered" are in.

  • BSP OTRs and MIME Objects do not appear

    Dear SDN Members:
    I have been facing a very peculiar issue. At first we had problems in our Z* BSP Application with SY-SUBRC values after a
    READ TABLE itab INTO wa WITH KEY field1 = var_field1.
    If there were no matching record(s) in Internal table, the SY-SUBRC value was still '0' (Zero) and not 4 etc..
    Now another problem has cropped up...
    At a point in the program (Layout section), there are some HTML lines and OTRs+MIME objects to be executed.
    The program executes those lines as visible in debugger, but does not display the same on Internet Explorer screen. The OTRs and .gif files do not appear in this case. A small preview of the code is pasted here below:
    We have recently upgraded our Quality/Testing server to CRM 4.0 from CRM 3.0 and are doing Application Testing.
    <td class="body" width="100" style="vertical-align:middle; text-align:center">
    <% if a_fcode_tknra = 'change' and application->c_rolle_user <> 'P' and ls_release-releaseid = '-'. %>
    <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_chng.gif" name="onInputProcessing(change_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_AENDERN)%>">
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_dele.gif" name="onInputProcessing(delete_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(zsm_samos/delete)%>" onClick="delete_and_confirm();">
    <% endif. %>
    <% if a_fcode_tknra = 'change' or a_fcode_tknra = 'display'. %>
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_disp.gif" name="onInputProcessing(display_au_detail_<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_ANZEIGEN)%>">
    <% endif. %>
    </td>
    Please help me understand how to go about solving this.
    Regards.
    Vivek.

    Thanks Raja for posting back. The issue is slightly more complex: there are other "src" usages, but they are working fine in other sections of the layout code. The MIME objects have all been stored at right places.
    This BSP Application has been in use since 2-3 years. Only while we posed for CRM 3.xx to 4.xx upgrade, we are facing these issues in Quality Testing.
    We have tried some 2-3 permutations and combinations for this part of code, but nothing works. Do you think the source path changes in different CRM versions? Or do OTRs face some compatibility issues? Do guide me with them.
    The READ table issue is a shocker for us as well!
    Ofcourse the work area is empty, as nothing's there to be read! Now we have placed a double check with "work area NOT INITIAL" to override this problem. In fact this is on SAP OSS as Priority 1 issue but no definite solution has been provided till date, except that they were talking of some Kernel patch (...??).
    Do let me know if you can think of some reason for this abnormal behavior, as right now everything is "out-of-the-box".
    Thanks.
    Vivek.

  • Display icon using MIME Objects and BSP Tags on Pop up

    HI all,
    My requirement is to add the warning icon in my pop up along with the text..
    I accomplished this using the warning message
    DATA: lr_msg_service TYPE REF TO cl_bsp_wd_message_service, lr_msg_service ?= view_manager->get_message_service( ). lr_msg_service->add_message( iv_msg_type = 'W' iv_msg_id = '000' iv_msg_number = '007' ).
    But i wish to know the other way to accomplish this using the Mime Objects..
    Can any one pls lemme know how do i achieve this using the Mime Objects + BSP HTML Tag.
    Kindly help !!

    If it doesn't work with a custom theme then the theme makers didn't include that icon in its theme. You can contact the creators of those themes and inform them about that.
    You can re-enable the sliding info bar at the top of the browser.
    You can look at these prefs on the about:config page and reset them via the right-click context menu:<br />
    Info bar at the top: privacy.popups.showBrowserMessage<br />
    Status bar icon: browser.popups.showPopupBlocker<br />

  • Mime objects in BSP application

    Hi all,
    We have a BSP application with mime objects (images). We have assigned a default user to the application node in SICF. But when we test the BSP page in the browser, it  still prompts for the userid/password, for the images.
    How to set the user for the mime objects so that it doesn't prompt for any userid/password.
    HI,
    we noticed that one of the images was refereing to another BSP application , hence was prompting for the password.So we uploaded that image in the same application and now it works fine.
    Thanks anyways..
    Thanks & Regards,
    Ravikiran.C
    Message was edited by: Ravikiran C
    Message was edited by: Ravikiran C

    where are mime objects stored? within your application?
    if yes and if you have assigned default user and password in application node it should not be prompting for user id password.
    is this prompt only happenning for mimes or for the application.
    Regards
    Raja

  • BSP css & mime objects not found when accessed via iView in the Portal

    Hi
    A locally developed BSP Application has defined it's own CSS and MIME objects.
    This works well when accessed via the Integrated ITS in ECC6.
    However, when we access this the BSP application from an iView in a Portal (NW04S), the css and MIME objects do not appear to be loaded.
    What are we missing?
    Thanks
    Doug

    Hi Doug,
      have you found out the reason for this issue, i encountered the same problem when i access the HCM_LEARNING bsp, would you  please give some addvice if you have any idea?
    thanks,
    billy

  • How to put bsp application mime object path in WAD 7.0?

    hi all.
    I'm already know 'bwmimerep:///sap/bw/mime/Customer' will be changed to /sap/bw/customer/  mime repository path when it's published in WAD7.0.
    but is there any way get mime path custom BSP Application?
    for example If I made test.jpg in 'ZBW' bsp application
    I should use full url   'http://domain:8000/sap/bc/bsp/sap/zbw/test.jpg'  instead of relative url '/sap/bc/bsp/sap/zbw/test.jpg' if I include url in WAD7.0
    is there any idea put relative url in WAD 7.0 certianly I don't want include full url because develop and product server domain is different.
    thanks.

    it looks like bwmimerep:/// prefix is the only one available which points to SAP->BW under mime repository.
    the standard help states (http://help.sap.com/saphelp_ppm400/helpdata/en/44/5001d197c01193e10000000a155369/frameset.htm) to use custom images in WAD
    "You can store your MIME objects anywhere in the MIME Repository under SAP->BW"
    May be we need a mechanism to create bcmimerep, publicmimerep, etc.
    Regards
    Raja

  • How To Upload a Mime Object into BSP Application??

    Hi all,
    I am new to Developing BSP Applications.
    I have a requirement to design a BSP Page and in the header part of the page, i have to display a JPG file from my local PC.
    To achieve this, I did the following:
    1) Upload/Import  the MIME Object(JPG File) into MIME Repository and into the relevant BSP Application.
    2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
    3) In my BSP Page, I tried to use the uploaded JPG file using the following Source Code, as was explained in the Documentation.
    <IMG SRC="myfile.jpg">
    I did not not do any basic mistakes and went according to documentation in using the above mentioned SRC command to upload the Image from the MIME Repository onto the BSP Page.
    But when I run my BSP Application in TEST mode, the Image never shows up; I tried all different way to get this image on the BSP Page and i could not.
    I am currently on ECC 6 Version. Please guide me.
    Thanks

    all that you have to do is reference the image in your page.
    <htmlb:image id            = "TOG"
                       tooltip       = "tooltip text"
                       src           = "picturename.jpg"/>
    2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
    Can you see this in SE80->applicationname->mime objects folder

  • Hi Experts, I have small issue with Mime object in webdynpro component?

    Issue: i have imported mime object with some changes on existing mime object, But this is not reflecting it was displaying old one only,New changes are not reflecting.
    Requirement : We are creating buttons with some CSS style and that image type .PNG and that image we are importing into web dynpro component as a Mime object , This same image we are creating for defferenet languages(EX : image name : Searcch_EN.png , Search_DE.png), this images we are binding the button image source property . and we are calling this image through the code.
    Now problem : I want change one image Ex : Sumbit_EN.png . i need to change this button i image like " SUBMIT_EN.png". So i have created this image as per requirement and i have imported into mime object. But it was not reflecting.
    Please Help me on this...
    Regards,
    Venugopal.P

    Hi Venu,
    You need to clear the cache of mime object to see the changes done.
    Please follow the below steps
         Right click on mim object or your image
    Choose option "Expiration Time client cache"  from menu
    Check the individual expiry date check box and un-check the Expiry active as below
    Note: you can do it for individual imange or for all mimes in a component
    Hope this helps you.
    Regards,
    Rama

Maybe you are looking for

  • Apple TV and Syncing TV Shows....

    Curious if anyone else is having this problem. I bought TV shows from iTunes from my desktop several months back. I cannot sync them to my ATV for some reason because ATV says that it cannot connect to the iTunes store to authorize them. When I check

  • GR output quantity for different material types using 101 mvt

    Hi All Is it possible to have separate GR slip quantities for the same movement type (101) but for different stock types. I would like 3 GR slips for mvt type 101 for directly procured materials AND I would like 1 GR slip for mvt type 101 for stock m

  • I cannot connect to apps such as Pandora and App store. The internet does work though.

    I cannot connect to Pandora and some other apps like app store. My internet is working and I can get on the internet from my ipod. What could be wrong?

  • Incredible 4g OTA update not showing up

    Incredible 4g supposed to get an OTA update. I know many people have gotten the update. My phone does not prompt for an update. I also try to search for the update through the "Software Update" section in settings but when I click that, it just searc

  • Exclusive Mode

    Hi friends What does "Database cannot be open in Exclusive mode" means?