Text Variable Refresh with Drilldown

Hello Experts,
I am using a text variable in my report. And the report is further used in Web application.
The characteristic value on which Text Variable is build is supposed to change its value with navigation.
Now when user navigates through the web application, I want the text variable to change its value as well.
Can you please help me achieving this feature.
Regards,
Pratap Sone

hi,
use the textvariable of the type replacement path.
create the text vraible and give the type replcaement path and give the reference charecteristic and give the rule replcae with key or label select what you should be label becuase you want text variable.
Thanks
krishna.y

Similar Messages

  • Text  variable   replacementpath  with   key, attribute, name  then what

    text  variable   replacementpath  with   key, attribute, name  then  what  are the changes in my report in quary designer

    The XML 1.0 spec does not allow elements or attribute names to include spaces in the names.
    See: http://www.xml.com/axml/axml.html
    for a nice annotated version of the spec.
    [Definition:] A Name is a token beginning with a letter or one of a few punctuation characters, and continuing with letters, digits, hyphens, underscores, colons, or full stops, together known as name characters. Names beginning with the string "xml", or any string which would match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or future versions of this specification.

  • Text Variable replace with Customer Exit Variable

    Dear Experts,
    I created a text variable based on replacementh path (instead of customer exit). The reference characteristic is same that as my customer exit Variable and replace it by Key.
    I want to replace it with already Existing Customer Exit Variable but it is not displaying in the List Box even though existing variable option is mandatory.
    Can any one Suggest me the answer for this.
    Regards
    Supraja.K

    I do not think you can select Customer Exit variable, if you see the type is selected to Char Value Variables and it is not editable.
    It would be suggested to go for Customer Exit procesing type for your text variable.
    Cheers,
    Neel.

  • How to pass the currency of particular company code into a text variable.

    Hi
    I want to pass the currency of particular company code into a text variable.
    The company code is selected by the user using Input variable "0S_COM_M".
    I have created a text variable "ZD_CURR" with processing type customer exit.
    I have written the following abap code but its not working.
    DATA : LV_CURR type /BI0/OICURRENCY.
      WHEN 'ZD_CURR'.
        IF I_STEP = 2.
          CLEAR  XTAB.
          READ TABLE I_T_VAR_RANGE INTO XTAB WITH KEY VNAM = '0S_COM_M'.
          SELECT SINGLE CURRENCY FROM /BI0/PCOMP_CODE INTO LV_CURR WHERE COMP_CODE =  XTAB-LOW.
          L_S_RANGE-LOW = LV_CURR.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT  = 'EQ'.
          CLEAR E_T_RANGE.
          APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Pls let me know how to resolve this issue or what modification can be done to this code.
    Is there a way where we can debug customer exit code for variables.
    Thanks.

    Hi.
    You should debug your code to check behaviour of it.
    Just set external breakpoint (or create checkpoint via tc SAAB) and run your query.
    You may run query via RSRT.
    Regards.

  • No value found for text variable ZTFYEAR

    Hi,
    I have used Text variable ZTFYEAR with replacement path on fiscal year 0FISCYEAR. I have three columns in my report for value for current fiscal year, fiscal year-2, fiscal year-1.When I use the text variable with replacement path , it shows in the header &ZTFYEAR&Value instead of showing 2007value, 2005 Value , 2006 Value.
    Any bosy can help?
    Error message :
    Message no. BRAIN612
    Diagnosis
    Text variable ZTFYEAR, which is found in the item " Values", needs to be replaced by the value of the characteristic 0FISCYEAR. This value is not clearly specified in the item " Values". Therefore, no replacement takes place.
    Thanks,
    Ajay

    Hi Ajay,
    Is this teaxt variables created on 0FISCYEAR?
    if yes
    then did you include 0FISCYEAR in your selection while creating a row or a column as the part of the structure?
    If you are using 0FISCYEAR and then still not getting the value replaced check in your amster data if you ahve the key,small text,  middle text and long text which ever you have used while creating your text variable has values in it or if it's blank?
    hope this helps!!
    Regards
    Sri

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

  • Cal year Text Variable Offset

    If you have a text variable based on 0CALYEAR say ZT_CAL as user input, can you have column headings based on an offset from the user input value? For example, the user inputs 2004 and I have 2 columns (current year and prior year). The current year shows up fine based on &ZT_CAL& but I can't make the prior year show up as 2003 using &ZT_CAL-1& or &ZT_CAL&-1.

    Your approach does not work since my key figures are not RKF separately restricted by time. I am familiar with replacement path text variables working with restrictions.See the following typical example from APO:
    Sales - Current year xxx
    Sales - 1 Year Ago xxx
    Sales - 2 years Ago xxx
    All 3 key figures have the same 0FISCYEAR value. So when I run the query I need for the first row (or column) to say Sales - 2004, the 2nd row to say Sales - 2003 etc. based on a variable input of 2004.

  • Issue with text variable by replacement path

    Hello All
    I have a date field called ZDATE1 (it is based on 0DATE). I have used this this IO in a query and have create variables on it (ZSTARTDT and ZENDDT), Start and End date. And my KFs are based on these 2 dates: Quantity - Start Date & Quantity - End Date  / Product Value - Start Date & Product Value - End Date. Those are my descriptions for my KFs.
    Now, I want the replace the descriptions "Start Date and End Date" with the actual values that I am entering like 09/01/2010 and 09/10/2010. Ex: Quantity - 9/01/2010 & Quantity - 9/10/2010.
    Therefore, I create 2 Text Variables,
         1. ZSTART, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZSTARTDT, with KEY, offset - blank
         2. ZEND, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZENDDT,      with KEY, offset - blank
    And I put these text variables in the descriptions. But when I run the query, I still see: Quantity - &ZSTART& and Quantity - &ZEND&.
    Note that my ZDATE1 which is based on 0DATE does not have a master data table or text table; it is purely transaction data. Does that mean, my text replacement path variables wont work.
    Any suggestions??

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Text Variable Not Refreshed

    Hello,
    I created a data text variable user exit.
    everyting works fine, but,
    1) Selection options:
    Year: 2010
    Month: 1 to 11
    The query and text variable return right values
    Year 2010
    Month: Jan to Nov
    but, if i want to make new selection
    2) Year : 2011
    month : 1 to 11
    the query results are fine, but, the variable text return its old : return:
    year: 2010
    month: Jan to nov
    3) when I do it again
    year: 2011
    month: 1 to 11
    The query and text variable return right values
    Year 2011
    Month: Jan to Nov
    Why this happen? why they string doesnt work it 1rst..?
    Thx
    Reg

    I assume , variable 'ZP_CALY2' , which you are reading is created on calyear/ month which stores data as '2011.001' for e.g.
    and you are extracting year from the same and writing the same in a variable for calyear .
    In that case correct the code as
    WHEN 'ZP_AN2'.
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZP_CALY2'.
    zt_dt1 = loc_var_range-low +0(4).
    l_s_range-low = zt_dt1.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDLOOP.
    Otherwise you can try this option ,
    You are entering year in the selection screen , so create a text variable with replacement path and give the replacement characteristic as fiscalyear info-object used in the report .also restrict fiscal year variable in the keyfigure . use this variable along with the keyfigure .
    It will give you the correct year .

  • Used of Sap text variable with replacement path in Bo designer

    Dear experts,
    I created a univers based on a SAp BW query. In this query I used a text variable in order to get dynamic header columns.
    The text variable is done by using "replacement path" that is the text is derived automatically from the user input triggered by a sap bw variable.
    example :
    the query contains a restricted key figure which shows net values for a selected year based on variable PYEAR.
    The name of this restricted keyfigure is &ZYEAR& where ZYEAR is the text variable with replacement path from the variable PYEAR.
    When generated the univers based on this query I get component &YEAR&.
    When I use this unvers in WebI my result containts header with &YEAR& althougth I selected for example the year 2006.
    According to several how to and white papers on SDN , it seems that text variables with replacement path are supported. So I am disapointed by this result.
    Can you give me advise to get a rigth result ?
    thanks a lot
    Olivier Doubroff

    Hi Rishit,
    I am trying to achieve the same as you, but it seems like text variables in restricted key figures do not work. I am using BO XI3.1 SP3 and SAP BW 7.01 SP6.
    A work-around for me has been to use the "user response" function in webi to create a webi variable that holds the dynamic text title. If the user inputs Jan 2010, I change the input to a date using the "user response" and "ToDate" functions in the webi variable editor. After changing the input to a date I use the RelativeDate to extract 1 month (e.g. 25 days) from the user input. Then I have both Jan 2010 and Dec 2010 as webi variables to use as headers for my restricted key figures.
    The formulas can easily become a little long, but by tweaking the user response string, you should be able to get dynamic headings by using webi functionality. But be aware that you need one webi variable for each dynamic heading if you use this method.
    Let me know if it works or if I can help more:-)
    Best regards,
    Morten

  • 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

  • Text Variable With Replacement Path : supported in Webi 4.0 or Not.??

    Hello to All WebI Gurus,
    We are on BO 4.0
    We are building WebI report on top of Bex query using the BICS connection from IDT.
    Our BW query is having some Text Variable with processing type "Replacement Path".
    Also its having fiscal year period in filter with user input variable.
    the text variables references Fiscal year period and are used in Key figure description,
    hence whatever value the input variable will capture the description of Key figure changes accordingly/dynamically.
    But when I try to use it in BO it throws me an error msg saying :
    Unknown error occured in SL Services
    I am Aware that text variable in this fashion were not supported in BO XI3.1
    Used of Sap text variable with replacement path in Bo designer
    So are Text variable Supported in BO 4.0 in this fashion.
    Any response will be highly appreciable.
    Thanks & Regards
    Neeraj

    Hi,
    Here's a great SDN article, which includes several slides covering u201CWhich BEx features are supported using BICS connectivityu201D : http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5
    Pages 8 -> 12 cover these topics.
    If your design choices are compliant (supported) then i'd avise opening a support case if this issue persist after checking again on Patch2.11 (release recently)
    Regards,
    H

  • Text Variable with Replacement Path

    Hi,
    I want to create a report which will show me 5 years of data. I have used a variable for Fiscal year which will be given by the user. Now I created a 5 key figures with offset to show the 5 years of data. 
    I used a text variable with replacement path based on Fiscal Year, to display the year in the column heading. But I am only able to get the correct year in the first column. Rest of the column is showing me the same heading. Actually the offset is not working for the text variable.
    Can anybody let me know how could we achiev the column heading for the columns with offset.
    Thanks

    Prashanth,
    I have used a replacement variable in the exact situation. Instead of years, I have different months. I have used this variable on 0CALMONTH. I also have two more keyfigures where CALMONTH is offset by -12 and +1.
    This variable works perfectly for me as expected.
    Did you check the data to make sure that your offset is working? This is was I did for Offsetting and i am sure you have done the same thing.
    Right click on the variable, "restrict". A window opens with the values. With the variable selected in the right side, right click "Specify Variable Offsets". If the replacement variable is built on this infoObject, it should work.
    Hope it helps. Let me know if you still can not find a solution.

  • Replacement path with text variable

    Hi experts,
    My client requirement is " when he enters the current year or current day then it should display the Description of that particular year r month r day."
    Can anyone explain me in detail how to create replacement path with text variable on FISCAL YEAR?
    Hope will solve my issue soon.
    Thanks in advance
    Jani Sk.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Regarding text variable with replacement path.

    Hi Friends,
    Please can any one tell me good scenario where we can use text variable with replacement path..
    i have already searched in forum,but that scenario's i did not under stand.
    Please send.
    i will assign points.
    Thanks in advance.
    Thanks & Regards,

    Hi,
    There is a scenario:
    One has to show, a Period like May 2008 for a report. i.e the report which u r showing is common for May 2008. So u create a text variable on this Fiscal Year Period. When u do this, the Text appears on the Top of the report. So later, whenever u execute a report for a particular month, u get that Header as Jue, July etc etc.
    Its just a header. Text Variable promts u to display the Header with our own uploaded Desire Data.
    Steps.
    1) Edit your query
    2) Right click 'keyfigures' or other structure, choose 'new selection',
    3) beside description there is 'variable' button, click and then choose 'new', a variable screen will come out, type in your variable name, description, choose 'replacement path' for processing by. click 'next'.
    http://help.sap.com/saphelp_nw04/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm
    Assign Points if helped
    Thanks
    Edited by: Noor Ahmed khan on Jul 21, 2008 5:43 PM

Maybe you are looking for