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

Similar Messages

  • Using Text Variable for Query Description

    hi all,
    I am currently trying to include this text variable in the query properties of the query.
    This text variable should be able to grab the 0CALMONTH as filter to be included into the query properties. but currrently  cannot grab the particular information from the query properties.

    Hi
    If I got your Question properly , You are trying to use Replacement Path Variable .. If it is so
    /people/kamaljeet.kharbanda/blog/2006/12/28/bex-characteristic-variable-with-replacement-path
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    Hope it helps

  • 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

  • Show the period value in column header using Text Variable

    We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
    Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
    In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didn’t succeed. If some one can give me some idea to resolve this, it would be very helpful.
    I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
    Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.

    Hi Abhinav,
    Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
    e.g
    &0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
    If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
    Hope this helps
    Josh

  • Using Text Variable in BEx Formula

    Hi Everyone,
    I have two columns in BEx query. First column shows the value based on variable ZFISCPER_M(based on fiscal year/period).
    The other column shows the value for period ZFISCPER_M minus 1 (I have used offset in variable).
    So if my user inputs 009.2009, the first column will show values for 009.2009 and 2nd column will show values for 008.2009.
    In the third column I have formula : 2nd column minus 1st column. I want to use text variable to display column heading. The heading in the 3rd column should be 009.2009.
    Can anyone guide me how to achieve this?
    Regards
    Utpal

    Hi Rakesh,
    My first column shows cumulative balance upto 009.2009; My second column shows the cumulative balance upto 008.2009; In the third column I am trying to display balance for the month - not the cumulative figure. So for the third column my heading should be For the month 009.2009
    But when I substract col 2 - col 1in third column; the text variable finds two different values(009.2009 & 008.2009). Hence it is not displaying any text.
    I hope this makes my question clear.
    Regards
    Utpal

  • Text Variables in Query Title

    I have a requirement in BI to have the Calenday Day/Month display in the Title of my Query.  I know how to do this with Calendar Year and Calendar Year/Month, using TEXT VARIABLES.  However, I was wondering if this was possible using Calenday Day.  And if so, are there any pre-requisites?
    The problem that I have come across is that when I create a new text variable and reference Calenday Year (after choosing replacement path), when I search for a  Calendar Day Variable to use, I don't see them displaying in my choices.  Any help, would be appreciated.

    Hi Maximina,
    if the element is not in your variable list than please close query designer and than open it again.
    Text variables on calendar day works as other text variables.
    If you still cant see it just enter it "directly" in the description field.
    If the name of your variable is "ZDAYTEXT" than write &ZDAYTEXT& in the description.
    Dont use the F4 help. This must work.
    Regards,
    Adem

  • Time Format using text variable with replacement path

    Hi Friends,
                                 I've used "Text variable with replacement path" to make the column heading dynamic by replacing the values referring from "0calday"...
    everything is working fine, but here it is displaying the time format like
    YYYYMMDD (20030101), i want it to be displayed DDMMYYYY (01012003) in the column heading... how to make it possible?
    pls waiting for ur inputs, it's an urgent...
    Regards,
    Pattnaik

    Hi Satyakam,
    In the text variable properties make sure that in the replacment path you have chosen "Text" to appear date as per user setting . Other wise as in your case it must be set to "Key" which always shows in the format YYYYMMDD.
    Hope that helps.
    Regards
    Mr Kapadia

  • Error using Text variables

    HI all
    I am trying to create Text variables in query.
    But it is throwing the below error when i use that.
    Error : Source is not permitted variable for target period from variable 0p_fiscper3_2
    Pls let me know what would be the problem and how o debug it
    Thanks

    My user exit retuns a table in a select-option format
    SIGN OPT LOW
    I   |EQ |29 DEC 2003
    I   |EQ |05 JAN 2004  
    My query looks similar to this
    01/2004                     02/2004
    29 Dec 2004
    xxx xx xxxx  xxxxxx xxxx    xxx xx xxxx  xxxxxx xxxx
    I am not sure why this is happening.
    Thanks
    Eric

  • 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

  • Incorrect texts in SAP Query Designer

    Hello,
    I have problems with incorrect text in SAP Query designer, I work with SAP codepage 1404 and I see all queries correct, but when I want to edit some query with some special character for czech language its problem. Query designer can=t use czech diacritic.
    Can you give some advice.
    Thanks
    :Petr

    Hello !
    Thks for your quick reply,
    I'm from France sorry for my bed english but i hope u're understanding me, I'm new consultant in BW and like u know woman are not very comfartable with IT so i'm going to ask u 2 others questions about hierarchy and saving query in roles if u don't mind
    1) I want to change some hierarchy node position in production system, do i change directly in rsh1 by adding a node to another level ? or i must to change in a file source or ECC system ? if i change just on rsh1, i will lost all i have changed when Info package will be executed (in daily process chain)...? that's right?
    2) I have a query already published in rôle, but i have to move it to another one, how can i do that in query designer please?
    PS : i can't send you direct message, is it possible to follow me ?
    Thks in advance have a nice day !

  • What is the use of Condition is Query Designer  ??

    What is the use of Condition in Query Designer  ??
    How to use condition in   Query Designer  ??

    Hi,
    Conditions in a query can be defined for both characteristic combinations and key figures.
    Characteristic combinations can be used using the ranking list functionality (e.g Top N or Last N customers with highest sales).
    Key figures can be assigned the value limit conditions ( for e.g. display only rows in the query for which the key figure > 10 ).
    For your specific requirements in which you need to display only a limited set based on the key figures, then you can go for conditions.
    The conditions can be allowed to work on all the drill down characteristics independently, single characteristics or combination as well based on your requirement.
    While execution the report, you can activate or deactivate the condition anytime by right clicking on the data cells.
    Regards,
    VA

  • Select Column using Session Variable

    I have set a session variable to hold the name of a column
    dependent on who the user is. Is it possible to use a session
    variable to select a column in a database table? If so, how? Does
    it need a where statement?
    Something like this?:
    <cfquery name="rsSelectColumn" datasource="Test">
    SELECT Column 1, Column 2, Column 3 = Session Variable
    FROM tbl_data
    </cfquery>
    Thanks,
    Dave

    I think you want to do this, if the value in the session
    variable is the actual column name:
    <cfquery name="rsSelectColumn" datasource="Test">
    SELECT Column 1, Column 2, #Session Variable# AS Col3
    FROM tbl_data
    </cfquery>
    this way you can call any column stored in the session
    variable, and it will always be usable from the QUERY as COL3
    regardless of what column you used.
    If that is what you want to do - it IS that simple.
    Sometimes we over think things too much.

  • Text variables in query not taken over into univers

    Dear all,
    We are working with text variables in our SAP BI queries ( &ZVAR001& ) for example, which are translated to 01.2008 02.2008 etc at query execution time.
    When we build the BO Univers on top of such query, the text variables are not dynamically filled, but BO takes the variable name as value...
    We are using BI 7 & XI 3.1
    Did anyone had similar experience and/or solutions ? This is quite an annoying lack.
    Thanks in advance,
    Stefaan.

    Hello Ingo
    The most commonly used structure I have come across, is a structure where you have YTD, MTD last year etc. values.
    As far as I can judge such structures or calculations are not very easily done in Webi (But I may be wrong here), hence the customer will want to use the structure. But it is quite tiresome to have to redo all headers of the structure.
    But assuming I do the headers in Webi, I will need to obtain the value of the prompt answers. But so far I have not been able to get the value of a prompt answer using UserResponse() (when the prompt is auto-generated based on a BW variable). See also this thread:
    Using UserResponse on BW originating prompts
    Can you help out here?
    /Thomas

  • 10 text variables in query ?

    Hello,
    I have to create a query with a structure in in columns. I have to fill a variable on the selection screen (for example 0CALYEAR).
    The query now lists the last 10 years in the other columns as an offset to the variable 0CALYEAR.
    Now I want to see each year as a text in each column header.
    Any ideas to avoid the creating of 10 text variables for each column ?
    Thanks a lot in advance....

    Hi,
    Get the input for Calyear in some dummy key figure and populate the last 10 year value in user exit to calyear variable.
    Drill down the calyear across the column and set the display as text.
    Hope this helps
    Regars
    Akhan

Maybe you are looking for

  • How do I put a logo into the address line of my browser?

    How do I put a logo into my site so that it shows up on the browser address line at the top of the page?

  • Report doesn't show some parts in some computers

    Hello I am currently stumped as to why one of the oracle reports that were made wont display properly on some selected computers. The system is installed in a dedicated server and the user's computers also have installed oracle's on them, no db. Perh

  • Help me fix the errors

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankApplication class Program static void Main(string[] args) String AccountName = " "; float Balance = 0f; Boolean quit = f

  • Magic trackpad cursor position trouble

    I'm finding that quite often after I position the cursor in a text field (like, say, anywhere in a text editor like TextWrangler or in xcode, or in the URL field of a browser, and then I start typing, the characters appear at the previous cursor posi

  • T.code F111

    Dear all,   pls let me know what is use of T.code F111, and configuration steps involved in this. Dheeraj