When using function in forms what priveledge should a schema have ? in DB

when calling a database level function in oracle forms what permission should i grant to schema in database level ?
con it's given error during compilation that object must be declare...........
e.g
total_record:=total_record+1;
SELECT
HR.fn_get_finished_opening_stock(V_PRODUCTCODE,V_TRANSDATE,:GLOBAL.COMPANYID) INTO OPENINGSTOCK FROM DUAL;
what system level permission

what system level permission The user logged into Oracle Forms must have the execute privilege on the function being called. You can either GRANT EXECUTE on the FUNCTION to public (not the best option) or you have to grant execute to each user of the application (more work, but the Oracle recommended option).
As you are calling your function in a PL/SQL block in your Form, there is no need to do this in a query, just simply assign the return value of the function to the variable directly. For example:
DECLARE
   OpeningStock    NUMBER;
BEGIN
   OpeningStock := HR.FN_GET_FINISHED_OPENING_STOCK(v_productcode, v_tansdate, :GLOBAL.CompanyID);
END;Also, just looking at your code sample, it suggests that you are working with the Oracle Enterprise Business Suite (EBS). If this is true, then your application user is the APPS user. The APPS should have privilges too all EBS related objects in the database.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Error ORA-06502 When using function REPLACE in PL/SQL

    Hi,
    I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
    variable var_a is of type CLOB
    and the assignment statement where it gives the error is
    var_a := REPLACE(var_a, '^', ''',''');
    Can anyone please help!
    Thanks

    Even then that shouldn't do so:
    SQL> select overload, position, argument_name, data_type, in_out
      2  from all_arguments
      3  where package_name = 'STANDARD'
      4  and object_name = 'LPAD'
      5  order by 1,2
      6  /
    OVERLOAD   POSITION ARGUMENT_NAME                  DATA_TYPE                      IN_OUT
    1                 0                                VARCHAR2                       OUT
    1                 1 STR1                           VARCHAR2                       IN
    1                 2 LEN                            BINARY_INTEGER                 IN
    1                 3 PAD                            VARCHAR2                       IN
    2                 0                                VARCHAR2                       OUT
    2                 1 STR1                           VARCHAR2                       IN
    2                 2 LEN                            BINARY_INTEGER                 IN
    3                 0                                CLOB                           OUT
    3                 1 STR1                           CLOB                           IN
    3                 2 LEN                            NUMBER                         IN
    3                 3 PAD                            CLOB                           IN
    4                 0                                CLOB                           OUT
    4                 1 STR1                           CLOB                           IN
    4                 2 LEN                            NUMBER                         INI wonder what happened?

  • How can i turn off all the mails that i recive when use any program form my iPad?

    How can i turn off all the mails that i recive when use any program form my iPad?

    Everytime i use the my ID recive an e Mail to inform me.

  • Change sender address when use function SO_NEW_DOCUMENT_SEND_API1

    The requirement need change the sender address when use function   SO_NEW_DOCUMENT_SEND_API1.
    for example,the fixed sender  is '[email protected]'. how to change the sender address. could you please
    provide a instance?

    Hi 莫言,
    As explained in mail home wiki here, this function module is obsolete and complex to use, please use CL_BCS instead. You can find lots of example there. And it is pretty easy to change sender address using CL_BCS instead.
    Best regards,
    Jerry

  • Playback not supported by http proxy when using Amazon instant video - what to do?

    Message
    playback not supported by http proxy when using Amazon instant video - what to do?

    Settings > General > Reset > Reset Network Settings

  • HT1338 I have a Mac OS X Version 10.5.8. Just updated my iphone 5 & can not back anything up from itunes because my software on my mac is not up to date. What software should I now have to be up to date? Im so confused by all that is offered! PLEASE HELP

    I have a Mac OS X Version 10.5.8. Just updated my iphone 5 & can not back anything up from itunes because my software on my mac is not up to date. What software should I now have to be up to date? Im so confused by all that is offered! PLEASE HELP ME.

    Hi
    You need to upgrade to the next OS 10.6 Snow Leopard by purchasing the DVD online.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    and once installed, use Software Update
    - to update to 10.6.8
    - and update your iTunes.

  • My ipad and iphone 4 both freeze my laptop when i connect them. What is wrong. I have installed Windows 7 on Samsung Q310

    My ipad and iphone 4 both freeze my laptop when i connect them. What is wrong. I have installed Windows 7 on Samsung Q310

    You can try this:
    1) restart your computer
    2) once restarted, do not run anything else, except for launching iTunes manually
    3) connect your devices to your computer
    If the problem persists, more troubleshooting is required, see below:
    Are you using the latest iTunes software? Under Help, select Check for Updates
    You can also look for inspiration in this document:
    http://support.apple.com/kb/TS1538

  • Unable to parse query when using dblink in forms 4.5

    Hi,
    I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
    By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
    I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
    Thanks!

    Hello,
    Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
    Francois

  • Unable to close browser when using Adobe Interactive Form

    Hello,
    I'm using an Interactive Form in my Web Dynpro application. Everything works fine, but when the view with the Interactive Form is active, I am not able to close the browser window anymore. Moving to another view is also not possible.
    I already changed all the options of the Interactive Form but always the same behaviour.
    I am developing on Web AS 6.40, Service Pack 11. ADS is installed also with Service Pack 11.
    Adobe Reader is Version 7.0 and Adobe Designer is Version 7.1
    Has anyone an idea what's wrong?
    Thanks for your help!
    Best regards
    Christian

    Hi,
    I am facing a problem with viewing SAP interactive forms.
    I have the SAPForms.api in Adobe reader plugins but is outdated (19th apr, 05). How do I get the new one and how do I register it ? This same scenario works on a colleague's machine with same config except the SAPForms.api which is latest. (Nov, 05)
    Any pointers will be highly appreciated.
    Thanks,
    Samar

  • How to send a receipt when using a web form for payment

    I have a site on which people sign up for classes (events) through a web form. I have set this up using a custom form in which the Amount field is populated using javascript, depending on which class they select from a drop down.
    Is there a way to send the client a receipt for the transaction? Would this be done within BC or would it be done within the payment gateway? (Authorize.net, in this case)
    Thanks for any help.

    Hi - I have a similar problem. I found I can send a receipt using sendinvoice=true&amp in the form action, but it uses the default invoice layout and shows GST to be $0, when it should be 10% of the class(event) fee. I can't modify the invoice as it is setup just right for out products, which are purchased through shopping cart. Any ideas on ow to work around this? Any thoughts would be very appreciated.

  • My iphone 5 has bad audio qualities when using the telephone properties: what solution was offered by apple or provider?

    I have a new iphone 5 that has a very bad audio quality when using the basic telephone function. Both wen called or calling the conversation is either of quite poor quality or drops awau alltogether. The latter happens sometimes 5 times on a row during one conversation or better attempt to have one..:)
    Who has similar problems and what has been the solution offered by apple or their provider?

    I have the same issue with the following setup:
    Garmin 2597LMT
    iPhone 5
    Motorola T605 bluetooth hardsfree system
    I ended up disabling the nuvi bluetooth -- I don't subscribe to any smartlink services -- so I'll guess i'll go without Weather on the nuvi for now.

  • Error message when using function module HRIQ_TESTRESULTS_CREATE

    Hi,
    I need your help, I'm trying to use function module HRIQ_TESTRESULTS_CREATE to create external test results, I've used this function before without subscores, now I need to create subscores, but I get the message: "Grading scale UBID applies".
    The test type EXAM_UB_ING has assigned the UBID academic scale, which has a range from 1 to 677. Test type EXAM_UB_ING has 3 subtests (grammar, listening and reading) which also have the UBID academic scale assigned.
    I think this isn't a customizing problem because I can create test results with subscores using the PIQST00 transaction, the error message happens just when using the function module.
    I'm using this import parameters:
    STUDENT:
    PL:           01
    OT:          ST
    OBJID:     Student ID
    TESTRESULTS_HEADER:
    ISSUEDATE                      08.02.2010
    VALIDDATE                      30.04.2010
    TEST_GUID
    TESTEO                         50000269
    TRANSEO                        00000000
    TESTTYPE                       EXAM_UB_ING
    SESSIONID                      T1
    SESSIONYEAR                    2010
    ENTRYDATE                      08.02.2010
    TESTPASSFAIL
    TESTTOTRES                     458
    TESTSCALE_ID
    TOTALPERCENT1                   0,00
    TOTALPERCENT2                   0,00
    ENTRYMODE
    SUBTY
    Table TESTRESULTS_SUBSCORES:
    SUBTESTID            GRAMMAR
    SUBTESTTRES      GRAMMAR
    SUBT                     203
    SUBTESTID            READING
    SUBTESTTRES      READING
    SUBT                     120
    Does anybody know which could be the error? Or any other function module which I can use? (with HRIQ_TESTRESULTS_PROCESS_DATA I get the same error message).
    Thanks in advance!
    Araceli

    Araceli,
      I just noticed. You are populating SUBTESTSCALE_ID in subtest result structure.That's the reason it's throwing this error. it is trying to match Scale ID from test with value in sub test result scale ID.
    Prabhat Singh

  • When using designer the form will not show up.

    When I activate the form designer to make it interactive, it will not show the form except momentatily.  Is ther a way to turn it up? 

    David,
    I responded to the forum but could not figure how to send attachments to you there.   This is another try . 
    I scanned a form to PDF that I want to, make interactive and fillable.  In Adobe Acrobat 7 I clicked on Advanced > Forms> Make form Fillable in Adobe Design. The results is a conversion to an unreadable Form.  Checking the PDF preview tab does not help.  Attached are the Form and the enteractive form. 
    Is there any suggestions as to what I am doing wrong?
    Ed Walsh

  • What role should a user have to access 'ALRTCATDEF'

    Hi all,
    I am getting unauthorized eeror
    When I am trying to access Tcode "ALRTCATDEF" in XI ,
    When I am trying to access alertinbox, alertconfiguration in runtime workbench in XI ,
    so what role should I have to access this?
    I appreciate your reply
    KK

    Hi KK
    You need following roles ::
    SAP_ALM_ADMINISTRATOR         --> Alert Management Administrator
    SAP_ALM_CUSTOMIZER              --> Alert Management: Role for Customizing
    SAP_BC_ALM_ADMIN                       -->
    SAP_BC_ALM_ALERT_USER           --> ALM: Role for the alert user
    SAP_BC_ALM_CUST    
    Some of them might be extra, what you asked for .
    - Lalit -

  • Error when using a HTML form along with a servlet

    Hi All,
    I am using Sun Studio 4 to create a HTML form that takes in 4 inputs and then
    passes them on to a servlet to be processed.
    In my HTML form i have the form heading.. <form method = post action="processServlet">
    my directory structure is as follows:
    /home/cosmo/projects/testservlet/processServlet ... processServlet being the servlet underneath the testservlet directory.
    inputForm.html is also under the same testservlet directory. I am running TOMCAT.. and under the run time tab under tomcat --> Internal --> it has localhost:8081 and under that the default context is /home/cosmo/projects/testservlet
    NOW, when i execute my HTML page the URL on top says "http://localhost:8081/inputForm.html
    which seems correct. I get my form correctly. When i input the data,and i hit the submit button, the URL says "http://localhost:8081/processServlet" which i think is also correct, but i get a "404 Error and the error description says " The requested resource( /processServlet)
    is not available." I have coded the servlet to give me just a few lines of output, but instead, the above error shows up.
    Why would this be happening? Do i have my directory structure messed up? Do i have the wrong type of template? I used a web module to do this. I also compiled my Servlet from Sun Studio without any errors.
    Any help would be appreciated.
    Thanks
    Kal.

    You can't post directly to a servlet the way you can to an HTML or JSP page. You must map your requests to specific servlets for the request to get directed there. There are entries in the web.xml for this.
    You need to map the request for "processServlet" to "edu.xxx.yyy.processServlet", or the servlet engine won't know what to do with that request.
    Often times, an app will route all requests for a particular extension to a router servlet, which then figures out which class to actually send the request to. This keeps you from having to map all servlets in the web.xml file.

Maybe you are looking for

  • Renaming folders in different spaces

    When I'm renaming a folder on my desktop in a particular space, while the same folder is opened in another space I can't see what I'm typing. See it yourself: Create a new folder on your desktop. Don't rename it yet. Now open this folder in space #1.

  • Fan control without 3DTurbo on FX5200-TDR

    Hi, According to what I've read, the FX-5200 TDR seems to have two distinct fan speeds (for 2D and 3D). By default (i.e. on startup), this means that it is quite noisy. When launching 3DTurbo on Windows XP, it switches down the fan speed to the (much

  • WebUtil Error Bean Not Found

    Dear All, i am facing a problem of running webutil functions. I have compiled my webutil.pll and then attach to my form and then i copy the webtuil.olb objects into my form and i created one button on my form to show the calculator the code is as fol

  • New 3g nano... will only show apple...

    I have an ipod classic that works fine. i just purchased an ipod 3g nano for my sister. we tried hooking it up to my mac to load songs on it, but all it will do is flash an apple on the screen (and it will only do that when it is plugged in to the co

  • IPod Touch Calendar sync with online google calendar?

    Does anyone know if there are any plans of making the iPod Touch calendar sync with the online google calendar? I mean; the iPod have the ability to get gmail and it should be really good to have the same functionality with the calendar. I've read ab