Creating a new value 'ALL' in an existing object

Hi,
   I have a dimension object which has only two values say 'yes' and 'no' in it.Since i need an another value 'ALL' in it,I added the following sql in the associate a list of values
SELECT DISTINCT
  XXXXXXXXXXXXXX
FROM
  XXXXXXXXXXXXX
union
select 'ALL'
My database is mysql.
The problem is when i pull this object in infoview as a prompt it contains all the three values 'yes','no' and 'all'.But when i select 'all' it throws no data to retrive but it works fine for other two prompt i,e 'yes','no'.
May i know where i m going wrong.

Assume you have created promps and have LOV as ('YES','NO','ALL','NONE')
assume the output has 10 records
one column the value as yes or no
and out of 10 records there are 6 yes and 4 no
while running the report if you select YES it is returning 6 records
if you select NO it is returning 4 records
if you select YES it should select all 10 records
if you select NONE it should not select any records
for this you need to write 2 sub-queries in a case statement in the where clause of the object
eg.,
select a,b,c
from x
where column=select case
when(@prompt(,,mono,,'YES') then 'YES')
when (@prompt(,,,mono,,,'NO') then 'NO'
when (@prompt(,,,multi,,'ALL') then select (distinct(col_name) from table name)
when (@prompt(,,,mono,,'NONE') then select NULL
Let me know if you have any issues
Thanks,
-G

Similar Messages

  • Impact of Addition of New Value Fields in the existing Op. Concern-COPA

    Hi All,
    Want to know the steps of adding new value fields in the existing operating concern in COPA?
    What is the overall impact of addition of New Value fields in the running Operating Concern?
    How do we test the addition of new value fields?
    Is the addition of New Value fields to the running Operating Concern advisable?
    Your support and advice is highly anticipated and appreciated.
    Thanks & Regards
    9819528669
    Ohter details are as follows...
    VALUE FIELDS : Defines the Structure of your Costs & Revenues. (Op. Concern 120 Value Fields) 
    1)     The client requires three new value fields to be created. Value fields for :
    -     Other Airport Charges - International
    -     Cargo Commission Cost
    -     Personal Cost (Direct)
    2)     What are the Steps involved in creation of new value fields? The steps are :
    1)     Before creating new value field we need to check whether we can use already existing UNUSED value fields (There are 62 value fields created for the op concern 1000, in production the value fields TBUL1-L7 i.e. to be used (I assume) screen shot1 provided. My predecessor has used value field VV291, VV292, VV380 original description being TBUL3, TBUL4, and TBUL1. I believe he has changed the description in development client and created a transport request ref screen shot 2)
    2)     You can create new value field thru T-Code KEA6 (4-5 characters beginning with VV) u2013 My predecessor has reused the value fields originally created he has not created new one I believe. please provide give your comments)
    3)     Specify whether this field is for Currency or Quantity (currency defined in attribute of op concern and quantity defined by its own field u2013 unit of measure) u2013 My predecessor has configured the three value fields as Currency.
    4)     Describe how the values in this field are aggregated over characteristics. (SUM, LAS, AVG) u2013 My predecessor has aggregated all the three value fields as SUM and they are in Active status.
    5)     After the value field is created you have to add the value field (active status only) to the operating concern by Editing the Data Structure. (I guess this is done in the next step)
    6)     Assign newly created Value fields to the Operating Concern u2013 T-Code KEA0 (In development client the value fields are assigned to the op concern 1000 refer screen shot 3. In the production client also those three value fields exist (does it mean they are assigned? your comments please.) As they have the original description TBUL3, TBUL4, and TBUL1 refer screen shot 4.
    7)     After the Data Structure is defined you need to activate them. (creates plan vs actual database) u2013 Go to the data structure tab and Choose Activate. The status in dev client is Active with correct description but in the production client it is Active with the OLD description. After addition of the value field you need to regenerate the operating concern. T-Code KEA0 u2013 right?
    8)     Condition Types are assigned to Value Fields? Donu2019t know u2013 T-Code KE45 (I think this is NOT required in our case u2013 Please give your comments)
    9)     Define and Assign Valuation Strategy u2013 Cost assigned to Value fields u2013 T-Code KE4U (I think this is also NOT required in our case)
    10)     Define PA Transfer Structure for Settlement u2013 T-Code KEI1 (This step is crucial u2013 I think I have to to include newly created value fields, but am not aware how to do it and what is the connectivity or what happens after this is done)
    Note: My predecessor has created a Transport Request No# KEDK902167 for the value fields created by him.
    3)     Whether my predecessor has performed all the steps for value field creation? How to test it and check that?
    4)     If yes then,  Do I need to perform additional configuration or can I proceed to transport it to Production?
    5)     What is COPA Allocation Structure & PA Transfer Structure? Where and Why It is used?
    6)     What are the different methods of cost and revenue allocations in SAP?
    7)     I have checked the status of the value fields across clients, It is as followsu2026
         Value Field     Value Field For     Description     Development      Quality     Production
    1     VV291     Other Airport Charges International     TBUL3     Exists      DNE     DNE
    2     VV292     Cargo Commission Cost     TBUL4     Exists      DNE     DNE
    3     VV380     Personal Cost u2013 Direct     TBUL1     Exists      DNE     DNE
    #DNE : Does Not Exist (assumed since the description given to value field is not the same as in development client.)

    HI sree,
    ofter creation value field and saving that time reqwest number appeare copy the reqwest number and go through the se01 select that reqwest number select and transport click the truck symbole, and draft a mail to basis guyw.
    Thank You!
    Best Regards,
    pradheep.

  • Best Practice for Creating a New WebHelp Project from an Existing One

    I'm currently working in WebHelp Pro (RH version is 9.0.2.271).
    I have a WebHelp project which currently supports the 2012 version of one of our projects. What I needed to do was to create a separate 2013 project, using the 2012 files as the starting point. I couldn't find a way in RH to create a new project by importing an existing WebHelp project, so I copied the 2012 files to a new directory, opened up the project, and renamed it.
    What prompts this question is that following this exercise, all seemed well, for a time. However, I have recently had to create new topics in the 2012 version. However, when I imported these topics to the 2013 project and compiled, they vanished--although the htm files still appear in the appropriate 2013 file folder (when viewed with Windows Explorer).
    After reading some forum postings, I thought that I might have corrupted my database by improperly creating the new project--but if what I did is the wrong way to go about it, I'm not sure what the correct way is. I will be grateful for any suggestions.

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • 64 bit Photoshop CS 5.1 Extended crashes every time I create a new file or open an existing file

    I installed the 64 bit version of Photoshop CS 5.1 Extended successfully.  It opens fully without issue.  However, any time I create a new file or open an existing file, it crashes. 
    I figured this would have something to do with my graphics card, but it still does the same thing after updating the drivers & nVidia software.  Seems like my whole trial will end up expiring before I ever even get to use it!! Please help!!
    System details:
    Windows 7 Home Premium, 64 bit
    Service Pack 1
    AMD Athlon II X2 215 Processor 2.7 GHz
    4 GB RAM
    nVidia GeForce 6150SE nForce 430
    Thoughts?

    I installed the 64 bit version of Photoshop CS 5.1 Extended successfully.  It opens fully without issue.  However, any time I create a new file or open an existing file, it crashes. 
    I figured this would have something to do with my graphics card, but it still does the same thing after updating the drivers & nVidia software.  Seems like my whole trial will end up expiring before I ever even get to use it!! Please help!!
    System details:
    Windows 7 Home Premium, 64 bit
    Service Pack 1
    AMD Athlon II X2 215 Processor 2.7 GHz
    4 GB RAM
    nVidia GeForce 6150SE nForce 430
    Thoughts?

  • Help with creating a new XML file from an existing DOM tree!!

    i want to create a new XML file from an existing DOM tree
    i used this code to create a new document:
    static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringComments(true);
                   factory.setIgnoringElementContentWhitespace(true);
                   factory.setValidating(true);
                   DocumentBuilder builder =factory.newDocumentBuilder();
                   return builder.newDocument();
    //          handle exception creating DocumentBuilder
              catch ( ParserConfigurationException parserError ) {
                        throw new ParserConfigurationException();
              }then i used this code to transform the DOM :
    public void exportDocument(Document document) {
              try {
                   Source xmlSource = new DOMSource( document );
                   Result result = new StreamResult( System.out );
                   TransformerFactory transformerFactory =
                        TransformerFactory.newInstance();
                   Transformer transformer =transformerFactory.newTransformer();
                   transformer.setOutputProperty( "indent", "yes" );
                   transformer.transform( xmlSource, result );
           //then catching the exceptions
    But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
    Another questoin can i write a DTD file dynamically during the execution of the program??

    Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240

  • Windows 8 installation error: "We couldn't create a new partition or locate an existing one. For more information, see the Setup log files."

    I recently tried testing Server 2012 for installation and I had a major issue.  Windows 8 also uses the same method for installation so this should also apply to Windows 8.  I thought this might be helpful for other people who have the same
    problem.  My setup is a 1U server with no DVD drive, no hard drives, and only USB.  I have a new hard drive that I wanted to install Server onto, so I put it in and ran the installer off a thumb drive.  I kept receiving the following error when
    I tried to format the hard drive and proceed with the installation:
    "We couldn't create a new partition or locate an existing one. For more information, see the Setup log files."
    After hours of troubleshooting, I determined my problem was I was using a thumb drive to install it, and Windows didn't like it.  Some people had similar issues when similar devices were plugged in (i.e. external hard drives, SD cards, CF cards, etc). 
    In my case, it was the installation drive itself was a thumb drive.  I ended up digging up an external DVD drive and placed the installation onto a DVD.  Worked flawlessly.  Now I am up and running.
    I tried
    the steps here to no avail.
    Hope this helps anyone else with the same problems.

    Hi,
    Thanks for sharing. We really appreciate your time and efforts. Hope your experience will help other community members facing similar problems.
    Leo Huang
    TechNet Community Support

  • Adding new value fields to an existing and productive operating concern

    Hi,
    I would like to have 5 new value fields active in 4 out of 6 operating concerns that I am working with.
    Is it correct that I could do this one of the following ways:
    1. Use a value field that exists already in an operating concern and rename it?
    In this case is it necessary to regenerate the operating concern?
    Do I transport the change ?
    2. Create an entirely new value field, and assign it to the operating concern?
    Is it necessary to regenerate the operating concerns in question?
    Do I transport the change?
    3. Select a value field that is currently in the system but is not assigned to any operating concern eg some kind of SAP delivered value field?  How do I assign it to the op  con? Do I need to re gen the op con?
    Which way is the best or is there a 4th option?
    Thanks for your help in adviance
    Regards
    Aisling

    Hi,
    This note is a catalogue of notes of consulting notes where SAP tell you steps, reports to use and son . If you read them (these notes and related notes) you have the steps, guides, reports that you must use. Better advice. Try a solution with all steps in mind and check it in a quality enviroment. As you know there a lot of things in CO-PA concern (you have your own tables, with your own fields, your reports as KE2Rxxxx, and so on), your secondary indexes, etc.. , the best is try the solution in your Quality Enviroment (a quasi-clone of your production enviroment) and check the results (create SO, invoices, after modifications to check possible problems,...).
    Regards,
    Eduardo
    pd: I forgot. If the size of tables (CE4xxxx, CE1XXXX, ...check them with DB02) are so big, get the opinion of a Basis Consultant. Surely in the before note there notes about this issue.
    Edited by: Eduardo Hinojosa on Apr 23, 2010 2:41 PM

  • Can't select the new Azure sql service tiers when creating a new database or upgrading an existing one

    Hi all,
    I have set up the preview for the new Azure SQL tiers on both of the subscriptions we have for Azure. The one under my MSDN subscription to and a pay as you go subscription
    The pay as you go subscription works fine but when I try to upgrade an existing Azure sql database or create a new one on my MSDN subscription it doesn't give me the option of the new tiers.
    Using the new portal it says I need to sign up to the preview, but I already have and when I go to try to add a new subscription to the preview for Azure SQL it says all my active subscriptions are on the preview.
    Any idea what the issue could be?
    Cheers
    Ash

    Hi,
    Apologies for the inconvenience.
    I suggest you open a Billing Support Ticket. They will be able to check this for you.
    http://azure.microsoft.com/en-us/support/options/
    Regards,
    Mekh.

  • Can I Create a New User Account and Move Existing Account ???

    Lion was reinstal.
    I'm suspecting issue with one user account.
    Can I creat a new user account and move all my files to that new user?
    What are the impact?
    How about permissons on this files?
    What about the Library Folder?
    Thank you for your help and support.
    BigBlaze

    This should help you out after  you have created the new user account. You are trying to make it much more complex than it needs to be. Just follow the directions in:
    Transferring files from one User Account to another.

  • How to create a new value for template classification??

    I want to classify a workflow template, I mean I will not classify my template as a general task. Using TA PFTC_CHG I get a list with all the entries that a customized in my system. My question is how to create a new entry in that list? System is 46C.
    thanks in advance for any hints
    Jochen Winler

    Hi Jochen,
    Follow the customiztion path:
    SAP Web Application server->Business Mgmt->SAP Business WF->Basic Settings->Maintain task classes
    (For 4.6c the path is:
    Basis Components->Business Mgmt->SAP Business WF->Basic Settings->Maintain task classes)
    By this you can maintain task class entry as you required.
    Hope this helps.
    Pls. close the thread once your problem is solved.
    Regds,
    Akshay Bhagwat
    Note: Pls. reward with points if it helps:)
    Message was edited by: Akshay Bhagwat
    Message was edited by: Akshay Bhagwat

  • Trouble in creating a new iCloud account from the existing one

    my dad gave me his iPad which he bought(iPad 2) it's troubling me with the iCloud account, the iPad has my dad's existing iCloud account and I want to delete it but I don't have the password so does my dad he doesn't have the password for the account.so my question is could you assist me on how to create a new iCloud account without having the password of the old one.it uses iOS 7.1.2.

    You won't be able to delete the existing account in order to set up a new one without the password for the old account.  If your father doesn't remember the password, he can reset it as explained here: iCloud: Change your iCloud password.

  • Upon creating a new catalog, all files are renamed with a postfix: "-2"?

    My catalog was corrupted, and i decided to create a new catalog from cratch.
    To my big surprise alle falenames was renamed from IMG_xxxx.cr2 to IMG_xxxx-2.cr2. Why?
    This is i problem sice i still god the old catalog, and try to recover some of the old editorial settings, but since alle files are renamed the are no longer visible in the old catalog. just about 15.000 files are renamed!

    Lightroom only adds suffixes when it finds files of the same name in a location it's moving or copying too.
    What option did you use on Import? Copy/Add/Move?

  • HT3965 I have an ipod with itunes loaded on it.  I bought a new iphone 5C and want to set it up.  It wants me to create a new account.  Should I create a new account or use the existing ipod account?

    I have an ipod with itunes and apps loaded on it.  I bought a new iphone 5c and want to set it up.  It wants me to create a new account.  Should I create a new accountor use the existing ipod account?

    If you want you're apps and content on you're iPhone then use you're existing account. If not then create a new account.

  • When I create a new folder, one of my existing folders in another location is being renamed to the new folder's name.

    This has happened twice in the past week. When I create a new folder nested inside two other existing folders, another folder in another branch is renamed to the newly-created folder's name. The folder that is being renamed is inside the Links folder. (I am not expecting an answer. I cannot find another place where I can report an issue with the browser.)

    See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

Maybe you are looking for

  • How to delete masters from within Aperture

    Hi all, I have searched the discussion forums for this one, with no luck.  What I want to do is import say 500 images from a shoot, and review them in Aperture.   I will delete 200-300 of them.  I'd like to look at them in Aperture, and if I don't li

  • Can i use my icloud id as my primary email address?

    I want to switch my primary apple ID from an sbcglobal.net address to an icloud address? Can I do this?

  • How can I create different headers in Pages 09?

    I hope someone can explain to me how to solve this issue: I'm creating a simple training manual and I want the different chapters to appear in the header of the page - Chapter 1, Chapter 2, etc. Left and right pages are different because the margin h

  • Create Table Temp As Select * from Table

    What happens in the backend (performance point of view) when we create a table as follows: Create Table Temp As Select * from Table1; Suppose that the table Table1 has 10 million rows. How is this different from inserting 10 million rows using Insert

  • Understanding the practical implications of the Cairngorm 3 Navigation Library

    Hi there again, Based on the discussion from yesterday: http://forums.adobe.com/thread/897088?tstart=0 ... I forgot to mention that I have difficulties to find practical use cases for the Navigation Library. What does the Navigation Library solve whe