Procedure  prob

hi,
i need a stroed procedure that takes table name and column names as arg and this procedure should return all column values in that table .
this type option available in sql server. but no option available in oracle.
how can i accomplish this task?
this procedure is integrated in .net application?

thanks for looking into question
but i pass table_name and column names to sp
like
sp('table_name','col1,col2,col3');
example is
sp('airplanes','PROGRAM_ID,LINE_NUMBER ,CUSTOMER_ID ,ORDER_DATE, DELIVERED_DATE')
output should be like
PROGRAM_ID LINE_NUMBER CUSTOMER_ID ORDER_DATE DELIVERED_DATE
747 466 SAL 10-JUL-08 27-JAN-10
747 467 ILC 11-JUL-08 29-JAN-10
747 468 SWA 12-JUL-08 31-JAN-10
747 469 NWO 13-JUL-08 02-FEB-10
747 470 USAF 14-JUL-08 04-FEB-10
747 471 AAL 15-JUL-08 06-FEB-10
747 472 DAL 16-JUL-08 08-FEB-10
747 473 SAL 17-JUL-08 10-FEB-10
747 474 ILC 18-JUL-08 12-FEB-10
747 475 SWA 19-JUL-08 14-FEB-10
and other thing it should return values of column not dispaly using dbms_output.
because i want to call this one in another procedure
Message was edited by:
user561780

Similar Messages

  • Html forms in plsql procedure prob

    Hi,
    i have created a plsql procedure and have included a javascript part in order to link two drop down menus in a web site. but even though when you select a category at the first drop down menu it successfully updates the options at the second, the Action of the form doesnt work (the parameter doesnt pass to the procedure they should according to the Action command. If i don't use the first drop down menu though and add few options at the second, the Action works fine...can u please help me???
    This is the code after the java script part...
    htp.print('<FORM NAME="select_mem" ACTION="'||f_host||'search" METHOD="post">');
    htp.print('<SELECT name="Category" onChange="updateList(this.form, this.options[selectedIndex].value, this.form.Subject.length)" >');
    for sel_t in ctype loop
    htp.print('<option value="'||replace(sel_t.mem_type,' ','_')'">'||sel_t.mem_type||'</option>');
         end loop;
    htp.print('</SELECT>');
    htp.print('<br>');
    htp.print('<select name="Subject" id="Subject" >');
    htp.print('<option value="None" SELECTED>- Please Choose a Category Above - </option>');
         htp.print('</select>');
    htp.print('<INPUT TYPE="submit" value="submit">');
    htp.print('</FORM>');

    sorry, dimi, but this forum is limited to questions about the product Oracle HTML DB. if you're not sure what OTN discussion forum is best suited for your question, i think they'd have you ask for the correct one at...
    Community Feedback (No Product Questions)
    regards,
    raj
    ps-my answer to the second question at the top of Pop List and Developer Toolbar shows an easy way in htmldb to implement the type of thing you're after.

  • Problem with SP with table parameters

    Hello, I have problem with stored procedure with paramater which is table type.
    I have defined my own type
    CREATE OR REPLACE TYPE STRING_LST AS TABLE OF VARCHAR2(80);
    and i have stored procedure like this
      PROCEDURE probe(outList OUT STRING_LST) IS   BEGIN     outList := STRING_LST();     outList.EXTEND();     outList(outList.LAST) := 'ONE';     outList.EXTEND();     outList(outList.LAST) := 'TWO';     outList.EXTEND();     outList(outList.LAST) := 'THREE';   END probe;
    I have java class which connects to the database and calls this procedure
    package mypackage; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Types; import java.sql.Array; public class DAO_Test { public static String toNormalString (String aa) { if (aa != null && aa.startsWith("0x")) { StringBuffer str = new StringBuffer(64); for (int i = 2; i < aa.length(); i += 2) { str.append((char) Integer.parseInt(aa.substring(i, i + 2), 16)); } return str.toString(); } else { return aa; } } public void probe ( ) { try { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection conn = DriverManager.getConnection("dbc:oracle:thin:@server_ip:database_name", "sa", "blahblah"); String sql = "{ CALL PROBE(?) }"; String sqlType = "STRING_LST"; CallableStatement cs = conn.prepareCall(sql); cs.registerOutParameter(1, Types.ARRAY, sqlType); cs.execute(); Array arr = cs.getArray(1); String[] values = (String[]) arr.getArray(); for (int i = 0; i < values.length; i++) { System.out.println("" + i + ": '" + toNormalString(values) + "'");
    cs.close();
    conn.close();
    } catch (SQLException e) {
    logger.error("SQLException", e);
    } catch (Exception e) {
    logger.error("Exception", e);
    public static void main (String args[]) throws SQLException {
    DAO_Test test = new DAO_Test();
    test.probe();
    Now...
    When I run this class on my local machine the result is OK nad looks like
    1: 'ONE'
    2: 'TWO'
    3: 'THREE'
    But when I copy this class on the server and run it, the result is wrong
    1: '???'
    2: '???'
    3: '???'
    Here is my environment:
    on local machine
    eclipse 3.3.1
    java 1.5 (java version compiler in eclipse is 1.4)
    on server
    oracle 9.2.0.6.0
    java 1.4.2_08
    Result from table parameters are always 3 question marks :|
    What is the problem?
    Rafał

    HI,
    I think i found the solution: nls_charset12.jar from page
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
    I have copied this jar to server lib directory and it works fine :)

  • Prob. in Executing dynamic stored procedure inside a function where S.P....

    Hi,
    My Stored Procedure is
    create or replace procedure concatname(a varchar2,
    b varchar2,
    c out varchar2)
    as
    begin
    c := a || b;
    end;
    My Function is
    create or replace function ex(sp varchar2)
    return varchar2 as
    v varchar2(100);
    begin
    execute immediate 'begin '||sp||'(''test'','' procedure'',:o); end;'
    using out v;
    return v;
    end;
    Iam using PowerBuilder 8 as a FRONT END Tool ( connecting to ORACLE db - 10gR2 through ODBC driver) for executing the above function where i will pass the stored procedure name ( CONCATNAME ) as an argument.
    The function is executing fine when i execute through ISQL interface.
    While executing this function from the front end tool( POWER BUILDER ) iam getting the following error.
    ORA-03113: end-of-file on communication channel.
    I dont know, why this error is coming ? As the function is executing fine
    through ISQL ?
    I think this error will come if you execute the above function from any front
    end tool( like .Net etc. ).
    Can anybody help me ? How to avoid this error ( ORA-03113 ) ?
    For Your Information: All other simple functions are executing fine through POWER BUILDER in my application.

    ORA-03113: end-of-file on communication channel is a client driver error. It is a symptom of a problem - it is not the problem itself.
    This error message simply says that your client was still talking to the database service process servicing your client session, when that (TCP/IP socket) connection was unexpectedly torn down by the server.
    This is often caused by that database service process crashing due to an internal (ORA-0600) error - and taking the TCP/IP connection down with it.
    You need to ask your DBA to have a look at the alert log file for the Oracle instance. The crash will be recorded there. In addition a trace file should have been created.
    Using the 1st parameter of the ORA-0600 message for the crash in the alert log file, the DBA should lookup the possible causes of the crash on Metalink note 153788.1

  • Prob While Creating Customer Master - Error Msg "Number '0' Not defined"

    Dear Experts,
    I am Trying to create a customer with diff SP, SH, BP and PY. I was able to create Customer for BP and PY.
    But now when I go and try to created a SH customer with xd01 for my Sales.Org (99SS-XS-X1),
    In the Sales Area Data, Partner Function Tab, Partner function field the Number is 0 before the SH function field (instead of Internal / Blank) and at the bottom  give the error Msg that "Number '0' is not define". I have Cross checked the my Number ranges(no-22 from 7000-7999), account groups(ZA22)  and Partner function (SH), everything seems to Ok. But unable to find the solution. plz help me with this if you have ever come across such a prob.
    I would like to mention that the previously had no issues in creating customers following same procedure. I guess some one must have changed some settings by accident.
    This prob is only specific while creating only SP and SH Customers.
    Many ThanX.

    Thanks Amit for your valuable suggestion, But today I was able to solve the problem with help of my trainer, Someone has changed the default settings in partner determination, the solution is below which will help anyone who may come across a similar Problem.
    Spro->IMG->Sales & Distribution->Basic Functions->Partner Determination->Setup Partner Determination->Setup Partner Determination for Customer Master->Partner Functions
    Find the partner Function SP/SH/BP/PY there partner type should be KU. If anyone changes this settings Then the above problem arises.
    Regards.

  • Executing a Stored Procedure passing Oracle Defined User Type

    Hello All,
    I am having problems in executing a SP from Java. Here is the detailed info of the prob I am facing.
    I have a SP created which takes in a Table Type as one of the input parameter. This table type say "SERVICE" is of the Object Type "OBJ_SERVICETOMOVE".
    Now I am writing a simple Java Clinet which executes the procedure. and below is the sample code I am pasting.
    public class DBClient {
         public static void main(String args[])
              DBConnection dbclass = new DBConnection();
              dbclass.getConnection();
              //String movingOrder = args[0];
              ArrayList arrList = new ArrayList();
              arrList.add("10001");
              arrList.add("10002");
              arrList.add("10003");
              java.sql.Date date = null;
              try
                   SimpleDateFormat objSDF = new SimpleDateFormat("dd/MM/yyyy");
                   java.util.Date dtCcDate = (java.util.Date) objSDF.parse("02/01/2005");
                   java.sql.Date localdate = new java.sql.Date(dtCcDate.getTime());
                   date = localdate;
              catch(ParseException e)
                   System.out.println("Parse Exception CAUGHT"+e.getMessage());
              combttmOE04ServicesToMove inputParam = new combttmOE04ServicesToMove(arrList);
              try
                   OracleCallableStatement cs = dbclass.getCallableStatement("saveMovingOrder4Service(?,?,?)");
                   cs.setInt(1,10);
                   cs.setInt(2,date);
                   cs.setObject(3,inputParam);
                   dbclass.executeStoreProc();
              catch(SQLException e)
                   e.printStackTrace();
              catch(Exception e)
                   System.out.println("Exception CAUGHT"+e.getMessage());
    The error I am getting is
    java.sql.SQLException: Invalid column type
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java)
    at DBClient.main(DBClient.java:84)
    Can anyone of you advise me on this
    Regards
    Rags

    Rags,
    Have you looked at the JDBC sample code available from here:
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    And the "how-to" documents, available from here:
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/index.html
    I once did something similar to what (I think) you are trying to do -- but unfortunately I lost that code when the hard-disk on my PC died. I do remember though, finding how to do it from the above-listed URLs.
    Good Luck,
    Avi.

  • Getting PROBE TIMEOUT Error....please help me out...It is urgent

    Hello,
    I'm running a stored procedure in oracle 10G that select data from one table and inserts the selected data into another table. The procedure populates for a short while and then I get the following messages:
    1. probe: timeout Occurred
    2. probe: Exception raised in the DBMS_DEBUG package
    Why is this happening and what should I do to resolve the above issue?
    Please help me out....This is really urgent...
    Thanks a lot in advance....
    Regards,
    Suranjita

    Please check Database alert log to see if any error is raised ?

  • Calling procedures multiple times passing rum time parameters

    hii,
    i ve this small prob with my procedure..my proc is
    CREATE or replace PROCEDURE sad(star_val number,dept_id number) IS
    BEGIN
    update dept set star=star_val where department_id=dept_id;
    END;
    and i call this proc using a loop and give the values at runtime..
    declare
    v_count number(3);
    begin
    v_count := 4;
    loop
    sad(&value,&dept);
    v_count := v_count-1;
    exit when v_count=0;
    end loop;
    end;
    this procedure runs only once with out looping 3 times..can anybody help me out..

    .... passing rum time parameters ......
    programming in the caribbeans must be wonderful
    anyway : how do you know it ran only once ?
    most probably it ran 5 times doing the same update defined by &value,&dept
    ahh, now I get it, you believe you'll be asked again and again to enter values for &value,&dept .
    Sorry, no can do, PLSQL is not interactive
    further reading at http://tahiti.oracle.com

  • How do i include this 'select' stmt in a 'procedure'.

    create or replace procedure proc1
    AS
    BEGIN
    select table1.name,table1.symbol,table1.quantity,table2.price,(table1.quantity*table2.price) AS Total
    from table1,table2
    where table2.date=(select date from
    table2,table1,table3
    where table1.date=table3.date
    AND table1symbol=table2.symbol)
    END;
    here, name and symbol are varchar2
    and quantity and price are number
    date is date
    the main problem is tht select in a procedure requires an INTO clause
    The normal select query is running but i am unable to transform it into a procedure using variables and cursors
    can u solve this prob for me...??

    > The normal select query is running but i am unable to
    transform it into a procedure using variables and cursors
    There are a couple of ways to define cursors - even a plain SQL as what you have posted is a cursor.
    The details:
    Oracle® Database PL/SQL User's Guide and Reference
    Chapter 6. Performing SQL Operations from PL/SQL
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
    The basics - for an explicit cursor you want to use bulk collection 99% of the time in order for performance and scalability. So (assuming the SQL has been analysed and optimised):
    create or replace procedure proc1 as
    -- define an explicit cursor
    cursor myCursor is
    select
    table1.name,table1.symbol,table1.quantity,
    table2.price,(table1.quantity*table2.price) AS Total
    from table1,table2
    where table2.date=(
    select
    date
    from table2,table1,table3
    where table1.date=table3.date
    and table1.symbol=table2.symbol
    -- define an array type for fetching the rows into
    type TBuffer is table of myCursor%ROWTYPE;
    -- define an array for fetching the rows into
    buffer TBuffer;
    begin
    open myCursor;
    loop
    -- fetch a max of 1000 rows at a time
    fetch myCursor bulk collect into buffer limit 1000;
    -- process these rows
    for i in 1..buffer.Count
    loop
    -- buffer needs to be subscripted to get to the row,
    -- and buffer contains the columns that were selected
    -- from the tables, e.g.
    DBMS_OUTPUT.put_line( 'Processing '||buffer(i).name );
    Proc2( buffer(i) );
    end loop;
    exit when myCursor%NOTFOUND;
    end loop;
    close myCursor;
    end;
    All the details of bulk processing and cursors are in the PL/SQL User Guide - with examples.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Procedure running in XE not in version 10.1.0.2.0

    create or replace PROCEDURE load_file1 ( p_id number, p_photo_name in varchar2)
    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('PHOTO_DIR', p_photo_name);
    INSERT INTO temp_photo (id, photo_name, photo)
    VALUES (p_id , p_photo_name ,EMPTY_BLOB()) RETURNING photo INTO dst_file;
    SELECT photo INTO dst_file FROM temp_photo WHERE id = p_id AND photo_name = p_photo_name FOR UPDATE;
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    lgh_file := dbms_lob.getlength(src_file);
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    UPDATE temp_photo SET photo = dst_file WHERE id = p_id AND photo_name = p_photo_name;
    dbms_lob.fileclose(src_file);
    END load_file;
    this is the procedure i used to insert into database..the error it shows it "procedure created with compilation errors"..my version is 10.1.0.2.0...pls help me retrive tis prob..(it worked out in express edition not in tis version)and kindly tel me how to execute tis procedure also..

    Hi,
    look this,
    PROCEDURE load_file1
       and
    END load_file;try this code,
    CREATE OR REPLACE PROCEDURE load_file1(p_id         number,
                                           p_photo_name in varchar2) IS
      src_file BFILE;
      dst_file BLOB;
      lgh_file BINARY_INTEGER;
    BEGIN
      src_file := bfilename('PHOTO_DIR', p_photo_name);
      INSERT INTO temp_photo
        (id, photo_name, photo)
      VALUES
        (p_id, p_photo_name, EMPTY_BLOB())
      RETURNING photo;
      SELECT photo
        INTO dst_file
        FROM temp_photo
       WHERE id = p_id
         AND photo_name = p_photo_name
         FOR UPDATE;
      dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
      lgh_file := dbms_lob.getlength(src_file);
      dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
      UPDATE temp_photo
         SET photo = dst_file
       WHERE id = p_id
         AND photo_name = p_photo_name;
      dbms_lob.fileclose(src_file);
    END load_file1;regards,
    Christian Balz

  • AUC Procedure

    Dear Experts,
                            I have created one AUC Asset class with option of investment measure,Investement order.
                            Investment order i have linked in the asset master of AUC.
                            I have created PO refering to such AUC Asset(Account assignment category 'A')
                            Next iam trying to raise Down Payment Request, if i give PO document number,
                            it is picking automatically, relevant order and an Asset also.
    But before saving earlier it shown error like cost element missing,
                            then i have created balance sheet gl for such asset as a cost element category '90'
                            again error like down payment cost element.then i have assigned misc cost element in OKEP
                            Then it is showing the error like "Fi postings not allowed(200002(order no))".
                           Error in detail it is showing:
    "FI: Postings" is not allowed (ORD 200002)
    Message no. BS007
    Diagnosis
    The current status of object 'ORD 200002' prohibits business transaction 'FI: Postings'.
    Procedure
    To process business transaction 'FI: Postings', you first have to change the status of object 'ORD 200002' to allow the transaction 'FI: Postings'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    Please guide me some one proper procedure to come our from the above issue.
    Required process:
    I need to create an asset with down payment with PO ref,
    at the time of MIGO some amount
    After installation total amount.
    I need everything with budget.
    First values to INV ord, settle to AUC and finally settle to Main asset.
    Plesae guide me.
    Thanks in Advance
    Chinni

    Dear,
             That prob was resolved, but data is not reaching to Investment order,
              i have assigned budget to inv order
              it is not showing actual posted into that.
              Now i posted downpayment refernce with PO,
              Posting Happened in Vendor,but it is not hitting to investment order.
    Please guide me dear.
    Thanks in advance
    Chinni

  • Having prob in retrieving data

    Basically i have 2 tables ...
    __TABLE 1:__
    COL_NAME COL_VALUE
    Name Col_3
    Rno Col_2
    Class Col_1
    __TABLE 2:__
    COL_1 COL_2 COL_3
    Sharath 111 mca
    Sandeep 102 btech
    Amar 103 mba
    BOTH THE TABLES ARE LINKED.TABLE2 COLUMN NAMES ARE VALUES IN TABLE 1
    Now My prob is i want a query that gets COL_VALUE from TABLE1 based on given COL_NAME and get the data from TABLE2 of that value got from TABLE1.

    # You need to play really dynamically in building your SQL's if storing metadata inside table. Also this may create problem if metadata is not handled properly
    # Below is simple demonostration where you pass your first table col name and we derive the col value for second table and execute SQL to get data from second table
    SQL>CREATE TABLE T1
      2  (
      3    COL_NAME  VARCHAR2(10),
      4    COL_VALUE VARCHAR2(10)
      5  );
    Table created.
    SQL>
    SQL>INSERT INTO T1 VALUES ('NAME', 'COL_1');
    1 row created.
    SQL>INSERT INTO T1 VALUES ('RNO', 'COL_2');
    1 row created.
    SQL>INSERT INTO T1 VALUES ('CLASS', 'COL_3');
    1 row created.
    SQL>
    SQL>CREATE TABLE T2
      2  (
      3    COL_1  VARCHAR2(10),
      4    COL_2  NUMBER,
      5    COL_3  VARCHAR2(10)
      6  );
    Table created.
    SQL>
    SQL>INSERT INTO T2 VALUES ('Sharath', 111,'mca');
    1 row created.
    SQL>INSERT INTO T2 VALUES ('Sandeep', 102,'btech');
    1 row created.
    SQL>INSERT INTO T2 VALUES ('Amar', 103,'mba');
    1 row created.
    SQL>
    SQL>CREATE OR REPLACE PROCEDURE GET_T2_SQL(P_COL_NAME T1.COL_NAME%TYPE, P_RC OUT SYS_REFCURSOR) IS
      2   V_SQL VARCHAR2(32767) := NULL;
      3  BEGIN
      4
      5  SELECT 'SELECT ' || COL_VALUE || ' FROM T2'
      6  INTO V_SQL
      7  FROM  T1
      8  WHERE T1.COL_NAME = P_COL_NAME;
      9
    10  OPEN P_RC FOR V_SQL;
    11
    12  EXCEPTION
    13    WHEN NO_DATA_FOUND THEN
    14      RAISE_APPLICATION_ERROR(-20001, P_COL_NAME || ' not found in table -T1.COL_NAME');
    15  END;
    16  /
    Procedure created.
    SQL>variable RC REFCURSOR;
    SQL>EXEC GET_T2_SQL('NAME',:RC);
    PL/SQL procedure successfully completed.
    SQL>PRINT RC;
    COL_1
    Sharath
    Sandeep
    Amar
    SQL>EXEC GET_T2_SQL('RNO',:RC);
    PL/SQL procedure successfully completed.
    SQL>PRINT RC;
         COL_2
           111
           102
           103
    SQL>EXEC GET_T2_SQL('CLASS',:RC);
    PL/SQL procedure successfully completed.
    SQL>PRINT RC;
    COL_3
    mca
    btech
    mba
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Role conflict in release procedure

    Dear All,
    We have one scenario, we want to create two release procedures for different value of po i.e. >1 Lac and <= 1 Lac, we have one group and three person with these codes
    01 engineer
    02 manager
    03 general manager.
    Now for first release strat (< 1 lac)we want to keep two levels
    01 engineer
    02 manager
    for second release strat ( >= 1 Lac)we will keep two levels
    02 manager
    03 general manager.
    Group will be same for three of them and for both the release strat. now can anyone tell me that the role of 02 manager is conflicting between two release strat.
    Because after implementign same release strategies, we are not able to release the po with code 02 for first release strat.
    we are getting msg express document was terminated...
    i think there is some prob in release proc itself..eventhough simulation is getting done ok in customisation.
    Please reply at earliest

    Hi,
    Check
    http://www.sap123.com/showthread.php?t=59

  • Strage behaviour while executing the Procedure

    Hi All,
    In Schema "Dwr_trade" we have one procedure Proc1. There is another schema
    " Dwr_trade_user " this schema has execute privilege on Proc1 of "Dwr_trade" schema.
    When we are executing the procedure Proc1 from "Dwr_trade" schema as follows
    Dwr_trade --- (Procedure is created here)
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    It gives error ,but when we are executing the same procedure after removing the prefix "Dwr_Trade" it is executing successfully.
    when we are executing the procedure from "Dwr_trade_user " then also is working fine.We are executing it as follows.
    Dwr_trade_user
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    Any pointer why this is giving error in 1st case.
    Many Thanks
    Dikshit

    Begin
    Exec procedure Dwr_trade.Proc1 <----Isnt Syntax prob
    End;
    SQL> CREATE OR REPLACE PROCEDURE mypro AS
      2  BEGIN
      3  null;
      4  END;
      5  .
    SQL> /
    Procedure created.
    SQL> EXECUTE PROCEDURE mypro;
    BEGIN PROCEDURE mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    SQL> EXECUTE PROCEDURE scott.mypro;
    BEGIN PROCEDURE scott.mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    The symbol "PROCEDURE" was ignored.
    SQL> EXECUTE mypro;
    PL/SQL procedure successfully completed.
    SQL> EXECUTE scott.mypro;
    PL/SQL procedure successfully completed.Khurram

  • Tax procedure & PO document currency

    Hi Experts,
    when we are  creating  PO with currency in the Header tab with INR and with a tax code V0  ( Tax procedure TAXINN) PO is created. But when we creating PO with currency in the Header tab with USD and with  tax code V0  System is showing error : Enter rate USD / INR rate type  for 20.01.2010 in the system settings
    we have maintained exchange rates in currency conversion table (OB08).
    are there any other settings?
    thanks in advance.

    Hi
    After checking OB08 also check OBBS ( where u need to maintain an entry) also Table TCURR for the entry. If u do these thing then your prob will resolve
    With regards
    Pavan

Maybe you are looking for