Submit the Concurrent Program from Backend:-
-------------------------------------------------------
The following is the Sample Code to Submit the Concurrent Program from the backend.
Note:- This is the Concurrent Program, not the Request Set. To Submit the Request Set from the backend, We have different API.
I have already document, for submitting the request set from the backend in the Following URL.
http://alloracletech.blogspot.com/2008/07/registering-from-backend.html
DECLARE
l_success NUMBER;
BEGIN
BEGIN
fnd_global.apps_initialize( user_id => 2572694, resp_id => 50407, resp_appl_id => 20003);
-- If you are directly running from the database using the TOAD, SQL-NAVIGATOR or --SQL*PLUS etc. Then you need to Initialize the Apps. In this case use the above API to --Initialize the APPS. If you are using same code in some procedure and running directly
--from application then you don't need to initalize.
--Then you can comment the above API.
l_success :=
fnd_request.submit_request
('XXAPP', -- Application Short name of the Concurrent Program.
'XXPRO_RPT', -- Program Short Name.
'Program For testing the backend Report', -- Description of the Program.
SYSDATE, -- Submitted date. Always give the SYSDATE.
FALSE, -- Always give the FLASE.
'1234' -- Passing the Value to the First Parameter of the report.
);
COMMIT;
-- Note:- In the above request Run, I have created the Report, which has one parameter.
IF l_success = 0
THEN
-- fnd_file.put_line (fnd_file.LOG, 'Request submission For this store FAILED' );
DBMS_OUTPUT.PUT_LINE( 'Request submission For this store FAILED' );
ELSE
-- fnd_file.put_line (fnd_file.LOG, 'Request submission for this store SUCCESSFUL');
DBMS_OUTPUT.PUT_LINE( 'Request submission For this store SUCCESSFUL' );
END IF;
--Note:- If you are running directly from database, use DBMS API to display. If you are
-- Running directly from Application, then Use the fnd_file API to write the message
-- in the log file.
END;
I hope the above information is helping you. For any Suggestion or issues with the above, please leave your comments. I will try to reply back as soon as possible.
Subscribe to:
Post Comments (Atom)
12 comments:
hi phani i read the answer for how to schedule the concurrent request from back end
posted on monday oct 20th 2008 at 11:24am
it is very good but i have one doubt how to submit the concurrent program after some time (say after 30 sec or after 10 mini) like that
can you please answer for my doubt it is very imp requirment please....
HOW TO SUBMIT CONCURRENT FROM BACKEND AFTER SOME TIME SAY AFTER 10 MIN OR AFTER 29 SEC LIKE THAT
Hi,
There is some API to do this. I will check it out and get back to you. But, if you are requirment is to wait for the Other Concurrent program to finish and then run second one. Then you can check the following API.
fnd_concurrent.wait_for_request
Regards,
Phani
Hi,
You can check this option.
DBMS_LOCK.sleep(5);
here, 5 indicates 5 seconds.
hi phani
is their any way to cancel the order after shipment . My client want to cancel the shipment if by mistake wrong item is dispatched ..
Hi all ,
my name is Tilak
this is very help to me ,
i have a query...
i want to submit the two concerent programs in backend ,for example
x,y are two programs
i am running x-concerent program useing that output file we run the second y-concerent program in backend only..
please if u know give me the solution..
You have API to wait for request. Use the following API.
b_result :=
fnd_concurrent.wait_for_request (n_request,
30,
600,
v_phase,
v_status,
v_dev_phase,
v_dev_status,
v_error_mesg
);
Hi Rajiv,
As per the seeded it would not be possible. Check the Processing constraint setup there might be way to do it.
Thanks and regards,
Phani
Hi sir thanks for reply..
sir i have one issue.
i want to submit the concurrent program through backend with also same time i want give the command to printer that will print report.
i'm using fnd_requst.submit_request
program is executing successfully but how to print the report that is main issues..
if possible please reply soon..
Hi Rajiv,
I am sorry, I didn't get alert email for your comment. Yes, there is option to set the printer for your concurrent program. Usually, we have some profile created to carry name of the printer instead of Hardcode in the program.
Example:
Following code would come just before your submit program API called.
declare some boolean variable. Say.
v_set_print BOOLEAN;
v_set_print := FND_REQUEST.SET_PRINT_OPTIONS(FND_PROFILE.VALUE('Printer'),'','',TRUE,'');
/* Include this if you want to display message. else not required.
*/
IF v_set_print = FALSE THEN
FND_MESSAGE.RETRIEVE;
FND_MESSAGE.ERROR;
MESSAGE('ERROR: Set Print Options did not submit successfully.');
PAUSE;
END IF;
Hi ,
while Submit the concurernt request ,is it possible to schedule the time period also from back end ?
Please advice
Hi Phani,
i am new in oracle APPS it's very useful to me. i am able to concurrent program through the back end but after completing process its showing as "Teminated".. Why... Can you please clarify my doubts.. i will appricate..
Post a Comment