Using nested BEGIN..END Block....

Hi,
I am unable to use nested BEGIN..ENF Block.See error defined below
BEGIN
        BEGIN
                SELECT xcod_code INTO v_cmpy_xcod_code
                FROM   ext_code_type
                WHERE  xcod_code = sdiStruct.cmpy_xcod_code
                AND    inst_borg_ind = 'B';
        EXCEPTION WHEN NO_DATA_FOUND
        THEN
             erm := 'CMPY XCOD CODE not found with indicator of B';
             RAISE err;
        END;
        BEGIN
                SELECT  borg_num,borg_code INTO v_borg_num,v_borg_code
                FROM    borg_code
                WHERE   borg_code  = sdiStruct.cmpy_id
                AND     xcod_code  = sdiStruct.cmpy_xcod_code;
        EXCEPTION WHEN NO_DATA_FOUND
        THEN
                erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
                RAISE err;
        END;
     EXCEPTION
     WHEN err THEN
     RAISE_APPLICATION_ERROR(-20001,erm);
END;The ERROR I get is this
LINE/COL ERROR
113/3    PLS-00103: Encountered the symbol "RAISE" when expecting one of
         the following:
         . ( * @ % & = - + ; < / > at in is mod not rem
         <an exponent (**)> <> or != or ~= >= <= <> and or like
         between ||If I remove the 2nd nested BEGIN..END BLOCK,It works fine.
Cant I write multiple BEGIN..END BLOCK??

The error that you are receiving indicates that it happened on line 113 of your code, so you have obviously left out a whole lot. The portion of the code that you posted works fine, as long as you have all of the correspoinding pieces. I don't know if sdistruct is a package or a row of a cursor or what and I don't know your table structure, so I have just made something up, in order to demonstrate below. In the future, it helps if you include things like complete code and table structure and Oracle version.
scott@ORA92> CREATE TABLE ext_code_type
  2    (xcod_code     NUMBER,
  3       inst_borg_ind VARCHAR2(1))
  4  /
Table created.
scott@ORA92> CREATE TABLE borg_code
  2    (borg_num      NUMBER,
  3       borg_code     NUMBER,
  4       xcod_code     NUMBER)
  5  /
Table created.
scott@ORA92> CREATE OR REPLACE PACKAGE sdiStruct
  2  AS
  3    cmpy_xcod_code NUMBER := 1;
  4    cmpy_id           NUMBER := 1;
  5  END;
  6  /
Package created.
scott@ORA92> SHOW ERRORS
No errors.
scott@ORA92> CREATE OR REPLACE PROCEDURE your_proc
  2  AS
  3    v_cmpy_xcod_code ext_code_type.xcod_code%TYPE;
  4    v_borg_num     borg_code.borg_num%TYPE;
  5    v_borg_code     borg_code.borg_code%TYPE;
  6    erm          VARCHAR2(80);
  7    err          EXCEPTION;
  8  BEGIN
  9    BEGIN
10        SELECT xcod_code
11        INTO     v_cmpy_xcod_code
12        FROM     ext_code_type
13        WHERE     xcod_code = sdiStruct.cmpy_xcod_code
14        AND     inst_borg_ind = 'B';
15    EXCEPTION
16        WHEN NO_DATA_FOUND THEN
17          erm := 'CMPY XCOD CODE not found with indicator of B';
18          RAISE err;
19    END;
20    --
21    BEGIN
22        SELECT  borg_num,borg_code
23        INTO      v_borg_num,v_borg_code
24        FROM      borg_code
25        WHERE      borg_code  = sdiStruct.cmpy_id
26        AND      xcod_code  = sdiStruct.cmpy_xcod_code;
27    EXCEPTION
28        WHEN NO_DATA_FOUND THEN
29          erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
30          RAISE err;
31    END;
32  EXCEPTION
33    WHEN err THEN
34        RAISE_APPLICATION_ERROR(-20001, erm);
35  END your_proc;
36  /
Procedure created.
scott@ORA92> SHOW ERRORS
No errors.
scott@ORA92> EXECUTE your_proc
BEGIN your_proc; END;
ERROR at line 1:
ORA-20001: CMPY XCOD CODE not found with indicator of B
ORA-06512: at "SCOTT.YOUR_PROC", line 34
ORA-06512: at line 1
scott@ORA92> INSERT INTO ext_code_type VALUES (1, 'B')
  2  /
1 row created.
scott@ORA92> EXECUTE your_proc
BEGIN your_proc; END;
ERROR at line 1:
ORA-20001: No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.
ORA-06512: at "SCOTT.YOUR_PROC", line 34
ORA-06512: at line 1
scott@ORA92> INSERT INTO borg_code VALUES (1, 1, 1)
  2  /
1 row created.
scott@ORA92> EXECUTE your_proc
PL/SQL procedure successfully completed.

Similar Messages

  • SQLplus command in a begin/end block

    Hi all,
    is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?
    thanks in advance and regards
    John

    user10899797 wrote:
    is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?Just a quick explanation why not.
    That begin..end block is called an anonymous (nameless, unlike a procedure or function) PL/SQL block. The client (in this case, SQL*Plus) transmits the block to Oracle.
    The server process servicing that client receives the block, parses it and executes it.
    This server process only understands SQL and PL/SQL. Not any language.
    So just as you cannot use .Net/Cobol/Visual Basic/Java/etc commands inside that PL/SQL anonymous block, you cannot use SQL*Plus commands in it.
    Part of the confusion regarding SQL*Plus is using substitution variables. This enables you to create an anonymous PL/SQL block in SQL*Plus that contains substitution variables.
    However, SQL*Plus itself does a very primitive parse of that block before it fires it off at the server - it detects these substitution variables and replace them with the assigned values for these variables. It then transmits this resulting block to the Oracle server for parsing and execution.
    Just remember that PL/SQL is a server-side language that runs inside an Oracle server process and that should clear most confusion in this regard (including whether PL/SQL can read keyboard data or write to a client PC's harddrive, or interactively display progress status on a client monitor).

  • Error in Delare/Begin/End block

    Dear all
    i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
    I should say that using the structure delcare,begin,end is mandatory for me here.
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;but i get this error
    Error starting at line 3 in command:
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;
    Error report:
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause is expected in this SELECT statement
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
    So would you please rewrite the query?
    im using oracle 11.2.0.2
    thank you in advance.
    best,david

    1003209 wrote:
    Dear all
    i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
    I should say that using the structure delcare,begin,end is mandatory for me here.
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;but i get this error
    Error starting at line 3 in command:
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;
    Error report:
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause is expected in this SELECT statement
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
    So would you please rewrite the query?
    im using oracle 11.2.0.2
    thank you in advance.
    best,davidHi David,
    The query will throw error if the schema where you are executing has more than "1" function or procedure in the system.
    Its not clear in your requirement.
    Assuming you want to display the output
    SQL> set serveroutput on
    SQL> DECLARE
      2  CURSOR cur_obj IS
      3  SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE
      4  FROM user_arguments ua
      5   join user_objects uo
      6  on ua.object_id=uo.object_id
      7  WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
      8  BEGIN
      9  FOR rec_obj IN cur_obj LOOP
    10  dbms_output.put_line('OBJECT_NAME:'||rec_obj.object_name||' '||'ARGUMENT_NAME:'||' '||rec_obj.a
    rgument_name||' '||'OBJECT_TYPE:'||rec_obj.data_type);
    11  END LOOP;
    12  END;
    13 
    14 
    15  .
    SQL> /
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: REGKEY OBJECT_TYPE:NUMBER
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: PARTNERKEY OBJECT_TYPE:NUMBER
    OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: ACCOUNT_KEY
    OBJECT_TYPE:NUMBER
    OBJECT_NAME:SUMCONCAT ARGUMENT_NAME:  OBJECT_TYPE:VARCHAR2
    OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: INPUT OBJECT_TYPE:VARCHAR2
    OBJECT_NAME:GSK_PB_SHOW ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    ...........Regards,
    Achyut K

  • How to start a trigger in a begin/end block ?

    Hi all, I need to start a trigger inside a block begin end in order to manage errors.
    The trigger is created inside trigger_faef_c.sql as
    CREATE OR REPLACE TRIGGER TRIGGER_FAEF
    and I would like to start the trigger in another file "create_trigger.sql" with this format:
    BEGIN
    @trigger_faef_c;
    EXCEPTION WHEN OTHERS THEN
    dbms_output.Put_Line('#255#> Error in trigger_faef_c ' || Sqlerrm );
    END;
    I have this error executing the script:
    PLS-00103: Encountered the symbol "@" 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 pipe
    The symbol "<an identifier>" was substituted for "@" to continue
    Can anyone help me please ?
    I have to use EXCEPTION WHEN OTHERS THEN.
    Thansk
    Erik

    Hi Erik,
    I think you mean Create the trigger(?), i.e, executing the trigger_faef_c.sql script.
    SQL*Plus doesn't have exception handling (Someone please correct me if I'm wrong).
    One way to circumvent that is to rewrite the script itself to PL/SQL. Something like:
    Declare
       stmt varchar2(32767);
    Begin
       stmt := 'Create Trigger ....';
       Execute Immediate stmt;
    Exception
       When Others Then
           --Do what?
    End;
    /And then just execute that
    @trigger_faef_c.sqlDon't know if you want to go that way. I use it myself to be able to run the same deployment scripts multiple times, without causing various failures due to "Table Already Exists" and so on.
    But, for triggers, I would never do that, since this has CREATE OR REPLACE.
    For triggers, I just (This time script is plain static SQL)
    WHENEVER SQLEXCEPTION CONTINUE
    SPOOL deployment.log
    @trigger_faef_c.sql
    @other_script.sql
    SPOOL OFF
    EXITRegards
    Peter

  • Sequence of begin/end blocks.Delete only if updated.Updte only if row exist

    Here is a sequence of events I need to perform.
    1) I need to update a table with the systime for a given id.
    2) Commit (so that the systime is stored before I delete)
    3) Once updated, delete row from that table for the given id so that the row moves to the audit table with the updated systime - added in step 2.
    For this I need to keep the following things in mind:
    a) Update only if that particular id (passed as IN parameter to the SP) exists. That is validate existence before updating/deleting.
    Here are questions ralted to the above scenario:
    1) How is this kind of validation usuallty performed?
    2) Update and delete will be in 2 separate begin exception end block?
    Example
    begin
        begin
        update...
           commit
        exception
           rollback
        end;
    delete...
    commit
    exception
    rollbacl
    endHowever if update fails for some reason, I do not wish to come to the delete option.
    How can I take care of that?
    Edited by: [email protected] on Oct 20, 2008 9:47 AM
    Edited by: [email protected] on Oct 20, 2008 9:48 AM

    Mass25 wrote:
    The reason why I commit after doing the update is so that when I delete, what I have updated goes to the audit table.But that would only be necessary if it was a seperate session trying to read the data.
    If you update data on a table then your own session will see that data at existing on the table whether you have committed it or not, whilst other sessions will only see that data once it is committed.
    A commit should be issued when it logically makes sense, not just to try and ensure that the data is on the table for yourself.
    What would happen if you update some data, commit it, someone else reads it in their session and then you go and delete it? They have read your updated data whereas if they do a read before you delete then it's more logical that they should have read the pre-updated data.
    It seems like you are trying to incorporate more steps than are necessary to perform a simple task.

  • Performance: Cursor declaration versus explicit query in BEGIN/END block

    Hi guys!
    Anyone knows if declare an explicit cursor inside a pl/sql block is faster than using a cursor declaration, and how fast it its?
    Which block runs faster? And how fast? ( once, twice, once and a half ? )
    Block1:
    DECLARE
    CURSOR cur_test (p1 NUMBER) IS
    SELECT field1, field2 FROM table WHERE field0 = p1;
    vf1 VARCHAR2(1)
    vf2 NUMBER;
    n NUMBER := 0;
    BEGIN
    OPEN cur_test ( n );
    FETCH cur_test INTO vf1, vf2;
    CLOSE cur_test;
    END;
    Block2:
    DECLARE
    vf1 VARCHAR2(1)
    vf2 NUMBER;
    n NUMBER := 0;
    BEGIN
    BEGIN
    SELECT field1, field2
    INTO vf1, vf2
    FROM table WHERE field0 = n;
    EXCEPTION
    WHEN others THEN
    null;
    END;
    END;
    I have LOOP in a cursor and may open/fetch/closes in this loop. I´m wondering how fast would it be if I change the open/fetch/closes to explicit query blocks...
    Thanks!
    Murilo

    If you expect your qurey to return a single row, you would generally want to use a SELECT ... INTO. You'd only want to use a cursor if you expect to return multiple rows of data.
    If you are doing this in a loop, I would strongly suspect that you should be letting Oracle join the tables in SQL rather than doing your own pseudo-join logic in PL/SQL. Letting SQL do the work of joining tables is going to generally be a sustantial performance difference. The difference between the two blocks you posted will be marginal at best.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Want to ignore exception in a begin-end block

    Hi,
    For a given plsql block (inside a procedure or function for example) I want to ignore a certain oracle exception. Ignore as in, it should not be raised at all.
    What I want to do is something like this -
    begin (tell somehow to NOT raise NO Data Found (NDF) )
    bq. select &lt;something&gt; \\ into  &lt;some Variable&gt; \\ from &lt;somewhere&gt;; \\ if sql%rowcount = 0 \\ then \\ +&lt;take action meant for NDF&gt;;+ \\ end if;
    end;
    Any Ideas ?
    cheers
    raghav..

    Justin,
    If you have queries that can properly return 0 or more rows, that is the natural way to implement that. It won't raise an exception if no data is found, it won't raise an exception if multiple rows are found.How can I write a query that would not raise an exception when 0 rows are returned ?
    I'm not clear on how a design can "not like the NDF as such". Why would you have to convert that to a business exception and pass it along to the caller? Why wouldn't you just handle the exception in your code if you expect that the NO_DATA_FOUND exception is valid.
    The design doesnt like NDF just because the end user has to receive a better response than "No Data was found". We want to include lots of contextual info about the error and the location etc. Even though the NDF is valid, I wont pass it along as such, I would probably convert it to a business exception which would probably say something like "no entities found for end client <ID>" etc..
    cheers
    raghav..

  • Issue with FOR loop in Nested BEGIN and END terminals

    Hi All,
    I am trying to fetch row by row using FOR loop on CURSOR.An i am getting Error attached screen shot:
    Below is the logic:
    Create Procedure TEST1() LANGUAGE SQLSCRIPT AS
    BEGIN
    AN01 = Select * from AN.View;
    AN02 = SELECT DISTINCT F1,F2,F3 from :AN01 GROUP BY F1,F2,F3;
    BEGIN
    DECLARE CURSOR ITEM_RULE FOR select F1,F2,F3 from :AN02;
    FOR V_ITEM_RULE AS ITEM_RULE DO
    SELECT * from TABLE1 where F1 = V_ITEM_RULE.F1;
    END FOR;
    END;
    END;
    Here i an getting data from AN01..Then finding the Distinct in AN02.
    On AN02 i am applying CURSOR...and for each row i wanted to find an entry in TABLE1 and do a calculation further.
    -- But when i am using a FOR loop in the Nested BEGIN i am getting below Error.
    -- I tried to Activate successful without FOR Loop.
    Any Suggestion on the above issue.
    Thanks
    kalyan

    Hi Kalyan,
    Your procedure is incomplete.
    Why are you looping to make a select that you do not use? What is the target for ITEM_RULE_GDS selection?
    Also, like it is currently exposed a JOIN is highly recommended.
    Are you just playing around with procedure or you really have a scope to do ?
    Regards, Fernando Da Rós

  • Using nested styles to break blocks of text into different pages

    Hello everyone,
    I'm treating data collected through a Google Docs form and I've already set it up so that the questions appear on the left and are followed by the respective answers sequentially so that I have a simple way to copy paste the whole information to Indesign. Then I'm going to use nested styles to define individual styles for the questions and answers.
    What I can't do, however... and I'm not even sure if it's possible, is how to tell Indesign to break text that is laid out sequentially into different lines or to break blocks of text so that they start in the beggining of the next page without having to resize the text frames by hand.
    As a visual example this is what the data I've exported out of excel looks like:
    Question 1 (tab) Answer A1 (line break)
    Question 2 (tab) Answer A2 (line break)
    Question 3 (tab) Answer A3 (line break)
    Question 1 (tab) Answer B1 (line break)
    Question 2 (tab) Answer B2 (line break)
    Question 3 (tab) Answer B3 (line break)
    (and so on in groups of 3 questions)
    And I want to turn it into:
    Question 1 (turn the tabs into line breaks)
    Answer A1
    Question 2
    Answer A2
    Question 3
    Answer A3
    (and then start at the beggining of a new page)
    Question 1
    Answer B1
    Question 2
    Answer B2
    Question 3
    Answer B3
    I can't define the size of the text frames so that the next group of questions+answers starts at the beggining of a new page because some of the answers are multi-line fields and thus the number of lines of the answers are variable and they can come short of the text frame edge or pass it.
    Can anyone share some insight of how to do this (or if it is at all possible)?
    Thank you very much!
    MACC

    Thank you very much for your input.
    I'm trying to automate this process as much as possible because I don't want to have to crunch the data manually myself later on, instead just teach someone else how to do it.
    The first search and replace action seems basic enough but regarding the second one I would have to manually assign that paragraph style to the line where the data would break because one can only assign character styles in nested styles, right?
    Also I've heard that ID CS5 automatically creates new pages based on a template when you paste information inside the first page, is that so? That would be great because that way the person wouldn't have to manually create pages and link the contents throughout the document but instead simply open my template and paste the information within the first master page. That's not possible with CS4, is it?
    Thank you very much!

  • Nested Selection Screen Blocks

    Hi friends,
    My requirement is to display the two nested blocks in the selection screen and the radio button parameters defined should come in a single group.
    as below........
    !   Begin Block1      
    !        * Radio  Button 1!
    !  Begin  Block2                                        
    !          * Radio  Button 2                                                      ! 
    !          * Radio  Button 3                                                      !
    !         * Radio  Button 4                                                       !
    !   End Block2                                                                     !
    !       End Block 1                                                                 !
             My Requirement is all Radio Buttons 1 2 3 & 4 should be under one group only. I just need nested frames as shown above
    Thanks & Regards,
    Kumar.

    Hi,
    In one group you can not declare only one radio button, you need atleast two radio button for a group.
    if there is a single radio button only, then better you make it as check box.
    Nesting of blocks is possible.
    you can do that.
    In one block there should be atleast two radio button for using Group.
    regards,
    Ruchika
    Reward if useful................

  • How to hide the selection-screen Begin of Block

    Hi,
    I copied the standard program into my new 'Z' prog.
    But i dont need a selection-screen begin of block and end of block i.e. I have to hide the entire block from the output screen.
    I can delete the selction-screen block , but the field which is present inside the block is used in several places of program
    and i dont know the purpose of the fields.
    Can any one help me to hide the block.
    Thanks in advanced
    Regards,
    Darshana

    Hi
    Use keyword NO-DISPLAY with the select options or parameter which u want to hide in the selection screen.
    No need to comment statements Begin of block or end of block.
    SELECTION-SCREEN BEGIN OF BLOCK ss_01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_month FOR isellist-month no-display .
    PARAMETERS: p_email LIKE somlreci1-receiver no-display.
    SELECTION-SCREEN END OF BLOCK ss_01.
    It will work this way.
    Thanks

  • LOV Select List How to create query with begin & End in LOV

    Dear All,
    i am using Apex 3.2 ver
    i want to use below code in LOV select list
    BEGIN
    IF  UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
    SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
    WHERE NVL(ACTIVE_FLG,'N') = 'Y'
    AND NVL(GUIDE_FLAG,'N') = 'Y'
    and CITY_CODE LIKE NVL (:P23_CITY_CODE, '%')
    ORDER BY 2
    ELSIF
    UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
    SELECT   NAME D, CODE R
        FROM   HOTEL_MAS
       WHERE   NVL (ACTIVE_FLG, 'N') = 'Y'
               AND CITY_CODE LIKE NVL(:P23_CITY_CODE,'%')
    ORDER BY   PRIORITY
    END IF;
    END;When i put this code in my LOV Select list Section then display me Error
    Not Found
    The requested URL /pls/apex/f was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at tidevserv1 Port 7777
    How to Resolve it.

    Hi Vedant,
    you dont need to use begin ...end block
    Try the Below code
    IF  UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
    RETURN
    'SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
    WHERE NVL(ACTIVE_FLG,''N'') = ''Y''
    AND NVL(GUIDE_FLAG,''N'') = ''Y''
    and CITY_CODE LIKE NVL (:P23_CITY_CODE, ''%'')
    ORDER BY 2' ;
    ELSIF  UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
    RETURN
    'SELECT   NAME D, CODE R
        FROM   HOTEL_MAS
       WHERE   NVL (ACTIVE_FLG, ''N'') = ''Y''
               AND CITY_CODE LIKE NVL(:P23_CITY_CODE,''%'')
    ORDER BY   PRIORITY' ;
    END IF;In this way you can create conditional LOVs ,
    Hope this will helps you.
    Regards,
    Jitendra

  • AA6 - Move To Beginning/Ending Of A Selection And Deselect

    Hello...
    In AA3- you could make a selection, then click at the beginning/ending of the selection.  It would deselect the selection and move the play head to that position.
    In AA5.5 you had to use the left/right arrows to do the same task.
    In AA6, neither work.  If you left/right arrow, the play head moves but it moves down/up the timeline (not to the beginning/ending) and it doesn't deselect.  Ctrl+left/right arrow does move the play head to the appropriate places (as well as other places) but it doesn't deselect.
    Is there a way to do this with AA6?
    I used it a lot when doing track breaks for cd (home, shift+click at 5:00, f8, right arrow, shift+click at 10:00, f8, etc...).  I also used it where I wanted to have only 0.5 seconds of extra silence at the beginning/ending of some audio (click at the beginning of the audio, drag backwards 0.5 seconds, left arrow, shift+home, delete).
    JJ

    Since you're doing this for CD, I think I have a method that would be faster for you.
    1. Home, Shift+M (This sets the playhead to the start and places a CD Track Marker at the playhead).
    2. Click where you want this track to end and the next to start and again press Shift+M.
    3. Continue placing single point CD Track Markers at each location where you want the last track to end and the new one to start (including adding one to the very end).
    4. When all markers have been added, open the Markers Panel and select all the markers.
    5. Press the icon in the Markers Panel for "Merge selected markers".
    Now if you want to burn the CD, just go to "File > Export > Burn Audio to CD..." and we will burn a CD with track markers where you hae defined them.
    --Ron

  • Why Use Nested Classes

    Hi All,
    Why do we use Nested Classes ? Explain it with example ....
    If we say - It is a way of logically grouping classes that are only used in one place. Then we can say we use it through "Package" so why inner class ??
    Thanks in advance ....

    A real life example to jschell's explaination may be this.
    The pistons in your automobile engine are encapsulated by the engine block -- or the engine block encapsulates the pistons inside. This is the desired effect because as soon as we take the pistons out of the engine block, and put them say, in the backseat of the car instead, they no longer perform the function they were intended. There is another side effect to this analogy. When the pistons are properly installed in the engine block, there is only one movement the pistons can move -- up and down movement, that's it... they cannot rotate, spin, twist around or anything inside the engin block. Furthermore, the up and down movement is the only useful thing a piston can do. As soon as we throw the pistons in the backseat of the car, they can roll around, spin, and generally rotate to any configuration or orientation -- which does not produce any useful power.
    Inner classes are generally the same way. So we can see this example with a little code -- which we like.
    public class Engine
      Piston[] pistons = new Piston[8];
      class Piston
        // the usual methods here..
    }Of course, if your program is extremely sohisticated, this may not be a good solution -- for example, if you are making a catalog of automotive parts, then you would probably want your <tt>Piston</tt> class to be stand-alone.
    Edited by: pierrot_2. Also notice that the class <tt>Piston</tt> is not an INNER class of Backseat!

  • What is the use of step type Block in ecc.6

    what is the use of step type Block in ecc.6. What ca i do with that.

    You can group together steps in a Workflow in a block. You have the following options for a block and the steps it contains:
    ·        Define local data (local container)
    ·        Define deadline
    ·        Define exceptions and exception handlers
    ·        Define dynamic processing (parallel or sequential)
    In the Workflow definition, a block is represented by the following symbols: Block Start  and Block End .
    give points to valuable answers

Maybe you are looking for

  • Session management and java Web Service

    Hi , Can I have two web services one based on Session bean and other on Simple java class, packaged into single ear file? Does NetWeaver supports web service session management/tracking? How can I get an handle to HttpRequest in my Web Service? Any h

  • Brand new iPod touch will not turn on. Goes straight to dead battery screen.

    Hello. I recently purchased a refurbished iPod touch to develop apps on. I have had the iPod touch for about a week and last night the iPod suddenly shut off in the middle of use. The battery was low so I figured it was simply a dead battery and I we

  • Can i call a function module of SAP?

    Hi, i have a question... Can i call a function module of SAP... I need print a document from a device, can i call the function module of SAP in order that me it prints it? Thanks,

  • Cannot see iPhone movies within Aperture

    Movies just show up as black fields and a warning that it is a unsupported video format. But I only use the iPhone 4 at the moment. That should be no problem at all -- right? Thanks for any help!

  • RFC - XI- Soap

    Hi, I am Integrating Sap (RFC ) with Webservice ( Soap) using SAP XI. While Executing I am getting Folowing Error In RWB Received XI System Error. ErrorCode: ADAPTER.SOAP_EXCEPTION ErrorText: soap fault: Server did not recognize the value of HTTP Hea