How to create an automated script

Hi friends!
Back with my doubts!
I am working with a web based and client server based program.
I making some enhancements into the program to generate some new reports. What it has to do everyday is
1 - create the tables/insert records needed for the report - the query is ready
2 - the web presentation is ready, so when someone chose the report and click, it will access the most updated table. so, nothing much to worry on this part.
3 - it has to generate an excel file for this report. - i have the program ready, but to use the program, i need to use around 10 lines of script to send the parameters
4 - the it has to email it to certain addresses. - the coding is ready and i can use the script as well.
5 - I am wondering, how can i consolidate them into one script ... is it just like call the excel program, next line you call the email program ....
6 - and how to call it everyday automatically?
please advice.
NOTE: the scripts for excel and email, are fixed, even i might not have to do any changes to the paramaters being passed, like the file name and the email addresses.
Thanks a bunch
cheers
alagu
Edited by: user645399 on Jun 28, 2009 8:24 PM

Hi,
user645399 wrote:
but its going to have fresh info eveyday
you can refresh the materialized view whenever you want and with ever interval you want.
When you make a complete refresh, all data of the materialized view will be refreshed and the materialized view is actual.
but since we are not going to store the info, may be materialized view will do.
which one uses the resources more efficiently?
a normal table or a materialized table?There is normally no big difference between a materialized view and a table. The materialized view belongs to a normal
table. A materialized view demands no additional programming effort for a refresh.
When a materialized view is refreshed complete, the existing data will be deleted first. This behaviour creates undo information,
which needs some resources.
But when the refresh of the materialized view fails, then the data will be rolled back, so there is always data available.
When you truncate or drop a table, this is normally faster, but the data is always lost.
The best way depends on your special requirements.
Tobias

Similar Messages

  • I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
    If that solution is not flexible enough, consider using the very affordable (12$)  Elements+ add-on which offers a 'meta stamp' script :
    http://elementsplus.net/v5/en/meta-stamp.htm
    Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview...

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • How to create power shell script to upload all termset csv files into the SharePoint2013 local taxonomy ?

    Hi Everyone,
    I want to create a powershell script file
    1) Check a directory and upload all termset csv files into the SharePoint local taxonomy.
    2) Input paramaters - directory that containss termset csv files, Local Termstore to import to,
    3) Prior to updating get a backup of the existing termstore (for rollback/recovery purposes)
    4) Parameters should be passed in via XML file.
    Please let me know how to do it.
    Regards,
    Srinivas

    Hi,
    Please check this link
    http://termsetimporter.codeplex.com/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to create Box in scripts

    hi
      can anyone send how to create box, like table including vertical and horizontal lines in sap-scripts
    regards
    ratna

    BOX Command
    Syntax
    /: BOX
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    · TW (twip)
    · PT (point)
    · IN (inch)
    · MM (millimeter)
    · CM (centimeter)
    · LN (line)
    · CH (character).
    The following conversion factors apply:
    · 1 TW = 1/20 PT
    · 1 PT = 1/72 IN
    · 1 IN = 2.54 CM
    · 1 CM = 10 MM
    · 1 CH = height of a character relative to the CPI specification in the form header
    · 1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    SIZE Command
    Syntax
    /: SIZE
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.

  • How to create a logon script to delete folder, subfolders and contents when a user logs on ?

    I need to create a logon script which will delete a folder, subfolder and contents when a user logs on. I have no experience with scripting so any pointers you can give would be much appreciated.
    Thanks

    depending on how you have thing set up, it might be easier to make a LaunchAgent to handle this.  do this:
    copy the text below into a text editor
    save it as a plain text file in /Library/LaunchAgents with the file name "user.startup.folderDeleter.plist" (the name doesn't matter so much, but the 'plist' extension is required)
    load the plist into launchd by restarting the machine or by opening terminal and running the command launchctl load /Library/LaunchAgents/user.startup.folderDeleter.plist
    This will delete the folder any time any user logs in.  You could also expand this to delete the folder periodically (once a day, for instance) if that would be helpful.
    Note, this file must be saved as plain text. apps like TextEdit sometimes default to making rich text files which will not work.  Either download a programmer's text editor like TextWrangler, or make sure that TextEdit is using plain text (if the window has a formatting toolbar it's using rich text;  select "Make Plain Text" from the Format menu).
    copy the text below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>user.startup.folderDeleter</string>
              <key>RunAtLoad</key>
              <true/>
              <key>ProgramArguments</key>
              <array>
                        <string>osascript</string>
                        <string>-e</string>
                        <string>tell application "Finder" to delete folder "Final Cut Express Data" of folder (path to preferences from user domain)</string>
                        <string>-e</string>
                        <string>tell application "Finder" to empty trash</string>
              </array>
    </dict>
    </plist>

  • How to create chaque in script

    how to create a cheque using  script. is there any standard program for that .i want step by step process ,plz help me

    Hi Raju,
    There are some standard checks provided by SAP, you can copy them and modify them accordingly to your requirement. The standard driver program is RFFOUS_C. Search with the Key Word Checks in the print workbench.
    Regards,
    Sai

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • How to create/generate automation libraries in Flex SDK 3.3?

    I downloaded SDK 3.3 and extracted datavisualization_sdk3.3.zip into it, then
    run command java -jar DMV-source.jar "C:\Users\All Users\Adobe\Flex"
    The fbpro folder is created but automation libraries are not.
    The output of DMV-source.jar execution reads:
    [START OUTPUT]
    C:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\lib>java -jar DMV-source.jar
    "C:\Users\All Users\Adobe\Flex"
    using license {flexbuilder3=<I-MASKED-LICENSE-STRING>,
    flexbuilder3.displayedFirstLaunchMessage=true}, outputing to directory ..
    license is valid, extracting datavisualisation and automation files to ..
    [END OUTPUT]
    I cannot find automation.swc, automation_agent.swc and automation_dmv.swc
    anywhere in sdks\3.3.0 (I suppose they should be frameworks\lib as in earlier
    SDKs, right?)
    Do I have to do anything special to create automation swc's?

    sorry...its Flex SDK 3.4 not 3.2  ...just a typing mistake

  • How do I get automator scripts into iTunes? Very frustrated.

    This is one of those questions that probably has a very simple answer unless you haven't worked with Automator or applescripts.
    I found Automator, created a script for iTunes to change settings for audiobooks that I import from CD so that it remembers it's place in a "song", makes it so that it doesn't show up in shuffle lists, and doesn't have a gap between songs. Yippee for me.
    I click on File, Save, name the file and save it and ... it doesn't show up under iTunes. It only took me 45 minutes to get it so that the scroll icon shows up under iTunes (I'm so confused now that I don't even know which thing I did caused that to happen) but my script I created doesn't show up.
    I did find one place that said to place the file in (myname\library\scripts\programname) So I went to my home folder, find the library folder, found the scripts folder, and found only one application under there (Safari) but no iTunes. I created a folder called iTunes and saved my script there but ... it doesn't show up under iTunes.
    I did try quitting iTunes and opening it back up and ... it still isn't there.
    Is this even the right place to ask this question?

    It seems at this point the Script menu in iTunes doesn't recognize Automator files. A quick and dirty fix is to save the workflow as an application and then make an AppleScript that says:
    tell application "NameofApp" to launch
    save that script as a script and put it in the appropriate folder (/Users/username/Library/iTunes/Scripts). That script should show up in iTunes and running that will run your application which should do what you want.
    Hope this helps.

  • How to create a .exe script to start and stop Oracle EBS R12 in Linux

    Hello,
    I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
    Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
    Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
    you help will be appreciated.
    Ali

    I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
    Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
    Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
    you help will be appreciated.Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Autostart+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Auto+AND+Start+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Managing Server Processes
    http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
    Thanks,
    Hussein

  • Database Development, how to create a drop script generated by JDeveloper

    Hi to all,
    JDeveloper generates a "create script" for an offline database or a real one. But, I can not see a drop script generation for that. Is there any practical way to generate one? Or do we need to use data dictionary and write something customized?
    Also, is there a way to avoid generation of the tablespace information in create script? Even though I'm disabling the tablespace information from the table definition, it gets created to the "create script" anyway. That is nice, but it degrades the portability.
    Thank you for your time.

    Hi Susan,
    1. A drop script would be a script to reverse the creation of the create script. Of course, this would be in somehow intelligent way, such as dropping constraints and foreign keys first, and then removing the tables etc. This was a feature in another product that I have abandoned before switching to Oracle JDeveloper. I'm missing this feature because : Me and my colleagues are working on one single schema, with some part is production ready and some is not and each part is assigned to different people. So, it would be nice if we could have a chance to load the creation script of the part which is under development next to the production ready part, test it, and drop only the newer(development) one without affecting production ready tables which are under production test. The database modeler is very useful, and the offline database concept is great, but I would be very happy if we had this feature too.
    2. "Remember to remove the storage options from Indexes (properties - storage options)" Aaahh, that was I missing. Also, the reason I want to remove the storage options from the generation script was also related with the scenario I stated in 1. The production machine has more detailed, optimized and advanced storage properties that we can not mimic on our test/development machines.
    Your answer was very useful, thank you for your time.
    Caglar Toklu

  • How to create a Script in AW server

    Hi all,
             Can anybody pla help me with how to create a simpal script in AW server.
    Thanks
    Ravi Sharma

    These products are all based on the GeoTel acquisition.
    GeoTel ICR (Intelligent CallRouter) was the base product, enabling many different peripherals (i.e. PBXs like Lucent, Nortel, Rockwell etc. - and IVRs like InterVoice, Periphonics etc.) to be joined together in a functional contact center, although the initial implementation of ICR was in a different context - as a network router for service providers (AT&T, MCI, Optus, BT) through an interface called a NIC.
    The NAM was a high-end conglomeration of a Network ICR (NICR) and 1 or more Customer ICR (CICR) suitable for service providers, allowing a hosted solution to be built.
    When Cisco bought GeoTel the name was changed to Intelligent Call Manager (ICM) to avoid marketplace confusion with Cisco's existing line of routers. Thus the NAM (the hosted solution) now consisted of a NICM and several CICMs.
    Since Cisco had developed their own switch/PBX for VoIP (after the Selsius acquisition) called CallManager, it could also be treated as a peripheral and slotted into an ICM. This became IPCC - IP Contact Center.
    A couple of years ago, Cisco branding brought all products under a "Unified" umbrella.
    Although the lines are a bit blurry (and I'll probably get corrected on this ), UCCE is IPCC (well, almost), ICM Hosted is the NAM, and the term ICM is mainly used when UCCE is implemented with non-Cisco switches (i.e. not CallManager).
    Yeah, it's not that clear cut, but you get used to it.
    Regards,
    Geoff

  • Trigger automator script when new file created

    I want to create an automator script that will recognise when a new file is created (with a name that matches a particular pattern and in a certain directory) and mail that file to a predefined address. Is that possible?

    yes, this is possible with a folder action. you can attach a folder action to the folder in question. it will watch this folder for new files and trigger when a new file is added. you can create an automator workflow and save it as a folder action plugin.

  • How do i create a "shell script" as root? [SOLVED]

    Really a newbie question, i know, but any how.
    I just downloaded and installed a google-drive client and is about to set it all up. Following a guide from github.
    https://github.com/astrada/google-drive … tomounting
    "Create a shell script named gdfuse in /usr/bin (as root) with this content:"
    There were no explanation how to create a shell script. So i just want to know how du i do that?
    I assume it's really simple,  when logged in as su in a terminal, but shell script is new to me.
    I read a tutorial on creating scripts, (http://linuxcommand.org/wss0010.php) but  dont know how to create the actual file. e.g. if i open leafpad and try to save it in the /usr/bin i presume it's not as root. Or shall i open thunar as root and do it that way?
    Last edited by dockland (2015-06-19 21:39:44)

    There's seldom need to run graphical application as root. For editing as root, it's best to stick to a text-based editor.
    One of the first hits on a ddg search for 'how to create a shell script' was http://www.linfo.org/create_shell_1.html
    Last edited by karol (2015-06-19 21:57:23)

Maybe you are looking for

  • Javax.servlet.ServletException: The name "" is not legal for JDOM/XML namespaces

    Dear all, First of all sorry, if this is not the right place for my question. I am facing some problem with the XFire Webservices. When i am trying to access the WSDL through the url. server is throwing the following exception : javax.servlet.Servlet

  • Strange Problem exporting video to iPod MP4...

    I purchesed Quicktime 7 Pro last night, because I have been eager to put some video on my brand new 5th g iPod. I decided to start with a 23 minute episode of a T.V. series I have on DVD. I ripped it to my hard drive, then followed Quicktimes exact i

  • JSF component inside HTML table -- not rendering properly

    I have a HTML table like the one below. In one of those columns (td) I have a JSF component. When I run the app, the JSF component (even if its a simple inputText or panelGrid or panelGroup) is not getting inside the td. Instead, it forms a seperate

  • C_ABAP_70 :SAP Certified Development Associate ABAP with SAP NetWeaver 7.0

    Hello,    Could any one tell me what are the training/materials which one has to study to clear the <b>"C_ABAP_70       SAP Certified Development Associate - ABAP with SAP NetWeaver 7.0"</b> certification. Best regards Guru PS: Points rewarded for an

  • Old messages in My Folders (N6680) to N97

    How to transfer old messages from My Folder N6680 to N97? I can not see My Folders by PC Suit on N6680 but 97 is showing My folders Partial solutions: So I moved all messages from My Folders to Inbox then I exported to file (CSV). Then I imported to