How to write a procedure to call and run the custom package backend
Hi allOracle 10g
Oracle Apps R12
I work with here oracle order management, we have a package called (Pick Release) to customize. Due to a problem, we have this concurrent program execution manually giving Route_id as parameter. The route_id comes from the road to the Table. By using this query
Select distinct route@DB_LINK_APPS_TO_ROADSHOW route_id
When trunc (route_date) = trunc (sysdate + 2).
on a daily basis, we have almost 42 routes and we run this simultaneous program manually close times.
so now how to write a procedure for this
Step 1 make the route to the routing table. (By cursor we can get the route_id accordingly)
Step 2 How to trigger custom backend package and run accordingly to this output of the cursor (route_id)
If 40 routes of cursor get is - that the simultaneous program runs 40 times according to this route_id.
can some could provide the steps to do this
Thanks and greetings
Srikkanth.M
To submit a competing request from the back - end:
FND_REQUEST. SUBMIT_REQUEST (Client or server)
Summary
function FND_REQUEST. SUBMIT_REQUEST
(application IN varchar2 default NULL,
program IN varchar2 NULL by default,
Description IN varchar2 default NULL,
start_time IN varchar2 default NULL,
sub_request IN default boolean FALSE
Argument1,
argument2,..., argument99.
Return to argument100 number);
Description
Submits a competing treatment by a simultaneous Manager. If the query is successful, this function returns the ID of the concurrent request; Otherwise, it returns 0.
ATTENTION: FND_REQUEST needs to know information about the user and accountability whose application is submitted. Therefore, this feature works of concurrent programs or forms within the Oracle Applications.
The FND_REQUEST. SUBMIT_REQUEST function returns the ID of the concurrent application after successfully. It is up to the caller to issue a commit to complete the application.
Your code should retrieve and handle the error message generated if there is a problem of presentation (the ID of the concurrent request returned is 0). Use FND_MESSAGE. RETRIEVE and FND_MESSAGE. ERROR to retrieve and display the error (if the application is made on the client side).
Related essays: overview of the Message dictionary (see page)
You must call FND_REQUEST. SET_MODE before calling FND_REQUEST. SUBMIT_REQUEST of a database trigger.
If FND_REQUEST. SUBMIT_REQUEST fails to go anywhere but a database trigger, database changes are cancelled until the time of the function call.
After a call to the FND_REQUEST. SUBMIT_REQUEST function, installation of all parameters are reset to their default values.
Arguments (input)
short name of the application associated with the concurrent request for enforcement.
short simultaneous program (not the executable) name of the program for which the application must be made.
Description Description of the application that appears in the form of concurrent requests (optional).
start_time time during which demand is expected to start running in the (optional) HH24 or HH24:MI:SS format.
sub_request set to TRUE if the request is made by another application and should be treated as a subquery.
From version 11, this parameter can be used if you submit requests for in a concurrent program of PL/SQL stored procedure.
argument1... 100 arguments for the concurrent request; up to 100 arguments are allowed. If the Oracle Forms submitted, you must specify all arguments of 100.
Tags: Oracle Applications
Similar Questions
-
How to write a procedure for setting Out when the condition fails
Here's my query, it works very well when the condition is fulfilled with the valid user ID and password
create or replace
PROCEDURE ISVALIDUSER / * this is procedure created to validate the connection information to users created on 09212012 by Charbonneau * /.
(
pUSERID IN VARCHAR2,
Ppassword IN VARCHAR2,
pUSERTYPE OUT NUMBER
)
AS
tmpUSERID VARCHAR2 (30);
tmpPASSWORD VARCHAR2 (150);
tmpIsative VARCHAR2 (10);
BEGIN
SELECT Userid, PASSWORD IN tmpUSERID, tmpPASSWORD FROM USERMASTER WHERE USERMASTER. USERID = pUSERID and USERMASTER. PASSWORD = Ppassword AND isactive = "Y";
/ * Check ID USER Existed or not * / / * PASSWORD verification is Existed or not * /.
IF tmpPASSWORD = AND tmpuserid = pUSERID THEN pPassword
USERTYPE of SELECT INTO pUSERTYPE FROM USERMASTER WHERE USERMASTER. USERID = pUSERID and USERMASTER. PASSWORD = pPassword;
ON THE OTHER
BEGIN
1 SELECT INTO pUSERTYPE FROM DUAL;
END;
END IF;
END;
Here I am facing a problem when I get invalid user or password ID it is failed - 1 in pUSERTYPE which is OUT setting
Please suggestYou need to read about the exceptions - {message identifier: = 9360013}
create or replace PROCEDURE ISVALIDUSER /*This is Procedure created to validate Login users information Created on 09212012 by Chakravarthy*/ ( pUSERID IN VARCHAR2, pPASSWORD IN VARCHAR2, pUSERTYPE OUT NUMBER ) AS tmpIsative VARCHAR2(10); BEGIN SELECT USERTYPE INTO pUSERTYPE FROM USERMASTER WHERE USERMASTER.USERID=pUSERID and USERMASTER.PASSWORD=pPASSWORD AND isactive='Y'; exception when no_data_found then pUSERTYPE := -1; END;
You store your password without encrypting? One who is to have access to your table will see the password...
-
How to find a way to open and run the Microsoft Windows tool remover malware?
I downloaded it from microsoft, they give no instructions to use it.. ??? HELP AS SOON AS POSSIBLE PLEASE
Double click on the download save or right click on it, then "Run as Admin" > next > next > what type of analysis you want to make your choice:
1. quick Scan
2 full Scan (may take several hours)
3. Custom Scan
Then do the scan.
See you soon.
-
How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and
I have a table whose columns with values such as
MINNEAŸPOLIS and ¿VV ¿A
Only the characters that are allowed in this column are alphabets, numbers, spaces, points and supports.
Please help to write a SQL SELECT with Regexp_like query or any other option.
Thanks to you all! Under query worked for me. Thank you Frank to explain the concept of hooks inside regexp_like.
SELECT * FROM testspecial, WHERE REGEXP_LIKE (sampletext, "[^] ^ A - Z ^ a - z ^ 0-9 ^ [^.]") ^ {^} ^]') ;
-
How to write a simple select query to get the data of the table as an XML.
How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select queryselect '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' from temp_table where id_num BETWEEN 1 AND 10;
without using XMLGEN, XMLQUERY or any other packages built and function?I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.
What is wrong with him?
At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:SQL> create or replace function my_url_escape (url in varchar2) 2 return varchar2 3 deterministic 4 is 5 begin 6 return utl_url.escape(url, false, 'AL32UTF8'); 7 end; 8 / Function created SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual; MY_URL_ESCAPE('HTTP://SOME.URI -------------------------------------------------------------------------------- http://some.uri.com/param?lang=fr&text=contr%C3%B4le
-
How to build and run the sample extensions?
I have a good time trying to get the sample to run, extensions
Adobe-CEP/CEP-Resources · GitHub or also in the SDK of 2014 Adobe Illustrator CC for the Plugins that have a graphical interface.
So far I've failed.
Windows 7 x 64 system. Illustrator CC
First test:
Assemble one of the samples using the Adobe package manager. Added the file of "CEP_HTML_Test_Extension" or well the 'TutorialUI' of the SDK samples.
and then install the zxp file obtained by using the "extensions Manager". No error reported. Extension handlers lists the Extension as being active for AI CC. Illustrator began.
But I don't see anything in illustrator. There's no "Extensions" entry in the menu of Windows of Illustrator.
The PlugIn tutorial menus are displayed, but the sample dialog box does not appear. In the debugger, I noticed that the call to pFnLoadExtension fails.
Second test:
After the pdf file "USING the kit SDK ADOBE EXTENSION" (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC14_Extension_S DK.pdf)
Package as before
PlayerDebugMode enabled in HKEY_CURRENT_USER\Software\Adobe\CSXS.5
copied the zxp file in C:\Program Files\Common Files\Adobe\CEP\extensions
Same result. I don't need an extension.
I had no problem, build and run the sample Plugins well.
What I am doing wrong?
How can I build and run a simple example of extension?
Any help appreciated.
The problem related to how the samples were copied in the extensions directory. When you .zxp files you need to extract the content and place them in the extensions directory.
For example this:
C:\Program Files (x 86) \Common Files\Adobe\CEP\extensions\
TutorialUI.zxp
UIShowcase_sample.zxp
But this:
C:\Program Files (x 86) \Common Files\Adobe\CEP\extensions\
TutorialUI\
UIShowcase_sample\
You can install the .zxp by the Manager of extensions or, for development purposes, rename the .zip file type.
-
How can I turn on turn off (and on) the incognito in Version 28?
How can I turn on turn off (and on) the incognito in Version 28? Seems to be permanently on the private browsing mode. I would like to be able to choose which mode on the fly without addons. All the help I've seen so far, is for older versions of Firefox. I use the 28 Version. Which seems to be the latest version from here.
You can check that you are not running Firefox in permanent private browsing mode (don't remember history)?
- Tools > Options > privacy > Firefox will be: "use the custom settings for history".
- Uncheck the box: [] "always use the navigation mode private.
You can check the target line in the shortcut to the Firefox desktop (right click: properties) to make sure that nothing is added after the path to the Firefox program.
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do NOT click on the reset button on the startup window Mode without failure.
-
How can I enter BIOS compaq610 screen and set the date, time
How can I enter BIOS compaq610 screen and set the date, time
Hello
See Page 94 or Page 100 (according to what's relevant) of your & Maintenance Guide.
Kind regards
DP - K
-
How to: Download and run the utility of Diagnostic equipment of HP (HDU)
Hi all
The video below will show you how to download and run the hardware HP (HDU) diagnostic utility in Windows 7 and Windows Vista (and probably 8 as well). You don't want to use this tool to help you determine if hardware of your printer HP working properly.
If you have any problems, or simply have questions about the tool, response in this thread.
-
How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?
Make sure that you dragged the VO based EO.
Also make sure that the VO attributes based EO Updatable property.
The query according to VO is used only to add LOV to the column of the original VO ModelId.
See you soon
AJ
-
How to write a script for date get to the Clipboard
Hi experts,
How to write a script for date get to the Clipboard.
the date format will be like this:
05 - may
respect of
John
Thanks guys, thanks Sanon
I finally use the .bat doc
like this:
@@echo off
for /f "delims =" % in (' wmic OS Get localdatetime ^ | find ".") "") Set "dt = %% a"
the value "YYYY = % dt: ~ 0, 4%.
the value "MM = % dt: ~ 4, 2%.If MM % is 01 set MM = January
If % MM == 02 set MM = February
If MM % is MM value = March 03
If MM % is 04 MM value = April
If MM % is 05 MM value = may
If MM % is 06 MM value = June
If MM % == 07 set MM = July
If MM % is MM value = August 08
If MM % is MM value = September 09
If MM % is 10 MM value = October
If MM % is 11A set MM = November
If MM % is game MM 12 = Decemberthe value "DD = % dt: ~ 6, 2%.
the value "HH = % dt: ~ 8, 2%.
the value "Min = % dt: ~ 10, 2%.
Set "s = % dt: ~ 12, 2%.Echo DD - MM HH % %% % Min | Clip
It works
respect of
John
-
help on how to compile and run the awt programs
any1 can tell how to compile and run the awt programs
Published by: 863765 on July 18, 2011 03:29The same way you compile and run any other Java program.
-
How can I get rid of norton and activate the windows firewall?
I'm trying to uninstall Norton so that I can install Avast. Norton seems to have disappeared, but now I can not turn on the Windows Firewall. It is said that this function is controlled by Norton. I use a laptop HP 2000.
Can someone help me?
Thank you!!
Hello
Download and run the Norton Removal Tool relevant to your particular product from the link below.
When the tool has finished, restart the laptop.
Kind regards
DP - K
-
dynamically create and destroy the custom menu item
I have a standard TestStand platform that I use on multiple systems. On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration. I know how to manually create these menu items, but they are no longer valid for some sequence files. I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.
I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items. Does anyone know how this can be done?
Thank you
Matthew
Yes, see the online help for the members of the following APIs:
Engine.GetEditTimeToolMenuItems
EditTimeMenuItems
EditTimeMenuItem
Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.
In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.
Hope this helps,
-Doug
-
All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.
Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".
The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.
"" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.
$ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql
Background: old server running 4.8, Oracle 10.2.0.4 OEL
New server running OEL 6.5, Oracle 11.2.0.4
Tested so far:
File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.
Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.
Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.
Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.
Any ideas?
I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.
(1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne
(2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.
-We are dealing with here EDI processes, so the Group was called edi.
(3) modified property of the files tnsnames.ora and listener.ora for oracle: edi
(4) restart the receiver
(5) disconnect / reconnect
Script runs as expected, the output file contains the correct ownership and permissions.
Thank you all for taking a look and offering options.
-Josh
Maybe you are looking for
-
sleep/wake button Exchange program
Hi, I would like to know is there an expiration date for the button standby/Exchange program? Thank you.
-
Ultiboard provides a way of redefining what contains the default PCB project? Now, as soon as you open Ultiboard and select "create new project... ', it opens to the design with no space. What is cool at the moment, you draw your rectangle Board, ad
-
How to report spam to seller?
PlayViet is spamming PIN of the people on this forum with messages on their applications. How we report to BlackBerry? Is it possible to add single firewall PIN numbers?
-
The Source Air open (fuse) user interface components
Hello I have seen that RIM is very friendly toward software open source. You guys make a nice contribution to major projects such as Qt and WebKit. You also have cool open source products like waving and WebWorksSDK. You still contribute to the porti
-
BlackBerry Smartphones SMS and missed calls shows do not in my folder of SMS and MMS
Hello! I have no problem with my phone so far - but this morning all of a sudden my message text and MMS folder suddenly only shows my emails. I can send texts by going to 'compose SMS', but when I get an answer I don't see the text message... I trie