Calling Concurrent Manager from VB
Not really sure where to post this, but here goes..
Using VB6/Win2K, I need to :
a. Connect to the Oracle OS
b. Submit a call to the ORA Concurrent Manager to run a procedure.
I'm in unfamiliar territory here. Has anyone ever done anything like this,
or could you point me in the right direction?
Thanks
Michael White
Programmer/Analyst
Marion County, OR
I have reports created on oracle developer 6.0. I would like to know as to how I can pass parameters(dates) thru ASP forms in order to run the oracle report on the web.
Similar Messages
-
Sample to call concurrent manager from ESB
Hi All,
A bit new with Oracle ESB, currently trying to test out a simple scenario to be able read from a file and invoke a concurrent program.
Does anybody have a sample of this, lost at the part on how to create a routing service between these two.
Any help is appreciated.
Regards
Vikram SomanathanThere is not much difference between BPEL and ESB, except BPEL provides more flexibility, and ESB provides more speed.
Therefore what you need to do is create a new ESB project. Create a file adapters the same way as you so in BPEL. (right click and choosed the file adapter). This will create a routing service as well. Now create a eBis adapter pointing to the concurrent program you want to run.
To join the 2 you need to modify the routing service and create a xsl transformation between the file adapter and the eBis adapter. This looks the same as the BPEL transformation.
cheers
James -
Calling Concurrent program from OAF-PDF Outtput not in English
Hi ,
I've successfully done "Calling Concurrent Program from OAF" once i clicked the button which i have in my page it generates RequestID and that shows request page,In that when i click "Output" icon the PDF file is opened.
But in that PDF file it shows the datas in the different language.
For example Emp name column is shown as
ΚΙΝΓ
ΧΛΑΡΚ
ΣΧΟΤΤ
ΦΟΡ∆
ΣΜΙΤΗ
ΑΛΛΕΝ
Αδαµσ
Σεντηιλςελ
Σαραϖανα Χ
Σεενυ
Σαβενα
Ηαριkindly help me...
Regards,
SaroHi Hussein,
Here I've shown the details of log file
Purchasing: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXCON module: XXCON
Current system time is 29-DEC-2010 11:37:23
+-----------------------------*
*| Starting concurrent program execution...*
+-----------------------------*
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AL32UTF8
Enter Password:
Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Executing request completion options...
------------- 1) PRINT -------------*
Printing output file.
Request ID : 5865903
Number of copies : 0
Printer : noprint
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 29-DEC-2010 11:37:33
Regards,
Saro -
Calling Concurrent Program From OAF in R12
Hi All,
I have called concurrent request from OAf page..When i click the submit button the page forwarded to Request page..
In that i have three buttons only Submit Request,search,Refresh but i need, What are all the options present in Requests > Submit window (not from OAF)"Hold Request,Cancel Request,Diagnostics,View Log"..
Also in my OAF Page if i click Submit Request-->Radio Button "New Request"--> if i clock LOV it doesn't shows any values...
Kindly help me to resolve this issue..
Thanks in advance for your valuable suggestion..
Regards,
RKOHi Hussein,
Here I've shown the details of log file
Purchasing: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXCON module: XXCON
Current system time is 29-DEC-2010 11:37:23
+-----------------------------*
*| Starting concurrent program execution...*
+-----------------------------*
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AL32UTF8
Enter Password:
Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Executing request completion options...
------------- 1) PRINT -------------*
Printing output file.
Request ID : 5865903
Number of copies : 0
Printer : noprint
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 29-DEC-2010 11:37:33
Regards,
Saro -
Problem in calling concurrent request from oracle forms
Hi,
I am using the following code to call the above concurrent request to transfer the data from AR interface table to the base table.
req_id := FND_REQUEST.SUBMIT_REQUEST('AR','RAXMTR','','',FALSE,
'1', '1023', 'CONTRA', '2009/10/30 00:00:00' ,'','','','','',''
,'','','','','Y','','103','','',''
if app_form.quietcommit then
MESSAGE(req_id);
MESSAGE(req_id);
end if;
The request gets completed with error. The diagnostic shows the following error
"*This request finished with an error and produced the following completion message: Usage: program oracleid request_id Y*
*The processing began on 30-OCT-2009 17:53:13 and ended on 30-OCT-2009 17:53:14. You may find more information on the cause of the error in the request log or the concurrent manager log*."
I have used similar method to execute AP interface import program and it worked. The above request is a spawned request. Any help would be appreciated.
Regards
DeepakPl see if these MOS Docs can help
170729.1 - Autoinvoice Master Program fails with USAGE: PROGRAM ORACLEID REQUEST_ID Y
460048.1 - AutoInvoice Master Log Shows "Usage: Program Oracleid Request_id Y"
217054.1 - Autoinvoice Errors USAGE: PROGRAM ORACLEID REQUEST_ID Y
HTH
Srini -
Call concurrent program from forms
hi all,
i have a form registered in apps which needs to call reports registered as concurrent program.
can anyone help me out as to which API to use to call the report from the WHEN-BUTTON-PRESSED trigger in forms?
regards,
shwetaHi Swetha
Use the following procedure to call a report from a form
fnd_request.submit_request -
Calling concurrent program from form giving problem
hi
i have designed one concurrent program
this concurrent program in turn calls another concurrent program.
when i run it using SRS it is running fine
but when i am submitting from FORM it is giving following error
ORACLE error 6550 in FDPSTP
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'XXPOS_MAIN'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
script in form
declare
l_request_id number;
l_errbuf varchar2(30);
l_retcode number;
begin
l_request_id := FND_REQUEST.SUBMIT_REQUEST('CUSTOM', -- application
'XXINVSIMREV', -- program
'Postpaid SIM Reversal after rejection',
SYSDATE, -- start_time (optional)
FALSE, -- sub_request
l_errbuf,l_retcode,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
IF l_request_id = 0 THEN
fnd_message.set_string('Program submission for sim reversal into inventory is failure');
fnd_message.show;
else
fnd_message.set_string('Program submission for sim reversal into inventory is success for request id='||l_request_id);
fnd_message.show;
commit;
End if;
end;There are so many restrictions and special circumstances for creating a custom form for Applications that you should ask this question in the Apps Forum (http://forums.oracle.com/forums/category.jspa?categoryID=3). People here might or might not have any experience with this. In the Apps Forums they definitely do.
-
Hi All,
There is a PLSQL procedure that is defined as executable for a concurrent program. I need to invoke this concurrent program on click of a button in a page.
I would like to know whether just calling the package.procedure through callable statment would suffice.
Thanks,
PadmajaHi Riteesh,
I'm new to frame works.
I have the following requirement. Could you please help me in doing it.
I have a button "Print" on my page, to call an XML Publisher report. Parameter for that program is Contract Number.
I have written the following code in AMImpl.
// AMImpl.java code
public int submitCPRequest (Number headerId){
try {
OADBTransaction tx = (OADBTransaction)getDBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = "PO"; //Application that contains the concurrent program
String cpName = "POXXXX"; //Concurrent program name
String cpDesc = "Concurrent Program Description"; // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(headerId.stringValue());
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
return requestId;
} catch (Exception e) {
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
Now I am calling this in my CO.
if(pageContext.getParameter("Print")!=null)
am.submitCPRequest();
Error(106,9): method submitCPRequest not found in class xxafp.oracle.apps.qp.pricelistrebate.server.PricelistrebateAMImpl
And also can you please tell me how to pass parameter contract number from my formm to that report.
Can you please let me know how to implement the above mentioned scenario.If you have any sample code similar to this req. please send me.
Thanks, -
Calling a concurrent program from CO in OAF
Hi,
I am trying to submit a conc. program from CO in OAF and in the controller code i am using the submitRequest method to submit the conc. progam but its giving error as method submitRequest() not found in class oracle.apps.fnd.cp.request.ConcurrentRequest, please help on this.Refer
how to call concurrent program form oaf page
http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html
-Anand -
Generating pdf report via concurrent manager and xml publisher
I have report (rdf) which works fine in eBusiness Suite but Id like to create translatable reports with reach layout (comparing with the Report Builder) based on the functionalities of the XML publisher. Ive made all necessary steps (first change the output format for that report in concurrent manager from pdf to xml, submit the report to get xml file, which Ive used in Microsoft Word Template Builder to make layout in rtf file, and create data and template in XML Publisher Administrator in eBusiness Suite).
When Ive submitted that report from concurrent manager, after the concurrent manage finished his job I got the warning message.
Also the output file is not generated and in log file there is a message: One or more post-processing actions failed. Consult the OPP service log for details.
Concurrent manager works fine, but there are problem when concurrent manager send the xml output of the report to XML Publisher which have to create pdf layout based on rtf template.
I think there might be a problem with report complexity, while Ive used layout formatting, api calls to eBusiness Suite, parameters, placeholders, attached library etc.
If it is impossible to get new report based on xml publisher template, what is the purpose of xml publisher if it is so limited, while every eBusiness Suite Report is so complex.
I hope there will be a person on this forum with the same problem, otherwise Ill give up at all from XML Publisher, at least until it come a better version of that tool which it seems to be in early development phase and not ready for the market yet.All of the complex report logic is handled in your Oracle Report (rdf) file.
If your Oracle report is working OK, then this report should be generating XML.
After running your report, go to the View Requests window. Highlight your request, and click the Diagnostics button. Then click the 'View XML' button. If you see XML data, then you should be OK.
When I faced a similar issue, it was because the '1 step' process didnt work for the particular report I was using. The '1 step' process doesn't work for every report. Which report are you using?
If the report is submitted via a form (not the concurrent manager request form), then you probably need to use 2 steps to produce the desired output.
For more information, see the following thread:
Enhancment to avoid 2 step check printing
HTH,
Mark K -
How to submit a concurrent request from a button in Selfservice
Hi,
I hope this is the forum where to start.
I want to submit a concurrent request when a button is pushed in selfservice.
I've implementend the event for button in java and its woring fine, but how to submit a conurrent request in java?
Can anyone help me or tell me if this is not the correct forum?
Thank you!
Best regards
Gjermund Lunder
Developer/DBAhi,
This question suppose to be in framework forum.
you can try:
OA Framework provides the ConcurrentRequest class to call the concurrent program from the page. The submitRequest() method in the ConcurrentRequest class takes 6 parameters and returns request id of the submitted concurrent request:
public int submitRequest(
String ProgramApplication ,
String ProgramName ,
String ProgramDescription ,
String StartTime,
boolean SubRequest,
Vector Parameters ) throws RequestSubmissionException
ProgramApplication -Application Short name of application under which the program is registered.
ProgramName - Concurrent Program Name for which the request has to be submitted
ProgramDescription - Concurrent Program Description
StartTime - Time at which the request has to start running.
SubRequest - Set to TRUE if the request is submitted from another running request and has to be treated as a sub request.
Parameters - Parameters of the concurrent Request
Here is the example for calling a concurrent program from a OA framework page.
import oracle.apps.fnd.cp.request.ConcurrentRequest;
import oracle.apps.fnd.framework.server.OADBTransaction;
public int submitCPRequest(Number headerId) {
try {
OADBTransaction tx = (OADBTransaction)getDBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = "PO"; //Application that contains the concurrent program
String cpName = "POXXXX"; //Concurrent program name
String cpDesc = "Concurrent Program Description"; // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(headerId.stringValue());
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
return requestId;
} catch (RequestSubmissionException e) {
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
I got it from http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html -
Hi All,
Last week I faced one issue related with concurrent manager.From the development side,they said submitted concurrent requests(which is normally run by standard manager) were in pending& normal status. I checked the standard manager .It shows actual: 1 and target: 8. In standard manager one request was running.I have deactivated and activated the standard manager.It solved the problem.But I didn't check the status of those request which were in pending&normal stage.
I know that when we deactivate standard manager it will alllow the running requests to complete.But what will happen to those requests in
pending&normal(which needs to be run asap) status?
and also why suddenly there was a difference between actual and target process?
Thanks,
RajaSekarPending requests will be processed with the priority given.
In concurrent manager,
Actual Processes: The number of operating system processes that means the processes that are actually running.
Target Processes: The max number of service processes that can be active for this service.
Usually both actual and target are same.
Refer: Concurrent Processing - Concurrent Manager Generic Platform Questions and Answers [ID 105133.1]
Cherrish Vaidiyan -
How to migrate the concurrent manager to another server
Dear all,
My EBS structure is DB+APP. but now, the APP pressure is very high because this server includes another test intsance. I want to migrate the concurrent manager from the APP server to DB server, How I can do this?
My EBS is 11.5.10.2 and the platform is AIX 5.2
ThanksCan I use the following the Note:230672.1 step to add this DB node as the application node:
========================================================
You can use Rapid Clone to clone a node and add it to the existing Application System. The new node will run the same or a subset of the server types running on the source node. Follow the instructions in the Application Tier part of Clone Oracle Applications 11i:
Prepare the source system, copy it to the new node and configure it.
After adcfgclone.pl completes, source the Applications environment and run the following commands on the target system:
cd <COMMON_TOP>/clone/bin
perl adaddnode.pl
=======================================================
Devon -
Shell script called from .sql fie in oracle concurrent manager
Hi
I am running a request set through Oracle concurrent manager.
The manager calls a .sql file. The sql file internally calls a unix shell script.
v_body VARCHAR2(10000);
v_body is set as followed in the sql program.
v_body := 'ATTENTION :' || CHR(10) || CHR(10) ||
'Your invoice number ' || r_error_rec.invoice_num || ' cannot be paid at present due ' ||
'to one of the following reasons:' || CHR(10) || CHR(10) ||
' - The Purchase Order number quoted on the invoice is invalid ' || CHR(10) ||
' - The Purchase Order number has not been quoted at all on the invoice' || CHR(10) ||
' - The Purchase Order number is missing on one or more of the lines on the invoice' ||
CHR(10) || CHR(10) ||
'To avoid any further payment delays, please advise us of the correct Purchase ' ||
'Order number(s) by emailing ' || r_error_rec.sender || '. Please note that it is not ' ||
'necessary to re-submit the invoice.' || CHR(10) || CHR(10) ||
'If you do not know the Purchase Order number, please contact the employee ' ||
'who ordered your goods/services for this number. For future reference please note that ' ||
'it is the responsibility of the vendor to ensure that an approved Purchase Order ' ||
'number is received before supplying goods/services to . The purchase order is ' ||
'evidence that the order has been approved by management.' || CHR(10) || CHR(10) ||
'This invoice will be held as pending until the valid Purchase Order number can be provided.' || CHR(10) || CHR(10) ||
'Thank you,' || CHR(10) || CHR(10) || ' Accounts Payable' || CHR(10);
The sql now calls a unix shell script as shown below.
l_request_id := fnd_request.submit_request (
'CFI', 'CFIECAPEMLSH', NULL, NULL, FALSE, r_error_rec.sender, v_recipient, v_ccrecipient, v_bccrecipient, v_subject, v_body, v_attachment
So here the problem i am facing is that the shell script is not getting called.
If i keep v_body= 'Test' the shell script is called and program is working fine.
Is it a problem with CHR(10) or the size limitation of v_body i dont know.
I tried to keep v_body VARCHAR2(10000).
Still it did not work.
Plz help me if u know about this.You cannot have varchar2 > 4000.
-
BLANKPAGES=NO from Concurrent Manager?
I have a report written in 6i. The report has a main section and a trailer section. Based on a user-provided parameter, I suppress all of the items on one section or the other. The report runs only from Concurrent
Manager, where the output format is "PDF".
Reports 6i always emits a blank page for whichever section was suppressed from printing. This is aesthetically
displeasing and wastes paper when printed.
Literally dozens of posts in the Reports forum are in regards to suppressing blank pages. One regular answer to
this question is to provide the command line parameter BLANKPAGES=NO. How can I provide this command
line argument to reports called from Concurrent Manager?
I originally posted this in the Reports forum, but they suggested posting here instead.
Thanks in advance!Srini:
Your suggestion was exactly what I was looking for!
Hussein:
The note your listed was very illuminating.
Thank you both for your help!
Shemp
Maybe you are looking for
-
Exiting animation to a new web page (using Edge .oam file in MUSE)
Hello, Ok. Here is the situation. I have a webpage that was done in MUSE, on that page there is a mouse click button that starts an Edge animation. When the animation finishes I want an ( automatic) action that displays a new webpage on the same webs
-
How do I avoid synching my family's apps, from a shared account?
My family has a shared account on my windows desktop computer. I was told that I can elect not to automatically synch all the Apps on the desktop with my iPhone when I connect it to the desktop, but I cannot see how.
-
Java XML Parser v2 xpath problem
I have a lot of trouble using the xpath functionality. I want to get the name of different elements. I'm using some xpath expressions which in my opinion should work (see http://www.w3.org/TR/xpath ), but they don't. I'm calling XMLNode.selectSingleN
-
Why doesn't the IMAQ WindTools display properly in exe?
I'm using the IMAQ Wind Tools in LabVIEW and I'm noticing an odd behavior. The IMAQ Wind Tools do not get displayed properly when using an exe (they work fine in the LV environment). In the exe the Wind Tools window is just a title bar that shows u
-
I Need help on how to write a simulation program using Java
I am currently working on my final project and i will be grateful if i can get any help on the needed resources that i will require for my code