How to Call  fnd_submit.submit_program  in a custom Form ?

Hi,
Im creating a custom form based on TEMPLATE.fmb in Oracle EBS R12.
I want to call a concurrent program (called: RVCTP) through trigger WHEN_WINDOW_CLOSED or WHEN_BOTTON_PRESSED whatever..
I'm using this function: fnd_submit.submit_program
How i can call it through the trigger ?
I tried :
declare
con bolean;
begin
con:=fnd_submit.set_request_set('PO','TEST');
con:= fnd_submit.submit_program('PO','RVCTP',NULL,'BATCH',NULL,89);
commit;
end;
Nothing happening!
Please advise!
PS. i used fnd_submit.set_request_set because in Oracle Apps Developer's Guide it says i have to use it before fnd_submit.submit_program.

Thank you,
Check This in (20-30 Oracle Applications Developer's Guide R12 ) :
Example Request Submissions
/* Example 1 */
/* Submit a request from a form and commit*/
:parameter.req_id :=
FND_REQUEST.SUBMIT_REQUEST (
:blockname.appsname,
:blockname.program,
:blockname.description,
:blockname.start_time,
:blockname.sub_req = 'Y',
123, NAME_IN('ORDERS.ORDER_ID'), 'abc',
chr(0), '', '', '', '', '', '',
IF :parameter.req_id = 0 THEN
FND_MESSAGE.RETRIEVE;
FND_MESSAGE.ERROR;
ELSE
IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
IF app_form.quietcommit THEN
/*form commits without asking user to save changes*/
fnd_message.set_name('SQLGL',
'GL_REQUEST_SUBMITTED');
fnd_message.set_TOKEN('REQUEST_ID',
TO_CHAR(:PARAMETER.REQ_ID), FALSE);
fnd_message.show;
ELSE
fnd_message.set_name('FND',
'CONC-REQUEST SUBMISSION FAILED');
fnd_message.error;
END IF;
ELSE
DO_KEY('COMMIT_FORM');
IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
/*commit was successful*/
fnd_message.set_name('SQLGL',
'GL_REQUEST_SUBMITTED');
fnd_message.set_TOKEN('REQUEST_ID',
TO_CHAR(:PARAMETER.REQ_ID), FALSE);
fnd_message.show;
END IF;
END IF;
END IF;
I'm still getting an error "Wrong Number of types or arguments in call to 'SUBMIT_REQUEST' "

Similar Messages

  • How to Call a jasper report from Oracle Forms 6i.

    Hi
    Can anybody tel me how to Call a jasper report from ORacle Forms 6i.
    Thanks & Regards
    Bango

    Forms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like:
    v_url := '<your url to the report>';
    host ('cmd /c start '||v_url);If it's web Forms 6i it even easier. Just use web.show_document(<url>).

  • How to use Key Flex Fields in Custom Form

    Dear Members,
    I have developed a custom form.
    In my form there is a search criteria for location.
    When ever user wants to query based on the location ,I want to display Asset Location Key Flexfield so that user can choose the respective segements and search the assets.
    Can any one please tell me what is the procedure to be followed to display Key Flex Fields in the custom forms?
    Your inputs will be of great help to me.
    Thanks in advance.
    Best Regards,
    Arun Reddy.

    Hi,
    Please see the note:730068.1 - How To Invoke a DFF from a custom form
    Thanks,
    Ajikumar G

  • How to attach PLD layout for my custom form.

    How to attach PLD layout for my custom form.
    Or
    How to enable print functinality for my custorm form - purchase indent etc
    Is the only option is Query print layout or any other option?

    Hi,
    Unfortunately, you cannot create your own PLD layouts for your addons. Instead, most developers opt for a third party report writer such as Crystal Reports or SQL Reporting Services to provide reports.
    If you search this forum you'll find a lot of useful information on how to integrate Crystal with your addon.
    Kind Regards,
    Owen

  • How to call dicoverer through menu option in forms

    Hi,
    Need help.........Can anybody tell me .....how to call dicoverer through menu option in forms.
    Thanx
    Sunil

    Hi,
    You can define a Form Function filling the basic information and
    HTML call Set as OracleOasis.RunDiscoverer. You can even define Paramters during the form function registration. With this definition you will able to create a link to a Discoverer workbook that will automatically open Discoverer Plus or Viewer to display the workbook using Apps security.
    Please refer to the following Metalink Note for more details:
    278095.1- How to Create a Link to a Discoverer Workbook in Apps11i
    Hope This helps
    - Sanjeev

  • How to view concurrent program LOG from custom FORMs

    Hi,
    How to view concurrent program LOG from custom FORMs?
    Thanks
    ESL

    Hi Thanks for your response....
    lets assume there are 2 buttons, first button to submit concurrent program and second button to view concurrent program output/log.
    Actually im able to submit concurrent program from oracle custom form(6i) in ebusiness(11.5.0.2) i.e first button (WHEN-BUTTON_PRESSED buitin).
    Rather user navigating to VIEW-> REQUEST, i would like to give option to user to view concurrent program output/log when user clicks on second button (WHEN-BUTTON_PRESSED buitin)
    How can i achive this?
    Thanks,
    ESL

  • How to enable attachment icon to a custom form

    Hello all,
    I am developing one custom form in 6i version.. can any one help me how to enable attachment icon to a custom form..
    Thanks in advance.

    What exactly are your trying to do when you say "enable attachment icon"? Also, since you mention "Custom Form" I assume you are developing in the Oracle Enterpise Business Suite (EBS). Whatever you are attempting, there may already be an "Apps Approved" method for doing this. I suggest you review the Applications Documentation specifically the Oracle E-Business Suite Developer's Guide and Oracle E-Business Suite User Interface Standards for Forms-Based Products guides. Also, you might want to post your question in the General EBS Discussion Forum.
    Craig...

  • How to call external js file to custom master page

    Hi all,
    I have created custom master page and i need to call external .js to master page. i tried every aspect of including this in master page. but this js is not running. 
    <script src="test.js" type="text/javascript"></script>
    i have put the above calling js script to head tag. 
    And, When i am running the site, the js file is not loading. 
    How to load this js file to custom master page. 
    Thanks,
    Rakesh

    I have placed js file in same folder of custom master page. 
    This is quite annoying and i am struggling to call it. 
    js file is in same master page folder still i am calling it through whole URL as
    <script type="text/javascript" language="javascript" src="http://SharePoint/sites/SiteName/_catalogs/masterpage/Master%20Page%20Template/test.js"></script>
    Still it is not working.
    Now i am not sure what is wrong here. 
    Please help..
    Thanks in adv !!
    Rakesh

  • How to call a jar file from oracle forms (6i)

    Hi,
    I'm working with oracle 6i. I want to know that how to call a .jar file from forms menu. when I use HOST('<path>\test.jar') it is working in 'Client Server' any way. but the problem is I use application server in order to run my form. so my form is in the server and I run the form via clients web browser. in that case above solution will not work. if any body knows how to overcome this problem please reply.
    thanks.
    duminda

    I created a bean area and set the class name as implementation class. within that java bean class I called to a bat file which consists of the execution command of the jar file ( because i don't know how to call .jar file from my bean class directly).
    then i tried to run it in application server. its still not running.
    can you tell me what i have to do within my bean class? or can you suggest any solution?
    thank you.

  • How to set org in a Oracle custom form

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    YOu should ask your question in an ebusiness-suite related forum.

  • How to attach Item LOV to new Customized form.

    Is it possible to attach Item Lov to new customized form in EBS12.04.
    For example
    I have created new form and i want to attach LOV of Item like in Requisition Form a LOV attached with Item Text Box.

    Thanks avajain for reply,
    I can create new lov and attach it with item. But i want to call same API or LOV which is called from Purchasing-->requisition-->Item . Where from you select Item Class, Sub Class, serial.
    Regards,
    Fassi

  • How to set record history for a customized form?

    i have created a customized form and register it onto apps. everything is working fine expect for the Record History part. while going to Help -> Record History for my customized form it showing error message -
    Recird History is not availbale here.
    Please suggest if i have to write a specific trigger for setting the record history. also please provide the sample code for the same.
    Thanks,
    Sam

    Sam,
    Please see if these threads help.
    How to enable record history for custom forms
    How to enable record history for custom forms
    RECORD HISTORY (or) WHO COLUMNS in R12???
    RECORD HISTORY (or) WHO COLUMNS in R12???
    Regards,
    Hussein

  • How to call OA Framework Page from Oracle Forms?

    Hi,
    I have read the OA Guide on "Forms / OA Framework Page Integration" which guide on how to launch OA framework pages from Oracel Applications Forms.
    I would like to perform the same whereby to call the OAF page from Oracle Form itself. However I do not quite understand on the below section:
    To make use of the Oracle Application API - fnd_function.execute.
    Where should I use this function? Should I create a button triggered to link to OA Page?
    Appreciate advise on this.
    Thanks and Regards,
    Shiau Chin

    Hi Ashok,
    You can refer the topic Forms / OA Framework Page Integration in Developers Guide.
    There you can find details about the below :
    Launching Oracle Applications Forms from OA Framework Pages
    Launching OA Framework Pages from Oracle Applications Forms
    Thanks
    Jegan

  • How to Avoid Duplicate Employee Number in Custom Form

    Developing A new employee screen, where all the Personal, Assignment, Visa, Passort & Tickets are capture and send for approval. Once it is done. Scheduled Concurrent Program will pick the APPROVED records and create the Employee & Assignment in the HRMS.
    In custom form the employee Number is Last Employee Number in HRMS and Get the Last Employee Number in Custom table (always Custom table employee is higher) and increment by 1 whichever is higher.
    This code written on ON-INSERT trigger.
    SELECT     MAX (TO_NUMBER(employee_number)) + 1 INTO v_max_empno
    FROM     per_all_people_f
    WHERE     employee_number != 99999
    AND     REPLACE ( TRANSLATE (employee_number, '1234567890', '~~~~~~~~~~'),'~', NULL) IS NULL
    AND     business_group_id = :parameter.bg_id ;
    SELECT     MAX (TO_NUMBER(employee_num)) + 1 INTO v_max_empno2
    FROM     xx_employee_details
    WHERE     business_group_id = :parameter.bg_id ;
    IF v_max_empno2 IS NOT NULL THEN
         v_emp_number := v_max_empno2 ;
    ELSE
         v_emp_number := v_max_empno ;
    END IF ;
    :xxempdet.employee_num := v_emp_number ;
    Issue.
    The above is working fine only when data entered from single machine. When multple users are access this form we are getting Duplicate Employee Numbers.
    I need to impliment the process which is Sales Order Number generation without GAPLESS.
    Regards/Prasanth

    Make use of Sequence and use sequence.nextval for fetching the next value to ensure unique values.
    Thanks
    Shree

  • How to send workflow notification from a custom form in R11i

    Hi Gurus,
    We have a custom module to evaluate vendors, which has 2 custom forms viz Evaluate form and Approve form, user will evaluate the vendor and submits the same for approval, and when submitted for approval(Submit button) a mail is being sent to the employees supervisor using UTL_MAIL.SEND informing him to approve.
    And now client wants to send workflow notification upon submitting for approval. As Iam very much new to workflow I need your valuable guidance and suggestions.
    Thanks
    Sandeep

    Hi Sandeep
    Take some time and check the Oracle Workflow tutorial available at Anil Passi website. The URL is as follows
    http://oracle.anilpassi.com/oracle-workflows-training.html
    Hope this will help.
    Regards
    Ali

Maybe you are looking for