About variables in query designer

what is the difference between replacement path and cmod in query designer?
illustrate with an example?
Regards,
Bhavya K

Hi,
Replacement path:
When you create a variable ,if you want the variable to be replaced with the value from an info object/another variable /Query/Hierarchy  then we select Replacement path
CMOD:
If the values for the variable are to be collected based on the ABAP logic written for the variable in CMOD then we go for CMOD selection.
Refer the links for examples:
http://www.sapks.com/2010/04/replacement-path-in-variable-reporting.html
http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
Refer to this link for scenarios on Cmod from Mr.Surendar reddy
http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
@ Sri
Edited by: Sri kamesh on Mar 2, 2012 7:30 PM

Similar Messages

  • How to assign current date/time to a formula variable in Query Designer

    How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
    Thanks

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    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

  • Can't see good variables in Query Designer BW 7.0

    Hello,
    The technical name of our caracteristic variables in the Query Designer are prefixed by "OR_" or "SV_". I try to make a filter in this variables (for example: a user must be able to see only "SV_" variable) with the authorization objects S_RS_COMP and S_RS_COMP1. But this filter does not work, even if the ST01 trace shows me a Return Code = 4 for the test in the variable technical name.
    Have I made something wrong ? is it a bug ? (we are in BW 7.0 SPS9 with Sapgui 6.40 SP 19 and BEx SP 12).
    Thank you for your help

    Hi Paul,
    If iam not worng, are you asking about Infoobject level security in BW?
    If it is, the following are the steps need to be implemented:
    <u><b>Steps to Implement InfoObject Security (field-level security)</b></u>
    1) Make the InfoObject authorization-relevant.
    The Authorization Relevant setting for an InfoObject made in the InfoObject definition on the Business Explorer tab. The business needs will drive which InfoObjects should be relevant for security. Keep in mind that the people using SAP BWare running queries to help make strategic decisions on how to better run the business. The decision makers typically need to see more data on SAP BW than they would need to see in SAP R/3.
    2) Create a custom reporting authorization object.
    Since there are no reporting authorization objects provided for InfoObjects, you will have to create your own reporting authorization object for any InfoObject you decide to secure. This is done in transaction code RSSM. When creating your reporting authorization object, you select which fields to put in the authorization object from a list of authorization-relevant InfoObjects. Only InfoObjects that have been marked Authorization Relevant are eligible to be put in a reporting authorization object.
    3) Add your new authorization object to a role.
    Once you have created an new reporting authorization object and linked it to the appropriate InfoCube(s), users will need access to your reporting authorization object. You will need to manually insert your object into a role.
    4) Add a variable to the query.
    The reason the variable is required is sometimes unclear at first. If we want a  query to only provide results based on the division, for example, then the query itself needs the ability to filter specific division values. Before we can secure on division, the query must be  able to restrict data by division. The only way the query can restrict data dynamically is through a variable.
    5) Link the reporting authorization object to an InfoProvider.
    Linking your reporting authorization object to an InfoProvider is a very critical step. In this step, you will impact people currently executing queries for the InfoProvider that is now related to your reporting authorization object. This linkage forces your reporting authorization object to be checked when ANY query tied to the InfoProvider is executed.
    Hope it helps, please revert back if you are asking for something else.
    Please reward points if it is sueful.
    Thanks & Regards,
    Santosh

  • Dependency between two Variables in query designer filter prompt

    Hi Experts,
    I'm working in BW 3.5 query designer and I have two characteristics ZONE and PLANT (both are filter variables) and what I need is that when the user make a selection of one ZONE (for example Zone north) then he will be able to see in the Plan Variable the values for selection that corresponds with the Zone selected previously in the other filter variable (ZONE).
    Thanks in advantage
    Roberth Reyes

    Hi shanthi bhaskar,
    Thanks a lot for your answer.
    I have one doubt about it:  with this solution that you propoused the user will be able to select the values for plant?.
    I mean, the user make the selection of the value for Zone, then he wants to see the in plan´s variable the values that corresponds with this Zone for make a new selection of plan.
    What happens if I need this dependency also in another variable like time variable?
    Thanks  a lot

  • Unable to see the variable in Query Designer

    Hello Experts,
    I am running one report and it is showing me 0calday variable selection screen at run time. I am unable to see this Variable on my Query designer but when I am opening query properties its showing me in this.
    Kindly let me know where is this Variable using in my query designer ?
    Thanks,
    Anoop

    Hi Anoop,
    The variable is probably being used to restrict a key figure.
    Go to the key figures,
    Display the technical names
    Check the key figures for which the technical name is not appearing even though the key figure is not a formula.
    Here you will see one of the key figure being restricted by a variable for 0calday
    Hope this helps.
    Regards,
    Joe
    Didnt notice the question is answered :P
    Edited by: lazarus_joey on Feb 17, 2012 6:48 PM

  • Problem with Variable in Query Designer.

    hi all,
    we have a variable ZAMREG on characteristic AM Region, where AM region is attribute for two different master data objects mastobj1 and mastobj2, we have different infosets build on these two master data objects along with some other ODS.
    now this variable ZAMREG is visible in one of the infosets only in query designer, whereas it is not visible in the other infoset.
    what could be the problem??
    thanks,
    Rk

    Hi,
    Please check if that variable is created locally or globally. If it is a local variable in any query, it will not appear in any other query.
    In anyways, you can always create one more variable if the older one is not available. This will not make much of difference. I would suggest go ahead with creating a new variable.
    Regards,
    Yogesh

  • Conflict with text variable on Query Designer

    Hi,
    this is the scenario:
    - On Query Designer i got two restricted key figures: K1 and K2.
    - I'm usign a manual entered variable for 0CALMONTH.
    - On K1 the sales are restricted for the selected month.
    - On K2 the sales are restricted to a range between first month of the year, and the selected month-1.
    Then on a formula i use K1+K2 and a text variable (selected month) for the name of the column. Then, when running the query, the text for the variable can't be found. There is a conflict on text variable when using 2 restricted key figures on the formula.
    How can i solve it ?
    thx

    Hi,
    I assume that your text variable is of replacement type?
    If it doesn't work you can create a new text variable of user exit type and derive its value using entered 0CALMONTH.
    Best regards,
    Eugene

  • Variables in Query Designer

    Hi Friends,
        I'm using Query Designer 7.0 ... i need  to create one variable...on charecterstic... norma analyser i'm  getting  normally..
    but   in query designer... iwas create the  variable.. but  i'm  unable to  take that variable.. because.. in rows and columns.. i'm not getting those variables....
       normally in anayser  , select that  infoobject and rihght click it and  selct restrict... and we can select the variable  name..
      but in query designer  what is the procedure for taking the variables,...
    thanks
    babu

    Hi,
    have you made the variable as interval or single value.
    Becasue you have two options during selecting ther variable...if you have made your variable as interval....... it will not appear in the single value option and vice versa.
    Thanks

  • Assigning System variables in query designer

    Hi all,
    My requirement is that For a field CALENDAR DAY, i Want to set the default values so that it displays the data for last seven days from the current system date by using sy-datum. This should be done without using customer exit logic.Can anyone tel me how can this be done in Bex query designer.

    Hi Imanik,
    I think using custom exit to arrive to a solution of your issue is the most efficient way as of now.
    Alternatively you can write a routine in ETL Where in you can check if  Sy-Datum - 7 <= Calday, then you can have a field Flag in Infoprovider which would be populated by X in this case. Later on in Bex you can have a filter on Calday  = X. But this scenario works only when you are doing:
    1. A full load.
    2. You are running the query on the same day you are doing this full load.
    Regards
    Raj

  • Formula Variables in Query Designer

    Hello All-
    I'm using a formula variable in my report which is of type user exit.  In my FM, I am calculation some Sales Growth Analysis based on some rates from the TCURR table.  In short, I am calulating "FX Rate" for each currency (USD, EUR etc) I have in my cube.
    In the end, my e_t_range table will contain an "FX Rate" for each currency...in many cases the table will hold more than one value.  The problem is that my query dumps if I have more than one value in the e_t_range table.  I've used regular user exits before on Chars and I was allowed to have multiple entried in the e_t_range table.  What is the nature of formula variables?  Is it the case that I can only pass one value to my query with formula variables?

    Hi,
    Once Bex 3.5 query is opened in Bex 7.0, you can't open the same query in Bex 3.5. If you are still able to open the query in Bex 3.5 means you have not opened it in Bex 7.0.
    Please check it while opening a query in Bex 7.0. It would ask you question " Do you want open bex 3.5 query in Bex 7.0?
    Hope it is useful.
    Thanks,
    Ashok

  • Variable in Query Designer

    I have got a query in BEx Query Deisgner which is filtered by the 0CALMONTH time characteistic & variable 0I_CMNTH.  What I would like to do is have 2 key figures one which takes the variable as entered & one as takes the variable minus 1 month.
    I can't remember how to do this & I thought it was just a case of restricting the 2nd key figure by the same characteristic & variable but setting an offset, but this just pulls through as blank.
    Can anyone help?
    Sorry if I've not made myself clear.
    Kind Regards
    Carly

    This is how I thought I have already got it set up but it brings no data back for the 2nd Key Figure.  This is how I have it set up:
    1) I have got 0CALMONTH in the Characteristic Restrictions restricted by varialble 0I_CMNTH
    2) I have got 2 Key Figures in the Columns Section: 
    The 1st one is Net Value in statCurr 0NET_VAL_S restricted by 0CALMONTH with a variable of 0I_CMNTH
    The 2nd one is Net Value in statCurr 0NET_VAL_S restricted by 0CALMONTH with a variable of 0I_CMNTH but with an offset of -1.
    This brings through data for the 1st Key Figure, but nothing for the 2nd one.
    Am I doing anything wrong?
    Kind Regards
    Carly

  • Name of column using text variable in Query Designer

    Hello!
    I have 3 columns with amounts, 1 characteristic value variable and 1 text variable.
    For example, names of this columns - 2005 year, 2006 year, 2005/2006.
    I fill names using only one text variable and I can call first 2 column. I use set offset of variables for second column.
    How can I call third column ''2005/2006"?

    Hi,
    u need a second Text varaible and u need to correct your existing text variable.
    Prerequisite: u need for your key figures the same KF-variable
    1. Edit your existing text variable  lets say its called &Text1&
    2. Select your Text variable and go to tab "replacement path"
    3. Choose a) InfoObject b) Choose key
    4. In section "use value range" choose from  value
    5. Create a new text variable lets call it &Text2&
    6. make exact the same settings as for your first text variable butchoose for "value range" to value
    Now u use this text variables for your KF:
    KF 1 -> &Text1&
    KF 2 -> &Text1&
    KF 3 -> &Text1& / &Text2&
    This should make it!!
    Regards
    Tobias

  • How to create/use SAP Exit variable of Query designer

    Hello experts,
    Can you please guide me on how to create/use SAP Exit variables ?
    Is there any way we can transport customer exit include in which we write all codes related to customer exit variables?
    Kindly provide your valuable inputs on this.
    Thanks,
    Mitesh

    Hello Gautam,
    I think you should first implement the user-exit via the transaction SMOD/CMOD and the SAP-Enhancement RSR00001 User-Exit ( BW Reporting )
    For the concrete implementation I would suggest to encapsulate the variables, as it is described here
    Easy implementation of BEx-Userexit-Variables
    and here: BEx-Userexits reloaded
    Kind regards,
    Hendrik

  • Hierarchy node not available in Query Designer

    Hello Gurus,
    I can find the hierarchy node variable in BW but it is not available in query designer. Does anyone know what might be the problem and a solution?
    Thanks,
    Mark

    Hi Mark,
    You said you "find the hierarchy node variable in BW but it is not available in query designer".
    How did you find the hierarchy node variable in BW? From backend SAPGUI, you will only be able to see the variable in some internal tables like RSZGLOBV. Did you mean this?
    For "it is not available in query designer", do you means that when you want to create a hierarchy node variable for this characteristic in Query Designer, you don't find this certain hierarchy node variable in the hierarchy node variable list?
    Important thing to notice is that, flat value variables and hierarchy node variables are listed separately. Did you make sure that you have chose to list hierarchy node variables in Query Designer?
    Regards,
    Patricia

Maybe you are looking for