Delete variable from Query

Hi Guru's,
   I copied a query saved with a new name and made some changes to the new one, when I run the Query I get 3 variables(pop up) eg., PlanVersion, Period Interval, Year. I dont need Plan Version, Period Interval, but need just the Year...When I see the Query Properties I see all the three Variables I dont have the option to delete any of them... Any ideas would be highly appreciated...
Cheers..
PR

Hi PR,
You cannot delete the variables from the query properties. You will need to delete them from the query definition (rows, columns, filter and free char areas). The period variable would be restricting char 0FISCPER (most probably) so see where it is included in the query definition and remove it from there. Same goes for the Plan Version.
Hope this helps...

Similar Messages

  • Can't subtotal on measure variables from Query 2 in merge dimension report

    I use a query identifying customers (Query1.HH_ID) sold by each salesperson. A second query identifies a subset of those customers who are longtime customers. I merge these queries using the dimension, HH_ID. I project Query1.HH_ID onto the report and create a variable via =If([Query2].[HH_count]=1;1;0) to get a measure which is either 1 or 0 depending on whether a record is retrieved from Query2 with a value for Query2.HH_ID that matches Query1.HH_ID. The report is fine at the detail level, but when I insert a break and try to subtotal the measures, the variable from Query 2 produces a subtotal of 0 even though I can see a mixture of detail records with 1s and 0s. It appears that one cannot subtotal on measures from Query2 in a merged dimension report, or at least not if the merged dimension is not projected onto the report but rather only the dimension from Query1. Is this a known principle?

    Hi Michael,
    I think the issue is that they Query2.HH_Count is being summed first. So if you have a mixture of values, say
    rownumber, value
    1,1
    2,0
    3,1,
    4,0
    you will get 0 as your HH_count will equal 2.
    Try
    =If(Query2.HH_count>=1;1;0)
    Alternatively try
    =If(Average(Query2.HH_count)=1;1;0)
    Hope this helps
    Alan

  • How to delete variable from memory

    Hi,
    I need to delete specfic session variables from memory. How
    do I do this? What command?
    Thanks.

    Individual keys can be deleted with the StructDelete function
    <cfset StructDelete(session, "nameOfTheVariable")>
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000637.htm

  • How to get value in variable from query in PLD / ALD

    Hi, everyone,
    I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?

    Hi
    Try this,
    ->> Open the GRPO document.
    ->> Click the Tools on menu bar and Open the Form Setting widnow.
    ->> put the tick mark in BaseRef, BaseDoc, TrgetDoc
    i think, Base Document no field default in SAP B1.
    try to search the Base doc. Date in row level on GRPO document.
    Try to Create UDF & FMS then assign the FMS in UDF
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry
    WHERE
    T1.[DocNum]=$[PDN1.BaseRef]
    OR
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry and
                T0.BaseLine=T1.LineNum and T0.BaseType=22
    WHERE T0.[BaseType] =22
       and T1.[DocNum]=$[PDN1.BaseRef]
    IF you more details, Check the below thread.
    Re: How to store the invoice number in the head of the related delivery ?
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Dec 11, 2009 6:57 AM

  • Delete duplicates from query output

    Hello,
      I would like to delete duplicated records before the output of a SAP query
    I tried writing in SQ02 in additional coding, under "Free coding":
    data %dtab type standard table of /1BCDWB/IQ000000001053 with header line.
    sort %dtab by vbeln posnr.
    DELETE ADJACENT DUPLICATES FROM %dtab.
    In this way I get the short dump when running the query: "Statement is not accessible.".
    If I declare %dtab in the additional coding under "DATA", when I run the query I get the error "%DTAB" has already been declared.".
    If I don't declare %dtab, I can't generate the infoset.
    Do you have any suggestion about the way of obtaining this result?
    Thanks in advance for your support.
    Best regards,
    Andrea

    Hello,
      I didn't find any solution to this problem. I choosed another way: I asked an ABAPer to develop a report to get the same information I wanted to get with the query, as in the ABAP report there's more "space to move".
    Best regards,
    Andrea

  • Create variable from query filter

    Hello;
    I want to define  @prompt parameters as dimension or measure. So that we will use those parameters for the calculations we will use in our reports.
    For example; we will like to use prompt for year in efasion universe. This prompt is going to ask two year parameter (the operant we will use is between) We want to get the difference between these two years . and we will like to save that value as a  different variable.
    System: BusinessObjects XI 3.1
    Thanks in advance.
    Akar;
    Edited by: Akar Selcik on Apr 22, 2011 12:07 PM

    hi Dineshkumar89 ;
    I checked the your formula . But variable when used alone returns correct results But it returns wrong value or error  in same record.
    for instance;
    i created a variable named diff.year.  formula = Abs(ToNumber(First([Year]))-ToNumber(Last([Year])))
    selection value :  First : 2001  Last:  2003 
    year     Sales Revenue Diff.year
    2001     39600         0
    2001     3500         0
    2003     6500         0
    Results should be as below.
    year     Sales Revenue  Diff.year
    2001     39600          2
    2001     3500          2
    2003     6500           2
    thanks.
    Akar;

  • Deleting variables and queries

    Apart from RSZDELETE what is the best alternative to delete variables and/or queries? Thanks

    Hi Niten,
    I am not sure about Tcode to delete variables....But you can delete all unnecessary variables from Query designer itself...But before deleting variables make sure you don't need them anymore and these varaibles are not being used in any other Queries...
    If you try to delete a variable which is being used in other Query,it will display a message 'Variable being still used...etc....if you click on details...it will show you where it is being used....
    To delete variables:
    Open any Query-->expand Characteristic->expand charactristi value variables->right click->delete.
    hope this helps

  • Fox Formula Variable In Query Designer

    Hi Experts,
    I have created 1 variable in fox formula of type VARV and i want this Variable to show in query designer while creating new Variable so that i can replace the Query Variable With Fox Formula by Using Replacement Path.
    While Creating new variable in Query Designer it is not Showing that Fox Formula variable.
    Because i want to use this in WAD While Executing the Planning Sequence.
    Is there any way we could get That Fox Formula variable in Query Designer.
    Regards
    Girish

    Hi Marc,
    While Creating Variable from Query Using Query Properties it is still not Showing That Variable in Fox Formula.
    And My Requirement was to Replace that Fox Formula Variable With Query Designer Variable.
    Please Suggest any Solution.
    Thanks
    Girish

  • Set/get variables with RSBBS from  query 1 to query 2

    Hi BW Experts,
    I created a sender/receiver assignment from query 1 to query 2 using RSBBS. For two characteristics I assigned the processing method by “Variable”. Process mode for these variables in the receiver query is by “customer exit”. But I don’t know how to set/get values of these variables.
    Is there any function module to do it ??
    Please help!!
    Dev

    thanks...but i m not used in RSBBS and i m afraid i m lost
    could anyone explain me in detail :
    - what i have to do for setting the sender & receiver,
    - before to set parameter ID in the sender how to get the information of the current line (which will serve for the jump)
    please help! i promise points
    Dev

  • How to delete multiple variables from the variables list

    Hello,
    Iam using FrameMaker 9.0. Is there a way I can select multiple variables from the book and delete them together.
    Thanks,
    CP.

    NO in FM9. Take SQUIDDS TOOLBOX the free tool: 'Formats'
    'Formats' is a very helpful tool for 'deleting' paragraph formats, character formats, cross reference formats, table formats, color definitions and variables.
    You can delete unused one or all formats of selected. For paragraph and character you can also decide to 'add new one in catalog'.
    -Georg

  • Deletion of variable from report

    Hi All,
    I have created one user exit var ZPER_P1 then i didn't want to have it for some reason. So i deleted it from RSZGLOBV table with both version 'A' and 'M'.  Now it doesnt show the same var in report design under the characteristic object.
    Now i want to create another var with the same name, with different structure. At the time of variable creation, when I click on finish button, system gives message "Components ZPER_P1 (version A) has no info cube assignment."
    Can any body help me to create the var again ?
    Thanks for the help.
    Regards,
    Purvang ZInzuwadia

    Hi,
    Run the program COMPONENT_REORG in SA38.
    In the pop up screen select 'VAR' in type and give the technical name of the variable in the technical nale part.
    Click execute and see whether that variable exists still in the system.
    If it is found you can delete it from here.
    Regds,
    Shashank

  • Want to delete Rows from SAP Query which have u20180u2019 or blank values

    Hi Experts,
    I have made one sap-query,  in that I have added some additional fields, after that I am getting some blank or u20180u2019 values in some rows, can anyone tell me how to delete those rows which have u20180u2019 or blank values.
    Regards
    Mahadev Roy

    Hi mahadev
    You must be fetching data from SQ02 in some internal table.Delete values from that internal table.
    Also as you are fetching records from SQ02 then in the select statement you can put this condition of '0' and blank
    so that you will get appropriate result.
    Thanks
    Khushboo

  • OUTPUT variable from dynamic query with openquery

    I am working on a dynamic sql statement that uses openquery to retrieve some columns from an Oracle source.  My goal is to take the variables from the select openquery statement and store them, so they can be passed to an insert statement.  I am
    having no problem getting the emplid but the first_name and last_name are NULL
    Any help would be appreciated.
    DECLARE @sql nvarchar(max)
    declare @emplid varchar(11)
    declare @first_name varchar(50)
    set @emplid = '1234'
    BEGIN
    SET NOCOUNT ON;
    SET @sql = 'select distinct emplid,
    First_name ,
    Last_name
    from openquery(DWHCRPT, ''select p.emplid, p.First_nAME, p.last_nAME
    FROM PS_OCC_BIODEMO_S P
    where P.emplid = ''''' + @emplid + ''''''') A';
    EXEC SP_executesql @SQL, N'@emplid VARCHAR (11), @first_name varchar(50) OUTPUT', @emplid, @first_name = first_name;
    select @emplid, @first_name --currently returning NULL
    END

    Patrick's query would work, but it would drag the entire table over to SQL Server, which could be expensive.
    The code you posted have several flaws. You are not assigning @first_name, and you have failed to provide OUTPUT for the actual parameter. Also, the DISTINCT looks out of place. Isn't emplid a key?
    This should work better:
    SET @sql = 'select @first_name = First_name 
            from openquery(DWHCRPT, ''select p.First_nAME, p.last_nAME
                                          FROM PS_OCC_BIODEMO_S P
                       where P.emplid = ''''' + @emplid + ''''''') A'; 
       EXEC SP_executesql @SQL, N'@emplid VARCHAR (11), @first_name varchar(50) OUTPUT', @emplid, @first_name = @first_name OUTPUT;
    select @emplid, @first_name --currently returning NULL
    Also, look at this link for some tips how to write queries with OPENQUERY without going insane over all nested quotes:
    http://www.sommarskog.se/dynamic_sql.html#OPENQUERY
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Deleting records from a recursive table query

    Hi All,
    I have the follow query, I would like to ask for your help, please: we use recursive tables for various purposes and one of them may have 100,000's records.
    What would be the best approach to delete records from such a table?
    I was thinking about two below, but any additional one will be more than welcome as well:
    (1) I can DELETE FROM my_table WHERE my_table_id IN (SELECT my_table_id FROM my_table START WITH my_table_parent_id = X CONNECT BY PRIOR my_table_id = my_table_parent_id, but it means that I will run on my_table twice, no?
    (2) I thought also to create a Foreign Key of my_table_id REFERENCES my_table_parent_id, but then I am afraid it will effect DML commands on that table.
    Thank you in advance

    Hi,
    kdwolf wrote:
    ... (1) I can DELETE FROM my_table WHERE my_table_id IN (SELECT my_table_id FROM my_table START WITH my_table_parent_id = X CONNECT BY PRIOR my_table_id = my_table_parent_id, but it means that I will run on my_table twice, no?Sorry, I'm not sure whqt you mean by "I will run on my_table twice". Assuming you don't already have a foreign key constraint (as you described below) I don;t know any other way, let alone a more efficient way, to get the same results.
    (2) I thought also to create a Foreign Key of my_table_id REFERENCES my_table_parent_id, but then I am afraid it will effect DML commands on that table.You're right; a foreign key constraint always costs a little whenever you do DML. Someone who knows your application and your system as well as you do will have to decide if the benefit of having accurate, consistent data justifies that additional cost. If you're not sure, I suggest you add the constraint.
    One advantage of having a foreign key constraint is that you can create it with the "ON DELETE CASCADE" option. Then, if you simply say "DELETE FROM my_table WHERE my_table_patrent_id = X", all the descendants of those rows will automatically be deleted, exactly as you requested in (1) above.

  • Pass variables from dialogue query to batch planning functions

    The requirement.
    The user will open an u2018open-for-inputu2019 query (Web Template) using a number of variables (some are type exit). After entering data, the user will close the process by saving the data. The u2018Saveu2019 button will start a Planning Sequence which includes open data slice, distribution, copy,  repost function and close data slice. The user will not wait for any feedback from these processes so they should be done as back-ground processes (in any case the dialogue process will time out).
    The problem.
    The background process will be started from the query u2018Saveu2019 button. This is easy enough to do.
    However it is absolutely vital that the variables are passed from the query (which may or may not still be active) to the same variables that will need to be filled in the Planning Functions in the background process. I imagine that the background process will be a Process Chain .
    Help needed.
    1. Can anyone give me the way in which this is done?
    2. It could be critical that the user does get feedback in some form or other if the back-ground processes fail for whatever reason. Any ideas how this can be achieved at the user interface level. The users will not have 'SAP Savy' and the log in the Process Chain will not be transparent to them.

    One approach..
    Have diff variables for query and planning seq.
    Say V1, V2 etc for query and VF1, VF2 etc for data slices and planning functions.
    Maintain one Z-table which contains variables V1, V2 etc along with their values.
    So when the users select query variables, on save, one exit function will write these variable values to the z-table. The variables used in planning seq and data slices (VF1, VF2..) will be exit variables which read corresponding entries from Z-table (V1, V2...). So background process will run based on what the user has selected.

Maybe you are looking for

  • How to send the order number(IW31,IW32,IW33) using SAPOffice in program?

    Hi! All. program send order number, use function "SO_NEW_DOCUMENT_ATT_SEND_API1". and revicer(SAP logon ID) want use iw32(order change mode) when double-click attachment order number. SOURCE CODE ** data: docdata like sodocchgi1, objpack like sopckls

  • Send birthday reminder to multiple emails

    Hey guys I was wondering is there's a way to send an email reminder to multiple email addresses. Every year we celebrate our co-workers' birthdays by surprising them within a two-week period of their birthdays, it could be before or after it, that wa

  • Won't display graphics, only text

    need some help here. safari will only display text no graphics? i cleared the cache, that didn't help. i emptied cookies, that didn't help. i reset safari, that didn't help. all the trouble started after i upgraded to 10.4.5 any help would be great.

  • Mountain Lion not producing desktop thumbnail image

    Since installing Mountain Lion on my Mac Mini, files saved to the desktop from Photoshop CS6 intermittnetly appear without a thumbnail  image. The file name label is present, and if you select the file a dotted line placeholder border appears, but th

  • NI error -201133; Input and output on the NI9401

    Former user of Matlab, it is the first time I try to work with the DAQ and national instrument. My device is a NI9401. I want to record the position of 1 optical encoders. For this , the encoder is connected to counter in the 9401. Here is how I proc