Coloumn Headings replace with text variable

Guys
I have to display coloumn headings for my key figures to be able to match with the time period selection. Is it I need a text variable and if I do where do i create it and for what charachterstic.
Also i need to ;pick a variable values  based on other variables in the same query. can i do it through replacement variable or any other ideas.
thanks

Hi,
Yes, you are right you need a text variable in order to display the cloumn headings to match the time period selection.
Text variables with the processing type Replacement Path are replaced by a corresponding characteristic value. The value of a text variable has to be a text.
How to create & where to create a variable check here:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
The Reference Characteristic you can use should be a time characteristic like "cal. year/month". Choose according to your query requirement.
Hope this helps...
Cheers,
Habeeb

Similar Messages

  • 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

  • About Replacement Path, Text Variables & Cusomer Exit?

    Hi
    Please explain along with examples youwhen we use Replacement Path
                                                   Text Variables and
                                                   Customer Exit
    Please search the forum before posting a thread
    Edited by: Pravender on Apr 18, 2011 3:48 PM

    Hi,
    1. Customer EXIT :
    Business Scenario:
    The business department wants to check if the orders from the customers for a  certain week (e.g. 6 weeks from now) are already transmitted into their system. Therefore they run a report with a variable, that is calculated automatically.
    Note: Of course this is not the only suitable solution, but it will show you how the exit works.
    Step by Step Solution:
    A.You should create a variable on the info object 0CALWEEK like this:
     1.Technical Name: WS_FWEEK
    2.Description: Workshop Future Week
    3 Interval
    5.Mandatory variable entry
    6.Processing: Customer Exit
    7.NOT ready for input
    B.Call transaction CMOD for the definition of the customer exit.  
    C.Create a new project, maintain the short text and assign a development class.  
    D.Go to Enhancement Assignments and assign RSR00001. Press the button components to continue.  
    E.Double-click on EXIT_SAPLRRS0_001.  
    F.For documentation place the cursor an RSR00001 and use the menu GoTo => Display documentation.   
    G.Then double-click on ZXRSRU01.  
    H. If the include does not exist, you have to create it; assign a development class and a transport request
    Enter this code:
    INCLUDE ZXRSRU01                                        *
      data: l_idx like sy-tabix,
            workdate(8) type d,
            futureweek(6) type c.
      DATA: L_S_RANGE TYPE RSR_S_RAGESID.
    case I_vnam.
    when u2018WS_FWEEKu2019.
    if i_step = 2          u201C after pop-up
    Calculate Current day plus 6 weeks:
      workdate = sy-datum  + 42 .
    Calculate the week of this day
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          DATE               = workdate
        IMPORTING
         WEEK               = futureweek
    EXCEPTIONS
      DATE_INVALID       = 1
      OTHERS             = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      l_s_range-low = futureweek.
    l_s_range-high =
      l_s_range-sign = 'I'.
      l_s_range-option = 'EQ'.
      append l_s_range to l_t_range.
      p_subrc = 0.
    ENDIF.
    ENDCASE.
    I.Save and activate the codie 
    J.Activate the project. (Very important!)
    K. Define a query using the above created variable.
    L.For displaying the variable values in the executed query you also may define two text variables. These should, if necessary, be able to show the lower and the upper value calculated by the customer exit.
    2 Replacement Path :
    Example for filling variable values depending on an other variable /
    Deriving one variable value from another variable
    Business scenario.
    A query should show in one column the value for one period. The period should be entered by the user. In the second column the accumulated vale from the beginning of the year to the period of the first column should be displayed. The InfoCube contains only the InfoObject 0CALMONTH (Month/Year) and not single InfoObjects for period and year.
    Solution:
    For this scenario we need four variables: two variables for the column text and two variables for the period values. One of these period variables is defined as a variable with a customer exit
    Step by Step Solution:
    Create an input variable u201CMONTHu201D (you need this specific information for the coding example below). The variable is based on the InfoObject 0CALMONTH. Set the following attributes:
    Single Value
    Ready for input
    Mandatory variable entry 
    Create a variable  u201CCUMMONTHu201D (you need this specific information for the coding example below) with a customer exit as a processing type. The variable is based on the InfoObject 0CALMONTH. Set the following attributes:
    Interval
    NOT ready for input!
    Mandatory variable entry
    Create two text variables. Both variables use the u201CReplacement Pathu201D as processing type. The first text variable is filled with the text from the u201Cfrom valueu201D. The second is filled with the text from the u201Cto valueu201D.
    Enter this code
    INCLUDE ZXRSRU01                                        *
    DATA: L_S_RANGE TYPE RSR_S_RAGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    case I_vnam.
    when u2018CUMMONTHu2019.
    if i_step = 2          u201C after pop-up
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
              WHERE VNAM = u2018MONTHu2019.
         CLEAR L_S_RANGE.
    l_t_range-low = loc_var_range(4).  u201Cgetting current year
    l_t_range-low+4(2) = u201801u2019 u201Csetting 1st period in cur. year
    l_t_range-high = loc_var_range-low u201Chigh value=input value
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    append l_s_range to e_t_range.
    exit.
    endloop.
    endif.
    endcase.
    Save and activate the code.
    Activate the project.
    Define a query containing all the variables.
    Regards
    CSM Reddy

  • 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

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    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

  • Replacement Path: Replacement with a Variable Value

    How I can show the value of a variable entered by the user in the description of the column in the report?
    X and Y are variables entered by the user and reflect the lower limits of the range for count documents
    Example
    Table                              
    0doc_type     Material_type  Purchase_group     < X     => X And <=Y     > Y
    XXX     BBBBB        CCCCCC                         3     4                                          5

    Hi...
    Use a text variable in the column description,
    and use replacement path to show the descriptions as required.
    lets say you have variable 1 and variable 2
    create two text variables with processing type replacement path and select the above variables for each.
    Eg. the descriptions of your columns would be something like this after using text variables
    Total number of documents which are lower than &txt_var_x&.
    Total number of documents which are between &txt_var_x&. and &txt_var_y&..
    Total number of documents which are greater than &txt_var_y&..
    Hope this helps,
    Regards,
    Joe

  • Date format in Bex Output should be changed while using with Text Variable

    I am using a Bex Query where have defined a Text Variable with replacement path. So whatever Date user enters in the selection screen variable (Input Variable) the same date appears in the report description.
    For Ex: If user enters 30.04.2012 in Char Variable/Input Variable before executing the report, so once he executes the report the same date appears on report description like "ABC Analysis as on 20120430". Is also changes the report description whenever user changes the date in selection screen variable.
    My requirement is......Date format should be come as 30.04.2012 (DD.MM.YYYY) instead of 20120430 (YYYYMMDD) in report description.
    Guys could you please help me out to achieve the desired output.
    Rgds,
    Ritu

    Please check if you have selected Replace with Key in that text variable.
    Instead of that select External characteristic value key.
    This should help you in giving the desired output.
    Regards,
    AL

  • 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

  • Serious problem with text variables in table of contents

    I posted this in the regular InDesign forum -- seems that there's no easy solution that would work well in a production environment (only suggestion was to convert the variables to text). However, thought I'd post it here to see if anyone on the scripting forum has a suggestion that might help:
    Using InDesign CS4, when there is more than one text variable in a heading that is then included in a generated table of contents, the characters in the table of contents entry are scrambled. Is there a way to avoid this problem so that the table of contents entry has the same text as in the heading?

    (This might also have been mentioned in your other thread:)
    Text variables work great, but have one big basic flaw: the text cannot be broken. If you have a single text variable contents that's too wide for your text frame, all characters get squished together. I imagine this being even worse when you have two or more variables in a single paragraph. (Another big flaw is that you cannot include character formatting. Let's hope Adobe is working on it.)
    You cannot "work around" this basic behavior with a script. The only thing you can do is convert the variables to text, which will de-variablize them (for want of a better word).
    Other than using variables, you might want to use the regular Table of Contents feature (which is not "live" but needs updating after each change in the original document text), or perhaps Cross References, which can be used to pick up entire paragraphs.

  • Problem with text variable on 0CALMONTH2

    Hello,
    When I try to use a text variable based on 0CALMONT2, only 3 first caracters are displayed instead on the full text.
    Example : for september the system display SEP.
    How can I diplay all the text of the month ?
    Thanks in advance for your help.
    Best regards
    Nicolas

    Nicolas,
    Would you check the value being returned by the text variable (not the characteristic), it may be set to Key rather than Text.
    So select the Change Variable option and see what the display setting is for your text variable.
    Regards
    Gill

  • Windows 8.0 new dual boot GUI disappeared and replaced with text menu after installing updated 8.0 and 8.1

    I upgraded my windows xp to windows 8.0 and my windows 7 to windows 8.1 for a dual boot environment. I am using BCDEDIT program. I had no problem when booting to the GUI menu OF WINDOWS 8 when I first INSTALLED Windows 8. But after the second time
    I booted from a cold start it defaulted back to the old text version of the dual boot menu from the old windows xp and 7 . I have tried many times to restore the boot mgr TO GET BACK THE WINDOWS 8 GUI but I can't seem to put my
    finger on the root cause remedy  that would over-ride the default TEXT VERSION STYLE. I really like the Windows 8 GUI interface. Remember I am not having any problems with booting into the OS of my choice ----- just the BOOTMENUPOLICY.
    Here is where I need to resolve the new from the old command. By the way Does the Bcdedit program need to be installed in both OS'S? And when original Windows 7 was installed the os partitioned a Boot 100mb. I cannot remove or delete it in my Disk Management.
    Just some other tidbits to ponder from any help I would appreciate.
    Thanks
    Michael   

    Hi,
    What's the status of your current system boot option? Please check and make sure Windows 8.1 or Windows 8 was first boot.
    Roger Lu
    TechNet Community Support

  • Report Script - Member replace with text

    Hi All,
    I am writing a report script where I am extracting "FY12" on to the column.
    Is there a way to replace this "FY12" to "2012" in my extract file?
    Thanks in advance
    Rav

    Have a look at RENAME in the Essbase tech ref.
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    Robert

  • When Hard-coded server name and data base name are replaced with variables , execute process task does not produce the result

    Hi All,
    I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
    This is how the process tab looks like .
    Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
    Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
    Success value : 1
    For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
    It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    Both variables are string type. Can anyone tell me what I am doing wrong here please?
    I am running this in VS 2012.
    Thanks for your help in advance..
    shamen

    There should be a single space just after True:
    before
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    after keeping the space
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
    Thanks
    shamen

  • Text Variable for a Restricted Key Figure

    Hi,
    I have a version comparison query three Restricted Key figures based on 0QUANTITY each of which are restricted by Version, Value Type and Fiscal Year. All three are in my query columns. The users select 3 sets of version, value type and fiscal year in the selection for comparison.
    They want to see the text of the version they have selected as the description of the column. How can i achieve this with text variables on these 3 Restricted Key Figures which have multiple restrictions. Please advise
    Thanks
    Rashmi.

    Hi Rashimi,
    As u said this can be acheived by text Variable,
    I have adoubt here,are  there THREE columns for Quantity or just ONE column with three Restrictions.
    In case it is three Columns then u can go with Text variables else probably u may have to populate it in three Columns and by using Workbook you can combine them in one Column.....i.e One column with all the restrictions -text.
    And here is how u create a  text variable.....
    Create text Variables,For Example ,say 0FISCALYEAR.
    1)Right Click on the 0FISCALYEAR and Create a input Variable say YFISCYEAR and save.
    2)If ur using 0FISCALYEAR in the RKF,then drag both the 0FISCALYEAR and KF say 0QUANTITY in the new selection.
    3)After the Description of the RKF there is a = sign click on that to VIEW and CREATE Text variable.
    4)Create New Variable ,enter the tech name(say YFYEAR) and dscription and in the same screen choose type Replacement PAth after which u will get a set of infobjects.
    5)choose 0FISCALYEAR
    6)In the Next screen choose the Tech name of the Input variabble(0FISCALYEAR) and save.
    7)In the description of the RKF ,type as 0FISCALYEAR &YFYEAR&.
    Check this too .....
    /people/surendrakumarreddy.koduru/blog/2009/02/26/using-text-variables-with-customer-exits-in-report-headings
    rgds
    SVU123

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

Maybe you are looking for

  • Order print problem

    I have problem ordering book. It is the first time then order book with Aperture. With iPhoto I never had this problem. First: My appleid does not allow me to make order, I always get an error 'Try again later' but when work? Second: After had used a

  • Bookmarks

    I am relatively new to this Forum so I'll make this simple: How do you ADD a bookmark to an existing PDF file? Thanks in advance IvanVee [email protected]

  • When using java -jar does -cp have any significance?

    So we have a classpath that's set from the Manifest but I want to augment that with -cp From what I can tell -cp is ignored when you are using the classpath from a Manifest.

  • Firewire going away?

    I am being told by Apple representatives that Firewire will be going away due to the USB speed is equal if not faster now. Can someone explain these speeds to me?

  • CPU Patch 2013

    Hi , My database version is 11.2.0.1 and my jdk & jre version 5u10 with patch set 11.2.0.1.6.Please suggest me how can i apply CPU Patch 2013.