Export Form to Ms Excel format

Hi,
Currently I am working on 10g Form Developer. I would like to export my form's table layout into Ms Excel format. I wonder how and who have the sample coding for that purpose.
Thanks a lot.
Regards,
beecanty

Hi,
Currently I am working on 10g Form Developer. I would like to export my form's table layout into Ms Excel format. I wonder how and who have the sample coding for that purpose.
Thanks a lot.
Regards,
beecanty

Similar Messages

  • Export the Report in Excel format

    Hi,
    How to export the Report in Excel format directly from the SAP to my Desktop.
    Plz. give me the process???
    Thanks

    use this,
    INCLUDE OLE2INCL.
    INCLUDE EXCEL__C.
    AND
             H_EXCEL TYPE OLE2_OBJECT,        " Excel object
              H_MAPL  TYPE OLE2_OBJECT,         " list of workbooks
              H_MAP   TYPE OLE2_OBJECT,          " workbook
              H_ZL    TYPE OLE2_OBJECT,           " cell
              H_F     TYPE OLE2_OBJECT,            " font
              H       TYPE I.
    AND
      PERFORM SUB_GET_DATA.
         'get data here
      PERFORM SUB_POP_DATA.
         'populate data here
    AND
      PERFORM SUB_DISP_EXCEL.
    *&      Form  SUB_DISP_EXCEL
    FORM SUB_DISP_EXCEL.
       START EXCEL
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    SET PROPERTY OF H_EXCEL  'Visible' = 1.    " for printing o/p line by line in excel sheet
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1  1 1   10  'Mat Doc Number'(001) 'R'.
      PERFORM FILL_CELL USING 1  2 1    4  'Item'(002) 'R'.
      PERFORM FILL_CELL USING 1  3 1   10  'Mat Doc Date'(003) 'R'.
      PERFORM FILL_CELL USING 1  4 1   10  'Vendor'(004) 'R'.
      PERFORM FILL_CELL USING 1  5 1   20  'Mat Doc Item amount'(005) 'R'.
      PERFORM FILL_CELL USING 1  6 1   15  'Material price'(006) 'R'.
      PERFORM FILL_CELL USING 1  7 1    4  'Currency'(007) 'R'.
      PERFORM FILL_CELL USING 1  8 1   18  'Material'(008) 'R'.
      PERFORM FILL_CELL USING 1  9 1   30  'Material Desc'(009) 'R'.
      PERFORM FILL_CELL USING 1 10 1   19  'Qty in Unit of Entry'(010) 'R'.
      PERFORM FILL_CELL USING 1 11 1   19  'Qty Received'(011) 'R'.
      PERFORM FILL_CELL USING 1 12 1    4  'Unit of Entry'(012) 'R'.
      PERFORM FILL_CELL USING 1 13 1   20  'Mat Group'(013) 'R'.
      PERFORM FILL_CELL USING 1 14 1   16  'Vendor Invoice'(016) 'C'.
      LOOP AT T_OUT INTO W_OUT.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H  1 0 10 W_OUT-MBLNR 'R'.
        PERFORM FILL_CELL USING H  2 0  4 W_OUT-ZEILE 'R'.
        PERFORM FILL_CELL USING H  3 0 10 W_OUT-BLDAT 'R'.
        PERFORM FILL_CELL USING H  4 0 10 W_OUT-LIFNR 'R'.
        PERFORM FILL_CELL USING H  5 0 20 W_OUT-DMBTR 'R'.
        PERFORM FILL_CELL USING H  6 0 15 W_OUT-NETPR 'R'.
        PERFORM FILL_CELL USING H  7 0  4 W_OUT-WAERS1 'R'.
        PERFORM FILL_CELL USING H  8 0 18 W_OUT-MATNR 'R'.
        PERFORM FILL_CELL USING H  9 0 30 W_OUT-MAKTX 'R'.
        PERFORM FILL_CELL USING H 10 0 19 W_OUT-ERFMG 'R'.
        PERFORM FILL_CELL USING H 11 0 19 W_OUT-WEMNG 'R'.
        PERFORM FILL_CELL USING H 12 0  4 W_OUT-ERFME 'R'.
        PERFORM FILL_CELL USING H 13 0 20 W_OUT-WGBEZ 'R'.
        PERFORM FILL_CELL USING H 14 0 16 W_OUT-XBLNR 'C'.
        CLEAR W_OUT.
      ENDLOOP.
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTIN    G #1 = 2.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
      PERFORM ERR_HDL USING 'Unable to create workbook'.
    add a new workbook
    CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2. "----------can remove-------THIS IS FOR STAY AT LIST
      PERFORM ERR_HDL USING 'Unable to create new workbook'..
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL USING 'Unable to free workbook'.
    ENDFORM.                    " SUB_DISP_EXCEL
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD COL VAL I_HORIZON_ALIGN.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL USING 'set cell object error'.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL USING 'set value  object error'.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL USING 'set font  object error'.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL USING 'set bold  object error'..
      SET PROPERTY OF H_ZL 'ColumnWidth' = COL.
      PERFORM ERR_HDL USING 'set columnwidth object error'.
      IF NOT I_HORIZON_ALIGN IS INITIAL.
      IF I_HORIZON_ALIGN = 'L'.
      SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLLEFT.
      ELSEIF I_HORIZON_ALIGN = 'R'.
      SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLRIGHT.
      ELSEIF I_HORIZON_ALIGN = 'C'.
      SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLCENTER.
      ENDIF.
      ENDIF.
      PERFORM ERR_HDL USING 'set Alignment object error'.
    ENDFORM.                    "FILL_CELL
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL USING VAL.
      IF SY-SUBRC <> 0.
        WRITE: / VAL.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL

  • How to Export SSRS report into Excel format using query string

    Hello all,
    I am new to SSRS world.
    Last night i was trying to add a hyperlink  on the SSRS report (.rdl) file, by clicking which we can export the report into "Excel" format, but with no luck.
    Can anybody tell me how to form the hyperlink, so that we can export the report with its current content ( I mean the report content generated by selecting some parameter values)

    Hi Suman85,
    Based on your scenario, you want to add a link on the SSRS report file, and then click it you can export the report into “Excel” format.
    Just as kishan1901 said , you can add a textbox to your report and type in the words “Click here and export the report
    to excel” .Then right-click the textbox and select Properties. Switch to Navigation tab, click the radiobutton of ‘Jump to URL’ and type in the expression ,here is just a example:
     ="http://vyof1884200/ReportServer$youhoo?/My+Adventure+Works/Product+Sales+and+Profitability+by+Month&rs:Command=Render&rs:Format=excel"
    Then preview the report ,you will see
    Click here and export the report to excel 
    when you move the mouse to it ,the mouse will become a hand ,then left-click, it will jump out a dialog box to indicate user whether the excel file should be saved , opened or canceled. 
    I think this is what you want, if you have any further requirement, could you please describe it in more detail? We would give you some resolution or workaround.
    Regards,
    Challen Foo

  • HMRC forms are in excel format, what do I need to open them ?

    HMRC forms are in excel format, what do I need to open them ?

    I am referring to the Gift Aid forms which are offered for excel users in one format and LibraOffice also.  I am aware the general forms are in PDF but I require the interactive forms which I can fill in on line

  • Formating issue after export crystal report to excel format

    Hi Everyone,
    I have a crystal report devloped in crystal 8.5 and i am calling this report from my .net windows application.  I have a problem when i export the report in excel format. One of the column size(which is report footer) gets increased because of which my report is not properly formated. I have reoved all the blank lines and extra space but still i am not able to reduce the column size. Any help will be appriciated.
    Thanks in advance.

    Hi,
    Please let us know the Visual Studio Version that you are using, just to inform you, VS2005 is compatible with CRXIR2 and above and VS2008 is compatible with CR2008 + SP0.
    Do the report display properly from the designer? Does the Export from the designer in xls works fine?
    Thanks,
    AG.

  • In new Numbers, can you export a file into excel format?

    In new Numbers, can you export a file into excel format? Or is this something else thats been removed!!??
    HELP!!

    Hi AMGracie,
    In Numbers 3.0 on a MacBook Pro running OS X 10.9
    Regards,
    Ian.

  • Exporting large report to Excel format (90K lines)

    Hi,
    I am trying to export a 90K line report to excel format and I get that error messsage:
    Description : Une erreur d'application s'est produite sur le serveur. Les paramètres d'erreur personnalisés actuels pour cette application empêchent l'affichage à distance des détails de l'erreur de l'application (pour des raisons de sécurité). Cependant, ils peuvent être affichés par les navigateurs qui s'exécutent sur l'ordinateur serveur local.
    Détails: Pour permettre l'affichage des détails de ce message d'erreur spécifique sur les ordinateurs distants, créez une balise <customErrors> dans un fichier de configuration "web.config" situé dans le répertoire racine de l'application Web en cours. Attribuez ensuite la valeur "off" à l'attribut "mode" de cette balise <customErrors>.
    <!-- Fichier de configuration Web.Config -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Remarques: La page d'erreurs actuellement affichée peut être remplacée par une page d'erreurs personnalisée. Pour ce faire, modifiez l'attribut "defaultRedirect" de la balise de configuration <customErrors> de l'application, de sorte qu'il pointe vers une URL de la page d'erreurs personnalisée.
    <!-- Fichier de configuration Web.Config -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    I believe it is a timeout problem. Any idea how work around this?
    Thanks,

    I don't have the right to create reports. With those datas, I need grouping them filtering them, commenting them, creating TCD and distributing it. I believe it is easier exporting it and handle it. Also I don't want the data changing from day to day.
    Then you are foobar'ed.
    there is nothing more you can do it the SSRS export feature is not working for you, and you don't have access to the CM12 db and you can't create report. There are no other option to access the data.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Exporting form data to excel help

    Hi there,
    I have created an interactive form using Livecycle Designer that comes with Adobe 9 Pro. Forms will be download from a website, completed and emailed back to me. I'm having trouble trying to export  the data to excel. Whilst it lets me export data to excel it does not appear in the logical order as it is on the form. I'm not sure how to fix this and/or if its possible to only have certain fields displayed in excel?
    Is it also possible to automate the process so that data in completed forms that i save will update the inforamtion in excel?
    Any help greatly appreciated, I'm new to forms.
    Windows XP
    Adobe Acrobat 9 Pro
    Microsoft Excel 2003
    Thanks,
    Ken

    You probably need to ask in the LiveCycle forum since this is a Designer issue I think. If you are doing the export from Acrobat, then list the steps you are using. However, the field order and such are going to be set by Designer.

  • Error while exporting crystal report to excel format or word format

    i am using vs 2010 and sap crystal report(version 13.0.0.99) for vs 2010. when i export report to excel(97-2003 format) from crystalreportviewer, i am getting error that application has stopped working.  I also have ms-office 2007 install on my pc.
    when i see eventlog of system i notice following error:
    Faulting application name: NBFCForms.exe, version: 1.0.0.0, time stamp: 0x4e170b01
    Faulting module name: crxf_xls.dll, version: 13.0.0.99, time stamp: 0x4cc412ac
    Exception code: 0xc0000409
    Fault offset: 0x0009742e
    Faulting process id: 0xc60
    Faulting application start time: 0x01cc3e1e5657a4a4
    Faulting application path: C:\Users\Harshada\Desktop\NBFCDeploy\NBFCForms.exe
    Faulting module path: C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crxf_xls.dll
    Report Id: f0bae850-aa11-11e0-a98e-0019d144259b

    Thanks Roberto and Kalpana.
    This link solved the problem:
    http://social.msdn.microsoft.com/Forums/en-US/bcf792f4-4da3-4dac-b689-60168e695683/error-internet-explorer-cannot-download-edreportviewerwebcontrolaxd-from-site?forum=vsreportcontrols

  • Exporting forms data to Excel Acrobat X

    It was a snap to export data to Excel and create reports from PDF forms in Acrobat 9, but I can't find the functionality in Acrobat X. Where is the feature hidden?
    Thanks!

    Does this work in both STANDARD and PRO?  Standard offers that feature, but I am only seeing a summary of the data files (tiles of the documents) instead of a file of the actual merged data like I would normally see.

  • Export form results to pre-formatted Word or PDF email

    I am new to this forum and new to Dreamweaver 8 and I have a question.
    Here is what I want to achieve, using on online form:
    My salesman inputs his client's name, address etc.;
    The salesman selects the products or services that his client is interested in;
    Some of the items selected need to be named, so he has a field where he can type in the name;
    Once the salesman has entered all of the client's order (or quote), he hits submit.
    Now here is where it goes over my head.
    The results of the order, as typed in, are exported to a Word document, which has been pre-formatted with our colors, logo, etc. The finished product is a professional-looking document that can serve as either a proposal or an agreement.
    The document is automatically emailed to the client, and can be printed right from the client's computer. Instant good-looking document.
    Am I dreaming? Can this be done in Dreamweaver or using another prodcut that you might know about?
    Garfield
    Words to Webs
    [email protected]

    It's possible, but speaking from experience it is not a path that I would recommend a business to take.  Here's the reasoning behind this.  While it is good to make these nice looking quotes and other documents, are you planning on storing the information in a database or in some way that would be accessible to your invoicing system (or are you building the invoicing system? if so that is a completely different beast).  Having these are nice, but if the quoting system is separate from the invoicing system, it is a path that most businesses, and especially sales people, want to avoid.  It would be creating an extra unnecessary steps in their process.
    My suggestion to you would be that you if have the programming experience and want to undertake the job go for it.  Dreamweaver won't program this for you though.  So if you don't have the experience there are plenty of invoicing/quoting/sales solutions out there for .NET, PHP or whatever programming language you wish to use.  Off the top of my head for PHP, SugarCRM comes to mind.  I am pretty sure they have some invoicing modules, plus it is a CRM so your sales people can keep track of who they meet.

  • Cannot export crystal report in excel format from crystal report viewer

    This problem occurs on only one workstation.
    Open Advanced Reports > Enter workorder # > Click on 'workorder work(uninvoiced)' > Work order opens.
    Click on icon "Export report"
    Save as type: change to .xls
    Error: Crystal Report Windows Forms Viewer. Error in file
    SAP.......rpt:
    Error detected by export DLL:
    Export failed.

    Try adding c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to your windows enviroment variable PATH then restart.

  • Error message when attempting to export a PDF to Excel format

    i just signed up and my first PDF i try to export to EXCEL gives me an error message  -  "An error occurred while trying to access this service"    any thoughts here??

    Hi Paul,
    It sounds as though you may be trying to sign in to the service via Adobe Reader. Is that the case? We've had recent reports of this error occurring in Reader.
    What happens when you log in directly to https://cloud.acrobat.com/exportpdf using a web browser?
    Best,
    Sara

  • I can not export BioBench data to Excel format

    My data acquisition driver software is NI-DAQ, and data acquisition software is Biobench (Version 1.2). It work very well before. But recently, When I want to export data from Biobench into Excel, it told me ' Error, make sure your Excell has been installed correctly'. In fact, I didn't do any change to my computer since I installed BioBench.
    What should I do?
    Thank you.

    I am having this same issue:  exported slideshow eventually photos disappear, screen is white but music continues.
    I am on a brand new Mac Book Pro OS X  10.7.3
    Using iPhoto 11
    I did not use the Ken Burns effect - Classic instead
    I have 404 photos set to music a put into Garage Band and exported into iTunes.
    It plays perfect in iPhoto, which all photos at the right moments with the songs.
    Then one photo skips by quickly without a transition  and a number of photos are then not seen which causes the syncronization with music to alter.
    Then the photos stop all together screen turns white and the music continues.
    Need to burn it to DVD have exported it twice with different results but both similar to above, each time.
    One poster said the computer got too hot and he believed exporting stopped. He tried putting a fan near to keep cool and then it worked.  Sounds a bit impossible.
    Thoughts?  Thanks.

  • Exporting SQL results in Excel format

    exec master..xp_cmdshell'bcp "select * from [db name].[table name]" queryout D:\testing1.xls -o "D:\querycommanddetails.txt" -T -c -C RAW'
    I'm running above query on my local machine but System is showing output as 'NULL'.Can anybody help?

    I responded to you (or was that someone else?) earlier today when you posted to an older thread. I suggested that you should start a new problem, if my answer did not sort things out for you. But you are repeating the question?
    In any case, since you redirect output with -o, BCP will not print anything, and when the command batch produces no output, xp_cmdshell produces a single row with the value NULL.
    Beware that your command creates a tab-separated file, not a true Excel-sheet; that is not possible with BCP.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for