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,
RKO
Hi 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
Similar Messages
-
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 -
How to Submit a Concurrent program from OAF page Button?
Hi,
I have tried this but its not submitting the request
String shipId = pageContext.getParameter("shipId");
OADBTransaction tr = am.getOADBTransaction();
Connection conn = tr.getJdbcConnection();
OracleCallableStatement ocs = null;
String stmt = new String("");
if(pageContext.getParameter("SubmitRequest") != null) {
try {
stmt = "begin fnd_request.submit_request( application => 'XX',
program => 'SHIPG_MATRL_PKP',
description => NULL,
start_time => sysdate,
argument1 => :1 ); end;";
ocs = (OracleCallableStatement)conn.prepareCall(stmt);
ocs.setString(1,shipId);
ocs.execute();
catch(SQLException se)
throw OAException.wrapperException(se);
What is the mistake in the syntax.
Can anyone provide the syntax for this?
KrishnaHi Anil,
I got the same requirment. The requirement was we need to create a Print PO button on the OAF page and when we click the button, we need to display the PO in pdf format by calling a concurrent program(XML) based on the PO type.
My approach was below.
1. Create the button using Personilization.
2. Extend the controller class and add the code to call the concurent request.
Can you please guide me how to create the button using personilization. When I created the button, this was shown on the OAF page. But I don't get the hand symbol on that button to click that button.
Also please give me the approach of extending the controller and AM.
Thanks for your help -
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.
-
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 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 -
Selected Lov Value as Parameter to Concurrent Program in oaf
Hi,
iam new to OAF ,Can any one please help me how to pass selected lov value as a parameter to the Concurrent program in oaf.
i created one lov in oaf page after selecting value in lov i want that value to be passed as parameter to concurrent program.
Please help me how to implemet code so that Lov will pass as parameter to the concurent program in Controller.Check these links. You need to get the value from the LOV to a variable, add it to the vector and pass to the conc program. Below link provides the details on concurrent program submission.
http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html
For fetching LOV values, check the Dev Guide
Thanks
Shree -
How to call a concurrent program from a Custom JSP page.
Hi,
I have a custom JSP page which i have deployed by creating a form function with the path of the JSP Page
and added the JSP Page to the OA_HTML top.
Now, i need to call a concurrent program from the JSP Page, i have all the parameters in my page and i am using the standard class as below:
ConcurrentRequest cr= new ConcurrentRequest(con);
int requestId= cr.submitRequest("XXINV",programName,null,null,false,vec);
I have verified my connection object and it is OK but i am getting the exception that user is not set to run the program.
I tried the below code in my JSP page and getting -1 for all test variables :-
int userId = wctx.getUserId();
int respApplId = wctx.getRespApplId();
int respId = wctx.getRespId();
I think i need to set the context in JSP page to run the program..
Pls help ....
Regards
Saurabh JaiswalHi,
Thanks for the reply,,,
This is a possible solution but this will allow to run the program anyhow.
But the procedure which i call thru callable statement will start with
fnd_global.apps_initialize (3825, 50603, 704);
fnd_request.submit_request API call.
Now, the values of user and Responsibilty is required in the program and it changes.
With this approach we have to hardcode the user and resp.
The same JSP page is attached to other responsibilities and there the concurrent program would get fired as if fired from the resp Id hardcoded as above.
Need to capture user Id and RespId.
How can i set the apps Context in JSP page???
Regards
Saurabh Jaiswal -
ADF: Calling concurrent program in Oracle Apps from ADF
Hi All,
I am using Jdev 11G...
I have a requirement to call a concurrent program which is in Oracle E-Business from ADF page.
i will have ADF page with one button, On click of that ADF button we need to call the concurrent program and show the output generated by the concurrent program from ADF.
Plz help me to get out of this.
Any answers will be really useful.
Thanks.Hi Frank,
Thanks for ur quick response.
That is a Report and the output of the report is generated by running concurrent program.
The output of the report is in pdf format.
So we need to call the report from ADF and show the pdf output.
Thanks..... -
OAF: Creating PDF output without calling concurrent program.
Hi Everyone,
i want to Create PDF output in OAF.
I wil be having one button “Convert PDF” on my OAF page. On clicking on that button my page should generate pdf output without calling concurrent program(Because running a concurrent program may take much time sometimes.).
How can I do that?
I have never generated pdf outputs so plz help me to get out of this.
What are the possible ways to get this?
Any example?
Any suggestions wil be really useful.
Thanks.....Hi ,
Please refer to -
http://apps2fusion.com/at/85-daxesh/515-oa-framework-xml-publisher-integration
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
Regards,
Ashish -
Problem in calling order import concurrent program from BPEL
Hi all,
Iam doing a sales order creation in oracle apps using Apps Adapter.
I have successfully inserted the order into the interface tables using an Apps adapter.
Now I need to run Order Import program from BPEL to move the data from interface tables to the base tables for which i use another Apps Adapter.
When I invoke the OEIMP concurrent program from BPEL ,request id is returned.But the concurrent program fails showing incomplete parameters.
But it works when I invoke it from the front end in oracle apps.
I think the problem lies in passing the inputs to the concurrent program from the BPEL.
Any help to solve the issue will be appreciated.
Thanks,
goutamPreviously, I was passing the values to the concurrent program variables through ASSIGN component,which resulted in some namespace issues.Then I replaced it with TRANSFORM component.
Also,First I assigned the values to the concurrent program variables as 'Vision Operations'(operating_unit), 'Online'(order_source) ,No (validate_only), No (validate_desc_flex) which are mandatory and just left non mandatory variables without assigning values.
I changed those values as *'204','0','N','N'*. And also set non mandatory variables value as EMPTY.
After doing all these I found the concurrent program catches all the parameter values correctly, and the records got imported from interface tables to the base tables.Thus the sales order got created successfully.
Thanks,
goutam -
Out put file is not genrated when calling xml reports from OAF page
Dear all
i am calling xml reports from OAF page
the out put file is not generated
i am writing this code
public int tradingrequest(String quoid, String costoder,int orgid)
try
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName =
"XXCRM"; //Application that contains the concurrent program
String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
String cpDesc =
"Trading Costsheet Report XXCRM"; // concurrent Program description
Number orgid1=new Number(orgid);
// Pass the Arguments using vector
Vector cpArgs = new Vector();
cpArgs.addElement(quoid);
cpArgs.addElement(costoder);
cpArgs.addElement(orgid1.toString());
// Calling the Concurrent Program
int requestId =
cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
System.out.println("Request ID is " + requestId);
return requestId;
} catch (RequestSubmissionException e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
in controller i am writing this code
OAMessageStyledTextBean y =
(OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
OAFormValueBean z =
(OAFormValueBean)webBean.findChildRecursive("costorder");
String quoid = y.getValue(pageContext).toString();
String costorder = z.getValue(pageContext).toString();
System.out.println("The quotation id and costing order are....." + quoid +
" " + costorder);
/*if click on run report button to run the report*/
if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
if (tsflag.equals("Y"))
int requestid = am.servicerequest(quoid, costorder, orgid);
String url =
"OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
requestid;
pageContext.setForwardURL(url, null,
OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
when i call the report from oaf page the request id is coming
when i click on view output i am getting this message
Error
The concurrent request 7335031 did not create an output file.
WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
Regards
Sreekanthjava.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
MY CO code
if("GenerateReport".equals(event))
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
// Hashtable hashtable = new Hashtable(1);
// hashtable.put("TruckBookingRefNum",trucknum);
// System.out.println("test"+trucknum);
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/HTML");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
//Generate the PDF Report.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"LFCUST",
"XXLFCARSUM_TARGET",
"English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
"US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_HTML,
null,
pdfFile);
// hashtable);
System.out.println(" TemplateHelper");
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
System.out.println(" byte"+b);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
pdfFile.flush();
pdfFile.close();
catch(Exception e)
System.out.println(" inside catch");
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(true);
Edited by: user9367919 on May 13, 2010 10:31 AM -
FNDLOAD: How to remove a concurrent program from a request group
Hi,
I want to remove a concurrent program from a request group using FNDLOAD utility. Since impacted environment is Production (controlled environment) I do not want to remove concurrent program manually from the request group. Is there a way to use FNDLOAD utility for this purpose or some other means?
Environment: Oracle EBS R12.1.1
OS: Linux
Thanks,
NitinHi,
Unfortunately this CP cannot be disabled as it has to be removed from certain RGs but not all. Also removing it through RG forms is always an option but production gatekeepers won't allow to do that. I would have done that in a min.
If FNDLOAD is not an option then I guess only other option is pl/sql script.
Best regards,
Nitin -
How to submit a concurrent program from a custom form.
I'm use Forms [32 Bit] Version 6.0.8.26.0 (Production) and Oracle Applications : 11.5.10.2.
I need execute a concurrent program from a custom form.
In the custom form I have a button and when that button is clicked I want to submit this cocurrent program. I am using the below code.
fnd_profile.get('USER_ID', v_user_id);
fnd_profile.get('RESP_ID', v_resp_id);
fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id);
vn_request_id := apps.fnd_request.submit_request (
'XBOL',
'CSUV_GL_STATEMENT_EXPORT'
,NULL
,NULL
,FALSE
commit;
But the concurrent program finished in 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 'MAIN'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The SQL statement being execute"
The executable of the concurrent program is the next:
PACKAGE CSUV_GL_STATEMENT_EXPORT_PK
IS
PROCEDURE Main (
pouc_errbuf OUT VARCHAR2,
poun_retcode OUT NUMBER,
pinc_OWNER in varchar2,
pinc_VESSEL in varchar2,
pind_GL_DATE in varchar2,
pinc_STATE_NUM in varchar2,
pind_STATE_DATE in varchar2,
pinc_EXCEL_LAYOUT in varchar2
END CSUV_GL_STATEMENT_EXPORT_PK;
And de value set of the all my concurrent program parameters is "240 Characters".
I dont't understand why the concurrent program finished wrong.Hi,
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'MAIN'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredPlease refer to "Oracle Applications Developer's Guide" manual for the correct syntax and the number of arguments you need to pass to this API.
Oracle Applications Developer's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf
Thanks,
Hussein -
How to terminate all Concurrent Programs from back end
Hi,
Can any one tell me how to terminate all Running Concurrent Programs from back endpost this in the EB forum;
also, investigate the built-in package fnd_concuurent
begin
for r in (select Request_ID from fnd_Concurrent_Requests
where Phase_Code != 'C') loop -- exclude requests that have successfully completed (R = Running P = Pending)
fnd_concurrent.cancel_request(r.Request_ID);
commit; -- you must perform a commit after each call
end loop;
end;
/
Maybe you are looking for
-
ArchiveLink attach note to document.
Hello Experts- I am trying to attach a component of the type 'note' to an ArchiveLink document. I have an image of the document class 'TIF' stored on a repository configured with HTTP CS 4.5 protocol. I need to be be to insert a new note to this Arch
-
I have a problem.When I executing main process flow,after restarting database, the first,second and third are finishing sucessfull.But when I'm executing this process flow fourth time it shows the error: RPE-01003: An infrastructure condition prevent
-
Certificate Error when using pub services with IE7
everytime i try to use pub services admin console i get the following warning im using IE7 any idea how to stop this nag ? : There is a problem with this website's security certificate. The security certificate presented by this website was not issue
-
Webcam problem with flash player
Hi, I am using flash v10.3.181.26 on a win7 machine with IE9, and trying to make it work with a virtual webcam (a directshow filter in the video capture category). I notice that the available formats are enumerated (I420 352x288 , RGB32 352x288 ) by
-
Tiger on a Mac Pro???
Would Tiger run faster on a Dual 2.0GHz *Mac Pro 1,1* or a dual 2.3GHz PowerMac G5?