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

Similar Messages

  • Using Text variables in Formula

    Hi all,
    I wanted to know if there is a known problem with using a text variable in a formula's title???
    Every time I try to use the text var. in formula with the same technique i do in the selction,  i recieve the message :
    'No Valye found for text variable zzz in "&zzz&" .'
    Anyone have a clue?
    I promise to return and reward the answers
    Yaniv.

    Hi,
      Pls give the properties of the variable you have used.
    It should of user entry variable right?

  • Fetch values from characteristic slection variable by using text variable

    Hi Gurus,
    i got BEx Variable for characteristic SalesOrganization. It is a selection variable.
    Theat means the users can select one or more than one value. For example 001 or 001, 004.
    Now i want to fetch these values by using a text variable. Problem ist that the standard SAP text variable in BEx can filled by using replacement path and i can only can select "from" or "to". But i only want the endtered values. Is there another way without using an User Exit?
    Regards,
    Adem

    Hi Adem,,
    Instead of user exit,
    How about replacement path .. ? Have you ever tried this one before ??
    You can go through this link for the detail:
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Hopefully it can meet your requirement ..
    Regards,
    Niel
    thanks a lot for the points you choose to assign.

  • How to create Text Variables in BEx Query Designer

    How  can i create Text Variables in Bex Q.D.
    I am able to create characteristic variables
    but i can't find option to create text variables.
    What's the requirement to create Text variables in Bex Q.D.
    When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
    How can i create text variables related to 0CalDay with which i need to work in Customer Exit.

    Hi,
    You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
    After creation of the above variable, you restrict your KF with the above created variable.
    Now you can create a Text variable for the description of your KF. This way it works...........
    Regards,
    Suman

  • How to use user variable in Member Formula

    Hi All
    I have to write a member formula for %linearity quarter for a weekly application.This member will be used in reports and we do not want to do this calculation in reports, hence need to write member formula. The formula is
    Week1 of Q1 forecast / Q1 Total Forecast , Week2 of Q1 Forecast/ Q1 Forecast.............,Week15 of Q2 forecast/ Q2Total Forecast.......and so on.
    According to me it should work in the below mentioned manner , but need help in improvising the formula.
    If(@ismbr("Weeks1") or @ismbr("Weeks2") or @ismbr("Weeks3") or @ismbr("Weeks4") or @ismbr("Weeks5") or @ismbr("Weeks6") or @ismbr("Weeks7") or @ismbr("Weeks8") or @ismbr("Weeks9") or @ismbr("Weeks10") or @ismbr("Weeks11") or @ismbr("Weeks12") or @ismbr("Weeks13") or @ismbr("Weeks14") )
    "Current_Forecast"/"Q1"->"Current_Forecast";......
    If anybody can help in suggesting how can i use user variable in this formula to achieve the required result.
    Thanks

    Hi
    Thanks for the suggestion and it would be a better idea to use ISIDESC as compared to ISMBR.
    I also wanted to ask if in the below mentioned formula if the result of first line is true than will the second line pick the current_forecast value of the respective member of Q1 and divide it by the current_forecast value of Q1.
    IF(@ISIDESC("Q1"))
    "Current_Forecast"/"Q1"->"Current_Forecast";
    Also i need to know how can i write a member formula for week YOY% using user variables.The general formula is
    Week 1 of FY13 - Week 1 of FY12/Weeks 1 of FY12
    Week 2 of FY13 - Week 2 of FY12/Weeks 2 of FY13 and so on till week 53.
    Thanks

  • 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

  • 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

  • Value from a formula variable into text variable in BEx Query

    Hello,
    if anyone knows how I can do the following please let me know:
    I have a formula variable in a formula (ZUM_KVAL). The value will be entered before execution of the query.
    Now I would ALSO like to display the entered value (from ZUM_KVAL) as at text variable (ZUM_KTXT) in the name of the field in the query/report.
    If anyone could provide me with info about how to do that, I'd appreciate very much.
    Thanks in advance.
    Cu, Stefan

    Hi Shashank,
        You can achieve this by creating a customer exit variable for calendar month.
    Function module :
    READ TABLE i_t_var_range WITH KEY vnam = 'Date variable name ' INTO loc_var_range.
       IF sy-subrc = 0.
        year = loc_var_range-low(4).
        month = loc_var_range-low+4(2).
         CLEAR l_s_range.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         CONCATENATE year month INTO l_s_range-low.
         APPEND l_s_range TO e_t_range.
       ENDIF.
    Hope this will help you. Let me know if you have any questions.
    Regards
    Suvarna

  • 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

  • How to use rounded values in BEx Formulas

    Hello,
    I have the following question. Is it possible to use rounded values up to a certain # of decimal points in BEx Formulas?
    I have the following problem.
    Consider this:
    keyfigure val 1 = 0.416666667
    keyfigure val 2 = 72
    val 3 (BEx Formula)  = val 2 / val 1 = 172.799999862
    However, what I need to do is this.
    val 1 & val 3 should rounded up to 2 decimal points. So, I really need the report to show this:
    val1 = 0.42
    val2 - 72
    val 3 = val 2 /val 1 = 171.43
    I changed the number of decimal places on val 1 and val3 to be 0.00. However, it appears that these rounded values are not taken into account in  the Formulas, as if the OLAP still uses the original values from the backend with 9 decimal points. So, no matter how many decimal points I use on the Display tab for a key figure, my val3 or result of my formula is always taking into account the 9 digit decimal values, not rounded values that I want. So in the example above, my val 3 comes to 172.80, which it should be 171.43 instead of you use the rounded values in the calculation.
    Please let me know if there is any workaround where I could force my BEx Formula to utilize the rounded values and not actual values from the backend DSO. Or any other solution.
    Thank you

    If you create a Formula in BEx Query Designer like the one below, it works:
    val3 = val2 / ( TRUNC ( ( val1 * 100 + 0.5 ) ) / 100 )
    The TRUNC function (among other things) actually ensures that your formula takes into account the rounded values that you want.

  • Need Text variable for Bex which take values from another variable

    Hello ,
    I have a requirement to show date values in query description.
    User want to run a query which runs for 5 sept till last sunday.
    I have one exit which provides last week date range ( low= last week monday  & high = last week sunday )
    i have acheieved this by restricting 0calday by range = (5 sept 2011 to exit (above metnioned exist's low) + 6 (offset)
    now the problem is user wants to show this date range in query description .
    ie suppose user is runnig this query today so the query description should be  "5 sept  2011 to 2 oct 2011 "
    This could be possible with text variable  by using replacement path , but i am unable to figure ot the logic .
    Kindly advice .
    Regards,
    CR

    Thanks Sushant ,
    In the Tab "Replacement Path " ..there is a drop down -
    "Replace variable with" what should be choose in this ?
    I have used this selections for genearl tab  -
    General Tab -
    Processing By = Replacement Path

  • 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

  • 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 use Text Variables to make Running Footers

    I'm confused about how Text Variables are behaving in the creation of Running footers on a pair of master page.
    My document has 3-6 Steps on each page. Each Step is designated with a unique character style called StepName.
    I want a running footer that has the first instance of StepName on the left page and the last instance of StepName on the right page. Like a dictionary.
    I can get the correct text to appear, but then it adds an unwanted ParagraphStyle (a substep letter) that gives me this:
    A) Open the File
    when what I want is just this:
    Open the File
    The Character Style StepName is not based on any other style.
    I have seen this done but can't understand why I'm picking up a lettering scheme on the footer.
    -Christian

    Sounds like you have a numbered list applied to the paragraph style of your footer.  It's either part of the paragraph style of the footer or it's local formatting. Either way, you can turn it off by selecting the paragraph and clicking on the numbered list button on the paragraph panel or the main control panel. Or you can edit the style and under bulleted and numbered lists change the list to none.

  • How to use text variables?

    Hi,
    I have a text variable 'ZEMAIL' with data element 'COMM_ID_LONGu2019.The routine corresponding to this is 'GET_ZEMAIL' in 'ZHKMIT30' program.
    Now I have to retrieve emloyee E-mail ID (infotype 0105 i.e.PA0105 DB table, subtype 0010, field USRID_LONG) and has to populate in ZEMAIL. How?
    I am very new to this text variables concept
    How to get this text variable implemented? Please help.

    select pernr subty usrid_long
             from pa0105
                 into table it_pa0105
              where pernr in s_pernr
             and subty = '0010' .
    loop at it_pa0105.
    ZHKMIT30-ZEMAIL = it_pa0105-usrid_long.
    insert ZHKMIT30.
    endloop.

Maybe you are looking for

  • Container Variables

    How to read the Container Varaibles or a Message Interface variable when BPM fails for example in Message Mapping for instance? Thanks

  • Exporting images from Lighroom back to Elements 6

    I use Elements 6 as my organiser and use lightroom as an external editor. When I have processed images in lighroom I have been unable to re export the image to Elements 6 as part of a stack. The export box appears to indicate this is possible but eac

  • Automator for recording quicktime movies

    I've been playing with creating some simple automator workflows to have quicktime record movies off my cable box, by initiating quicktime record functionality at times tied to ical. I've had some success, but am not quite completely there yet. I'm th

  • Best tactic to migrate recovery catalog

    #Recovery Catalog Oracle9i 9.2.0.1.0 Windows 2003 Server - 32 bit Our recovery catalog is an old one, we will upgrade this to 11g, but we will need to make a new server for him as well. Correct me if i am wrong but one way should be just to create a

  • CSS question - could someone explain

    Morning all, Id really like to understand what is going on when IE 6 and less, drops the float under, seems to be adding in an extra pixel between the floats or something. I have sorted the issue previously, more by fluke than anything else, usually