Procedure correction

hi all,
please any one correct my procedure.
1 create or replace procedure new_proc()
2 is
3 begin
4 For i in 1..5 loop
5 insert into B values(i);
6 savepoint inthe_btable;
7 end loop;
8 rollback to savepoint inthe_btable;
9 commit;
10* end;
SQL> /
Warning: Procedure created with compilation errors.
SQL> shoe erros
SP2-0042: unknown command "shoe erros" - rest of line ignored.
SQL> show errors
Errors for PROCEDURE NEW_PROC:
LINE/COL ERROR
1/20 PLS-00103: Encountered the symbol ")" when expecting one of the
following:
<an identifier> <a double-quoted delimited-identifier>
current
thanks in advance
rampa

Hi,
CREATE OR REPLACE PROCEDURE new_proc IS
BEGIN
   FOR i IN 1 .. 5 LOOP
      INSERT INTO B VALUES (i);
      SAVEPOINT inthe_btable;
   END LOOP;
   ROLLBACK TO SAVEPOINT inthe_btable;
   COMMIT;
END;
/Tip: use {noformat}{noformat} tags to preserve formatting (start and end tags are the same) :)
Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Is my procedure correct

    My wife has an urgent need to distribute 10 separate videos to her students, whom I suspect use Pc & macs, ...we imported the video from our canon camera into Imovie events, then split that video into 10 separate events, we then selected Share-Export Movie (gave it a title, chose to export to the desktop and chose medium for a file size)....the file is now displayed on the desktop as a .m4v extention. it is approx 27MB in size, Is this a generally recognized file ext or is there something else more common? have we done things correctly or is there a better method?....regards

    bubba622 wrote:
    .. I seem to be producing them in medicine ball proportion....any tips?
    let some air out of the ball ..
    in the Export using QT dialog, you'll find, choosing QT again, an option button..
    now, the dialog offers a 'few' parameter.. :
    • codec - we had that, lowering 'quality'/bitrate makes files smaller
    • resolution - a 320x240 is >75% smaller than a native NTSC ..
    • frame-rate. - 15fps generates half amount of frames = 50% less file ..
    • ... etc.etc.etc. ...
    best practice: upload to youtube, share the URL of your YT-video = <5kB .. and no fuzz with codecs.

  • Is this procedure correct for flashing bios?

    i m using neo2-p with bios 3.7
    i juz downloaded bios 3.8
    so under true DOS( boot fr floppy)
    i keyed in command like:
    Adsfi711.exe A6728IMS.380
    how come nothing happened? the command cannot be executed?

    You don't need the .exe
    I would recommend that you use the LiveUpdate dos method to prepare the floppy for you. It will put everything on the single disk, boot with a ram drive and flash from the ram drive.
    The danger of flashing directly from the floppy is that if a bad sector is encountered during the flash, your board is probably going to end up dead.

  • IN operator is not working correctly while calling,although pl/sql procedur

    CREATE or REPLACE PROCEDURE TEST(
    idListCommaSeparated IN VARCHAR2
    AS
    CURSOR c_emp IS SELECT first_name,last_name,start_date From Employee where id IN(idListCommaSeparated);
    r_emp c_emp%ROWTYPE;
    begin
    insert into temp1 values('B',sysdate,sysdate,'A');
          open c_emp;
          loop
              fetch c_emp into r_emp;
              exit when c_emp%NOTFOUND;
              insert into temp1 values(r_emp.first_name,sysdate,sysdate,'A');
                 --business Logic
      end loop;
          close c_emp;
    end;
    /idListCommaSeparated contains values like (2,3,4). while executing this procedure on sqlplus it is succefully created.
    When i run the query separately on sqlplus
    SELECT first_name,last_name,start_date From Employee where id IN(2,3,4)I got some rows in result.
    why i am not getting via procedure correct result.
    and one more thing the number of elements in 'idListCommaSeparated' values are not fixed,sometimes it may be(2,3,4) or sometimes variable value may (2,3,5,6).
    I am not able to understand,where i am going wrong?

    see whether you find nested table parameter implantation option useful. Also supported by .net/java in case that's your calling appln.
    Below is plsql block having a procedure with input paramater of empid's. It returns a cursor( empno and ename) as out parameter.
    The empid's are hardcoded in the calling block.
    SQL> create type t_id is table of number
      2  /
    Type created.
    SQL> set serveroutput on
    SQL> declare
      2
      3   v_tid t_id;
      4   v_results sys_refcursor;
      5
      6   v_employee_id number;
      7   v_name varchar2(100);
      8
      9   procedure TEST (p_tid in t_id, p_empcursor out sys_refcursor)  as
    10   begin
    11    open p_empcursor for
    12    select empno, ename from scott.emp
    13    where empno in (select column_value from table (p_tid));
    14
    15   end;
    16
    17
    18  begin
    19   v_tid := t_id(7902,7934);
    20
    21   TEST(v_tid,v_results);
    22
    23   IF v_results IS NOT NULL
    24     THEN
    25        LOOP
    26           FETCH v_results
    27            INTO v_employee_id, v_name;
    28
    29           EXIT WHEN (v_results%NOTFOUND);
    30           dbms_output.put_line(v_name);
    31        END LOOP;
    32
    33        IF v_results%ISOPEN
    34        THEN
    35           CLOSE v_results;
    36        END IF;
    37    END IF;
    38
    39  end;
    40  /
    *FORD*
    *MILLER*
    PL/SQL procedure successfully completed.
    SQL>

  • The correct procedure to install PeopleTools 8.49

    Dear Friends,
    Hello. I am still not sure the correct procedure to install PeopleTools 8.49. I have done the following:
    Step 1: Install Windows Server 2003
    Step 2: Install MS SQL Server 2005
    Step 3: Install BEA WebLogic 8.1
    Step 4: Download 7 disks of PeopleTools 8.49 from Oracle e-delivery site
    Step 5: Install PeopleTools 8.49 using setup.exe located in Disk 1.
    Step 6: Setup PeopleSoft Database using C:\PeopleTools8.49\setup\PsMpDbInstall\setup.exe
    Step 7: Install Tuxedo using C:\PeopleTools8.49\appserv\pstuxinstall.exe
    Step 8: Install application server using C:\PeopleTools8.49\appserv\psadmin.exe
    Step 9: Install PIA using C:\PeopleTools8.49\setup\PsMpPIAInstall\setup.exe
    From Step 1 to Step 6, my system works correctly. But from Step 7 to Step 9, my system is not working correctly. Is the above procedure correct to install PeopleTools 8.49 in Windows Server 2003 ? Thanks.
    Lucy

    Nicolas,
    Thanks a lot for replying to me. I have 3 questions as follows:
    First, How many PeopleTools can be installed using 7 disks ?
    As I indicated in previous discussed, I have done:
    Step 4: Download 7 disks of PeopleTools 8.49 from Oracle e-delivery site and extract them.
    Step 5: Install PeopleTools 8.49 using setup.exe located in Disk 1.
    Step 6: Setup PeopleSoft Database using C:\PeopleTools8.49\setup\PsMpDbInstall\setup.exe
    In step 5, setup.exe in Disk 1 load all of files in 7 Disks into C:\PeopleTools8.49\ and PsMpDbInstall install PeopleSoft Database successfully. I can log into Application Designer and develop my first application successfully in 2-tier mode.
    Second, As you said in previous discussion, "Tuxedo is apart from PeopleSoft..." , do you mean I don't need to do Step 7: Install Tuxedo using C:\PeopleTools8.49\appserv\pstuxinstall.exe
    Third, I don't understand how to install the rest of PeopleTools using the files in 7 Disks. Are they application Server and PIA ? Thus, we do:
    Step 8: Install application server using C:\PeopleTools8.49\appserv\psadmin.exe
    Step 9: Install PIA using C:\PeopleTools8.49\setup\PsMpPIAInstall\setup.exe
    Lucy

  • DPS to iPad - Could someone clarify if this is correct please?

    Hi All,
    Is it possible I could pick someone's brains on this please? I think I've worked it out, just need to know if i have this right!
    OK, here goes. I best start with what i intend to do. I shall be creating content for our local sales team on the road. So, first off, i don;t need to charge for content. This content (for now at least) wouldn't need a global audience so i don't need it available on either the apple or android store. So, in order for this to work, is the following procedure correct?
    1) Content is created in Adobe indesign CS5.5. Type of content created are single page 'articles'. Each 'Article' has 100mb cap limit
    2) 'Articles' are uploaded to Acrobat.com (Basic or Plus account for more than 1 published document) and assembled into 'folios' (2gb size limit on folio files?)
    3) Access is assigned according to which Adobe ID's have been added to the sharing list (is there a limit to the amount of people you can share with?). Reciever of content would require a free adobe ID and the Adobe Content Viewer App (plus tablet device)
    Apart from the learning curve of how to do what in Indesign, is the export process for what i intend to use it for correct?
    Many thanks in advance for any help!
    Kind regards
    Scott

    Hi Scott,
    You are pretty much there.
    1) Yes this is correct, you create an InDesign document, you can use either CS5 or 5.5. The pages contained within the document will be pages within your Article. If you want to have both a Portrait and Landscape version, shown when the iPad is rotated then you need to have two documents one containing landscape versions of your pages and the other containing portrait versions.
    I usually create a folder named to match the Article name i.e. My Article, into that I save both documents naming them something like myarticle_h.indd, myarticle_v.indd, I also create two preview files, myarticle_h.jpg and myarticle_v.jpg and a "Table of Contents" preview file, this must be named tocPreview,png. If I have any associated files such as video or panoramas they go into an assets folder within the My Article folder.
    In InDesign, after signing in to your Acrobat.com account via Folio Builder, you create a new Folio file using the builder.  Once the folio is created it opens to the Article window and at this point I usually select Import from the dropdown menu and point to the folder, in this case My Article, that contains all my files.
    Once the files are located and you select Okay the folio is built and uploaded to your Acrobat.com account.
    2)Yes, in Acrobat.com they are refered to as workspaces. A free account can only contain one workspace at a time. A premium basic account can have 20 workspaces. I'm not sure if there is a limit on the size of a Folio/Workspace of 2gb perhaps someone else can advise on that.
    If you want to share the Folio you can share it via the Folio Builder in InDesign by highlighting the Folio and selecting Share from the dropdown menu. Add the Acrobat.com email address of the people you want to give access to. Once you've done this you will see an icon with two people on it.
    You can also share the workspace via the Acrobat.com dashboard as well.
    3) Yes, but I'm pretty sure access is only available to those registered for an Acrobat.com account. You use the email address they used when registering, in some cases it may be the same as their Adobe ID.  The reciever of the content has to have the Ipad, the Adobe Content Viewer app and the email address they registered with on Acrobat.com. Once they open the app and sign in the Folio will load with the word "FREE" in blue and a "Download" button.
    As far as I know there isn't a limit on the number of people you can add to a share.
    Tony

  • Report with stored proc running multiple stored procedures with insert statement

    Hi,
    I wonder if this is possible in SSRS ... I use the 2012 version (Data Tools).
    I have a report that triggers a stored procedure. See below.
    Within this SP there are 2 insert statements getting data from 2 other SP's.
    When I make a dataset referring to the main SP below, SSRS does not show me any fields at all.
    Is this because it's a SP with insert statements and nested SP's?
    At the end of the SP I make a select so it should see all the fields.
    The parameters @month and @costcenter are multivalue params. I use a special function to convert the multivalues, selected in the report, into a string to pass it correctly to the query (comma separated).
    USE [TestDB]
    GO
    /****** Object:  StoredProcedure [dbo].[_Pink_SP_StandingsRegisterDataset]    Script Date: 15-4-2014 13:31:30 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[_Pink_SP_StandingsRegisterDataset]
    @year INT,
    @month NVARCHAR(50),
    @costcenter NVARCHAR(500),
    @GLaccount NVARCHAR(9)
    AS
    BEGIN
    /* Remove existing content*/
    DELETE FROM _Pink_TB_StandingsRegister
    /* Add records part 1 */
    INSERT INTO _Pink_TB_StandingsRegister
    EXEC _Pink_SP_StandingsRegister @year, @month, @costcenter, @GLaccount
    /* Add records part 2 */
    INSERT INTO _Pink_TB_StandingsRegister
    Type,
    Row,
    Year,
    Month,
    YearDatetable,
    MonthDatetable
    EXEC _Pink_SP_StandingsRegisterDatetable @year
    /* Select all records */
    SELECT *
    FROM _Pink_TB_StandingsRegister
    END
    GO

    Hi bijntjede2e,
    After testing a similar scenario in my own environment, it works well in Reporting Services. In my test, the stored procedure returns all the fields from _Pink_TB_StandingsRegister table in the dataset. Then I select some values from year, month, costcenter
    and Glaccount parameters, it inserts some values in the _Pink_TB_StandingsRegister table. So we can use this stored procedure as the dataset in the report.
    In order to solve the problem more efficiently, I need to clarify some information.
    Are you pass multiple values parameter to one stored procedure correctly? We can refer to the following thread:
    http://social.technet.microsoft.com/Forums/en-US/dbdfa101-cccc-4e9f-aa50-566dc5ebcc27/ssrs-2008-r2-report-dataset-call-a-stored-procedure?forum=sqlrep
    What results are you get when executing the stored procedure in SQL Server Management Studio? Is it works well? We should double those stored procedures.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Tax calculation in CRM using R/3 pricing procedure

    Hello Experts
    We are using R/3 pricing procedure to calculate list prices in CRM.
    The condition record for Taxes are maintained for condition type UTXJ in SD which is calling for tax procedure TAXUSJ and condition type JR1. 
    The records are maintained in FTXP.  This is the SAP Standard way of maintaining taxes if external tax software is not used.
    We have downloaded the condition records and condition types in CRM.  The tables have all the required records downloaded from R/3.
    When creating an order in Webshop the tax is not getting calculated.
    The pricing analysis shows that the condition record for UTXJ condtion type is met, but it is not showing the tax maintained for condition type JR1. 
    Have we missed any settings here? 
    If we are using R/3 billling does the TTE needs to be activated for calculating taxes in the webshop?
    If TTE needed to be used for calculating taxes, what are the settings needed to be configured?
    Thanks in advance for the valuable advice.
    Sastri

    Hi Sastri,
    I am facing this problem with TAX Condition Records: Pricing error: Mandatory condition MWST is missing. I am using a R/3 pricing procedure correctly downloaded to CRM.
    You say that you have downloaded the condition records and condition types in CRM. SAP Library says 'Prerrequisites: You have downloaded the tax condition records from SAP ECC'.
    I don't know If my problem is caused because I haven't downloaded any Tax Condition Records. The fact is that I cannot determine which one is the Condition Object to download in R3AS.
    I would really appreciate if you or anyone could tell me which object you did use.
    thanks in advance,
    Pablo
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 12:30 PM
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 8:59 PM
    Solved!

  • Using variables in procedures

    hey guys
    I'm trying to create a procedure to insert data into certain table
    what i want to do is :
    1)get the max(ID) of a certain table so i can increase it by 1 and insert a new record
    2)check a condition and depending on that some execution will be run
    here is what i have reached so far but of course it gives a compilation error as I'm not very good at PL/SQL
    create or replace procedure Add_Asset(TABLE_NAME VARCHAR2, GEO varchar2)
    is
    DECLARE
    maxID number;
    geo_Type varchar(20);
    BEGIN
    select max(ID) into maxID from PUMP;
    select geom_type into geo_Type from geometry_type where table_name='|| TABLE_NAME ||' ;
    if geo_Type='POINT' then
    execute immediate 'INSERT INTO '|| TABLE_NAME ||' (ID,GEOMETRY) VALUES((geo_Type,SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE('|| GEO ||' ),NULL,NULL))';
    end if;
    end;
    please correct what i have write wrong
    and i want to know if I'm using the declared variable within the procedure correctly in the insert statement or what...
    thanxxxx a lot

    I don't see yet where your max(id) comes in exactly and I am not sure how to pass the SDO_GEOMETRY object in (but I'll give two alternatives):
    create or replace procedure add_asset (table_name varchar2, geo varchar2)
    is
       maxid      number;
       geo_type   varchar (20);
    begin
    /* please specify where to use this one: */
      select max (id)
         into maxid
         from pump;
       select geom_type
         into geo_type
         from geometry_type
        where geometry_type.table_name = add_asset.table_name;
       if geo_type = 'POINT'
       then
          /* either this:  */
          execute immediate 'INSERT INTO ' || table_name || ' (ID,GEOMETRY) VALUES (:1,SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE(:2 ),NULL,NULL))' using geo_type, geo;
          /* or this:  */
    --    execute immediate 'INSERT INTO ' || table_name || ' (ID,GEOMETRY) VALUES (:1,:2)' using geo_type, sdo_geometry (3001,-1,sdo_point_type (geo),null,null);
       end if;
    end add_asset;
    /

  • Call to Oracle stored procedure that returns ref cursor doesn't work

    I'm trying to use an OData service operation with Entity Framework to call an Oracle stored procedure that takes an number as an input parameter and returns a ref cursor. The client is javascript so I'm using the rest console to test my endpoints. I have been able to successful call a regular Oracle stored procedure that takes a number parameter but doesn't return anything so I think I have the different component interactions correct. When I try calling the proc that has an ref cursor for the output I get the following an error "Invalid number or type of parameters". Here are my specifics:
    App.config
    <oracle.dataaccess.client>
    <settings>
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursor.P_RESULTS" value="implicitRefCursor bindinfo='mode=Output'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.0" value="implicitRefCursor metadata='ColumnName=WINDFARM_ID;BaseColumnName=WINDFARM_ID;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Number;ProviderType=Int32'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.1" value="implicitRefCursor metadata='ColumnName=STARTTIME;BaseColumnName=STARTTIME;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.2" value="implicitRefCursor metadata='ColumnName=ENDTIME;BaseColumnName=ENDTIME;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.3" value="implicitRefCursor metadata='ColumnName=TURBINE_NUMBER;BaseColumnName=TURBINE_NUMBER;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.4" value="implicitRefCursor metadata='ColumnName=NOTES;BaseColumnName=NOTES;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYWINDFARMID.RefCursorMetaData.P_RESULTS.Column.5" value="implicitRefCursor metadata='ColumnName=TECHNICIAN_NAME;BaseColumnName=TECHNICIAN_NAME;BaseSchemaName=PGDATA_WC;BaseTableName=WORKORDERS;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="PGDATA_WC.ODATAPOC.GETWORKORDERSBYID.RefCursor.P_RESULTS" value="implicitRefCursor bindinfo='mode=Output'" />
    </settings>
    OData Service Operation:
    public class OracleODataService : DataService<OracleEntities>
    // This method is called only once to initialize service-wide policies.
    public static void InitializeService(DataServiceConfiguration config)
    // TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc.
    // Examples:
    config.SetEntitySetAccessRule("*", EntitySetRights.All);
    config.SetServiceOperationAccessRule("GetWorkOrdersByWindfarmId", ServiceOperationRights.All);
    config.SetServiceOperationAccessRule("CreateWorkOrder", ServiceOperationRights.All);
    config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
    [WebGet]
    public IQueryable<GetWorkOrdersByWindfarmId_Result> GetWorkOrdersByWindfarmId(int WindfarmId)
    return this.CurrentDataSource.GetWorkOrdersByWindfarmId(WindfarmId).AsQueryable();
    [WebGet]
    public void CreateWorkOrder(int WindfarmId)
    this.CurrentDataSource.CreateWorkOrder(WindfarmId);
    Here is the stored procedure:
    procedure GetWorkOrdersByWindFarmId(WINDFARMID IN NUMBER,
    P_RESULTS OUT REF_CUR) is
    begin
    OPEN P_RESULTS FOR
    select WINDFARM_ID,
    STARTTIME,
    ENDTIME,
    TURBINE_NUMBER,
    NOTES,
    TECHNICIAN_NAME
    from WORKORDERS
    where WINDFARM_ID = WINDFARMID;
    end GetWorkOrdersByWindFarmId;
    I defined a function import for the stored procedure using the directions I found online by creating a new complex type. I don't know if I should be defining the input parameter, WindfarmId, in my app.config? If I should what would that format look like? I also don't know if I'm invoking the stored procedure correctly in my service operation? I'm testing everything through the rest console because the client consuming this information is written in javascript and expecting a json format. Any help is appreciated!
    Edited by: 1001323 on Apr 20, 2013 8:04 AM
    Edited by: jennyh on Apr 22, 2013 9:00 AM

    Making the change you suggested still resulted in the same Oracle.DataAccess.Client.OracleException {"ORA-06550: line 1, column 8:\nPLS-00306: wrong number or types of arguments in call to 'GETWORKORDERSBYWINDFARMID'\nORA-06550: line 1, column 8:\nPL/SQL: Statement ignored"}     System.Exception {Oracle.DataAccess.Client.OracleException}
    I keep thinking it has to do with my oracle.dataaccess.client settings in App.Config because I don't actually put the WindfarmId and an input parameter. I tried a few different ways to do this but can't find the correct format.

  • Help required in JDBC Stored Procedure

    Hi All,
    i have a requirement where i need to update the Database table using Stored Procedure from PI.
    I have the receiver JDBC channel and have done the mapping.
    The stored procedure has inputs of type NUMBER, VARCHAR2,DATE. in the message mapping i tried passing the same values in the type field, it throwed an error like UnSuppoted Format. Then i changed the type to integer for NUMBER and String for Varchar2 then also it is throwing an error like
    +java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PUT_XXXXX' ORA-06550: line 1, column 7: PL/SQL: Statement ignored +
    Can any please help with what type i need to send from PI to Stored procedure?
    Also, there two out type fileds defined in the Stored procedure..which i didnt create in my PI structure. Do we need to create that fileds in our structure?
    Please help me.
    Thanks,
    Hemanth.

    Hi Hemanth Kumar,
    I understand that you want to execute a stored procedure using JDBC receiver channel and looking at error message, you think there is an issue with type defined in Data Type.
    Now you need to debug step by step.
    Step 1:- In Interface Mapping Determination, do not refer to Operational Mapping (delete only OM from there, not the receiver Message Interface). By doing so, you are not call the OM (which refer to Graphical Mapping (MM refer to Data Type (which you think is wrong)). Note: As there is no OM, we need to send the exact payload required by receiver JDBC from Runtime Work Bench, for testing purpose.
    Step 2:- In receiver JDBC channel, change u2018Message Protocolu2019 from u201CXML SQL Formatu201D to u201CNative SQL Stringu201D. By doing this, you can do testing very fast; receiver JDBC channel will take only String. And we need to send the exact String which is needed by JDBC Stored Procedure. [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm]
    Step 3:- Now from RWB test the scenario. Payload should like this, please take help of Data base team to find the String which needs to send.
    EXECUTE PUT_uspAddress @City = 'New York'
    OR If you have access to the database, logon to it directly and try running the Stored Procedure.
    Step 4:- Now, you should have the string which executes the Stored Procedure correctly to go ahead. Your job is 60% done.
    Step 5:- Now, in receiver JDBC channel, change u2018Message Protocolu2019 from u201CNative SQL Stringu201D to u201CXML SQL Formatu201D. So that receiver JDBC channel will take only XML.
    Step 6:- So now, you have to construct equalant XML structure to String you got in Step 4.
    It may look like this [Link2|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b72b2fde93673e10000000a114a6b/frameset.htm]
    <StatementName>
        <storedProcedureName action=u201D EXECUTEu201D>
           <table> PUT_uspAddress </table>
            < City [isInput=u201Dtrueu201D] type=SQLDatatype>val1</ City>
        </storedProcedureName >
      </StatementName>
    Step 7:- Now use the XML you have constructed in Step 6, to test the scenario from RWB. Try to correct if you come up with some errors. Your job is 90% done.
    Step 8:- Now, in Interface Mapping Determination refer back the Operational Mapping again, which contain the Message Mapping. Make sure that Message Mapping give the XML output same as XML you have developed in Step 6.
    FYI. 1. Whatever youu2019re sending, it will be converted to JDBC statement and will be executed on the database. logSQLStatement(JDBC Additional parameters sapnote_0000801367) will be show in logging not in payload.
    2. Most of the cases, type defined in Data Type has no control of what we can send in that element (except Date type). Let say, you can define an element u2018Ageu2019 as u2018numberu2019, but you can always send u201Casdfasdfu201D as input in Message Mapping.
    Regards,
    Raghu_Vamsee

  • How to call stored procedure from javascript? (about Google Suggest, AJAX)

    Hi I want to implement a text field so that it behaves like [Google Suggest|http://www.google.com/webhp?complete=1&hl=en] .
    I read this post .
    Now I've setup everything according to that document. But it just doesn't work. And I don't know why.
    I think problems may fall into the following three categories:
    1. Does the text field and the page invoke the proper javascript?
    2. Does the javascript successfully call the stored procedure?
    3. Can the stored procedure correctly return the formatted result?
    I am affirmative for 1 and 3, but I'm not sure about 2. Because I don't know how to tell if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL*Plus?
    Also, I would to know how to debug AJAX in APEX. It involves many things.
    Last, I used APEX 3.2 and Oracle XE. I cannot find either dads.conf or marvel.conf file. Is "/apex/" the virtual directory for APEX?
    Thanks a lot!

    Hello,
    I recently also ran into problems with this and I will post my solution here:
    1) if you need to pass parameters to your procedure, create it using "Flexible Parameter Passing". Then parse the parameters out of the array and put them in local variables inside your PL/SQL procedure.
    Example:
    CREATE OR REPLACE PROCEDURE MATTHIASH.incsearch(name_array IN owa.vc_arr,
         value_array IN owa.vc_arr) as
      l_List1 varchar2(4000);
      l_List2 varchar2(4000);
      l_query varchar2(255);
      l_separator varchar2(10) default '';
      qu varchar2(4000) default '';
      hl varchar2(4000) default '';
    BEGIN
      FOR i IN 1 .. name_array.COUNT 
      LOOP
           IF name_array(i) = 'qu' THEN
                qu := value_array(i);
           ELSIF name_array(i) = 'hl' THEN
                hl := value_array(i);
           END IF;
      END LOOP;
      l_query := qu||'%';
      FOR x IN (
      select object_name, object_id from user_objects
      where upper(object_name) like upper(l_query) and upper(object_type) = upper(hl) order by 1 asc)
      LOOP
        l_list1 := l_List1 || l_separator || '"' || x.object_name || '"';
        l_list2 := l_List2 || l_separator || '"' || x.object_id || '"';
        l_separator := ',';
      END LOOP;
      owa_util.mime_header('text/html', false);
      owa_util.http_header_close;
      --htp.p('sendRPCDone(frameElement, "'|| qu ||'", new Array(' || l_List1 || '), new Array(' || l_List2 || '), new Array(""));');
      htp.p('sendRPCDone(frameElement, "' || qu || '", new Array(' || l_List1 || '), new Array(' || l_List2 || '), new Array(""));');
    END;
    /2) grant EXECUTE rights to APEX_PUBLIC_USER (the user APEX uses to connect to the database) on the procedure
    grant execute on incsearch to apex_public_user;3) upload the ac.js file as static file to your application
    4) put the following javascript code in the HTML Header of your APEX page:
    <script src="#WORKSPACE_IMAGES#ac.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    function iac()
    InstallAC(document.wwv_flow,document.getElementById('P1_X'),"","!MATTHIASH.incsearch","&P1_OBJECT_TYPE.");
    </script>In my example, P1_X is a text field and P1_OBJECT_TYPE is a dropdown list with all user object types.
    Good luck,
    Matthias Hoys

  • Procedure which returns value

    Well! Simply I want, to write procedure which will insert or updates (is dependent from ID if ID <=0 then there is an insert otherwise updating) the information of the Student, and returns it's ID....... how I can write procedure like this???
    is this procedure correct ???
    create or replace procedure sp_InsertUpdate_T_STUDENT
    nResID out NUMBER,
    nID in NUMBER,
    vchNAME in VARCHAR2,
    vchSURNAME in VARCHAR2,
    nAGE in NUMBER,
    nCNAUTHORID in NUMBER
    as
    begin
    if nID<=0 then
    insert into T_STUDENT (NAME,SURNAME,AGE,CNAUTHORID) values (vchNAME,vchSURNAME,nAGE,nCNAUTHORID );
    else
    update T_STUDENT set NAME=vchNAME,SURNAME=vchSURNAME,AGE=nAGE,CNAUTHORID=nCNAUTHORID
    where ID=nID;
    end if;
    select ID into nResID from T_STUDENT where NAME=vchNAME and
    SURNAME=vchSURNAME and AGE=nAGE and CNAUTHORID=nCNAUTHORID;
    end;

    is this procedure correct ???Does it work?
    You might change the insert logic so that it uses a RETURNING clause to set nResID as part of the insert, instead of doing it later.

  • Month end and year end procedure

    hi experts,
    can any one help me for year end and month end procedure
    correct answers will be duly rewarded
    thanks in advance

    hi,
    Month end closing Activities
    1. All the expenses including amortization, prepaid expenses, Preliminary expenses and accruals have been booked.
    2. Complete Bank Reconciliation
    3. Make sure that Sum of Inter company balances is Zero
    4. Suspense Accounts should be cleared regularly.
    5. Ensure that all documents related to MM & SD have been entered in system.
    6. Ensure that all billing documents are released to accounting.
    7. Calculate Overheads on all process Orders (CO43)
    8. Technically complete all process orders, which are fully processed (CORM).
    9. Calculate Variance (KKS1)à (Relevant only if Standard cost is calculated).
    10. Settle all process orders, which are technically complete (CO88).
    11. Close All settled Process Orders
    12. Close MM period (Transaction Code: MMPV).
    13. Carry out GR/IR clearing (F.13) transaction
    14. Depreciation Run (AFAB) has been carried out for the month
    15. Close FI Posting period after the month end closing activity is over.
    Year end closing Activities:
    1. Calculate production work in progress on process orders  which are not technically complete.
    2. Carry out Assessment cycle for Cost Centers.
    3. All month end closing Activities should be carried out.
    4. Carry Forward Balances to next year
    (With TC: F.16 we can carry forward the balance to next year.
    With TC: OBH2 copy the number ranges to next year
    Open next year periods by selecting the Posting Period Variant.
    Then test by posting the transaction in F-02)
    thanks
    sai krishna

  • What is the procedure to stop and restart the Hyerion Environment

    Hi All,
    Can you kindly let me know whether the procedure that i am following below is correct to stop and restart the Hyperion Environment.
    To Stop:
    1) Essbase.
    2) Shared Services.
    3) BI+ (Financial Reporting)
    4) Planning.
    5) DB2
    To Start:
    1) DB2
    2) Shared Services.
    3) BI+ (Financial Reporting)
    4) Hyperion Planning.
    5) Essbase.
    Is the above procedure correct or do i need to do any changes to it.
    Regards,
    Krishna.

    Hi,
    I guess restarting database is not required during the process of restarting Hyperion Environment. Below order is preferable.
    Stop:
    1) Essbase Administration Services
    2) Planning
    3) BI Plus Web Apps (Workspace, Web Analysis,..)
    4) BI Plus (core)
    5) Foundation Services (License services, shared services)
    Start:
    1) Foundation Services (License services, shared services)
    2) BI Plus (core)
    3) BI Plus Web Apps (Workspace, Web Analysis,..)
    4) Essbase Administration Services
    5) Planning
    Regards,
    Sreemani

Maybe you are looking for

  • Device Driver Software Not Installed Properly

    Hi I have Reinstalled Windows 7 ultimate 64 bit, after installing all hp drivers I lost WIFI and when checked Device Manager I found Under >Display Drivers >(1)standard VGA Graphics Adapter (ERROR)- when I right click mouse and check under general th

  • How to convert date format in R3 system

    hi i have the problem converting the date formate in bapi for that i take value attribute value and map it with but it shows error

  • Is the iPhone 5 5W Power Adapter the same as what came with previous iPhone models?

    My rep at the AT&T store claims the new power adapter that comes with the iPhone 5 is of a higher wattage, and that using older power adapters would cause damage to the battery.  No entirely sure if I believe him since there were a few other things h

  • Colour profiles etc. workspace & pdf

    Hi there I know that there will always be a difference between onscreen and printed results. Although I would like to know what are the best settings to avoid a huge difference between the bright and colourful colours I get in InDesign when working o

  • Query displaying wrong results

    Hi I have developed a query, in dev and transported to quality. everything worked fine in dev, after transport to quality, the query output is displaying data incorrectly for one particular infoobject. value is fourtimes the original value in the cub