Default file name for BEx report

Hi all, Wishing u a very diwali...
I have one requirement from user that i should get the file name default as a technical name of the query. As of now when i open the file it is taking some random book1, book2 etc.
Please suggest solution
amit shetye

ok

Similar Messages

  • How to set the default file name for upload

    Hi All,
    I have the following BSP app for a file upload of a csv file. I want the page when displayed show the default file name to be loaded as c:\db1\currentPM.csv
    What changes do I need to make to get the default file name in the BSP app.
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "classicdesign2002design2003"
                   controlRendering = "sap"
                   rtlAutoSwitch    = "true" >
      <htmlb:page title="File Upload " >
        <htmlb:form method       = "post"
                    encodingType = "multipart/form-data">
              <htmlb:textView text   = "File:"
                              design = "STANDARD" />
              <htmlb:fileUpload id          = "uploadID"
                                onUpload    = "UploadFile"
                                upload_text ="Upload"/>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    On Input Processing
    event handler for checking and processing user input and
    for defining navigation
    DATA: EVENT TYPE REF TO IF_HTMLB_DATA,
          DATA TYPE REF TO CL_HTMLB_FILEUPLOAD,
          LV_OUTPUT_LENGTH TYPE I,
          LV_TEXT_BUFFER TYPE STRING,
          FILE_NAME TYPE STRING,
          FILE_PATH TYPE STRING ,
          INTERN TYPE TABLE OF  ZALSMEX_TABLINE.
    DATA: LT_BINARY_TAB TYPE TABLE OF SDOKCNTBIN .
    TYPES: BEGIN OF TY_TAB,
           FIELD1(2) TYPE C,
           FIELD2(2) TYPE C,
           FIELD3(2) TYPE C,
           FIELD4(2) TYPE C,
           FIELD5(2) TYPE C,
           END OF TY_TAB.
    DATA:  WA_TAB TYPE TY_TAB,
           IT_TAB TYPE TABLE OF TY_TAB.
    TYPES: BEGIN OF TY_LINE,
              LINE(255) TYPE C,
           END OF TY_LINE.
    DATA:  WA_LINE TYPE TY_LINE,
           IT_LINE TYPE TABLE OF TY_LINE.
    EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>FILEUPLOAD.
      DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST NAME = 'fileUpload' ID = 'uploadID' ).
      FILE_NAME = DATA->FILE_NAME.
      FILE_PATH = FILE_NAME.
      IF DATA IS NOT INITIAL.
        CALL FUNCTION'SCMS_XSTRING_TO_BINARY'
         EXPORTING BUFFER = DATA->FILE_CONTENT
         IMPORTING OUTPUT_LENGTH = LV_OUTPUT_LENGTH
         TABLES BINARY_TAB = LT_BINARY_TAB .
        CALL FUNCTION'SCMS_BINARY_TO_STRING'
        EXPORTING INPUT_LENGTH = LV_OUTPUT_LENGTH
         IMPORTING TEXT_BUFFER = LV_TEXT_BUFFER
         TABLES
         BINARY_TAB = LT_BINARY_TAB.
        IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        SPLIT LV_TEXT_BUFFER AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_LINE.
        IF SY-SUBRC = 0.
          LOOP AT IT_LINE INTO WA_LINE.
           SPLIT WA_LINE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
            split wa_line at ','
            INTO WA_TAB-FIELD1 WA_TAB-FIELD2 WA_TAB-FIELD3 WA_TAB-FIELD4 WA_TAB-FIELD5.
            append wa_tab to it_tab.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDIF.

    Also, I missed another point.
    In the folder c:\dbdata I have a number of CSV files on the user frontend. I would like the BSP application to get the list of files in the folder and process them one after the other. How can I get the list of files on the folder in the user PC and how to process them one after the other.
    I want the form to display only the default folder and once I press on upload it must process all files and display the status of processing on the same page.
    Please kindly share ideas how I can implement this app.
    Thanks
    Karen

  • Dynamic Remote File Name for delivering report via FTP

    As many of the threads had the same query about how to pass dynamic filename while scheduling a report using ftp option.
    My requirement is to append the 'ID' which is the identifier of the report with the template name in the Remote Filename section.
    Eg. if ID is 1-34RT5 and the filename should be 1-34RT5_abc.pdf
    I tried appending date(%m%d%y) and it worked for me, but how can I append a parameter?
    Is it possible in stand alone BI Publisher 10.1.3.4?
    Pls let me knw if someone has implemented this. Would really Appreciate.

    for bursting, can I change dinamically the file name?
    I have to burst an invoice report to send to different customer and store to a FTP archive folder.....
    can I change dinamically this name?
    can I select fields to name the pdf file name?
    can I change object and text of the e-mail?
    tks a lot to all
    Andrea

  • Dynamic file name for report export to csv

    If "Enable CSV output" = "YES" for a report region titled "Invoices", the default file name is "Invoices.csv". If I have a parameter, Pn_MONTH, for the month (e.g. Jan 2010, Feb 2010, etc.) and the report only shows data for that month, I would like to have the resulting file named "Invoices_Jan_2010.csv".
    I've tried setting the Report Export Filename to "Invoices_&Pn_MONTH..csv" and setting the region title to be "Invoices_&Pn_MONTH." but the resulting file name is coming up as "Invoices_.csv"'. I even tried "Invoices_:Pn_MONTH.csv" just to be sure but that makes it "Invoices_:Pn_MONTH.csv"'.
    How can I get this to work?

    This same method works for generating dynamic column headings from other page items, but I've never tried it for the download file name.That's the problem. The parameter P_MONTH is itself a page item and this is not consistent with other dynamic substitution. Looking at the page source, the export link is
    f?p=102:9:8985946323211742:FLOW_EXCEL_OUTPUT_R2805111921107129_en-uswhere presumably "FLOW_EXCEL_OUTPUT_R2805111921107129_en-us" is an application process and "2805111921107129" is the internal id of the region. The filename is not part of the link.

  • Default name for saving report output

    Hi,
    I created an Oracle Report that is run via the rwservlet. Users will be prompted to view/save the output when destype=cache and desformat=pdf, spreadsheet, or delimiteddata. When they try to save the output, the default file name is rwservlet.pdf (or rwservlet.xls). Is there a way to specify a different default file name? Setting the desname and/or jobname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
    Thanks,
    Brian

    Hello,
    A solution may be to add a HTTP header "Content-disposition" to the answer sent by the Reports Servlet:
    Content-disposition: attachment; filename=fname.ext
    http://support.microsoft.com/kb/260519
    How To Raise a "File Download" Dialog Box for a Known MIME Type
    This HTTP header can be added with a "Servlet Filter" :
    Servlet Filter
    http://download-east.oracle.com/docs/cd/B25016_07//doc/dl/web/B14017_02/filters.htm#i1002889
    Regards

  • Changing file name produced by Reports

    Does anyone know where you can change the default file name generated when you specify an output format of Excel for a Portal Report.
    The default I am getting is schema.reportname.show which is not .xls as I expected.

    Jenny,
    The solution is to have a filename something.xls. i.e the url is http://myserver/pls/portal30/something.xls
    you can create a procedure called xls in
    the package generated by your report. The
    procedure doesn't do much, it just does
    a redirect to the report (w/p_format_out = EXCEL').
    that should do the trick. The problem w/this
    approach is that now you have a maintenance burden

  • Need help adding a default file name in a file chooser of save dialog type

    I need to create a file chooser with save dialog type, how can I add a highlighted default file name into the File Name textfield? As in Microsoft Word, when you want to save a document, a default file name Doc1.doc will appear in the File name text field of the file chooser even when you change to other directories.

    For JRE 1.4.0 you can use this fix:
    public class FileChooserFix implements PropertyChangeListener {
      private String fileName;
       * @see PropertyChangeListener
      public void propertyChange(PropertyChangeEvent ev) {
        JFileChooser chooser = (JFileChooser)ev.getSource();
        if (JFileChooser.FILES_ONLY == chooser.getFileSelectionMode()) {
          if (JFileChooser.SELECTED_FILE_CHANGED_PROPERTY.equals(ev.getPropertyName())) {
            File selectedFile = (File)ev.getNewValue();
            if (selectedFile != null) {
              // remember fileName of selected file
              fileName = selectedFile.getName();
          if (fileName != null &&
              JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(ev.getPropertyName())) {
            // reset selected file
            File directory = (File)ev.getNewValue();
            chooser.setSelectedFile(new File(directory, fileName));
       * Convenience method to create a fixed file chooser.
       * @return      fixed file chooser
      public static JFileChooser create() {
        JFileChooser chooser = new JFileChooser();
        chooser.addPropertyChangeListener(new FileChooserFix());
        return chooser;

  • AdobePDFViewer.plugin And Default File Name When Saving

    When I grab a PDF document from a web page, it opens in a Safari Window just fine, as expected. I get the Adobe Plug-in Tool Bar as expected. So now I want to File:Save As the document that I have grabbed and am now looking at in my Safari window. The File:Save As dialog opens and the document title always defaults to 'downloadDocument' instead of the actual name of the file that I have grabbed, even if the html has passed the true file name to the browser and plug in. This means I have to retype the name of the document before I click OK. What a pain......
    I cannot find a preference or other setting that would be controlling this. I've looked through the Safari Prefs and the Adobe Prefs
    I should note that I have Acrobat Pro 9.0.0 installed, and I'm running Safari 3.2.1 (5525.27.1) on an MBP 2.5GHz C2D with 4GB of RAM. OS X v10.5.6 totally current.
    How do I get the default file name in the File:Save As dialog to be the name of the file I have grabbed?

    Well, that results in the correct document name appearing in the Save As dialog.
    However, it also means all the Adobe tools are gone.
    And more importantly, it means that the in-document bookmarks are not available for use. The bookmarks are critical in our application. We work with very long documents (big insurance policies) that have many sections and hence they are all bookmarked so that we can move from section to section easily and find the specific sections, pages, endorsements, etc. that we need.
    So, it appears my next step is to "visit" Adobe and find out why they don't play nice??????

  • Is there a way to change the export default file name

    I have a request to change the default file name when doing a pdf export of a report. By deault, when pushing the export to pdf button, the name is NONAME.pdf. They want the default name to be the channel name is displayed on the report.
    Is there an easy way to do this, or will I have to load all new code into the export button?

    What you'll probably want to do is create a script that uses the Call Report.Sheets.ExportToPDF function and programatically specify the name.  From here, you could set it as one of the function buttons or even include it on the toolbar if you'd like.
    Jesse S.
    Applications Engineer
    National Instruments

  • Default File name using CL_BDS_DOCUMENT_SET= CREATE_WITH_TABLE

    Hi folks,
    We are using BSP application to display smartform in PDF format in a new page/window. When I try to save the PDF from the browser/window, its pops up a screen with defaults as "Desktop" and a File Name. I am not sure how system is generating the default file name. How can we change this File Name?
    Thanks for help!
    Best Regards,
    Praveen

    Hi,
    It's done while creating the Response-Caching as in below code:
    cl_http_server=>server_cache_upload( url = filename   response = response ).
    We can pass custom value in the variable filename.
    Kind Regards,
    Praveen

  • "Untitled" as default document name for new documents

    I have one installation of Adobe Illustrator CS2 in a Mac with which I have the following problem:
    Whenever I go to File->New, to create a new document, the default document name is blank, and it should be "untitled".
    Is there a way (without reinstalling) to correct this? (turn the default blank document name to "untitled" default document name, for new documents)
    Thank you.
    Juan Poniachik

    On what Mac? If it's on a new Mac with Snow Leopard, I would guess it is one of those compatibility issues of new OS vs. legacy software. If so, you can't change any of that. Other than that I can only think of trying to edit the document templates...
    Mylenium

  • Get report file name in oracle report builder at run time

    Dear All,
    Is there any way to get the report file name in oracle report builder at run time?
    for example "HR_REP012.REP"
    i need this very important...
    Regards,
    Yousef
    Edited by: Yousef_m on Jun 2, 2012 5:18 AM

    Hello,
    Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
    Example
    function AfterPForm return boolean is
    my_var varchar2(80);
    BEGIN
    SRW.GET_REPORT_NAME(my_var);
    SRW.MESSAGE(0,'Report Filename = '||my_var);
    RETURN (TRUE);
    END;
    Regards

  • Is it possible to propose another default file name in ALV Excel Export?

    Hello All,
    I have a problem while exporting to Excel from the WD ALV. The whole process works fine, the problem occurs when the user wants to open (without saving) multiple exported Excel documents at the same time. In this case he gets an error message, that the document with the same name has already been opened.
    Therefore I have a question, is it possible to customize default file name, so that instead of 'export.xlsx' the file name will contain e.g. WD title&time (or something like that)?
    Thank you very much in advance.

    Hi,
    It's the standard functionality. You actually have to enhance the standard method, which is not advisable as the same will be called in other applications as well.
    So, Instead of that, hide the standard Export functionality and create a new Tool bar button, say, 'Export to Excel' and in on action of that button, use cl_wd_runtime_services=>attach_file_to_response ( and pass the file name by concatenating date/time) method to open/save the file.
    Check this document to create a custom button in ALV tool bar: Creating Self-Defined Functions in WDA ALV
    And, check this blog by Chris for code reference to have Export to Excel functionality: Using WD ABAP ALV export - the hacked way
    Hope this helps u,
    Regards,
    Kiran

  • Editing the Query name for all reports in PRD.

    Dear All,
    I have created 25 reports using Query Designer.We have moved all the reports to BI Production. And Clients are using these reports using the Tool Bex Analyser.
    Every time they are navigating through open Query -> Info Areas -> Data targets and Query.
    Instead of going this way, is there any other way to Open a query easily.
    And they wants to modify the Report name and the Technical name for all the reports. Can we able to edit the Query name for all reports, or do i need to go for SAVE AS for all querys.
    Pls Suggest.
    Thanks,
    Ram

    Hi Ram,
    1. For the first question; if it user specific query then ask the users to save them at the FAVORITES so that there is no need to go to the dataprovider specific.
    Or they can create the reports as favorites user menu screen of that particular user.
    2. In order to change the technical name and description of the queries goto RSZC t-code> give the source and target infoprovider as same> select queries>click on the reports>click on transfer selections-->
    Then you get a screen to change the description and technical name.
    But this is pertained to Infoprovider level.
    You can see all the reports on the infoprovider (cube/ods).
    Hope you understood.
    Regards,
    Ravi Kanth

  • How to set default company logo in bex report(analyzer)?

    hi,
    i have a requirement that i need to create default template for my queries in bex analyzer. whenever i execute my query in analyzer the company logo should be on top of the query. i know how to do it in workbook but could you explain me how to set the default company logo in bex reports?
    thanks
    vadlamudi

    See the following document on creating a workbook template with an image: [http://www.researchsummary.ca/bw/Sample_Ch10.pdf]
    In BW, there is a table that stores the default workbook. The following snippet of code allows you to identify a custom workbook template as the default template for all end users.
    *& Report Z_SET_BEX_USER_TEMPLATE *
    *& Program to update all user's default template *
    REPORT Z_SET_BEX_USER_TEMPLATE.
    TABLES: rsrwbtemplate,
            usr01.
    PARAMETER: wbid LIKE rsrwbindex-workbookid.
    SELECT
    FROM
      usr01.
      MOVE: usr01-bname TO rsrwbtemplate-templateuser,
            wbid TO rsrwbtemplate-workbookid = wbid.
      UPDATE
        rsrwbtemplate.
      IF sy-subrc 0.
        INSERT
          rsrwbtemplate.
      ENDIF.
    ENDSELECT.

Maybe you are looking for