Implementation restriction 'apps.fnd_api.g_false' call from custom form

Hi guys
the following PL/SQL bit executes successfully from a toad session. db user "apps"
SET SERVEROUTPUT ON;
DECLARE
v_api_return_status  VARCHAR2 (1);
v_qty_oh             NUMBER;
v_qty_res_oh         NUMBER;
v_qty_res            NUMBER;
v_qty_sug            NUMBER;
v_qty_att            NUMBER;
v_qty_atr            NUMBER;
v_msg_count          NUMBER;
v_msg_data           VARCHAR2(1000);
v_inventory_item_id  VARCHAR2(250) := '24445';
v_organization_id    VARCHAR2(10)  := '110';
BEGIN
inv_quantity_tree_grp.clear_quantity_cache;
DBMS_OUTPUT.put_line ('Transaction Mode');
DBMS_OUTPUT.put_line ('Onhand For the Item :'|| v_inventory_item_id );
DBMS_OUTPUT.put_line ('Organization        :'|| v_organization_id);
apps.INV_QUANTITY_TREE_PUB.QUERY_QUANTITIES
(p_api_version_number  => 1.0,
p_init_msg_lst        => apps.fnd_api.g_false,
x_return_status       => v_api_return_status,
x_msg_count           => v_msg_count,
x_msg_data            => v_msg_data,
p_organization_id     => v_organization_id,
p_inventory_item_id   => v_inventory_item_id,
p_tree_mode           => apps.inv_quantity_tree_pub.g_transaction_mode,
p_onhand_source       => 3,
p_is_revision_control => FALSE,
p_is_lot_control      => FALSE,
p_is_serial_control   => FALSE,
p_revision            => NULL,
p_lot_number          => NULL,
p_subinventory_code   => 'KSP-02', --NULL,
p_locator_id          => NULL,
x_qoh                 => v_qty_oh,
x_rqoh                => v_qty_res_oh,
x_qr                  => v_qty_res,
x_qs                  => v_qty_sug,
x_att                 => v_qty_att,
x_atr                 => v_qty_atr);
DBMS_OUTPUT.put_line ('on hand Quantity                :'|| v_qty_oh);
DBMS_OUTPUT.put_line ('Reservable quantity on hand     :'|| v_qty_res_oh);
DBMS_OUTPUT.put_line ('Quantity reserved               :'|| v_qty_res);
DBMS_OUTPUT.put_line ('Quantity suggested              :'|| v_qty_sug);
DBMS_OUTPUT.put_line ('Quantity Available To Transact  :'|| v_qty_att);
DBMS_OUTPUT.put_line ('Quantity Available To Reserve   :'|| v_qty_atr);
END;However, while called from a custom form, we receive the following error starting with 'apps.fnd_api.g_false' cannot directly access remote package variable or cursor.
Does it mean, if we need to call the API through a custom form we should initiate any POLICY CONTEXT(s)? if we change the same like below code, the API call compiles successfully and we are able to display the results over the custom form objects.
DECLARE
v_api_return_status  VARCHAR2 (1);
v_qty_oh             NUMBER;
v_qty_res_oh         NUMBER;
v_qty_res            NUMBER;
v_qty_sug            NUMBER;
v_qty_att            NUMBER;
v_qty_atr            NUMBER;
v_msg_count          NUMBER;
v_msg_data           VARCHAR2(1000);
v_inventory_item_id  VARCHAR2(250) := :QTY_HEADER.ITEM_ID;
v_organization_id    VARCHAR2(10)  := '110';
BEGIN
inv_quantity_tree_grp.clear_quantity_cache;
apps.INV_QUANTITY_TREE_PUB.QUERY_QUANTITIES
(p_api_version_number  => 1.0,
--p_init_msg_lst        => apps.fnd_api.g_false,
p_init_msg_lst        => 'F', --Value manually assigned
x_return_status       => v_api_return_status,
x_msg_count           => v_msg_count,
x_msg_data            => v_msg_data,
p_organization_id     => v_organization_id,
p_inventory_item_id   => v_inventory_item_id,
--p_tree_mode           => apps.inv_quantity_tree_pub.g_transaction_mode,
p_tree_mode           => 2, -- value manually assigned
p_onhand_source       => 3,
p_is_revision_control => FALSE,
p_is_lot_control      => FALSE,
p_is_serial_control   => FALSE,
p_revision            => NULL,
p_lot_number          => NULL,
p_subinventory_code   => 'KSP-02', --NULL,
p_locator_id          => NULL,
x_qoh                 => v_qty_oh,
x_rqoh                => v_qty_res_oh,
x_qr                  => v_qty_res,
x_qs                  => v_qty_sug,
x_att                 => v_qty_att,
x_atr                 => v_qty_atr);
:QTY_HEADER.ONHAND_QTY := v_qty_oh;
:QTY_HEADER.RES_QTY := v_qty_res;
END;Please input your valued suggestions.
regards,

Done, by creating a database stored procedure and returning values. Example procedure as following:
CREATE OR REPLACE PROCEDURE xx_retrive_quantity (item_id       NUMBER,
                                                 org_id        NUMBER,
                                                 subinv        VARCHAR2,
                                                 oqtt      OUT NUMBER,
                                                 oqtr      OUT NUMBER)
IS
   v_api_return_status   VARCHAR2 (1);
   v_qty_oh              NUMBER;
   v_qty_res_oh          NUMBER;
   v_qty_res             NUMBER;
   v_qty_sug             NUMBER;
   v_qty_att             NUMBER;
   v_qty_atr             NUMBER;
   v_msg_count           NUMBER;
   v_msg_data            VARCHAR2 (1000);
   v_inventory_item_id   VARCHAR2 (250) := item_id;
   v_organization_id     VARCHAR2 (10) := org_id;
   v_subinventory_code   VARCHAR2 (20) := subinv;
BEGIN
   inv_quantity_tree_grp.clear_quantity_cache;
   apps.INV_QUANTITY_TREE_PUB.QUERY_QUANTITIES (
      p_api_version_number    => 1.0,
      p_init_msg_lst          => apps.fnd_api.g_false,
      x_return_status         => v_api_return_status,
      x_msg_count             => v_msg_count,
      x_msg_data              => v_msg_data,
      p_organization_id       => v_organization_id,
      p_inventory_item_id     => v_inventory_item_id,
      p_tree_mode             => apps.inv_quantity_tree_pub.g_transaction_mode,
      p_onhand_source         => 3,
      p_is_revision_control   => FALSE,
      p_is_lot_control        => FALSE,
      p_is_serial_control     => FALSE,
      p_revision              => NULL,
      p_lot_number            => NULL,
      p_subinventory_code     => v_subinventory_code,
      p_locator_id            => NULL,
      x_qoh                   => v_qty_oh,
      x_rqoh                  => v_qty_res_oh,
      x_qr                    => v_qty_res,
      x_qs                    => v_qty_sug,
      x_att                   => v_qty_att,
      x_atr                   => v_qty_atr
   oqtt := v_qty_att;
   oqtr := v_qty_atr;
END xx_retrive_quantity;This stored procedure could be called from a custom form or report by passing values. Hope this is useful for few others out there. A complete writeup is available over here
http://windows7bugs.wordpress.com/2011/04/17/oracle-ebs-r12-how-to-call-standard-apipackages-from-custom-form-or-reports/

Similar Messages

  • How to call a custom form on click of a button?

    We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
    some sample code will help. Thanks in Advance,
    Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053

    Hi,
    I think you are working with Oracle EBS.
    I don't think so that we can able to call the custom form on clicking button.
    We can call the form from the standard form using both custom.pll and form personalization
    In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
    So please check further, and let me know if any i can help you any.
    Regards
    Sri     .

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • Calling From Oracle Forms 11g patch set 2(11.1.1.3.0) to  Oracle Reports 1

    Hi
    While calling From Oracle Forms 11g patch set 2(11.1.1.3.0) to Oracle Reports 11g patch set 2(11.1.1.3.0) I found unable to run report error
    But its finely working in 10g. The Place of error is in find_report_object
    Is any solution to resolve this problem like any registry setting or patches to solve this problem
    Please guide me
    Regards
    Murali N S

    I was able to download it from this link:
    [http://download-llnw.oracle.com/otn/java/jdeveloper/11.1.1.3.0/jdevstudio11113install.exe]
    on the general 11g Fusion download page at:
    [http://www.oracle.com/technology/software/products/middleware/index.html]
    Although the site does appear to be having problems. I got intermittent errors of the page/server not being available.

  • Making Web Service calls from a Form in the WorkSpace

    I am getting conflicting information about this, so I hope someone here could clarify it. TIA.
    This is what I want to do:
    after a form is displayed/launched in the WorkSpace,
    when the user Tabs out of a field (Exit event) on the form,
    I want to make a Web Service call from the form,
    get the result from the WebService,
    and use the Result to populate another field on the form.
    I know for certain that this works if I Reader-Extend the form,
    and I set the JavaScript at the Exit event (to execute WebService call)
    as "Run At Client".
    The question is:
    can I make the WebService calls without Reader-Extending the form???
    I have been told that, yes you can,
    but *only if* you let the JavaScript "Run At Server".
    I tried that, but it caused the Reader to crash.
    Some other people told me,
    no you can not,
    even if you "Run At Server", the form still needs to be Reader-Extended,
    when using it in the WorkSpace environment.
    So, what is the truth? can someon tell me?
    Can I make WebServers calls from the Server-side at all?
    Do I really need to Reader-Extend the form even if calling it from server side?
    What exactly is it SUPPOSED to work?
    thanks

    yes, thank you both. I got the fix from Adobe Tech Support last week. It's working.
    The fix I got included a rather complex looking "Submit Service" though. Makes me wonder how a regular user would know that he needs to write such a Submit Service?? and even if he knows that he needs a special Submit Service, would he know how to write it??? I found no documentation for this type of things either.
    Shouldn't this solution be published somewhere in Adobe's website? Dev Lab perhaps?

  • Personalize Form to call anothet custom Form

    Hi,
    In the Invoice form(APXINWKB), when I select the matching method as Purchase Order and click Match, it opens the matching form(APXPMTCH) and I enter the PO number and click Find, it should open the customized form. I customized the form APXPMTCH. Can I call the custom form using personalization. Can anyone give me the steps for this.
    Thanks,
    HC

    You can user personalization to call another form. However, that approach involves using the tools menu.
    It seems you would like to change the form that is opened when you try to match.
    In that case, try the following.
    Go to the FORM screen in Application Developer responsibility and create a new record for the new form you have developed.
    And then go to the FUNCTION screen and change the form that is attached to the "AP_APXPMTCH" function.
    This way, when the invoice workbench calls the PO matching form, it should open your custom form.
    It might help if you look at Oracle Application Developer's guide. http://download.oracle.com/docs/cd/A91568_01/acrobat/115devg.pdf
    Hope this helps,
    Sandeep Gandhi

  • 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 call a custom form with parameter throgh apps personalization?

    Hi All,
    I have developed a custom form in 10g and register it to apps r12. I am calling this form through personalization by lauch a function associated with form.
    Issue is this, I want to pass a parameter to this form from apps eg. Receipt_num.
    I want to get Receipt_Num value from apps form and pass it to custom form.
    Pleas help me how can I do thi?
    Thanks
    Farooq

    Hi,
    So We have a standard form for example (purchase order form) and ur custom form is called by using the menu created by form personalization. So When you open the purchase order form and query for one purchase order number for example 2000, so this purchase order number need to be passed to your custom form field(purchase order number)
    Correct.
    Please follow this link,i have done the same thing and its working fine.
    http://erpschools.com/articles/forms-personalization-tutorial
    Thanks & Regards
    Srikkanth.M    

  • Calling seeded oracle form from custom form

    Hi All,
    I wan't to call oracle seeded form for Item Entry(INVIDITM) from a custom oracle form in Inventory module. When I call the form using FND_FUNCTION.EXECUTE and pass item_id as one of the paarmeters, the seeded form open but with very limited capability to changes. Most of the field are disabled or non updateable.
    I wan't to know if its possible to open the seeded form in full change mode??
    Thanks in advance

    Hello,
    You can open a form by typing an url in the browser.
    e.g. http://machine:port/forms90/f90servlet?config=...
    So, it is easy to place the call in your jsp (window.open)
    Francois

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • Help.... trying to set the browser title for reports called from 9i form

    hello all
    I am attempting to call a 9i report from an oracle 9i form .I am using the following code
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY
    SET_REPORT_OBJECT_PROPERTY (repid,REPORT_type,CACHE);
    SET_REPORT_OBJECT_PROPERTY (repid,REPORT_DESFORMAT,pdf);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'sandy4');
    v_rep := RUN_REPORT_OBJECT(repid,p1_id);
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://----.--------.com:8888/reports/rwservlet/getjobid'|| substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=sandy4,'_blank');
    .. and so on
    The reports RUNS FINE AND POPS UP AS A NEAT PDF internet explorer page !!!
    I WAS WONDERING IF THERE IS ANYWAY TO SET THE BROWSER TITLE OF THIS REPORT THAT POPS UP..
    DO I HAVE TO CHANGE SOME PROPERTY AT THE REPORT END
    OR CAN I SET IT DYNAMICALLY BY PASSING AS A PARAMETER
    FROM MY FORM
    I HAVE SEARCHED EVERYWHERE FOR THIS
    PL HELP
    I WILL REALLY APPRECIATE IT IF SOMONE CUD HELP ME WITH
    THIS
    THANK YOU
    SANDY

    Hi,
    It is possible to set the Document title for PDF output. Open the Reports Property Inspector, under PDF Document Taxonomy, you can set the Document title. But this does not show up in the browser when you open the document.
    thanks,
    Senthil

  • REST call from PDf form returns error

    I have created a very simple process that allows a user to enter data into a PDF form and submit the form for archiving.  In the process I have used LC Output to flatten the PDF and I am using the Sharepoint connector to create and archive the document. 
    When I do this from the LC Workspace it works no problem.  I can go out the SharePoint and see that archive document and all of the data is there.  I now want to be able to host the form in another location and have the same functionality.  To do this I have change the submit button on the form so that it makes a REST call to the LC server in order to call the correct process.  To be sure that I had the right URL for the REST call I took it right out of the Adminui.
    I have tested the URL in a browser and the process kicks off no problems.  The issue is when I place the URL in a submit button and try to submit the form I get a message box back stating that there was an invalid server response and nothing happens.  I am not sure but I do not think that it is even getting to the LC server.
    I am using LC ES2 and opening the form in Acrobat 9.5.1.  As mentioned it is a very simple process as I am just trying to prove out that a LC process can be invoked using a REST call from a PDF.

    Hey Amr,
    thanks for your feedback. Let me write down some more facts about my environment so we might be able to track down what's going wrong:
    - Virtual PC using Windows Server 2012
    - SharePoint 2013 with September CU
    - Compatibility Level 15 Webapplication using Default "Claims Based Authentication" with form based authentication activated
    - Visual Studio 2013 Console Application .NET 4.5 x64 Build Target
    Writing down what my base configuration is seems to have brought light into the dark. As soon as I deactivated FBA authentication I was able to execute the request without any problems. So now I know what I have to look for. Thank you!
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

  • "Error attempting to read file" at Webservice call from Adobe Form.

    Hi Experts,
    We have designed a Webservice form a Function Module in ECC 6.0, In the soamanager transaction the webservice works fine. But at the time of call from the Adobe form, it gives an error stating that "Error attempting to read from file" and then the URL of the Webservice to be excuted.
    and if i attempt to open that file, it gives me this error:
    - <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header />
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Server</faultcode>
      <faultstring xml:lang="en">SRT: Wrong Content-Type and empty HTTP-Body received</faultstring>
    - <detail>
    - <ns:SystemFault xmlns:ns="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/">
      <Host>undefined</Host>
      <Component>COREMSG</Component>
    - <ChainedException>
      <Exception_Name>CX_SOAP_CORE</Exception_Name>
      <Exception_Text>SRT: Wrong Content-Type and empty HTTP-Body received</Exception_Text>
      </ChainedException>
      </ns:SystemFault>
      </detail>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    In case I give my user the "SAP_ALL" role, this all works fine, so i think it is somewhere related to a missing role to be assigned.
    any clues..??
    any help would be appreciated, Please help..
    Thanks,
    Amita

    Hi Juergen,
    I am using it as a WSDL based data connection.
    How do i check this WSDL through a web browser? I have checked it through SICF Transaction code, It gives the output in explorer as given in the first post of this thread..
    Please help me resolving this issue, i feel that this issue is somewhere related to the role assignment of the user as if i provide this user an authorization of SAP_ALL then everything starts working fine, but after removing SAP_ALL this error is encountered, do u hav any pin points on this??
    Thanks
    Amita

  • Is it possible to call different queries in a report whn called from a form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    hello,
    not sure i understand what you are trying to achive. you can change the SQL statement at runtime by using e.g. lexicals in the SQL statement.
    w.r.t. changing the browser title, check the report level properties that define the pre- and post HTML code that is generated into the output.
    regards,
    philipp

  • How to View Output From Customized Form

    I have developed a new customized form and attach it in Receipt Form Menu. I have added a button of Print Receipt on the form by name Print Screen.I have added code behind the Print Receipt Button that when it would be clicked report of receipt would be generated.When i click Print Receipt Buttton Request is submitted to Concurrent Manager and i have to view it from Concurrent Request Window.My requirement is when i click Print Screen Button output would be generated and viewable at that place and i dont need to go in concurrent request window to view and print that output.Is there any solution please suggest me.I am thankful in advance to all.

    Hi;
    Please check [this |http://forums.oracle.com/forums/forum.jspa?forumID=129] and see it helpful
    Also see:
    How to view the output submitted by other user
    How to customize look of a view
    Regard
    Helios

Maybe you are looking for

  • I have 8820 with ATT and would like 4.6 OS

    Hello, I have the 8820 and have ATT as a provider... I recently found out that I can can put in a microSD card.. so naturally I would like to get the biggest... I read that if you use the 4.6x.x.x. OS you can get upto 32 GB... sounds nice... so I go

  • ITunes Match on Mac but not Macbook Pro?

    Hi, I have paid and installed 'itunes match' on my main Mac which has my library, it has synced to my ipad, iphone 4, Apple TV and ipod touch but it isnt working to my macbook pro?! It says only one library can be used but I want my music (not all th

  • Open Dataset non-unicode & default

    Currently im using the open dataset with default then it hit a codepage error. I found out that the file contained characters that is not UTF-8 so when i changed the open dataset to non-unicode the codepage error goes away. Im wondering if there is a

  • ITunes or QT won't register install

    I reformatted a couple a days ago, down loaded the new iTunes to install for my iPod. So this was a fresh install of XP with all updates and every attempt at installing iTunes after it's done installing everything is there.. then it all disappears. N

  • Object made by 6 java files

    To create a fan object. Which file would become the user interface/ menu? What would the colour.java file contain, if colour is given a value in another class? The list of files will include: Fan.java Colour.java FanSpeed.java AirSpeed.java HeadMovem