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

Similar Messages

  • How to create a variable in Bex Query Designer

    Hi guys,
    I am writing a query for a travel management report using the SAP Standard cube. I would like to restrict the query so it only shows me the last two months excluding the current month. I have checked BI content in RSA1, but I canu2019t find a relevant SAP standard variable that I can use.
    Can anyone please tell me if I can create my own? And if so, how I can do this.
    Many Thanks
    Forhad.

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • How to create a variable in BEx 7.0

    Hi,
    Can anyone please tell me how to create a variable in BEx 7.0
    In 3.5, when we right click on a characteristic, we used to get an option for restrict.
    I cant find any such option in 7.0

    Hi,
    Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
    Regards,
    Rathy

  • How to create Text variable

    Hi Gurus,
    May i know the step by step procedure to create text variable? Is there any Transaction code?
    Thanks & Regards,
    Prabha

    Hi Prabha
    Text Variable promts u to display the Header with our own uploaded Desire Data.
    of course the following liks will explain u clearly the creation steps..
    <a href="http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html">Text Variable SDS</a>
    Text variables represent a text and can be used in descriptions of queries,
    calculated key figures and structural components
    Just Go to the Columns panel right click on it selct creat new selction type & it will
    give the text variable creation option
    Here is the HELP LINK from SAP
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/c1/759b3c4d4d8d15e10000000a114084/frameset.htm">TEXT VARIABLE FROM SAP HELP</a>
    Hope itz helps a little..!
    Cheers
    Kishore M Reddy
    ***Assigning pointz is the only way of saying thanx in SDN ***
    **Learning the thingz is never end process if u stop it will Be a devil if u continue it will be a divine***
    > Hi Gurus,
    >
    > May i know the step by step procedure to create text
    > variable? Is there any Transaction code?
    >
    > Thanks & Regards,
    > Prabha

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

  • 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

  • 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!

  • How can i achieve tis in Bex Query Designer

    Hi Experts,
    Please advise on how can i achieve this in Query.
    I got Location,Material_ID,Price and Change_Date.
    (Change_Date is defined as both CHAR & KF in cube)
    (Change date is on monthly basis they execute a programe in non sap source system to update the prices of material)
    The Price of material tends to change or may not change ...
    Every month we get a record from source system on material price
    My requirment is to bulid a report that show
    LocationMaterial_IDCurrent Price  and Previous Price
    Please advise how can i develop this report

    While loading into cube, normally you map  price field coming from datasaource to
    infobject  ZPRICE_CURRENT   in your infocube.
    So in transformation you map like this
    price  -
    > ZPRICE_CURRENT
    Now, Maintain another keyfigure in cube  ZPRICE_PREVIOUS.
    That is not mapped with anything.But is assigned a value in the Start routine
    which just runs before, the transformation.
    In the start routine write code something like this :
    Read current value of price from cube for that Material.
    (Select  ZPRICE_CURRENT into price_curr  from cube where material = DATA-PACKAGE- Material   )
    if  DATA_PACKAGE-price <> price_curr   ( if new_price <> old_price)
    ZPRICE_PREVIOUS = price_curr. (storign present value of price in the cube )
    endif.
    Now save the Start routine. When mapping the fields in the transformation
    dont map anythign to  ZPRICE_PREVIOUS as it is already filled in teh start routine from the above  code.Leave it unmapped.
    The below mapping is normally maintained without change..
    price  -
    > ZPRICE_CURRENT
    If you find this to be useful ..please do the needful (points)

  • How to display 0 Percentage in BEx Query Designer

    The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only.
    I have a small requirement. My client requires to display 0% in the data output.
    Sample data is like
    Mon/Grade     A | B | C | D | E | F             " These are headings
    April                |     |    | 3  | 5 | 4 |  |           " These are data I got in BEx
    Required O/p
    Mon/Grade     A | B | C | D | E | F                  " These are headings
    April                |   0  | 0   | 3  | 5 | 4 | 0 |           " These are data I got in BEx
    My current formula is like
    > NODIV0( ( TEST1 * 12) %A TEST2 )
    What changes must I make so that 0% is displayed in the O/p? Please let me know earliest.
    P.S . The values TEST1 and TEST2 are 'Selections', which holds no data for those displaying values.

    Hi Kavitha,
    The problem  is I'm viewing the data in Web based BEX & not in BEX Analyser. So only.
    >            GROUP E GROUP D2 GROUP D1 GROUP C2
    >APR              6.0      46.0
    >MAY %           14.3      48.0      11.4      16.9
    >JUN %             11.6      16.2
    As you can see there's no data for the months-grade (Apr-GroupD1 etc).. Now, how to view it in portal with 0s for all the ones with no data?

  • How to filter hierarchy node in BEX query designer

    Dear experts
    We are working on FI balance sheet with hierarchy infoobject 0GLACCEXT. Example of our balance sheet is as follow:
    Parent Node A = 20
         Sub-parent Node A1 = 10
             Leaf A11 = 5
                 Leaf A12 = 5
    Parent Node B = 20
         Sub-parent Node B1 = 10
                   Leaf B11 = 5
                   Leaf B12 = 5
    We require only:
        Sub-parent Node A1 = 10
        Leaf B12 = 5
    So I filter those out in BEX restriction;  however, after we examine the report in tcode RSRT, "Sub-parent Node A1" is not shown in BEX Report, and the result is as follow:
    Parent Node B = 5
         Sub-parent Node B1 = 5
                 Leaf B12 = 5
    Are there solutions for us to show merely A1 and B12 ?

    Hi Chu
    Try the following steps.
    Initial Output
    In this example I will restrict the query for only displaying Node 8603 and leaf 9000
    Proceed to restrict the Characteristic. Please be aware of the difference between hierarchy nodes and leaf characteristic values. Also set the Hierarchy display properties to expand up to level 1.
    Execute the query again:
    Please be aware that users will still be able to expand node 8603 and see the lower level nodes/leaf. In order to restrict users from doing this set up users authorizations.
    Regards,
    Carlos

  • How to create variables in Bex query

    Hi all,
    can anyone please explain how to create the variables and how many types of variables in Bex Query.
    Thanks in advance
    James

    Hi James,
    You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    Hope this helps,
    Juice

  • 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..

  • Creating Text Variables to use in BEx Broadcaster

    Creating Text Variables to use in BEx Broadcaster OR How to Broadcast reports (Excel output format) and dynamically generate each Excel file name
    Hello,
    I'm new into posting to this forum, but I always come here when I need some answers and I find them almost everytime.
    But now I couldn't find a solution for my problem so I decided that maybe you can help me.
    I'm using BEx Broadcaster (I'm working on a SAP BW 7.0, SP17) to broadcast to SAP Portal some Excel files generated from a query.
    I use Filter Navigation, because the query provides me with information regarding Sales Orders from all my customers and I need to broadcast an Excel file per customer. This is working perfectly, meaning, with this query I put the Broadcaster generating an Excel file per Customer.
    The problem is that I needed that each Excel file had a different name on it.
    For example, for Customer1 the Excel file name should be something like Customer1_SalesOrder.xls, for Customer2 it should be Customer2_SalesOrder.xls and so on.
    At the present, the Broadcaster generates each Excel file using the technical name of the Query that originated the file. You can use some stardard text variables that broadcaster has available, but these standard text variables don't solve my problem. I needed to create my own Text Variables so I could have the Customer ID on the file name.
    Can someone give me a light on this?
    Points are obviously awarded.
    Thanks,
    Cristina

    Hi All,
    I have a similar requirement, where I publish my reports on to the SAP PORTAL  KM folders.
    In my broacast setting for the web templates, I have the fisrt tab called
    TARGET in PORTAL
    File Name : ReportXX MONTHLY_<MONTH_ID>  (F4) List
    Currently I use the sys variable <MONTH_ID> which gives me the curr month;
    My requirement is
    If the report is run in the first week of the month, I want to generate a filename_PREVIOUS MONTH (label) and
    if the report is run between 7th-30th of the month then to generate a filename_CURRENT MONTH (label)..
    On BI.7 POTAL is it possible using some exit variables instead of the system variable which are given in the F4 List.
    If so where do I create the exit variable in BW backend or the PORTAL itself so that I can access it from the F4list of of the filename column.
    Thanking you in advance for you time.
    Rao

  • Creating Restrictions in BEx query designer for (1-a), where a is variable.

    Dear All,
    >>  Suppose for the variable in the BEx query designer, I've created restriction for 0FISCPER to the variable 0P_PER (as 0P_PER-1) by right clicking 0P_PER3, from that a dialog box appears.  In that I've selected 0P_PER3 and then clicked on offset variable and when I set the offset variable, it works for (0P_PER-1.etc, 0P_PER+1,etc..)
    But if I want to have (1-0P_PER), then plz tell me how to define this restriction?
    Plz explain me the steps to perform (1-0P_PER) restriction in BEx query designer in BW1.
    I'm using SAP BI 7.2 gui.
    Expecting your reply soon,
    with Regards,
    Jerald

    My requirement is that I want to have " 1-fiscal year"., But this I could not define using offset variables, since using offset we can define "fiscal year +1" or "fiscal year -1". 
    So there would be some other way to define "1-fiscalyear".  So Please help me to define "1-fiscalyear"  by giving me the steps.
    Thank you,
    with Regards,
    Jerald

  • How to edit the properties for existing variables in BEX query, so that I can get multiple input selections

    Dear fellow developers,
    I'm trying to edit an existing variable using BEX query, so that it can allow multiple input selections.
    As you can see in the screenshot attached, the option is selectable during creation.
    However, during editing of an existing field, this field (Details -> Basic Settings -> Variable Represents) is not selectable.
    Does anyone knows why, and how to remedy this?

    Yes you can do it at the table level.
    Go to SE11 enter table name as RSZGLOBV.
    Enter the technical name of variable in VNAM field..You need to change the value in VPARSEL column.
    Please make sure to get the where used list of this variable so that you can know the impact,if something goes wrong.
    Also change it in DEV and then transport across the landscape.
    PS:Same thing has been described in this blog as well
    Changing BI variable parameters
    Regards,
    AL
    Message was edited by: Anshu Lilhori

Maybe you are looking for