Any scripts for producing registration scripts for concurrent pgms?

Hi all
After I register concurrent executable, program, any custom values-sets, parameters, and adding to request group for any type of concurrent program(ex:report/host/plsql procedure) using application developer form screens, does any one have script that I can run to get the registration script out of oracle seeded tables for any given concurrent program.?
Any useful links also will be helpful.
I am looking for any script that should be produced, so that I can run the script next time to register the same insted of going through the application developer forms screens again and again. The script should register executable, program, parameters, request group, value-sets etc.,
I may be able to register the script into apps as concurrent program.
Thanks
RRB.
null

-- SQL Program which creates the concurrent program REP305, and the other application objects.
SET SERVEROUTPUT ON;
DECLARE
-- Count for the number of the parameters
n_para_count NUMBER(2) := 3;
v_program_short_name VARCHAR2(30) := 'REP305';
-- Short Name of the program
-- Also the name of the executable
v_program_long_name VARCHAR2(240) := 'Program Status Summary - YTD';
-- Printer definintions
v_printer VARCHAR2(30) := NULL;
-- Name of the Printer
n_cols NUMBER(3) := 180;
-- Number of columns in the report
n_rows NUMBER(3) := 45;
-- Number of rows in the report
v_style VARCHAR2(30) := 'LANDWIDE -HPLJ4';
-- Style of the report
b_create BOOLEAN := TRUE;
-- Variable to control the creation of the program
v_program_application VARCHAR2(30) := 'Extensions';
-- Application of the concurrent program
v_group_application VARCHAR2(30) := 'Extensions';
-- Application of the request group
v_request_group VARCHAR2(30) := 'All Programs';
-- The name of the request group
-- Boolean Variables for checking existence of objects
b_program_in_group BOOLEAN;
b_executable_exists BOOLEAN;
b_program_exists BOOLEAN;
b_parameter_exists BOOLEAN;
-- variable for holding the current executing object
v_cur_object VARCHAR2(2000);
v_error_message VARCHAR2(2000);
TYPE rectype_para IS RECORD
program_short_name VARCHAR2(30),
application VARCHAR2(30),
sequence NUMBER(2),
parameter VARCHAR2(40),
description VARCHAR2(240),
enabled VARCHAR2(1),
value_set VARCHAR2(30),
default_type VARCHAR2(30),
default_value VARCHAR2(200),
required VARCHAR2(1),
enable_security VARCHAR2(1),
range VARCHAR2(30),
display VARCHAR2(1),
display_size NUMBER(3),
description_size NUMBER(3),
concatenated_description_size NUMBER(3),
prompt VARCHAR2(80),
token VARCHAR2(30));
TYPE tab_type_para IS TABLE OF rectype_para
INDEX BY BINARY_INTEGER;
table_para tab_type_para;
BEGIN
-- Assigning the values needed for each parameter
table_para(1).parameter := 'PA_PERIOD_NAME';
table_para(1).value_set := 'VS_PERIOD'; -- All Periods
table_para(1).prompt := 'Period Name';
table_para(1).token := 'P_PA_PERIOD_NAME';
table_para(1).required := 'Y';
table_para(1).display := 'Y';
table_para(2).parameter := 'PA_RECORDING_ENTITY';
table_para(2).value_set := 'VS_RECORDING_ENTITY';
table_para(2).prompt := 'Recording Entity';
table_para(2).token := 'P_PA_REC_ENTITY';
table_para(2).required := 'N';
table_para(2).display := 'Y';
table_para(3).parameter := 'PA_RESP_ORG_NAME';
table_para(3).value_set := 'VS_PROJ_OWNER_ORG';
table_para(3).prompt := 'Project Responsible Organization';
table_para(3).token := 'P_PA_RESP_ORG_NAME';
table_para(3).required := 'N';
table_para(3).display := 'Y';
b_executable_exists := FND_PROGRAM.EXECUTABLE_EXISTS
(executable_short_name => v_program_short_name,
application => v_program_application);
-- Deletes the program
b_program_exists := FND_PROGRAM.PROGRAM_EXISTS
(program => v_program_short_name,
application => v_program_application);
IF b_program_exists
THEN
FND_PROGRAM.DELETE_PROGRAM
(program_short_name => v_program_short_name,
application => v_program_application);
DBMS_OUTPUT.PUT_LINE(v_program_short_name | | ' concurrent program deleted');
END IF;
-- Deletes the executable
IF b_executable_exists
THEN
FND_PROGRAM.DELETE_EXECUTABLE
(executable_short_name => v_program_short_name,
application => v_program_application);
DBMS_OUTPUT.PUT_LINE(v_program_short_name | | ' executable deleted');
END IF;
IF b_create = FALSE
THEN
COMMIT;
RETURN;
END IF;
v_cur_object := 'Executable ' | | v_program_short_name;
-- Assigning the c urrent executing object to the error variable
-- Creates the executable
FND_PROGRAM.EXECUTABLE
(executable => v_program_short_name,
application => v_program_application,
short_name => v_program_short_name,
description => v_program_short_name,
execution_method => 'Oracle Reports',
execution_file_name => v_program_short_name,
subroutine_name => NULL,
icon_name => NULL,
language_code => 'US');
DBMS_OUTPUT.PUT_LINE(v_program_short_name | | ' executable created');
-- Creates the Concurrent Program
v_cur_object := 'Concurrent Program ' | | v_program_short_name;
FND_PROGRAM.REGISTER(program => v_program_long_name,
application => v_program_application,
enabled => 'Y',
short_name => v_program_short_name ,
description => v_program_long_name,
executable_short_name => v_program_short_name,
executable_application => v_program_application,
execution_options => NULL,
priority => NULL,
save_output => 'Y',
print => 'Y',
cols => n_cols,
rows => n_rows,
style => v_style,
style_required => 'N',
printer => v_printer,
request_type => NULL,
request_type_application => NULL,
use_in_srs => 'Y',
allow_disabled_values => 'N',
run_alone => 'N',
language_code => 'US');
DBMS_OUTPUT.PUT_LINE(v_program_short_name | | ' concurrent program created');
-- Creates all the parameters needed for the concurrent program
for i IN 1..n_para_count
LOOP
table_para(i).program_short_name := v_program_short_name;
table_para(i).application := v_program_application;
table_para(i).sequence := i;
table_para(1).description := NULL;
table_para(i).enabled := 'Y';
--table_para(i).default_type := NULL;
--table_para(i).default_value := NULL;
table_para(i).enable_security := 'N';
table_para(i).range := NULL;
--table_para(i).display := 'Y';
table_para(i).display_size := 30;
table_para(i).description_size := 50;
table_para(i).concatenated_description_size := 25;
v_cur_object := 'Parameter ' | | table_para(i).parameter;
FND_PROGRAM.PARAMETER(
program_short_name => table_para(i).program_short_name ,
application => table_para(i).application ,
sequence => table_para(i).sequence ,
parameter => table_para(i).parameter,
description => table_para(i).description ,
enabled => table_para(i).enabled ,
value_set => table_para(i).value_set ,
default_type => table_para(i).default_type ,
default_value => table_para(i).default_value ,
required => table_para(i).required ,
enable_security => table_para(i).enable_security,
range => table_para(i).range ,
display => table_para(i).display ,
display_size => table_para(i).display_size,
description_size => table_para(i).description_size ,
concatenated_description_size => table_para(i).concatenated_description_size ,
prompt => table_para(i).prompt,
token => table_para(i).token);
DBMS_OUTPUT.PUT_LINE( 'Parameter ' | | table_para(i).parameter | | ' created.');
END LOOP;
-- Adding the concurrent program to the request group
FND_PROGRAM.add_to_group(
program_short_name => v_program_short_name,
program_application => v_program_application,
request_group => v_request_group,
group_application => v_group_application);
DBMS_OUTPUT.PUT_LINE(v_program_short_name | | ' added to ' | | v_request_group);
EXCEPTION
WHEN OTHERS THEN
v_error_message := FND_PROGRAM.MESSAGE;
v_cur_object := v_cur_object | | '' | | v_error_message;
ROLLBACK;
RAISE_APPLICATION_ERROR(-20000, 'Error Occured while creating ' | | v_cur_object);
END;
COMMIT;
SET SERVEROUTPUT OFF;
--EXIT;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • What privileges needed for producing explain plan for other user's object ?

    Hi there,
    What privileges needed for producing explain plan for other user's object (tables) ?
    Cheers
    Soheil

    Experiment: (public plan table exists)
    create user bob identified by bob;
    grant create session to bob;
    connect bob/bob
    start sample_plan
    If will error off on the table being read in the plan
    connect dba_or_privileged_user
    grant select on the referenced_table(s) to bob;
    connect bob/bob
    start sample_plan
    It will now work providing a public plan table exists or you give bob create table and create a bob.plan_table
    I ran the experiment on Oracle version 9.2.0.6 running on AIX 5.3. Select privilege on all referenced tables in the explained SQL must exist
    HTH -- Mark D Powell --

  • Are there any information gathering tools or scripts for Sun VDI 3.1.1?

    Hi,
    Are there any information gathering tools or scripts for Sun VDI 3.1.1?
    for problem reporting or service supportting , such as
    ut_gather, a ksh based tool to collect all Sun Ray related information from a Sun Ray server.
    http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/ut_gather_1_4_6
    http://www.sun.com/service/gdd/index.xml
    Sun Explorer Data Collector in The Sun Services Tools Bundle (STB)
    http://www.sun.com/service/stb/index.jsp
    http://www.unix-consultants.co.uk/examples/scripts/linux/linux-explorer/
    http://www.slideshare.net/Aeroplane23/information-gathering-2
    Windows MPSreports, msinfo32
    Redhat sysreport
    Suse Siga reportconfig
    Any advice would be appreciated.
    Thanks,

    ut_gather versions are available on MOS under reference #1260464.1

  • Looking for someone to script a Day Planner to a specific size and style.

    Hi,
    Looking for someone to script a year long Day Planner in Indesign CC. I've tried one or two scripts available out there but none seem to be able to accomplish what I need.
    I would envisage the rolling requirements.
    2015
    Day per page
    Set to a specific Design Style
    Fully Editable style hierarchy
    Ability to add in pages without kicking anything out
    Include Month with highlighted day on right hand page only
    Add localised public holidays
    Add another list of 'special dates'
    Fit size 148.5mm W x 210mm H (would be great to have it scaleable but not essential)
    All/any help appreciated. Here's a screen shot of the desired result.

    Hi Jarek,
    Thanks for the response!
    The script needs to create the pages in an Indesign Doc.
    One the pages are created we would be adding in custom pages at beginning and at other periodic stages in the document.
    Let me know if there's anything else you need
    Mark

  • Sample script to insert  into mtl_transactions_interface for sales order

    Hi,
    can any one provide me the script to insert into mtl_transactions_interface for sales order transactions. actually i have to create the transactions for all the assemblies/components of C* item (configured item). as per the standard functionality it will create only for the C* item.
    Thanks in advance..
    Regards,
    Sreenath

    If I understood your question correctly, your requirement is as follows.
    You have a sales order for a configured item - say C*123.
    The components of C*123 are A and B.
    A and B as well as C*123 appear on the sales order.
    When you ship the sales order, Oracle will create sales order issue transaction for C*123.
    You would like to use the transactions interface to create sales order issue transactions for A & B.
    That is wrong thing to do.
    You should not create a sales order issue for A & B.
    You need to BUILD C*123 by creating a work order. You need to perform WIP component issue transaction for A & B.
    Hope this helps,
    Sandeep Gandhi

  • Alert not firing for SQL Statement Script

    Hi All,
    I have defined an alter which will trigger when a requisition is stuck with the requestor.
    At the time i need to send an email to the requestor and update the status of the requisition to 'INCOMPLETE'.
    i have defined two action sets one for email and another for update. The email part is working fine but the sql script which updates the status is not firing.
    It is a standard script residing in PO directory sql.
    It has two parameters
    1) Requisition number 2) org_id
    these two are the output of the mail alert query.
    i have defined the application as 'Puchasing'
    arguments as &SQL_REQ_NUMBER &SQL_ORG_ID
    and gave the file name 'poresreq.sql' in the file location.
    but the status is not updating.
    how can i know the reason for not firing.
    Regards,
    Jana

    Hi Jana;
    What is your EBS and OS? Did you run query manualy? Did you get any error message?
    Regard
    Helios

  • Java script issue on screen rendering for all-11-otn4.js

    Hello,
    I am getting java error on screen rendering for all-11-otn4.js line no 12277 and 16073. The java script error I get is, *"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in debugger, or let the script continue"*. After this page stops responding, i have to close the browser and reopen it.
    I have a table inside my screen. The table is added inside a af:panelCollection and have few toolbar buttons added inside the secondayToolbar facet. This error is commng due to the table toolbar buttons.
    When i check the java scirpt using debugger, it stops at following java script at the bold line,
    AdfUIComponent.prototype.getParent= function()
    var x147=this._parent;
    if (x147===undefined)
    var x148=this._peer;
    if (x148!=null)
    x147=x148.getComponentParent(this);
    this._parent=x147;
    return x147;
    Any idean why this could be happening and any ways to tackel it?
    - Sujay

    Hi,
    did you try with a production build. Sems to me that you use Technology Preview, which is almost 2 years old
    Frank

  • ECMA script for checking active workflows for an list item

    Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the following code to achieve the same. Can anyone please provide
    me the ECMA object model equivalent for achieving the same.
        //Check for any active workflows for the document
            private void CheckForActiveWorkflows()
                // Parameters 'List' and 'ID' will be null for site workflows.
                if (!String.IsNullOrEmpty(Request.Params["List"]) && !String.IsNullOrEmpty(Request.Params["ID"]))
                    this.workflowList = this.Web.Lists[new Guid(Request.Params["List"])];
                    this.workflowListItem = this.workflowList.GetItemById(Convert.ToInt32(Request.Params["ID"]));
                SPWorkflowManager manager = this.Site.WorkflowManager;
                SPWorkflowCollection workflowCollection = manager.GetItemActiveWorkflows(this.workflowListItem);
                if (workflowCollection.Count > 0)
                    SPUtility.TransferToErrorPage("An workflow is already running for the document. Kindly complete it before starting a new workflow");
            }

    Hi,
    According to your post, my understanding is that you wanted to use ECMA script to check active workflows for an list item.
    You can use the Workflow web service "/_vti_bin/workflow.asmx"
    - GetWorkflowDataForItem operation in particular.
    Here is a great blog for you to take a look at:
    http://jamestsai.net/Blog/post/Using-JavaScript-to-check-SharePoint-list-item-workflow-status-via-Web-Service.aspx
    In addition, you can use
    SPServices. For more information, please refer to:
    http://sharepoint.stackexchange.com/questions/72962/is-there-a-way-to-check-if-a-workflow-is-completed-using-javascript
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Script Error message when checking for updates....

    Post Author: rcoleman
    CA Forum: General Feedback
    Getting a Script Error message when checking for updates or logging in to Crystal Reports. CR Developer v XI 11.0.0.1994.
    Script Error
    Line 481
    Position 41
    If g3()=True then main=True: Exit Fun
    FYI to the Site Administrator

    parkerpress wrote:
    Any idea how to solve this if I haven't activated the 3GS service? I've been doing fine on wireless only.
    Steve
    Same problem here. After upgrading to iOS 4.2.1 a couple of weeks ago I'm getting the same error as the OP in the first post. I've never activated the 3G service.
    I tried turning the cellular service on and checking for updates, pulled and replaced the SIM card, rebooted, nothing helps. I'm still getting the error when I click on the "Check for Update" button in iTunes (v10.1) when my iPad 64GB 3G is connected to my iMac. Any help would be appreciated. TIA.

  • Guidelines for HANA SQL Script

    Dear Experts,
    Could you please share best practices on the usage of SQL script in procedures and Script based calculation views?
    I searched already for the relevant information, but could not find any yet. I request you share any information other than what is available in help.sap.com based on your experience.
    Thank you,
    Raghavendra.

    Hi Raghavendra,
    As Lars said, it is very difficult to answer your question and it always depend on the designing solution for specific requirements. General rules we follow in scripting are
    1. Avoid inline queries
    2. Break complex SQL to small and simple SQL statements and club the results
    3. Always analyze cost using Visualize Plan
    4. Avoid cursors/loops
    5. Avoid mix of SQL and CE (most commonly found best practice )
    Regards,
    Chandra.

  • Using a (tcl) script as source of data for VI

    hi,
    novice here, under a deadline.
    we would like to display data coming from running a shell script. the data is a stream of lines, each with a datapoint as a floating point number.
    bash$ ./my.tcl
    12.5
    15.2
    18.3
    17.2
    14.3
    the first tutorial, with a waveform graph and a stop button is what the display should look like (we'll enhance it later).
    for input, though, instead of getting a simulated sine signal, we would like to read the output of the my.tcl script.
    we found one example, but it calls wish (the tcl interpreter), once and it ends. we need to read a stream continuously.
    all this under labview 8.5 for linux (under centos 4, if that matters).
    we want to get the basics going. so that is the basic question.
    later, once the basics are working, we would like to split what comes out of the script in channels.
    the script will spit this out, e.g.:
    port0: 10.2
    port0: 11.3
    port1: 11.2
    port0: 13.4
    port1: 15.2
    you get the idea. multiple channels will be bundled in the standard output and they will need to be demultiplexed. they may come in in bursts (e.g. three readings at a time from port 0, two from port one, ...etc.).
    we have some amount of control as to what the output of the script looks like.
    we just got started two days ago with labview, and it's cool. however, connecting it to read from the external world in the way that it exists now is what we have not been able to do yet.
    any help will be deeply appreciated, as we adopted this solution after dumping the atteempt to use tcl as the front end view, since we would like to do more sophisticated things down the road and labview is great for that.
    thanks in advance!
    carlos

    You need to do that with pipes.
    There is some code to do that (OGPipes) but it was never finished (as far as
    I know). I recently used it, but it has only support windows. Not much
    helpful for you...
    What I get from the Linux resources on the web, pipes are a lot easier to
    implement then under windows. I might need to do this in a few weeks myself,
    but don't have a Linux machine at the moment. Making a library wrapper in C
    is probably the easiest way, altough you should be able to call the Linux
    libraries for pipes directly from LabVIEW.
    Regards,
    Wiebe.

  • Example scenarios for usage of scripting

    Hi,
    sapian
         Can any of you give me some typical examples for usage of scripting in sap BODS except the sql statements.Like i need examples for error handling and for some other scenarios where i can use scripting.
    Please suggest me some scenarios with examples for the same.
    Thanks in advance
    Regards,
    Kishor Kumar s

    Check this -
    How to capture error log in a table in BODS

  • Can we change the test scripts in TCK (JavaCard tests for compatibility)

    Hi everyone,
    I would appreciate if anyone can tell me if we can change the test scripts when testing JavaCards using TCK. Lets say we want to introduce few more APDU's to the test script which already is present in a precompiled format. Can we somehow add to the script and then compile it again.
    Any help would be highly appreciated.
    Thanks,
    AQ

    Read the JC-TCK documentation:
    JC2 Some Conformance Tests may have properties that may be changed.Properties that
    can be changed are identified in the TCK configuration interview. Apart from
    changing such properties and other allowed modifications described in this User’s
    Guide (if any), no source or binary code for a Conformance Test may be altered in
    any way without prior written permission. Any such allowed alterations to the
    Conformance Tests would be posted to the Java Licensee Engineering web site and
    apply to all licensees.

  • Script to update a field for current year

    Is it possible to have a field update to finish the current year? Example 20-- (the dashes to change to whatever year it is). I'm thinking that it's not possible but if someone knows how it can be done I would really appreciate help. Thanks 
    Sorry, I guess I need it to change the entire year, not just the ending.  THanks
    I've tried a few scripts that I found here, such as; year(dateAdd('yyyy', 1, now())) with no luck. I admit I have no knowledge of scripts and may be doing something wrong. Does the script go under the Action tab as a javascript or somewhere else (validation??) Any advice or help would be appreciated. I am using Acrobt Pro version 9.

    You can not just cut and paste scripts since one needs to be aware of the object, the object's properties, and the object's methods that may need to be changed. Form your example it looks like you are trying to use a user defined function call and without the JavaScript for the function the code you posted will not work.
    You will need to use the JavaScript Date object to obtain the current date. You can then use either the 'getFullYear()' or 'getYear()' method to the get the 4 digit year or the 2 digit year and mellenium inicator. From these numbers you can extract the 2 digit year by converting the numbers to strings and then extracting a sub string from the character string.
    The following scripts are custom calculation scripts/
    // using the getFullYear() method:
    event.value = String(new Date().getFullYear()).substr(2,4);
    // using the getYearmillenniumindicator() method:
    event.value = String(new Date().getYear()).substr(2,4);
    If you want the full year:
    // using the getFullYear() method:
    event.value = new Date().getFullYear();

  • How to generate the request number for the changed  script

    Hi guys
        I am having a reqirement, to modify the script which was already transported to production server. I changed the script, but while saving it is not asking any request number.
        On which request number it is getting saved?
        Or is there any methods to generate the <b>request number for the changed script</b>
         Kindly suggest me the procedure with step by step operation.

    Goto Se03 Transaction : 
    select change object directy entries ->execute->select one empty check box ->FORM-> your form name -Execute->

Maybe you are looking for