How to include the quote in a quoted statement?

Dear friends,
I have a question as mentioned in title.
What I have written is as below:
IF :ctl_blk.zone = 'ALL' THEN
vWhere := ' and rownum > 0';
ELSIF :ctl_blk.zone ='OTHER' THEN
vWhere := ' and a.use_unit NOT IN (SELECT DISTINCT store FROM str_store_master)';
ELSE
vWhere := ' and a.use_unit IN (SELECT DISTINCT store FROM str_store_master WHERE zone_code = '' || :ctl_blk.zone || '')';
END IF;
Notice the ELSE statement, the correct statement I want to pass to report is
and a.use_unit IN (SELECT DISTINCT store FROM str_store_master WHERE zone_code = :ctl_blk.zone )
for replacing the lexical reference &P_WHERE_CLAUSE, but now I have no idea how to make it as correct format and get the report I want.
Could anyone tell me the answer?
Thanks in advance!
Joseph

I would suggest you to synthesize :ctl_blk.zone like
IF :ctl_blk.zone = <CONDITION> THEN
Some_variable = ‘’’VALUE’’’
AND then pass this to your else statement
vWhere := ' and a.use_unit IN (SELECT DISTINCT store FROM str_store_master WHERE zone_code = some_variable)';
Regards
Mel

Similar Messages

  • How to calculate the quota base quantity in quota arrangement?

    Hi all,
    As we all know, when a new supplier is added in the quota arrangment, we take the help of quota base qunatity so that the new supplier does not get any unfair advantage over the existing suppliers. Would you please help me on how to calculate the quota base quantity or on what basis the quota base quantity is calculated?*
    Regards,
    Ranjan

    Dear,
    Quota arrangement divides the total requirements generated over a period of time among the sources of supplied by assigning a quota.
    Quota u2013 quota is equal to a number and its represents the proportionate of requirements. Total quota of all the vendors is equal to 100% of requirements.
    This quota arrangement is also specific to material and plant level.
    Quota rating = quota allocate quantity + quota base quantity / quota.
    Quota based quantity used only when a new vendor introduced.
    In the as on date situation, the minimum quota ratings will considered as preferred vendor.
    The 2 vendors has 2 same quota rating, the vendor who is having the highest quota will considered first.
    In the running quota, a new source of supply is included. (In situation of short supply) including a new source not means to reduce the quota for existing.
    Regards,
    Syed Hussain.

  • How to change the quota of a workspace on OCS10g?

    Hi,
    How to change the quota of a workspace on OCS10g?
    I can't find the site administrator page or workspace administrator page to change the quota of workspaces?
    Regards,
    Kitae
    Message was edited by:
    kitaelee

    Hi -
    Oracle Support has a linux command-line script available under controlled release for customers to perform the following:
    1) Modify default quota for all subsequently created Libraries.
    2) Modify the quota for a specific Workspace Library.
    Customers can file a TAR in Metalink and support will supply the script.
    Customers should let their users know to send an email to their Collab Suite Administrator to request additional quota, and then the administrator can run this script.
    Please note that this is filed as a bug and a patch is being developed. This script is provided as an interim fix.
    Thanks

  • How to do The quotes and subscripts in pages??

    Hi guys,
    I don't know how to do the quotes and subscripts in pages for iOS...
    Someone can tell me this??
    Sorry for my English, I'm not American...

    You can create left and right single quotes with option + }, and shift + option + }, respectively.
    Double quotes work the same way using the { character substituted above.
    Menu > Format > Font > Baseline:
    Superscript is control + command and +
    Subscript is control + command and -

  • How to include the page dynamically in JSF

    Hi all
    Below is static include
    <jsp:include page="../inc/sideMenu.inc"/>
    How to include the file dynamically
    Thanks

    Hi,
    Though I have not tried it I think making use of a variable to hold the page name to be included should work. Could you try this and see if it works?
    Cheers
    Giri :-)

  • How to include the pages dynamically in JSF

    Hi all
    Below is static include
    <jsp:include page="../inc/sideMenu.inc"/>How to include the file dynamically
    Thanks
    Sudhakar

    Hi,
    Though I have not tried it I think making use of a variable to hold the page name to be included should work. Could you try this and see if it works?
    Cheers
    Giri :-)

  • How to include the insert picture option in the PDF form?

    Hi, Can some one please help How to include the insert picture option in the PDF form? I am using acrobat XI pro and trying to use an evaluation form which requires to insert product pictures.

    Here's a link to a previous topic where this was discussed: http://forums.adobe.com/message/6050458

  • How to Include the URL of a page in Notification Email ?

    Hi ALL,
    I need your help to implement the below requirement.
    I have implemented Email notification in our application.so when ever the user creates any form/modify the form ,mail will be triggered to them.Now the users want to include the link in the email.
    When they click the link in email ,it should be navigated to the newly created form page in Apex.
    How to include the link of the page in the Email process?
    Thanks,
    Ramya.

    Hi Tuceef,
    Thanks for the response.
    I have created another hidden item P8_URL1 IN page 8 and
    I have created an on submit process in page processing section.
    the pl/sql code is
    Begin
    htp.p('<script type = "text/javascript">');
    function setLocation(href)
               // set the location path specified in the textbox.
               htp.p('location.href = document.getElementById(href).value;');
              htp.p('P8_URL1:= location.href');
    htp.p('</script>');
    end;But the code fetching the plain URL only,it's navigating to the empty form page when i click on the URL.
    Please correct the code if am wrong anywhere!
    Thanks & Regards,
    Ramya.

  • How to Include the Infocubes in a Multiprovider..!!

    Hello Experts,
    Question is related to multiproviders. I have some 20 to 30 of the infocubes in Dev System.
    I have 2 multiproviders in the same system. I come to know..some of the infocubes missed out in multiproviders.
    I tried to add those missed infocubes into multiprovider (MPRO --> Context Menu --> Change ) Change Structure.
    But i found some of the infocubes are not available in the MPRO Structure Itself. For your info those all missed infocubes all are avaialable in the Dev system into some other info areas.
    Now Question is how to include the infocubes of which of them are not available in MPRO Structure itself. I want to add the infocubes in the Multiprovider itself.
    Please reply me the answer for the above scenario.
    Thanks and Regards,
    SN.

    Hi Parvin,
    Thanks for your reply. But i already tried as you mentioned.
    Here my issue is..even for giving the tickmark also..the infocube needs to be opened in the MPRO structure.
    My problem is Infocube itself is not opening in MPRO Structure.
    How to include the infocube in the MPRO Structure itself.
    Those cubes are avaialable in the Dev system where as those are not available in MPRO.
    Thanks,
    SN

  • How to include the simbol % in a flash chart

    hello everyone
    Do you know how to include the simbol % in a flash chart?
    I am using a 3D flash chart. This simbol obviously would be after that number of percentage.
    Do I must modify the chart XML adding some after that {VALUE} ?
    Any help would be very appreciated
    Thank you in advance
    Best Regards

    Erik:
    You can specify the '%' in the 'Postfix' field in the 'Display Settings' on the 'Chart Attributes' page.
    Varad

  • How to include the hebrew languare in the Oracle Data?

    Hi All,
    I'm using this code in nls_lang value in the registry to include Arabic and English languages in the data:
    AMERICAN_AMERICA.AR8MSWIN1256
    but how to include the hebrew language to be used in the data also Plz?
    Note: I'm using Oracle DB 10g R2

    Your database character set (SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET') must be AL32UTF8 to support both Arabic and Hebrew. The client must be Unicode-enabled to enter both languages simultaneously.
    -- Sergiusz

  • How to include the Pipe symbol ("|") in the column heading.

    Hi ,
    Can somebody advice how to include the Pipe symbol ("|") in the column heading.
    Regards,
    Yagne

    Are you looking for this ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>set colsep '|'
    satyaki>
    satyaki>select * from emp;
         EMPNO|ENAME     |JOB      |       MGR|HIREDATE |       SAL|      COMM|    DEPTNO|JOB1     |DOB
    ----------|----------|---------|----------|---------|----------|----------|----------|---------|----
          7499|ALLEN     |SALESMAN |      7698|20-FEB-81|     211.2|       300|        30|SALESMAN |
          7521|WARD      |SALESMAN |      7698|22-FEB-81|      1650|       500|        30|SALESMAN |
          7654|MARTIN    |SALESMAN |      7698|28-SEP-81|      1650|      1400|        30|SALESMAN |
          7788|SCOTT     |ANALYST  |      7566|19-APR-87|      4356|          |        20|ANALYST  |
          7839|KING      |PRESIDENT|          |17-NOV-81|      6600|          |        10|PRESIDENT|
          7844|TURNER    |SALESMAN |      7698|08-SEP-81|      1980|         0|        30|SALESMAN |
          7876|ADAMS     |CLERK    |      7788|23-MAY-87|     145.2|          |        20|CLERK    |
          7900|JAMES     |CLERK    |      7698|03-DEC-81|      1254|          |        30|CLERK    |
          7902|FORD      |ANALYST  |      7566|03-DEC-81|    4791.6|          |        20|ANALYST  |
          7934|MILLER    |CLERK    |      7782|23-JAN-82|      1716|          |        10|CLERK    |
          7566|Smith     |Manager  |      7839|23-JAN-82|      1680|         0|        10|Manager  |23-JAN-89
         EMPNO|ENAME     |JOB      |       MGR|HIREDATE |       SAL|      COMM|    DEPTNO|JOB1     |DOB
    ----------|----------|---------|----------|---------|----------|----------|----------|---------|----
          7698|Glen      |Manager  |      7839|23-JAN-82|      1680|         0|        10|Manager  |23-JAN-89
          1111|Selen     |SALESMAN |      7499|20-FEB-81|      1920|         0|        20|SALESMAN |23-JAN-89
          1111|Selen     |SALESMAN |      7499|19-OCT-08|      3000|         0|        10|         |
          7499|ALLEN     |SALESMAN |      7499|19-OCT-08|      3000|         0|        30|         |
             1|boock     |         |          |         |          |          |          |         |
    16 rows selected.
    Elapsed: 00:00:01.03
    satyaki>Regards.
    Satyaki De.

  • How to include the first row of detail in every xquery transformed xml?

    I am dealing with a XML file,where i need to publish to different BS.
    First node will be a common node node which contains vital info,second node goes to one BS and third goes to another BS.
    *<header></header>*
    *<details></details> (they are unbounded, but the first detail tag which comes in the input file is a mandatory tag in such a way that it needs to be included in every transformed message)*
    *<trailer></trailer>*
    We need to apply x query transformation on it in such a way:
    *</header></header>*
    *<1st detail></1st detail>*
    *<detail></detail> (2nd row of detail in input file)* -------------------------> Goes to BS1
    *<trailer></trailer>..*
    *<header></header>*
    *<1st detail></1st detail>*
    *<detail></detail> (3rd row of detail in input file)* ----------------------------->Goes to BS2
    *<trailer></trailer>*..
    And so on.
    Now, the problem is how to include the first row( *1st detail* ) of detail in every xquery transformed xml?

    are you looping of this input with a for each?
    /yourdata/details[1] should return always the first detail element.
    or before the for each do an assing of this first detail element to "generic_details_var"
    and use this var in every looping iteration (in an assign or as input for xquery)

  • How to include the promotion and sales deal in the value contract ?

    Question : Can a value contract contain other special pricing agreement ?
    If yes, how to include the promotion and sales deal in the value contract ?
    Thanks for your input.
    Oscar

    Hi Oscar,
    I have not worked on this aspect as such but once you create a value contract I think you as well create a promotion and sales deal for the customer with whom you have value contract with in the validity period of the contract and system should pick up data accordingly as the customer is same (Contract) and is within the validity period.
    Pl give feed back.
    regards
    Srini

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

Maybe you are looking for

  • Windows 8.1 Pro Cannot Connect to Domain Controllers through Wi-Fi

    I have a domain joined Surface 2 Pro running 8.1 Pro Update that is suddenly unable to connect to the domain controllers on the local network. The machine is fully patched. I'm guessing that it is some network level security issue because the wi-fi i

  • Default value to a field in PBO

    Hi all, I need to set a default value to a fields in a screen. But when  i declared field as NUMC , i am not able to store 0 (zero value) into it . and also when iam declaring as  integer also iam not able to store 0 . Pls anybody let me know how to

  • Is FAN ONS Publisher working?

    I have a single-instance (non-RAC) primary/physical standby configuration (V10.2.0.4). SID names: dbddg1t and dbddg2t I am following the MAA whitepaper: Client Failover Best Practices...etc.. to setup the FAN ONS Publisher program to notify my JDBC-T

  • Airport express shows low signal

    To import music, as in the cd retrieves info from internet, I need at least 75% signal. Is there an easy way to increasy this signal (I have now less than 50%) without moving my IMAC next to the Airport? Or is spending another 200EUR, in addition to

  • Can't sign in (user id); keyboard has keys that do not work (can't type password)

    After about 20 days of inactivity, I went so sign in to my MacBook.  I selected my user id, and the password box comes up.  I cannot type in my password, because it contains the key "M".  "M" is no longer working on my keyboard.  So I am not sure if