Email Procedure Scheduled Process

Hello,
I have a email procedure that works great. My only problem is that I have to manually execute
begin
   email;
end;for emails to populate. I read a Thread that listed a APEX Process function
APEX_PLSQL_JOB.Email (
    p_sql IN VARCHAR2,
    p_when IN DATE DEFAULT SYSDATE + 1,
    p_status IN VARCHAR2 DEFAULT 'PENDING')
RETURN NUMBER;This is not working at the moment. Not sure if I am on the right track. My email is populated based on a Where Statement where  hire_date - sysdate <= 1 and not by a button click form within APEX. Does anyone know how this can be an automatic process that executes daily?
Edited by: Nikki on Oct 13, 2010 7:07 AM

Hey Tony,
I have viewed the DBMS_SCHEDULER but is there any extra code that I have to create?
http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_sched.htm#1010185
This is the scheduler that I have
BEGIN
  -- Job defined entirely by the CREATE JOB procedure.
  DBMS_SCHEDULER.create_job (
    job_name        => 'test_full_job_definition',
    job_type        => 'PLSQL_BLOCK',
    job_action      => 'BEGIN email(''CREATE_PROGRAM (BLOCK)''); END;',
    start_date      => SYSTIMESTAMP,
    repeat_interval => 'freq=daily; byminute=0',
    end_date        => NULL,
    enabled         => TRUE,
    comments        => 'Job defined entirely by the CREATE JOB procedure.');
END;Edited by: Nikki on Oct 12, 2010 2:39 PM

Similar Messages

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow.
    I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body of the email to be sent.
    How can i do it now? Please advice. This issue is in 6.0.4 release.
    Edited by: 910070 on Feb 17, 2012 12:48 AM

    got the solution after so much research !
    in 6.0.4, only way we can change the value for the message body or subject is to change the associate email procedure. which is something like edx_rpt_email.

  • Jobs scheduler: Process architecutre

    Hi Experts,
    I have a requirement implemented in a certain way, If you can suggest something on how to improve it will be great
    Current Scenario
    1. There are 2,3 tables which are to be updated before starting a process
    2. Once those tables are updated & ready. There is another table PROCESS_MON which has rows for each procedure to be called in the process like below
    PROCESS_NAME      RUN_FLAG
    P1                N
    P2                N
    P3                NRUN_FLAG in this table is updated to Y.
    3. There is a DBMS_JOB which is monitoring this table PROCESS_MON in every 5 mins. When it finds the RUN_FLAG = Y, it triggers the process.
    In the current scenario, I have to update two tables which are to be updated to trigger a process, My question is - Can I get it done in Step 1 itself?
    -Thanks in Advance
    Regards

    Thanks a lot for your reply on this! I apologize if my post is a bit haywire :-(
    >
    Process #1 - update two tables and then set the PROCESS_MON flag to Y as appropriate.
    Process #2 - the process executed by the DBMS_JOB that uses a PROCESS_MON record whose flag is set to Y. This process would normally also set the PROCESS_MON record status to indicate IN_PROGRESS and the start time.
    This would prevent another job or process from trying to start processing the same PROCESS_MON record just because the flag was Y. You would only process records with a Y flag whose status was ACTIVE or READY_FOR_PROCESSING or something similar.
    Then when the processing is complete the PROCESS_MON record would be updated with an end time, the status reset to ACTIVE (or something) and the flag set to N.
    >
    You are bang on for this! Yes this is the current way. I wanted to eliminate manual step of setting the process monitor to Y. I could use triggers to do this, however the problem I have is this - "It is not necessary that whenever those two tables are updated we have to run the process".
    I was thinking of these steps -
    1. Whenever those two base tables are updated
    2. Write a Trigger which
    a. validates the data in both the tables
    b. sends an email, alerting that process will be triggered in next one hour
    c. Triggers a job which will run after one and a half hour
    Does anyone in the forum think this is a bad architecture? please let me know...
    Thanks in advance!

  • Background schedule process

    Hi
    I am new to Oracle 9iAS. Can someone tell me if there is any
    better way to implement a background scheduled process ?
    Currently, I am doing it via AT command. Just wondering if
    Oracle9iAS has any scheduler that I can make use of.
    Thanks
    CT

    You can set up the different step while schedule the back ground job. Each step will have the program name, variant.
    You can do his using transaction SM36 -> JOB WIZARD.
    Thanks,
    Srinivas

  • PL/SQL procedure to process XML file

    I am just starting to work on xml, and we are using PL/SQL stored procedures to process xml file. I did find the sample code in the package (family.sql). This sample print out all element names and attributes. My questions are :
    (1) I tried to modify the code to print out the element values (or Node values). Here is the code:
    -- get all elements and values
    nl := xmlparser.getElementsByTagName(doc, '*');
    len := xmlparser.getLength(nl);
    -- loop through elements
    for i in 0..len-1 loop
    n := xmlparser.item(nl, i);
    dbms_output.put_line('NodeName: ' &#0124; &#0124; xmlparser.getNodeName(n) &#0124; &#0124; ' ');
    dbms_output.put_line('NodeValue: ' &#0124; &#0124; xmlparser.getNodeValue(n) &#0124; &#0124; ' ');
    end loop;
    However, it did not print out the values, although it did print out the name. what's wrong with it? how can I get the value?
    (2) I have the following xml file:
    <?xml version="1.0"?>
    <profile>
    <id>1</id>
    <name>Company</name>
    <des>master profile</desc>
    <subprofile>
    <subid>1</subid>
    <subname>group1</subname>
    <subdesc>group profile</subdesc>
    </subprofile>
    </profile>
    now, I'd like to print out all the children of the <subprofile> node, that is <subid>, <subname> and <subdesc>. Here is my code:
    -- get subprofile nodelist
    qnlist := xmlparser.getElementsByTagName(doc, 'subprofile');
    -- get length of the nodelist
    len := xmlparser.getLength(qnlist);
    -- loop through elements
    for i in 0..len-1 loop
    qnode := xmlparser.item(qnlist, i);
    qnnode := xmlparser.getFirstChild(qnode);
    qnchild := xmlparser.getFirstChild(qnnode);
    dbms_output.put_line(xmlparser.getNodeName(qnnode));
    dbms_output.put_line(xmlparser.getNodeValue(qnchild));
    LOOP
    if (xmlparser.isNULL(xmlparser.getNextSibling(qnnode))) then exit;
    END IF;
    qnnode := xmlparser.getNextSibling(qnnode);
    qnchild := xmlparser.getFirstChild(qnnode);
    dbms_output.put_line(xmlparser.getNodeName(qnnode));
    dbms_output.put_line(xmlparser.getNodeValue(qnchild));
    END LOOP;
    end loop;
    when I execute the procedure, I get the following output:
    #text
    I am not sure what's wrong with it. Basically, I didn't know the procedure to traverse the tree since here it's a little different from OO programming. Could someone give a sample code which demonstrate the procedure which can get a specific element's name and values? (for my exapmle, the name and value of the <subname>, or <subid>, <subdesc>).
    Also, is there a way to insert a part of xml file into a DB table? in my case, insert the subprofile into a table. I know the xmlgen package has a procedure to insert a xml file into a table, but not a part of xml. And can I insert a xml file into several tables instead of one table, using xmlgen package?
    looking forward to hearing from you. any suggestion and sample code would be helpful. thank you very much.
    null

    I sloved my first question: to get the Nodevalue, I need to use getFirstChild(n);
    But, I still didn't figure out the second
    problem. Actually, It works when I modified my xml file as following:
    <?xml version="1.0"?>
    <profile>
    <id>1</id>
    <name>Company</name>
    <des>master profile</desc>
    <subprofile><subid>1</subid><subname>group1</subname><subdesc>groupprofile</subdesc></subprofile>
    </profile>
    All the <subprofile>....</subprofile> must be in one line without any return. This is unbelievable! It suppose that xml does not matter new lines. I tested my code, it seems space is fine, but new line. Something must be wrong in my code.
    please give any suggestion. Thanks,
    Yudong
    null

  • How to schedule Process chains in Bi Admin Cockpit

    Hello friens,
    I am working on installing Bi cockpit.
    After installing the info providers, i have to schedule the process chains for Bi admin Cockpit.
    I know the transaction is RSPC.
    But I dont know how to schedule process chains for Bi admin cockpit.
    How to schedule Init and Delta
    If you can send me step by step documents.
    Or any good sap note number.
    Or any good links i will really apreciate it.
    I want to schedule process chains
    Content Master Data
    Data Load Statistics # Delta
    Data Load Statistics # Init
    Query Runtime Statistics # Delta
    Query Runtime Statistics # Init
    System Master Data
    Please advise

    Hi,
    Please check out this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    Hope it helps.
    Thanks
    Mona

  • How to create a scheduled process

    Hi all,
    I'd like to create a (WLI) process that would run once
    a day at 12:00 noon. Outside of WLI, I could easily use
    SpringFramework/Quartz to create a scheduled task that's
    equivalent to such a WLI process. But with WLI (8.1),
    I've had a very hard time to create such a process.
    I'd much appreciate if anyone could give a high level
    steps how to do it. Thank you kindly in advance.
    ---Nam Nguyen

    Bishnu Kumar wrote:
    Nam,
    You can create a scheduled process in WLI.Here are the steps:
    Create a channel file and uncomment the timerEvent section in weblogic workshop
    Create a timer event generator with details like time of triggering,frequency,channel file etc in Weblogic Integration Admin Console(http://<serverName>:<ServerPort>/wliconsole.
    Create a process file in workshop and select the option which subscribes to event generators.
    Hope this helps you.
    Regards
    BishnuThank you kindly. That does indeed help.
    ---Nam

  • FI Functional Audit questionnaire procedure and  process

    Hi Friends
    Pls provide me the information or related documentaion for FICO Audit Questionaire procedure and process flow
    Thanks in advance
    Srini
    Edited by: Srinivas A on May 8, 2009 5:07 PM

    Hello,
    http://www.auditnet.org/sapaudit.htm
    Hope this will good resource for you.
    The is a free site providing the information on audit. You can register and go throgugh the materials.
    Regards,
    Ravi

  • Scheduling process flows and mappings

    Hello
    I have created many process flows. Now i want to schedule it. I know i can use OEM, but i need to log in as DBA. i also know that you can use owb scheduler module to schedule a process flow. but i want to schedule it using sql plus. i found a link on scheduling process flow in sql plus for older versions of OWB. Can we use the same script for OWB 10.2? here is the link - http://www.dba-oracle.com/oracle_news/2005_7_7_Scheduling_an_OWB.htm
    Please let me know how to schedule a process flow in OWB 10.2 in sql plus. It would be great if you could post the sql script required to schedule OWB 10.2 process flows.
    Thank You

    Hi,
    the web server named by the link is down, so a general answer.
    You can use the scripts sqlplus_exec_template.sql and oem_exec_template.sql from the directory <OWBHOME>/owb/rtp/sql and schedule it with cron or at or scheduler or ...
    Regards
    Detlef

  • Scheduling process chain in 1st and last of the month

    Hello ,
    Can some one help in scheduling the process chain at the starting of the month and the end of the month ?
    The chain has to start on 1 st and 28th of every month.
    Help me with the informations please!
    Points will be assigned!
    Thanks in Advance
    Ram!

    Have your process chain to start "After event". Then create an ABAP program to call function module BP_EVENT_RAISE. There are numerous postings in this forum on how to do this.
    Next create two monthly jobs (one scheduled on the 1st and the other on the 28th) using SM36, and the only step in the job is to call the program to trigger (raise) the event. By triggering the event, your process chain will execute.
    Check these links:
    Re: scheduling process chain 3 specific times a day

  • Scheduled process flows are not running automaticaly-OWB database clonning

    What I did:
    1.     Cloned the entire OWB repository database from live (bidb01.bh.xyz.com) server to new (green1.bh.xyz.com) server.
    ******     Source     New
    Physical Hostname     bidb01.bh.xyz.com     green1.bh.xyz.com
    DB Logical Hostname     xyzbidb      bidb-lh
    Service Name     BIPROD     BIPROD
    Listener Port     1521     1521
    Oracle Home of RDBMS     /app/oracle/home/product/10.2.0     /orabidb/oracle/product/10.2.0
    Oracle Home of OWB     /app/oracle/home/product/10.2.0/owb /orabidb/oracle/product/10.2.0/owb
    2.     Followed the Metalink Note 434272.1 (How To Update Warehouse Builder After A Database Cloning)
    Issue:
    Before doing the step-2, every time we put the new database up the normal process flows which run every day (10 AM, 1 AM , 2 AM , 2 PM, etc.) got executed on the production environment and hung the original processes that are being run on the production environment.
    After following the note 434272, scheduled process flows in production is working fine but in the new server it is not at all working.
    Could anyone please help me to fix this?
    Edited by: Padmanaban G on May 7, 2010 5:15 PM

    The issue was resolved by renaming the workflow. What is learned here is, we should not have same workflow name for two different workspace.

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • Urgent: Guided Procedure VS Process Integration

    Dear Guru,
    I am researching on concept of Guided Procedure and Process Integration.  However, I have few questions about those.  What is Guided Procedures?  What is/are the differences with Process Integration (PI)?  In which scenario, PI and GP can be applied for?  Thank you very much. Reward point will be given.
    Best Regards,
    Mr.NOP

    hi
    For guided procedures,
    Please refer these links :-
    http://help.sap.com/saphelp_nw04s/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
    Regards
    Navneet

  • UNCAUGHT_EXCEPTION with msg CX_RSR_X_MESSAG while scheduling Process chain

    Hi Gurus,
    We are facing a short dump while scheduling process chains, as follows:
    <BR><BR>
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_RSR_X_MESSAGE
    <BR><BR>
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_RSR_X_MESSAGE', was not caught
         and
        therefore caused a runtime error.
        The reason for the exception is:
        No text available for this exception
    <BR>
    Information on where terminated
        Termination occurred in the ABAP program "SAPLRRMS" - in "RRMS_X_MESSAGE".
        The main program was "RSPC_MAINTAIN_SINGLE ".
        In the source code you have the termination point in line 82
        of the (Include) program "LRRMSU13".
    <BR>
    We tried to schedule it as a remote process chain from some other system it cancelled the job there with an ERROR_MESSAGE. We checked the RFC Connections at the source system side but it is working properly. We then tried to schedule the chain manually, we had this exception. Then we tried to have a look at previous logs of the process chain. It had this exception. We tried to reactivate the chain it was successful but when tried to schedule the chain same issue again. We tried to run the Meta chains under the same chain separately. They too gave us the same exception.
    Please help.
    Regards,
    Sourabh Deo

    S Simran wrote:
    Hi,
    >
    > Ours is a fresh installation..
    >
    > When i am loading for the first time till PSA it is successful..
    >
    > As HR data sources are 3.5 datasources, i am loading cube via infopackage..
    >
    > When i start the load to cube it is giving me dump with exception CX_RSR_X_MESSAG.
    >
    > i checked note  615389 which talks about "buffering of number range object BIM9999998".  the 0REQID is not buffered, but it does not throw any error msg in RSRV to correct the error..
    >
    > and one more note 1157796 which talks about patches with version BI 7.0.
    >
    > Now we are in BI 730 with heighest level 0005.
    >
    > Not sure how to solve this error
    >
    > Any ideas?
    What's your SP? Are you having any master data updates left unattended? Check the Master data objects, check the flows. Related SAP Notes : 914304 / Check 967202(SP10) and 998673(SP11), 1157796, 763203 and 615389
    Edited by: Arun Bala G on Feb 12, 2012 9:50 PM

  • Email PO Workflow Process - Send Notification to Web Supplier???

    Hello,
    We're on 11.5.8. I'm looking at the Email PO workflow process in POAPPRV. Can someone tell me the difference between the 'Does user want document e-mailed?'/'Email PO' functionality in the process and the 'Send notification to web supplier?'/'Notify Web Supplier' functionality. I want to customise the email to the supplier but am confused as to which half of this process requires customisation.
    Thanks in advance,
    - Matt Symes

    Hello,
    Is this for emails inside or outside of SAP?
    I don't know if it's a standard feature of PO release workflows.
    You could set up a test workflow with a SENDTASKDESCRIPTION step and see if it includes a link to the object instance.
    regards
    Paultje Bakker
    Hanabi Technology

Maybe you are looking for

  • BW report on portal - different settings than in BEx

    Hi gurus, I would like to ask you if it is possible to have different setting for BW report in portal than in BEx. Is there some content management feature which allows for example to have resultr rows for a characteristic in Portal and to not have r

  • How to find out the unit of Field object?

    Dear Friends , I Placed 4 fields in report . Just i want to get the position of field object in report using vb.net code . In report i selected the field and click f4 button , property window is open , in that its showing Top = 390 , left = 295 . In

  • RMI or plain JDBC???

    I'm in the planning stages for an application that will be run on client machines via Java Web Start. These applications are going to need to have access to a MS SQL Server, located on a separate machine, and I'm wondering if I should use RMI for all

  • Automatic Row Processing (DML)

    Hello, I have an Automatic Row Processing (DML) in a page, but I forgot to add a column in the table where I record the data. So I added the item that I forgot in the page but when I tried to insert the data on the table it shows me this error: ORA-0

  • Applying Patches in Solaris 10 x86

    Hello, I have been testing Solaris 10 x86. I am trying to determine the best method for applying patches, as I do not have a Sun Service Plan. I have used smpatch analyze and smpatch update to apply the required paches to my system, but I am not sure