Excel option in Script

hi,
   I have developed a Report for material issue and Dispensing report. I am using sap script  for this report.  Now my user wants the Excel option  for downloading the data in excel format.
  How can i include the Excel button in my screen.and How can i set the Pf-status in sap script?
Thanks,
Neptune.M

Hi
Or you set a new gui in your report and here insert two buttom: one for print (sapscript) and one for downloading (to excel): so the user can choose if to print or download the document;
or you insert a checkbox for downloading option: so if the user sets that flag it means he wants to download the document after printing it.
But you can't add new gui in SAPSCRIPT screen.
Max

Similar Messages

  • Export excel option is not working in test environment in Firefox.

    In our application 'export excel' option is present in 4 different pages. All the excels working in development environment in both IE and FF. In testing env, all the excels working fine in
    IE. But only two excels are working in FF in testing env. Remaining not working and 'The connection was reset The connection to the server was reset while the page was loading' error page appears when we click on 'export excel' button. Can any one help on this issue...

    Hello,
    You can do one of the following:
    Select the table in Firefox and then copy it to the clipboard. In Excel do Paste Special and select either 'Unicode text' or 'text' to copy it into Excel.
    Use the Table2Clipboard extension. This will provide the Right-Click menu option, it will copy the data into the clipboard and you can then paste the selection into Excel.
    I hope that helps.

  • I am not seeing export to Excel option in SharePoint 2013 survey (even in the overview view mode)

    Hi
    If anyone could point me in the right direction as to what steps to take to enable the export to excel option in a sharePoint survey list.
    all other surveys are showing up that export to excel option.
    I am not seeing the view dropdown as well which shows up on right (the only way to create new view is through the URL as of now)
    Constraints
    Survey already has several responses now so making a new survey is not an option
    (I know that when is any custom view is changed to default view and if Overview is made as the default view again this option goes away, but how to get this export to excel option back?)
    Steps taken till now
    Checked in SP designer as to which field is set to default and it shows overview as the default.
    Checked whether any web part was closed and it seems there was none else closed web part category would've shown up
    Saved the existing survey as template both with the content included and without the content (without the content template has the export to excel option showing up)
    Many thanks ,
    Ab

    Aby,
    Do following, it will work
    Create a simple list and hit export to excel to create owssvr.iqy file
    Open that file in notepad
    Collect Survey list' GUID and View GUID from SPD. You need to change the pointer to test list to survey
    Change list GUID and view Guid 
    File will contain these code
    WEB
    1
    https://mycomp.sharepoint.com/sites/RND/_vti_bin/owssvr.dll?XMLDATA=1&List={577F5EF1-DA61-4BAD-B912-E16CEFD72AE2}&View={05CF5C6B-92F0-4681-BC4A-F60E2646A41D}&RowLimit=0&RootFolder=%2fsites%2fRND%2fReports%20List
    Selection={9CC32EE5-7C16-49EE-9BA1-136C1ADBEBEF}-{2D172036-F4BF-459D-BBAB-4FEE3310511D}
    EditWebPage=
    Formatting=None
    PreFormattedTextToColumns=True
    ConsecutiveDelimitersAsOne=True
    SingleBlockTextImport=False
    DisableDateRecognition=False
    DisableRedirections=False
    SharePointApplication=https://mycomp.sharepoint.com/sites/RND/_vti_bin
    SharePointListView={05CF5C6B-92F0-4681-BC4A-F60E2646A41D}
    SharePointListName={577F5EF1-DA61-4BAD-B912-E16CEFD72AE2}
    RootFolder=/sites/RND/Reports List
    It will work :)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to Hide Print Privew Option (Sap Script)

    hi friends,
    i dont want print privew option (SAP SCRIPT) after executing the program the report shows output directly insted of showing print privew option.
    please reply.
    thanks in advance.
    regards,
    bhaskar

    Hello,
    When using the OPEN_FORM
    Set the field of the <b>
    ITCPO-TDNOPREV = 'X'
    </b>
    VAsanth

  • Please help me out with  "Data only excel option "

    Post Author: pavan pusuluri
    CA Forum: Crystal Reports
    When i am trying to spool the data with data only excel option using crystal reports XI, the records are appearing in two rows instead of single row. i have studied that when we use data only excel option entire record will be displayed in a single row,but it is not appearing in that way.Please help me out in fixing this bug. I am very much new to crytal reports.

    Post Author: pavan pusuluri
    CA Forum: Crystal Reports
    I thank you for the prompt reply.  
    All the field are of same size and height.  The format is fine.  The report is designed in such a way that data is   displayed in three detail sections. What i would like to have is " i want the data in these three sections to be displayed in a single row when i select the data only excel  export option".Please help me  out in fixing this issue.
    Thanks in anticipation

  • To send Excel Options in mail...

    Hi all ,
    Have requerment to send excel options in mail but data in row having more than 225 characater ,have using the method name
    CL_DOCUMENT_BCS=>CREATE_DOCUMENT please guide me send more number character in a rows .
    Regards,
    santosh.

    Hi Santosh,
    You can send data with length greater than 255 character to the excel sheet as an attachment but the data will be displayed in the next line in the excel sheet.I think, Its not possible to display data greater than 255 characters in single line in the excel sheet via mail.  For this you can use the following logic:
      CLEAR lv_success_attach.
    *adding line feed for every row in success table for sending attachment through mail.
      CONCATENATE  lc_con_cret      " lc_con_cret    TYPE c      VALUE cl_abap_char_utilities=>cr_lf.
                                 lv_success      "single row
                       INTO  lv_success_attach.
      lv_length = c_length.  "255
      lv_offset = c_offset.  "0
      lv_strlen = STRLEN( lv_success_attach ).
    * dividing every row into 255 characters
    "This loop will run more than once if the data in a single row is greater than 255 characters
      DO.
        IF lv_strlen LT c_length.
          lv_length = lv_strlen.
        ENDIF.
        wa_success_attach1 = lv_success_attach+lv_offset(lv_length).
        APPEND wa_success_attach1 TO it_success_attach1.
        CLEAR  wa_success_attach1.
        lv_offset = lv_offset + lv_length.
        lv_strlen = lv_strlen - lv_length.
        IF lv_strlen = 0.
          EXIT.
        ENDIF.
      ENDDO.
    Hope it will help you. If it is not clear, please feel free to post queries. I will try to explain it to you.
    Thanks & Regards
    Rocky

  • BPC for Excel Option Missing from Launch Page

    We have a user that does not have the BPC for Excel option on the Launch Page when logging in.  I've removed BPC and reinstalled several times sucessfully, but "BPC For Excel" doesn't show up.  The launch page doesn't recognize the software has already been installed.  Has anyone experienced this?
    Thx.
    Shane Johnson

    Shane-  Review all of your IE settings and change all the Security settings to PROMPT instead of No.  There is an activeX control that may be being blocked due to a security setting or firewall or popup blocker setting.  Make sure Windows Firewall is DISABLED.  Make sure Windows Popup Blocker is disabled. 
    What do you get when you do the "Client Diagnostic" option under the "Client Software Center" link of the BPC launch page?  Did you check to see if Microsoft .Net 1.1 is installed?  Does the PC have a 64 bit processor?  Does the PC have Windows 7 installed? Does the PC have Internet Explorer 8 installed?   BPC is not compatible with 64bit client hardware, not compatible with Windows 7 and not compatible with IE 8...
    Greg

  • "MS Excel" option is grayed out

    Using WebGUI, I need to download report output to excel.
    I select the report from a customized report tree, and click execute.  I then enter parameters and click continue.  At this point, the report's output is displayed.  With the output in view, I attempt to use the menu option:
    Menu => Extras => Spreadsheet => MS Excel
    However, the option "MS Excel" is grayed out, and I can't continue.  All office integration is grayed out.  Lotus123 is not available, and all options under Menu => Extras => Spreadsheet => Word Processing are not available.
    What is causing the MS Excel option to be grayed out?  The same functionality works fine from SAPGUI.
    Thanks,
    Kevin

    Hi Kevin,
    there may be other options. If the report is ALV based, you can choose the export button from the ALV toolbar. There you have the options "Local file" and if you are on 6.40 SP 15 or higher "XML export". With "Local file" you can save the report i.e. to a excel file in the file system of your PC. It saves the data but not the visualization. Therefore it might be required to do some tune. The "XML export" option is more sophisticated because it presaves the visualization.
    Best regards,
    Klaus

  • Edit in Excel option did not load data to financial plan

    Hi
    The financial plan (budgets) is being uploaded into oracle projects from Projects HTML responsibility using the Edit in Excel option. when the data is uploaded the status in Excel sheet shows as successful, but when the same is checked in front end, it is not imported. This is happening at random.
    ### Steps to Reproduce ###
    open projects HTML resp and query for project
    go to financial tab
    select a working version of budget and select edit in excel
    in the excel sheet that is opened, enter the required data and select oracle>upload from menu.
    The status in sheet shows as successful. but on checking the working version, the same is not imported.
    thanks
    Abinesh

    Hi,
    This seems to be an server issue, can you bounce the apache and try again ?
    Thanks
    Sathish Raju

  • Getting error message when i am trying to update the excel file using script task in ssis package

    Hi Guys,
    I am getting error message when I am trying to update the excel. Please find the error messages as below
    Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
    Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
    Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
    and the code that   I am using is
    Dell - Internal Use - Confidential
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports Microsoft.Office.Interop.Excel
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
    Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial
    Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    Public Sub Main()
            Dts.TaskResult = ScriptResults.Success
    'Dim proc As System.Diagnostics.Process
    'kill all instances of excel
    'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
    ' proc.Kill()
    'Next
    Dim excelnacomm As
    New Microsoft.Office.Interop.Excel.Application
    Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
            wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
    the excel)
            wbnacomm.RefreshAll()
            wbnacomm.Save()
            wbnacomm.Close()
            excelnacomm.Quit()
            Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
    End Sub
    End
    Class
    Please let me know what could be the reason
    Smash126

    Download:
    Microsoft Office 2010: Primary Interop Assemblies Redistributable
    How to: Add or Remove References By Using the Add Reference Dialog Box  /  How to:
    Add and Remove References in Visual Studio (C#)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Excel option problem in ALV report output.

    Hi,
    In the output of the ALV report, if I click the Microsoft excel button, the following error is occured.
    "View cannot be switched: Product is not installed or integration is not active".
    We are using SAP GUI 7 and patch level 12.
    Please advice what shall be done to overcome this.

    Hi
    Try this.....
    Open Excel, go to Tool->Macros-->Security
    And you will see a window, Make sure that the two options at the bottom of the window are checked. Save all, close window and try again.
    And when excel asks about enable or not macros always select enable macros.
    Hope this helps.....

  • Excel VBA + SAP Scripting / How can I send an instruction to a background window without bringing it up?

    Hello guys,
    I need to send keys to a window in the background, but I don't want it to pop up when I do it as it may cause some errors if I'm typing something at that moment. Is this possible?
    The script I'm working on converts a spool to a pdf, but when the save as window comes up, the script stops recording because that is not a SAP screen, but a windows screen.
    I was actually able to make it work by ending the script right before executing the transaction, then I used AppActivate and SendKeys to execute the transaction by pressing F8 and saving the file by pressing enter, but I still have these windows popping up while the macro is running, so, is it possible to have the SendKeys point to a specific application without it bringing it to the foreground?
    Also, please note that I am new to programming, so I'm not familiar with all the functions.
    Thanks in advance.

    Hello Jahir.
    I had several similar request in past.
    One requirement was mass convertion of PM orders printout from spool to PDF.
    I found a solution where a small ABAP-Report (implemented in coding-area of an SQ02 infoset) Transfer spool data from my SAP user as PDF to a temp Folder on my local HDD.
    Then I convert this PDF-files with an small application (pdf2txt.exe) to text-files. Where a small Excel VBA code got an specific text as identifier (PM order number).
    So I have pdf-files with spoolnumber-naming and dedicated PM order number. So a small VBA code is renaming my files for better identification by enduser.
    Another method was to write an small VBA macro which is able to identify Save-As dialogbox and fillin a specific filename and press 'Save' by using ESER32-API methods and functions.
    As you are new with programming I guess both methods are a Little bit to complex for you.
    LEt me know when you Need more Information for one of above used methods by me.
    MAy you can give some more Details in which Transaction you will Trigger the spools.
    Br, Holger

  • Where is the autofilter (excel option)  in numbers for ipad2

    Please help me. I bought numbers thinking that was the same of excel.

    Thanks for your response, but I'm not finding any option like that, either.
    Here's a little more detail on the context of my specific problem:
    This morning, for no apparent reason, my 4 month old iPad Air decided it would not turn on. I plugged it into my PC and iTunes was able to access its contents, or at least some of it; it's not really clear.
    One of the options for dealing with this situation, according to the Apple support page I read, is to have iTunes reset the iPad, which is misleadingly called "Restore iPad ...". (Evidently, this condition is common enough that there is a separate page for dealing with it.)
    After backing up the iPad to my computer using iTunes, I started the so-called "Restore" process, only to be told that "There are purchased items on the iPad ... that have not been transferred to your iTunes library. If you restore this iPad, these items will be erased and you will have to purchase them again. Are you sure you want to continue?"
    Naturally, this message does not give me an option button to "transfer" the purchased items to my "iTunes library"; in fact, the message does not even give the slightest hint as to how such as "transfer" might be accomplished. It also does not give any clue as to what has not been "transferred to [my] iTunes library."
    So far as I can tell, the only thing that I have purchased that has not been downloaded to my computer are my iPad apps. Do I have to download those to my computer? That seems idiotic, but, then again, I am new to the Appleverse and am not familiar with its arcane and recondite ways. All that I had ever heard was that Apple stuff was supposed to be intuitive and easy to use. This seems to be the exact opposite.

  • How to include export to excel option in Firefox

    when i using IE and right click any page. you can able to see the "Export to Microsoft Excel” To the Right-Click Menu in Internet Explorer.
    when I starting using Firefox it does not give me the option to xport to Microsoft Excel unlike internet explorer.
    is there any other way we can include this IE option in the Firefox?

    Hello,
    You can do one of the following:
    * Select the table in Firefox and then copy it to the clipboard. In Excel do Paste Special and select either 'Unicode text' or 'text' to copy it into Excel.
    * Use the [https://addons.mozilla.org/en-US/firefox/addon/dafizilla-table2clipboard/?src=search Table2Clipboard] extension. This will provide the Right-Click menu option, it will copy the data into the clipboard and you can then paste the selection into Excel.
    I hope that helps.

  • Exporting to Excel options

    Hi there guys, this is my first post and i wasn't too sure where to put it.
    Basically i am trying export a report, CJ74 (if that helps) to an excel spreadsheet. I used to get options when i exported to excel about what file type i wanted it to be exported to, however now it is defaulted to a .htm option.
    How do i get all the options back? Is there a way to reset the options?
    Cheers
    Ajay

    Whne using the CJ74 form i used a variant to get the data i wanted. Then when i ran the excel export, it would list the details in the a set format.
    I sued to get a dialog box with two radio buttons: Excel (in MHTML format) and All Avaiable formats. I selected the first by accident and now it defaults to it.
    All i want is the Dialog biox back so i can choose the correct option.
    Any ideas?

Maybe you are looking for

  • Syncing iPhone 4 with Outlook & getting Duplicates Contacts

    I am syncing an iPhone 4 using a PC with 2003 outlook. Problem is that some of my contacts are showing duplicates on the iPhone when there are no duplicates in outlook. I have tried several things that have been suggested by others including wiping o

  • On Location CS4 won't start

    When I try to start it up it just hangs on the splash screen. It doesn't even show up as running in task manager. I have the latest update installed. I have tried to delete the approps.xml file manually but it doesn't exist. Oddly their is a WSMgrCfg

  • Stock Valuation Method - Freeze SAP - Changing from FIFO to Moving Average

    When you select and change more that 20 items at one go, from FIFO to Moving Average, it causes SAP to Freeze; Also if you do them one-by-one, after about 30-40 itms, SAP freezes. Is this knows?

  • DIMP - Two materials in same Production Order

    Hello experts anyone knows if it is possible combine two materials in one production orders with DIMP component? The scenario is for print flexible packaging, in one flexo printing machine we can print 2 different product with similar structure and c

  • Can we stack dashboard pages over one another

    Hi All, I am in OBIEE 11g v6. Is there any way of stacking the pages on the dashboard if the no of pages are large. So for ex, I have 10 dashboard pages, the way it would be shown on the dashboard is Page1|Page2|Page3|Page4|Page5|Page6|Page7|Page8|Pa