Batch file to html report generator:

I want to create reports based of the batch file that I run.
I created a batch file to run a number of programs for this PC tune up service that we do at the University I work at.  This is mostly a "learn for my own benefit" project, but if it works and looks nice I would like to make it availible to
my co workers.  
Here is what I have so far for the batch:
@echo off
:start
echo.
echo Do you need to install
echo  Microsoft Antivirus?
echo Type y / n (lowercase)
set /p antivirus=
if %antivirus%== y goto msantivirus
if %antivirus%== n goto mbam
goto start
:msantivirus
echo ProgramFiles(x86) var:
if not defined ProgramFiles(x86) (
    start mseinstall32.exe 
else (
    start mseinstall64.exe 
:mbam
echo.
echo Do you need to install
echo  Malwarebytes?
echo Type y / n (lowercase)
set /p malwarebytes=
if %malwarebytes%== y start  mbam-setup-2.0.2.1012.exe
if %malwarebytes%== n goto cleaner
goto mbam
:cleaner
echo.
echo Do you need to install
echo  CCleaner?
echo Type y / n (lowercase)
set /p CCleaner=
if %CCleaner%== y start  start ccsetup416.exe
if %CCleaner%== n goto msconfig
goto cleaner
:msconfig
echo.
echo Do you need to run
echo  MSCONFIG?
echo Type y / n (lowercase)
set /p microsoftconfig=
if %microsoftconfig%== y start msconfig
if %microsoftconfig%== n goto print
goto msconfig
:print
echo.
echo Do you want to print
echo  a report?
echo Type y / n (lowercase)
set /p print=
if %print%== y start (i don't know what to do here)
if %print%== n goto done
goto done
:done
echo.
echo You have finished the Zonetech scan. Press any key to exit.
pause >null
Here is what I have for the HTML (its based of another site I made so there is some leftover stuff in it):
<!DOCTYPE html>
<html>
<head>  
<title> Zone Tech Computer Health Form </title>
<meta name= "viewport" content="width=device-width, initial-scale=1.0">
<link href= "css/bootstrap.min.css" rel= "stylesheet">
<link href= "css/styles.css" rel= "stylesheet">
</head>
<body>  
<div class="navbar navbar-inverse navbar-static-top">
<div class= "container">
<a href= "#" class= "navbar-brand"> BOISE STATE UNIVERSITY ZONE TECH</a>
<button class = "navbar-toggle" data-toggle = "collapse" data-target = ".navHeaderCollapse">
<span class = "icon-bar"> </span>
<span class = "icon-bar"> </span>
<span class = "icon-bar">  </span>
<span class = "icon-bar"> </span>
<span class = "icon-bar">  </span>
</button>
<div class= "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li class= "active"><a href = "#">Home</a></li>
<li><a href = "#">Blog <b class= "caret"></b></a></li>
<li class = "dropdown">
<a href = "#" class = "dropdown-toggle" data-toggle = "dropdown">Social Media</a>
<ul class = "dropdown-menu">
<li> <a href = "#">Twiter</a></li>
<li> <a href = "#">Facebook</a></li>
<li> <a href = "#">Google +</a></li>
<li> <a href = "#">Instagram</a></li>
</ul>
</li>
<li><a href = "#">About</a></li>
<li><a href = "#contact" data-toggle="modal" >Contact</a></li>
</ul>
</div>
</div>
</div>
<div class = "container text-center">
<div class ="jumbotron">
<h1> Computer Health Report</h1>
<img src="img/smallerbroncologo.png" />
</div>
</div>
<div class= "container" >
<div class = "row">
<div class = "col-md-3">
<h3><a href = "#">Virus Scan </a></h3>
<p>A Virus Scan checks your computer to see if any malicious software is present.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Adware Scan </a></h3>
<p>We check your computer for programs that may present themselves as legitimate services to "repair" your computer for money or sites that redirect your internet browser.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Registry Scan </a></h3>
<p>Sometimes programs you have installed don't uninstall right or fully.  Othertimes your programs may stop working because there is wrong infomration in the registry.  We clean and optimize the registry
to help make your computer work better</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Start Up Scan </a></h3>
<p>If your computer is booting slowly, sometimes the cause is to many programs trying to start up when windows starts up.  If to many programs try to start up at once it clogs up the computers processor and makes
it run slow.   We check to make sure that only the essential programs are running so your computer runs better.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
</div>
</div>
<div class = "navbar navbar-inverse navbar-fixed-bottom" >
<div class = "container" >
<p class = "navbar-text pull-left"> Site by Travis </p>
</div>
</div>
<div class = "modal fade" id = "contact" role = "dialog">
<div class = class "modal-dialog">
<div class = "modal-content">
<div class = "modal-header">
<p> Contact Tech Site </p>
</div>
<div class= "modal-body" >
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are
going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on
the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from  </p>
</div>
<div class = "footer">
<a class= "btn btn-default" data-dismiss = "modal" >close</a>
<a class= "btn btn-primary" data-dismiss = "modal" >close</a>
</div>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js"> </script>
<script src="js/bootstrap.js"> </script>
</body>
</html>
Here is what I want to do:
I want to make an interactive html report based on an HTML site I made.  I want to take the y (meaning yes) inputs for the strings( anitivirus, malwarebytes, ccleaner, and Microsoftconfig which are from the batch) and make them indicate something has
been done on the HTML that I created.  Essentially, I see the yes inputs putting check marks (or something) in the sections of my HTML document that are related to the programs I ran in the batch.  The sections in the HTML page are called Virus Scan,
Adware Scan, Registry Scan, and Start up scan and they are paired to the variables antivirus, malwarebytes, ccleaner, and microsoftconfig.  
I hope this makes sense.
Thanks for any help

This is the way I was looking at it.  Essentially a html file is a text file.  I have already written the html file I want to have displayed.  I just want the batch to make a slight change to the text in part of it.  If I could
do that I would be happy.  Is there any way to do that with the batch?
Editing files never has been and is still not something that batch files do easily.  I ti si not the intention of batch to do this.
If you are trying to learn something, try learn-ing something that is not obsolete.  Batch is not worth the time when we have PowerShell,  If you ant to alter an HTML dynamically then use an HTA.  It is easy and well supported.
¯\_(ツ)_/¯

Similar Messages

  • Batch file for STAD report in SAP R/3

    Hello,
    My name is Rhonda and I a novice to SAP.  So I will be appearing in these forums quite a bit. 
    I wondering if a batch file can be created to run a STAD report on a daily basis.  The report will be based on a generic firefighter id, column headings, and the data will be for a 24 hr period.  The batch file will need to collect the data and store it in a specific location.
    Does anybody know if this is possible?

    Hi,
    Try transaction CX16.
    Regards,
    Denny.

  • Running a batch file to invoke reports runtime

    Hi,
    I'd like to run a batch file at the end of every month automatically, which runs a report and sends the output in a mail. Is there a way to run this batch file without using cron job? We do not have unix environment at our place.
    ThanX.

    hello,
    on windows NT you have the AT functionality which is basic scheduling. however if you are using the oracle reports server you can schedule the report inside the server itself.
    regards,
    the oracle reports team

  • How to Run Batch files from inside Reports.

    Hi All,
    I have 2 questions.
    1) How to change the direction of the reports with Arabic orientation i.e Right to left Change without changing the registry.
    2) How to execute a batch file from report or before execution of the report i.e before opening the report.
    I want to set few environmental variables before opening the report. How do i achieve this?
    Request the forum community to discuss and help me out on this issue.
    Thanks in advance

    Thanks Inol
    Though my report is running NLS variable values given in the batch file is not getting picked.
    Here is my batch file contents. My NLS Variables are not getting picked in the reports. I want that to be picked up and the reports orientation should change automatically as per the NLS variables given in the batch file.
    Please go through my batch file code.
    set NLS_LANG                   = AMERICAN_AMERICA.UTF8
    set NLS_CALENDAR            = GREGORIAN
    set NLS_DATE_FORMAT      = dd/MON/yyyy
    set FORMS60_PATH           =   <Enter Relevant Path>
    set REPORTS60_PATH        =  <Enter Relevant Path>
    set PATH=%PATH%;c:\forms6i\bin
    set ORACLE_HOME             =   c:\forms6i
    set TNS_ADMIN                 =   c:\forms6i\NET80\ADMIN\TNSNAMES.ORA
    rwrun60.exe d:\DOTNETORION17_bin\elist_rg1.rdf userid=scott/tiger@thai P1=10Please help me out in getting this value picked and run the report.

  • How to excute a batch file from Analyzer Report

    Hello, I trid to use the service launch executable and in the browse i used a batch script which doesn't execute when i click on the button.

    If only the forum were searchable! If only those anwers in the past could be found! Friend, we will walk through the desert for 100s of years but this day will come.

  • How to make Excel 2010 save a HTML report as a file without a folder created

    We have a HTML report generated by Oracle Report with headers as below:
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    In Excel 2010, after pressing the "save" button (not "save as"), it will by default save the report as web page format instead of xls, a folder "xxx.files" containing some css, xml and html files are created
    in it. If user deletes the folder carelessly, the excel report cannot be viewed at all.
    In Excel 2003, we can save it directly in its original format simply by pressing the "save" button, without creating a folder. May I know if there are any options in office 2010, macro or registries settings that can make
    Excel 2010 to do the same as Excel 2003 when pressing the "save" button? Thanks!

    Hi,
    According to your description, you want a workaround to avoid creating a new folder when saving a html file in Excel 2010.
    In my opinion, this issue is more related to the feature of HTML format or Excel 2010 application rather and I don't think we could resort to a macro or registry settings to avoid that. I suggest you posting it in
    Excel IT pro forum for more effective responses.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Maven : Generate html report

    Hi all!
    I would like to know how to generate the html report with the maven plugin.
    It's said that "Currently, FlexPMD produces a XML report by default, plus an HTML report when invoked by the Maven site plugin."
    I added the section correponding to the FlexPMD in my pom project as following :
                <plugin>
                    <groupId>com.adobe.ac</groupId>
                    <artifactId>flex-pmd-maven-plugin</artifactId>
                    <version>1.0.RC4</version>
                </plugin>
    but when I do a site generation, it just generates me a pmd.xml report with the violations (good!) but the flexpmd.html report generated is empty (there are just the default informations about my project but nothing about pmd).
    If someone has allready configured flexpmd on his maven project, I will be happy to have some help please!
    Thanks'

    Hi
    We didn't modify anything to get the HTML report. We just download the source code of "flex-pmd-maven-plugin", modify the version in the pom to "1.0.RC4", and launch "mvn clean install"
    This will install the plugin and download all dependencies in your MavenRepository
    Then in the pom of our flex project we define the plugin in the <build><plugins> section and also in the <reporting><plugins> section , like this :
    <plugin>
         <groupId>com.adobe.ac</groupId>
         <artifactId>flex-pmd-maven-plugin</artifactId>
         <version>1.0.RC4</version>
    </plugin>
    Then in the top level of our flex projet (the same level of the pom file) launch "mvn clean site"
    This will generate the flexpmd.html in the target/site directory.
    Hope it will help !

  • SQL*PLUS HTML reports

    Hi how to add javascripts to the HTML reports generated using SQL*plus :
    SET MARKUP HTML ON SPOOL ON
    If we want to modify the dynamically generated HTML page by SQL*PLUS how does one do that??
    Please help

    If you create a script containing the following it should work:
    set markup html on spool on
    spool <your file>
    run sql-commands here
    spool off
    set markup html off

  • Help needed for Report Generator in B1 2005

    Hi,
    I have upgraded to B1 2005 and I would like to know where I can find Help files for the report generator (used to customize invoices ...). In particular, I would like to know where I can find information about the system functions available e.g. currentpage().
    Thanks in advance for your help!
    JP

    Use this link.
    <a href="https://websmp102.sap-ag.de/form/sapnet?_FRAME=OBJECT&_HIER_KEY=701100035871000437965&_SCENARIO=01100035870000000183&">https://websmp102.sap-ag.de/form/sapnet?_FRAME=OBJECT&_HIER_KEY=701100035871000437965&_SCENARIO=01100035870000000183&</a>
    In Customization section you can find a document based on PLD

  • Problem while executing batch file via jsp

    Scenario 1+
    I have a batch file(.bat) in which i have the following code
    mkdir d:\test\test1;
    mkdir d:\test\test2;
    mkdir d:\test\test3;
    mkdir d:\test\test4;
    mkdir d:\test\test5;
    mkdir d:\test\test6;
    mkdir d:\test\test7;
    mkdir d:\test\test8;
    mkdir d:\test\test9;
    mkdir d:\test\test10;when i double click on this or execute via cmd all the 10 directories are created successfully.
    Scenario 2+
    But when i try to execute this through a jsp using the following code,Only first 5 directories are created.Please help me in resolving the issue ASAP.Thanks in advance
    <%@page import="javax.swing.*"%>
    <%@page import="javax.swing.JFileChooser"%>
    <%@page import="java.awt.event.*"%>
    <%@page import="java.awt.*"%>
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>untitled2</title>
      </head>
      <body><%
            Runtime.getRuntime().exec("d:\\test.bat");
                    System.out.println("Inside Try Block");
                  %>
        hi</body>
    </html>I am using Jdeveloper.

    carrera wrote:
    Then can u suggest any other way how i can invoke a batch file from html/jsp.I think what some of the previous posters wanted to make clear is that jsps are not the place to go calling batch files. Jsp's are normally the view part and don't actually trigger these type of actions directly. Call a servlet to do non-view things...
    If all you want to do is execute an ant file, look for examples for running ant through java api. f.i. here

  • Call batch file using IBOT

    Hi ,
    We are using OBIEE 10G
    and I need to transfer folder from one machine to another machine(both are windows) so I have written a dos command (batch file). Now I need to call this batch file from IBOT ,how I can do this. any suggestion pls.

    Hi ,
    U can use a javascript to call the batch file and attach the script to your IBOT :
    For example :
    <html><head><script type="text/javascript">function runApp(st) {  WshShell = new ActiveXObject("WScript.Shell");  WshShell.Run (st,1,false);}</script></head><body><!-- Two ways to create a link to run the app. --><font onClick="runApp('file://c:/winnt/notepad.exe');" style="cursor: hand;"><u>Notepad</u></font><br><!-- Or use <a> descriptor -->Batch File</body></html>

  • Generate an HTML file from a Report in ABAP

    Good morning,
    How I could generate an HTML file from a report.
    Any Ideas... I have found the function WWW_ITAB_TO_HTML, but someone has the standar code and how use this function?
    Thanks a lot,
    Hernán Restrepo

    Hi,
    I am facing a similar problem.I did try using the function module WWW_ITAB_TO_HTML in the reoprt program, as I'm trying to generate a url from a report, but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue.Thanks in advance.
    DATA:   emp_name                     TYPE char80.
    DATA:   it_itabex                    TYPE zdb_ex_tty,
            it_emp                       TYPE TABLE OF zis_emp,
            it_org                       TYPE TABLE OF zis_org,
            it_pos                       TYPE TABLE OF zis_pos,
            it_pos_alloc                 TYPE TABLE OF zis_pos_alloc,
            it_res                       TYPE TABLE OF zis_res,
            it_res_alloc                 TYPE TABLE OF zis_res_alloc,
            ls_itabex                    TYPE zdb_ex_s.
    DATA:   lv_filename                  TYPE string,
            lv_path                      TYPE string,
            lv_fullpath                  TYPE string,
            lv_replace                   TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp>              LIKE LINE OF it_emp,
                   <fs_org>              LIKE LINE OF it_org,
                   <fs_pos>              LIKE LINE OF it_pos,
                   <fs_pos_alloc>        LIKE LINE OF it_pos_alloc,
                   <fs_res>              LIKE LINE OF it_res,
                   <fs_res_alloc>        LIKE LINE OF it_res_alloc.
    Report Program to export data from database to Excel.
    Populate all the tables that have to be exported.
    SELECT * FROM zis_org       INTO TABLE it_org.
    SELECT * FROM zis_pos       INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp       INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res       INTO TABLE it_res.
    Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id            = 'IPP Pos ID'.
    ls_itabex-emp_name              = 'Name'.
    ls_itabex-dt_of_join            = 'JoinedOn'.
    ls_itabex-emp_status            = 'Status'.
    ls_itabex-org_name              = 'Org'.
    ls_itabex-prj_name              = 'Project'.
    ls_itabex-mgr_name              = 'Line'.
    ls_itabex-designation           = 'Designation'.
    ls_itabex-specialization        = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
      CLEAR ls_itabex.
      ls_itabex-ipp_pos_id          = <fs_pos_alloc>-ipp_pos_id.
      READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
      IF sy-subrc = 0.
        CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name  SEPARATED BY space.
        ls_itabex-dt_of_join        = <fs_emp>-dt_of_join.
        ls_itabex-emp_status        = <fs_emp>-emp_status.
        ls_itabex-specialization    = <fs_emp>-specialization.
      ENDIF.
      READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
      IF sy-subrc = 0.
        ls_itabex-designation       = <fs_pos>-designation.
        READ TABLE it_org ASSIGNING <fs_org> WITH KEY  org_id = <fs_pos>-org_id.
        IF sy-subrc = 0.
          ls_itabex-org_name        = <fs_org>-org_name.
          ls_itabex-mgr_name        = <fs_org>-mgr_name.
        ENDIF.
      ENDIF.
      READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
       ls_itabex-org_name         = <fs_org>-org_name.
      APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
      EXPORTING
        offset        = 12
        length        = 10
        func          = fullurl
      TABLES
        query_string  = qstring
      EXCEPTIONS
        invalid_table = 1
        OTHERS        = 2.
    Thanks & Regards,
    Preethi.

  • I generate file (PDF, HTML, etc) the report is empty but I run in paper

    Hi
    I use oracle Report10g
    When I generate file (PDF, HTML, etc) the report is empty but I run in paper design show data, the report in the paper design show many pages, when generate file show only the information of the margin in the main seccion and the body is empty,
    Thanks

    Thanks Daniel for pointing that out.  Though you answer is helpful but I am not sure if that is what I would want to do.
    The link you provide for csv says "For each report there's an _report.xdo file that contains the XML structure of the report... "   It suggests I modify the .xdo file for each report.  I currently have 16 reports.
    Does it mean I modify the .xdo file for all 16  and what happens if someone creates a 17th report ?
    Also, what if I run the same report using different input parameters will that change the xml structure for the report  and therefore will need me to modify the .xdo again ? (I think it should not change the xml structure so the answer should be "NO" to that, unless I change the structure of the report).
    Finally, the link you provide says after doing what it suggest  "Now log back into BI publisher and select the report. You should now be able to see that CSV is now an option."
    CSV should be an option where ? on what screen/page ?  Maybe PDF is already an option for me that I cant see because I do not know where that option is.
    I was hoping there would be something I could do on the xdo_metadata sheet (in the data constraints section or elsewhere) OR in BI Publisher itself as some property of the report.
    I will try out what you suggest any ways.
    M. Jamal

  • How to generate Excle file for a report runningin a Batch job

    Hello All,
    Can we generate Excle file for a report running in a Batch job.
    Kindly send reply to     [email protected]
    Thanks in Advance.
    Cheers,
    Sundeep

    Dear Sundeep,
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award points *

  • How can I change the appearance of html report file generated from Teststand to that I change the orientation of the data in the tables?

    For instance, I'd like to have the measurement results, limits, and status all on one line in a table.
    I am running Teststand 2.0 on Windows 2000.

    Hello Joel_IEI,
    You can modify each report entry as it is being generated by doing the following steps:
    1) In the TestStand Sequence Editor's Report Options, change the Report Generator to "Sequence".
    2) In your sequence file, override the ModifyReportEntry callback. In this callback, you can modify or even replace ENTIRELY the default report information TestStand plans to append to the report. You can use Statement steps to modify the contents of Parameters.ReportEntry (the TestStand variable that you will use to do this), or replace the contents entirely!
    You can look at the code example Adding Extra Results to a Report Using the Modi
    fyReportEntry Callback Sequence for more information.
    David Mc.
    National Instruments

Maybe you are looking for

  • BCS - Virtual cube with services

    I have basicube CUBE1 assigned to virtual cube VCUBE1 in BCS. There is an entry in table RSSEM_UCR0_IPD reflecting this assignment. I want to assign a 2nd virtual cube VCUBE2 (exact copy of VCUBE1) to CUBE1 so that I can test an updated function modu

  • Target Host error

    When I open Host home page I get error message: ===================================== oracle.jbo.TooManyObjectsExeption: JBO-25013: Too many objects match the primary key oracle.jbo.Kye[798 0 UNKNOWN 537003012 UNKNOWN DA018E44DD2B08EEE044005056B03247

  • How to calculate no of days in an year

    Hi, can some one provide a simple way to calculate no of days in a year if we know processing date. thanks CDPrasad

  • Approval Center Preview Updates not displaying a populated Views list

    Goal is to be able to add Baseline fields to Preview Updates. In trying to edit the view in Approval Center other entries ("change the view of Approval center" and "Adding the baseline (tracking) columns to the Approval Center view") indicate the sol

  • Windows 7 syncing ipad issues

    just got windows 7 pc and having issues syncing my 1st gen ipad to it. I already updated bios but it won't sync. Does anybody have any recommendations that I could try. I'm using a Gateway NE56R... thanks