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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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 Get User entered value in a text variable

    Hi,
    I have made a text variable to show the user entered value in the column header.
    The user enteres value in a formula variable ABC whose default value is say '30'.
    I am using customer exit to capture this value in the text variable. The code is as follows
    IF i_vnam EQ 'txtvar'.
    if i_step = 2.
    LOOP AT i_t_var_range INTO loc_var_range
    WHERE vnam = 'ABC'.
    CLEAR l_s_range.
    l_s_range-low = loc_var_range-low.
    l_s_range-opt = 'EQ'.
    l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    EXIT.
    ENDLOOP.
    endif.
    endif.
    Now when I am executing the query I am getting the default value in the column header i,e, 30. But when the user changes this default value to something else while executing the query, I simply get blank in the column. The changed value is not getting captured in the text variable.
    Thanks

    Hi,
    Insted of  going for exit,
    just create a Text variable proceesing typr Default/ Manual Entry and set the default value as u wish,
    use it in the KF header; dont use the same Text Variable for Query Title.
    Now i tried this for you and it is working fine.
    Regards
    ReddY A

  • 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

  • Text Variables are not being Displayed in the Output of the Query

    Hi All ,
    We have some column headings , which are populated through the Text Vaiables , But in the Query Ouptput only the tech names of the Text variables are being displayed . can anyone tell me why its happening like this . I want to debug the Query , please guide me in this regard
    Thanks in Advance.. Pls reply me as soon as possible

    Hi Nagarjuna reddy,
    Click on the properties of the infoobject enter the name of the description and next to that you can see the X/? buttion click on the this button and select the field/if the proper field is not there then create a field descriton and select. i hope this is works and correct me if i am wrong. for debuggin the query use a transaction code- RSRT.
    regs,
    Vachan

  • How to change text variable value in bw3.5 query

    Hi Friends,
    I want to change the text variable value in query designer.
    My requirement is Header it's showing 2008 actual but it should 2007 actual.
    Siri

    Dear Siri,
    include it into some header and you will have
    &<your text variable>& - click on the same and a drop down will come asking you to edit or remove the same and choose edit.
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How to hide Text Variable in the Query title

    Hi guys,
    here again in a very easy pratical issue.
    I need to insert a text variable in a report title.
    The variable is updated with an exit and the text is get once the query is executed. This works fine.
    My problem is that in report selection (so opening the query and between queries available for an Infoprovider) I see the tech variable name of the query. Do you know if there is a method to hide the variable or if it is possible to valorize it when the report title in the report selection is displayed?
    Thanks in advance
    Bye!

    Hi, thanks for your answer.
    Also SAP marks this as a limitation.
    Bye!

  • 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

  • Text variable to be used in query description

    Hi,
    Need to use text variable in the query description. I have created one which processes by customer exit to get the value as system date. But the description is still showing as &variable name&
    Checked with value of  i_step = 2 and 3. still not working
    Any inputs?
    Searched the forums, but couldnt find a solution!
    Thanks in Advance,
    Tinkugeo

    Hi Tinkugeo,
    I tried with the following code and it is working for me :
    DATA: loc_var_range LIKE rrrangeexit.
    DATA:  l_s_range     TYPE rsr_s_rangesid.
    Data: NEWDATE type sy-datum.
    IF i_vnam EQ <variable name> 
    if i_step EQ 2.
    CLEAR l_s_range.
    NEWDATE = sy-datum.
    month = NEWDATE+4(2).
    year = NEWDATE+0(4).
    day = NEWDATE+6(2).
    l_s_range-low+0(2) = day.
    l_s_range-low+2(1) = '/'.
    l_s_range-low+3(2) = month.
    l_s_range-low+5(1) ='/'.
    l_s_range-low+6(4) = year.
    APPEND l_s_range TO e_t_range.
    endif.
    Check that the variable you have made is of type customer exit.
    Best Wishes,
    Mayank

  • Get value of formula variable during query runtime into a text variable

    Hi all,
    I wanna get the value of the formula variables during the query runtime into a text variable.
    My scenario is like this: First I defined a formula variable Z_DATE_3 which is processing by replacement. It will get the day of a characteristcs(Startdate).
    Then I defined a text variable and in the function module related to this text variable, I used the parameter I_T_VAR_RANGE which can store the value of formula variable during the query runtime.So I can read the value from this table in my function module.
    But I have a issue, when I run the query which used the defined text variable, it seems that it doesn't call the corresponding function module. Because I set a breadpoint in hte code and it never reach this breakpoint.
    If I removed the parameter I_T_VAR_RANGE , it can enter the function module.
    So could you please give some advice?
    Is my solution correct or not?
    And what's wrong with the parameter I_T_VAR_RANGE? Did I use it correctly?
    And My code is:
    DATA:  l_s_range_v TYPE rrrangeexit,
                 l_day type sy-datum.
    if i_step <> 2.
    raise no_processing.
    endif.
      READ TABLE i_t_var_range INTO l_s_range_v
         WITH KEY  vnam = 'Z_DATE_3'.
    if sy-subrc = 0.
         l_day = l_s_range_v-low.
    endif.
    Thanks in advance!
    Best regards
    Fanchest

    Hi, Fanchest,
    I'm having just the same issue.  Did you find a solution?
    I wrote a short routine in CMOD to derive the value of a formula variable to a text variable, but it's not working (I don't get any value).  Can you share your solution?
    Thanks in advance,
    LL

  • 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

Maybe you are looking for

  • Trying to update my phone

    I'm tying to update my iphone 4 and It keeps telling me that my server is not connected to itunes. What does this mean bc both my pc and phone are connected to my wireless internet.

  • DB replication Problem

    I am running ACS and are rehosting one of our machiens to a VM. Since is it our master that we are rehosting, I would like to first sync to the new VM from them physical box. All services are up on the VM instance, but syncing the DB does not happen

  • Lightroom 4 Catalog Corrupt

    "Lightroom 4 catalog corrupt and cannot be used or backed up until it is repaired" Repairing does not seem to help the problem, however I have backed up the catalog numerous times before this occurence.

  • Odisrv services getting down automatically

    odisrv services getting down automatically even though I have started services manually. Please suggest

  • Full text search with XML input in Oracle

    Hi, I need to develope a web application which can do full text search for a library. We will use XML as the input data format and stored XML file in Oracle. How can I do full text search to the XML according todifferent tags or elements. e.g search