Procedure integration

Hello,
Am new to PL/SQL . Can someone please give me a piece of explanation, in what manners procedures, functions and packages can be used in queries?
1) Can function only appear in select row of query? What about procedures and packages?
Select func(var1,var2)
from dual
2) In which other situations can they be integrated ?
many thanks,

Procedures cannot be used in SQL because they do not return values.
Function can be used in any DML (SELECT, INSERT, DELETE, UPDATE) anywhere legal SQL expression can be used. However not all functions is allowed in SQL. E.g. functions that perform DML other than SELECT will be rejected. Consider following:
-- DROP TABLE T;
CREATE TABLE T(C NUMBER);
INSERT INTO T VALUES (0);
CREATE OR REPLACE PACKAGE P AS
     PROCEDURE PROC_NOT_OK;
     FUNCTION FUNC_NOT_OK RETURN NUMBER;
     FUNCTION FUNC_OK RETURN NUMBER;
END P;
CREATE OR REPLACE PACKAGE BODY P AS
     PROCEDURE PROC_NOT_OK IS
          BEGIN
               NULL;
          END;
     FUNCTION FUNC_NOT_OK RETURN NUMBER IS
          BEGIN
               DELETE FROM T;
               RETURN SQL%ROWCOUNT;
          END;
     FUNCTION FUNC_OK RETURN NUMBER IS
               nVAL NUMBER;
          BEGIN
               SELECT 1 INTO nVAL FROM DUAL;
               RETURN nVAL;
          END;
END P;
SYSTEM@TEST9> SELECT P.PROC_NOT_OK FROM DUAL;
SELECT P.PROC_NOT_OK FROM DUAL
ERROR at line 1:
ORA-00904: "P"."PROC_NOT_OK": invalid identifier
SYSTEM@TEST9> SELECT P.FUNC_NOT_OK FROM DUAL;
ERROR:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "SYSTEM.P", line 8
SELECT P.FUNC_NOT_OK FROM DUAL;
SYSTEM@TEST9> SELECT P.FUNC_OK FROM DUAL WHERE P.FUNC_OK <> 0 GROUP BY P.FUNC_OK;
FUNC_OK
1

Similar Messages

  • Guided Procedures - Integration of Webdynpro Java with Adobe Interactive fo

    Hi All,
    We have created Webdynpro java application with Adobe interactive forms.It works fine in NWDS and also in Webdynpro Content Administrator.
    When we have called this component in Guided Procedures (callable object - Webdynpro (GP Interface)), the form screen has not displayed.
    Plz help us..

    Hi,
    Scenario : User have to log into GP runtime, When he clicks the first action it should display the adobe form. He has to fill the details and submit the form. This form is routed for Approver 1 for review. The first approver will log into portal,view it (UWL),approve it and sent for second approver.The same process happens with the second approver.After both approvals, a BAPI updates the data in the interactive form in R/3
    All the process have to be done in Guided Procedures, then integrated with Portal at the end.
    We have tried creating an Wdynpro Java app with online adobe form and executed successfuly in NWDS and also in Webdynpro content administrator.
    issue:-
    When we create a callable object(webdynpro app(gp interface CO)) in GP and test, we were unable to view the form.
    Now our question is : what are we mising ?
    Is it possible to integrate online interactive adobe form with guided procedures?
    Is our approach to solve the scenario right?
    any links or tutorials will be greatly appreciated
    TIA,

  • ABAP Web Dynpro Guided Procedures integration

    Hello,
      does anyone know if there is a way for an ABAP Web Dynpro to expose input and output parameters for use in Guided Procedures?
      Thanks in advance
        Gabor

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

  • How to recover Guided Procedures Workitems

    Hello,
    We have Guided Procedures Integrated with the UWL for Workflow and some Workitems got deleted accidentally for all users . Is there a way those workitems can be recovered ?
    Any help would be highly appreciated.

    Hello,
    The tasks may still be available in Guided Procedures --> Runtime --> Task that require my Action.
    If they have been deleted from here also, it will not be possible to retrieve them.
    Thanks and best regards,
    Carl Connolly
    Senior Support Consultant - Netweaver Web Application Server
    AGS Primary Support, Global Support Centre Ireland
    Guided Procedures trouble shooting guide:
    https://
    www.sdn.sap.com/irj/scn/wiki?path=/display/jstsg/%2528gp%2529home

  • DB Adapter issue

    DB adapter invoking store procedure (Integration.dbo.spU_DropShip_OrderHeader). I am getting below error when we running BPEL process.
    "Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DB_CALL_spUDSOOrderHeader' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the Integration.dbo.spU_DropShip_OrderHeader API. An error occurred while preparing and executing the Integration.dbo.spU_DropShip_OrderHeader API. Cause: java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement Check to ensure that the API is defined in the database and that the parameters match the signature of the API. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-900" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. "
    How ever same BPEL process invoking same procedure in stage and Prod enviorment. It's working fine. I am wondering why i am getting this error.
    I executed this store procedure Microsoft SQL Server Management Studio and working fine.
    Please help me out. Thanks in advance..

    Based on your summary, the deployment of your stored procedure and the BPEL service calling it worked in your DEV and STAGE environmnets but not PROD. PROD instead returns
    java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement Check to ensure that the API is defined in the database and that the parameters match the signature of the API.
    For these types of issues, I'd try the following items (some already suggested above):
    1) ensure the target stored procedure compiled cleanly in PROD along with any other
    procedures and functions used as subroutines -- in this case, you DID run the
    procedure in PROD using some userid and got results so this probably won't apply here
    2) review your DataSource configuration in WebLogic and confirm the userid / password
    and DB URL are all correct for your PROD database
    3) review the JCA connection in your DbAdapter and verify its dataSource or XAdataSource
    reference is pointing to the correct JDBC JNDI name from #2 -- if you intend to use an XA
    compatible JDBC adapter, make sure you use the XAdataSource parameter not
    the dataSource parameter (and vice versa)
    4) log into the target database using the userid configured for your JDBC connection
    pool from WebLogic and verify you can run the procedure under that userid
    5) if executing the services with your userid used from WebLogic fails, verify
    that EXECUTE permissions on the stored procedure have been granted to
    that userid along with EXECUTE permissions on any libraries and tables / schemas
    used by the procedure
    6) if it took more than one try to create the JCA connection for the DbAdapter
    in WebLogic, make a copy of the DbAdapter.rar file and temporarily unpack
    it somewhere and verify that WebLogic updated it correctly with your latest
    change pointing to the JDBC pool -- sometimes, it will fail to update this
    and get stuck with an old configuration, requiring you to manually paste in
    correct content for the connection being added -- look at the weblogic-ra.xml
    file inside the META-INF subdirectory
    Hope that helps.

  • Step by Step procedure for Integration of B0 with BI 7.0, Portal

    Hi,
    My key concerns include integration with SAP Portal, which I did not find in instalaltion guide.
    Please advice on step by by Procedure for BO with BI 7.0 starting with the right version of BO to be installed.
    1. Which version compatible with BI 7.0 SP 12, LATER TO BE UPGRADED TO sp 16
    2. Source of data will be BI and reports will be using BO.
    3. What are components to be installed
    4. Prerequisites for Integration with BI AND SAP Portal.
    5.Steps for Integration with BI 7.0
    6. Steps for Integration with SAP Portal- Where to get the sample iviews. What to do for connction between Portal and BO - this i didnt find in installation guide
    Thanks,
    Harish

    HI,
    here the items:
    SAP Side:
    - all machines have to be in the same domain
    - BI has to trust the portal
    - BI has to accept SSO tickets
    - EP has to generate SSO tickets
    BusinessObjects:
    - SAP Authentication has to be configured
    - BI system should be configured has default system in the options of the SAP authentication
    - authentication.default parameter in the web.xml for InfoView has to be set to secSAPR3
    - BusinessObjects has to be in the same domain
    EP side:
    - in the system landscape configure the Crystal Enterprise Server Properties for your BI system
    - import the portal iview template that is part of the SAP Integration Kit
    - create a new iView
    Ingo

  • HOW TO CREATE STORED PROCEDURE IN DATA INTEGRATOR

    Hi to every one,
    Can any one help in giving me a solution for creating stored procedure in Data Integrator.
    I m new to this field

    Hi nath,
    Firstly are you using MYSQL or Oracle as the database,if its oracle database then follow this
    http://obiee101.blogspot.com/2008/01/obiee-using-oracle-stored-procedure-to.html
    http://oraclebizint.wordpress.com/2008/02/20/oracle-bi-ee-101332-executing-stored-proceduresfunctions-before-reports-before-report-triggers-and-global-temporary-tables/
    EXEC [DATABASE_NAME].[SCHEMA_NAME].[PROCEDURE_NAME][DATABASE_NAME] --> is the database name your creating your procedure
    [SCHEMA_NAME]-->is the user with which your creating
    [PROCEDURE_NAME] --> the name given to procedure
    You dont know how to get those run this SQL in TOAD and see select sys_context('userenv','db_name'), sys_context('userenv','session_user') from dual
    (OR) open you connection pool properties window in RPD,you will get the DB name and the user name as the schema name
    hope answered your question.
    CHeers,
    KK

  • Integration process communicating with guided procedure

    Hi everybody,
    I read that it is possible to exchange messages between Integration Processes and SAP Business Workflow. Is it also possible to trigger and communicate to a guided procedure in a Integration process?
    Thanks,
    Mane

    Integration processes can integrate with anything which uses one of the protocols supported by XI adapters (and you could even enhance this, by creating your own custom adapters).
    E.g., to integrate with SAP Workflow, you could call a standard BAPI or a Z RFC that executes the desired workflow (or feed some step of a already in-process workflow).
    For Guided Procedures, you could basically use anything that the UI frameworks within SAP portfolio support. For example, if you develop a WebDynpro-based GP, you could make the WebDynpro consume a Web Service that, for instance, triggers a BPM execution (you expose the 1st receiver step of the BPM, which should be a open sync/async bridge, as a web service through a sender soap adapter).
    That's just one example.
    Regards,
    Henrique.

  • Can any one send procedure for integration between XI and Geographic inform

    can any one send procedure for integration between XI and Geographic information System(GIS).
    Please clarify ASAP..
    Thanks

    Hi,
    Please see the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d53af8ca-0801-0010-08b0-dce9e02130a8
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d53af8ca-0801-0010-08b0-dce9e02130a8
    GIS VS XI
    Regards
    Chilla..
    Points rewarded if it is usefull..<i></i>

  • Procedure for CICS adapter and XI integration?

    Dear All,
    Can you plz provide me the step by step procedure for CICS adapter and XI integration?
    Thanks,
    Srinivas.

    Hi ,
    Check this link..
    http://www.iwaysoftware.com/products/adapters/CICS_IMS_Transaction_Processing.html
    Regards,

  • Integrating abap-webdynpros in guided procedures

    Hello,
    how can I integrate an existing abap-webdynpro in guided procedures in netweaver ce?
    Best regards
    Oliver Prodinger

    Hi Oliver,
    Below are two links from CE Help site. Basically you integrate applications into GP via "Callable Objects". The second link walks you thru how to do it for WD4A.
    Getting started in GP Help site:
    http://help.sap.com/saphelp_nwce10/helpdata/en/fb/5e6f4169e25858e10000000a1550b0/content.htm
    Integrating an Web Dynpro ABAP in GP link:
    http://help.sap.com/saphelp_nwce10/helpdata/en/67/a780415dc6050de10000000a1550b0/content.htm
    Best Wishes!
    Rao
    Edited by: Raghavendra (Rao) Subbarao on Apr 13, 2008 3:12 PM

  • Urgent: Guided Procedure VS Process Integration

    Dear Guru,
    I am researching on concept of Guided Procedure and Process Integration.  However, I have few questions about those.  What is Guided Procedures?  What is/are the differences with Process Integration (PI)?  In which scenario, PI and GP can be applied for?  Thank you very much. Reward point will be given.
    Best Regards,
    Mr.NOP

    hi
    For guided procedures,
    Please refer these links :-
    http://help.sap.com/saphelp_nw04s/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
    Regards
    Navneet

  • Integrating Lotus Notes with Guided Procedure Task

    Hi Experts,
    Is it possible to see Guided Procedure Tasks in Lotus Notes. Is this integration possible?
    We have UWL in portal to check the tasks.
    Instead of going to the portal to open Actions, can we get the task link in Lotus Notes Inbox?
    Thanks,
    Runal

    Thanks George
    Using GP APIs we can check tasks for processes through Lotus Notes, instead of going to the netweaver portal's UWL list.
    But GP APIs does not support WD ABAP.
    So integration of lotus notes with GP is only possible using WD JAVA.
    Thanks,
    Runal

  • Integration procedure-requesting few details

    Hi,
    The procedure for integration certification is given in this portal . i am soliciting few answers to these question, could somebody be kind enough to lead me.
    1. do we have to be ready with an interface program before we approach the icc?
    2.will the interface program be developed in association with the icc or can it be done independently  of icc?
    3.are all the services offered by the icc mandatory or can we choose the services offered.(though sap provides services at all level of interace).
    4.what is the process of assessment and certifying the interface which would lead to a certifiaction as apatner program.
    thank you very much for your indulgence.
    warm regards
    phanidhar

    Hi Phanidhar Varanasi,
    here are a few answers for you:
    1. do we have to be ready with an interface program before we approach the icc?
    No, you do not need to have your application be ready for certification at the point you are getting in contact with us. It's ok if you have a clear view which interface you want to serve. This should be sufficient at this point.
    2.will the interface program be developed in association with the icc or can it be done independently of icc?
    Your application needs to be changed/enhanced to be able to work with our interface. So this work can only be done on your side. We will not program/code for your application.
    3.are all the services offered by the icc mandatory or can we choose the services offered.(though sap provides services at all level of interace).
    Well, our services are for example "Interface certification", "Consulting", "Integration Assessment" or or DPA (Developer package) offering. You can select which one you want to have. Was this what you asked for ?
    4.what is the process of assessment and certifying the interface which would lead to a certifiaction as apatner program.
    As a starting point you need to fill out the following form:
    http://www.sap.com/partners/apply
    Here please select Application Type: Interface Certification for doing a Certification. If you want to be a Software partner then select "Software Partner".
    After having sent this form to us we will get in touch with you in regards of sending out the appropriate contracts to you.
    If you want to learn more to Assessment an certification then please have a look at:
    http://www.sdn.sap.com/sdn/icc.sdn?page=sap_integration_assessment.htm
    and
    http://www.sdn.sap.com/sdn/icc.sdn?page=sap_integration_certification_program.htm
    Best regards,
      Juergen

  • Cisco MSE3310 integration with WCS configuration procedures

    Dears,
    Kindly I have a Cisco WCS configured now I brought Cisco MSE3310 and I need to configure it for IPS, so please can you support me with configuration procedures for the configuration specially for the IPS and how is it will work.
    Thanks for your support,

    http://www.cisco.com/en/US/docs/wireless/mse/3350/6.0/CAS/configuration/guide/msecg_ch2_CAS.html

Maybe you are looking for

  • STO's INTER / INTRA & THIRD PARTY SALES

    Dear friends!! plz clear my doubts in the following : - 1) in STO cross comp, internal customer required and doc flow is like NBNLCCF2 and my doubt is whether pricing comes to F2 from NB with MM pricing procedure? Does Doc.PP should be assigned to F2

  • I am unable to have my contacts on both iPhone and iPad transferred to mAC BOOK

    I am unable to have my contacts on both iPhone and iPad transferred to mAC BOOK

  • Mountain Lion OS from the App Store

    I purchased mountain lion os from the app store for my laptop but also want to upgrade my imac from lion to mountain lion. When I went to the mountain lion app to purchase it again for my desktop it did not give me the option to buy only to download.

  • Grid like Structure in ADF

    Hi I need values that are abstracted from iterater operation in a fine Grid Layout format . Please suggest.

  • Windows will not start on my NB100

    I think my nb100 has become infected with a virus. It was doing some strange virus scan and I could get it to do nothing else. I turned it off and now Windows will not start. I have tried all the option; safe mode, safe mode with command prompt etc.