Text Variable for 0CALWEEK: On Structure with Calweek offset

Good day
Please assist? I have gone through numerous SDN threads relating to the following, but could not find a solution for my problem.
1) User wants to see 16 weeks data in columns, each week in own column. I have created a structure for each week with offsets 0 to -16, 0 to -15 and so on to display data. User wants to '0' display even if no data was loaded for a certain week, thus the structure. The data is displayed for 16 weeks. Now I want to replace it with calendar week text. (I have used week 12 to test text variable. week 12 should be displayed as 'example' 2008/42)
2) There are no calweek text variables available for selection, so I created a new one as 'replacement path', characteristic "Calendar year/week" and 'replace variable with "Name (Text)".
2.1) The following is the result 12  &0DPM_WV1&. Not what I wanted.
Where am I going wrong?
Your assistance will as always, be appreciated.
Thanks
CJ

You have to create 16 customer exit text variables and populate them in the RSR0001 Customer variable exit in i_step = 2.
http://help.sap.com/saphelp_bw320/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
http://help.sap.com/saphelp_bw320/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm
If you always run your query as of current system date and display 16 weeks data till current date, then u can use sy-datum in variable exit to populate these 16 text varaibles. If you are using a user entered calweek in the report varaible and displaying 16 weeks prior to that week in your report, then you need to read the user entered variable inside the customer exit and populate the texts for all 16 weeeks.
Hope it helps!

Similar Messages

  • How to change the text variables for a standard report-writer report ?

    I am trying to change the text variables for a report -writer report and transport the same so as to change the title page and the report output heading  .I know the Report-Group 6Z02 and the library 6O1 to which it belongs.I tried using the change transaction GR32 after going to the area menu through FGRP . I try to change the text variables through  but it throws an error "You chose a name in the reserved name range - try different name ".
    I have also tried copying this report into another report and changing the new report . I was able to change and save the text variables . Now when I try to overwrite the original report 6Z02-001 with this new report , it does not allow that.
    Let me know how I can change the text variables for the same

    Can anyone please suggest me what to do here ?

  • 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

  • Text variables for non-input ready variables

    I have a query with a structure in the Rows section.  The row structure contains three selections for different time periods.  Two of the time periods are based on non-input ready variables for Calendar Month.  The user will enter a calendar month and the other two selections will be based on the month that was inputted.  Since the time periods are dynamic, I need the text in the rows to reflect the appropriate Cal. Month value.  I have tried using a customer exit to define text variables but they are not working.  My text variables are called "CMON_TXT_D01" and "CMON_TXT_D02".  If the user selects 'Dec. 2010', the report would look like this
    Dec. 2010  => user inputs this value
    &CMON_TXT_D01&  => customer exit calculates -1 month back from inputted value
    &CMON_TXT_D01&  => customer exit calculates -2 month back from inputted value
    I need it to look like this if the inputted value was 'Dec. 2010'
    Dec. 2010
    Nov. 2010
    Oct. 2010
    I can get the text variable based on the input-ready variable to work but the two selections that are based on the non-input ready variables are not working.  Does anyone know how to get the text variables to work for the non-inpjut ready variables?
    Thanks.

    Hi,
    I would do it this way;
    1) Create a Row Structure
    2) Create Row Selection for Dec 2010 by restricting Cal. Mth. by the User Input Var
    3) Create Row Selection for Nov 2010 by restricting Cal. Mth. by the User Input Var with a Var Offset of -1
    4) Create Row Selection for Oct 2010 by restricting Cal. Mth. by the User Input Var with a Var Offset of -2
    5) Create a Text Var whose processing is by Replacement Path & choose Variable with the User Input Var under Replacement Path options
    6) Edit the Description of each of the 3 Row Selections to contain the Text Var in (5)
    7) The Text Var should automatically reflect the User Input selection & the offsets defined on the same in the Row Selection Captions
    --Priya

  • Using Standard Text Variables for FYPERIOD in Report Title ?

    Hi,
    We have a requirement where the user input the variable 0fiscper to the query (001.2010). How to get the text value of that variable in the query description in the bex query ?
    For example user input, 008.2010. We need to get "Aug 2010 Sales values " where Sales values will be the report text. I want to get Aug (month) and year (2010) before the report title. I have searched in google and sdn and could not find any link, but found a doc for the column header text using the same variable. I have tried the same procedure and its just display the zvariable name and Sales value's instead of the label. Please advise.
    Thanks
    DR

    You can create a Text variable with replacement path of Fiscper as reference char. Select Key in details tab of replacing variable.
    If you are just getting technical name, then it is understood that it is not getting replaced.

  • 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

  • Text variable for Fiscal year/period

    Hi gurus,
    We are on BI 7.0 (PL 15). In G/L i am using the standard 0FISCPER text variable 0T_FPERF in the columns, which should e.g. produce the text "04.2008".
    However instead it displays "4  .0800". Adding Fiscal year/period 0FISCPER to drilldown shows a correct format in the rows "APR.2008", so the problem seems to be only with the text variables.
    I have checked on a reference 7.0 system where the same variable is working fine, so i assume that some fix must be available. Any hints as to what should be performed to correct this display error?
    Points will be rewarded.
    BR
    Morten

    Hello Jamspam,
    I had a similiar problem with indicators in BEX. I had an numerical indicator that displays me value in a very weird way.
    My solution was to upgrade my frontend, with SAP Business Explorer patch.
    Have you got the latest BEX patch (or others) on your frontend? No guarantees that will solve your case, but for me it worked
    Regards,
    Bruno

  • Text variable for total number of pages in book?

    Hello,
    Is it possible to create a text variable that contains the total number of pages in a book?
    The only option I see is for the total number of pages in a document, which doesn't come out right for any but the last doc in the book.
    Thanks,
    -dp-

    If you use the Cross Reference plug-in from DTPtools.com, you can create a cross ref to the last page of the book across the chapters.
    This is an old FrameMaker trick and I have not tried it with InDesign, but it should work. Test out the trial version first (do it on a copy of the book).

  • Text-Variables for 12 selection based on 1 Date Variable

    Hello.
    I have a report where the user is being prompt to enter a start date (YYYYMM) in a variable.  Based on that, my report have 12 selection using the variable + offset(1), + offset(2) .... + offset(11).
    For the label of my columns, I'd like to display the the YYYYMM value, what the best way to achieve that?  From what I see, I might have to create 11 variables that are equals to my original variable entered by the user with the use of offset and then create 12 text variables to get that information but I really hope I'm wrong...
    Thanks.
    Regards,
    John

    Ok, sounds a better way than defining 24 variables (12 text + 11 Replacement path).
    Since I only have one variable (Month Selection by user), however, I'm not sure how to deal with the Offset in ABAP so I can properly assign my ZMONTH02TEXT, ZMONTH03TEXT, ZMONTH04TEXT and so on.  Do you have any piece of code to share ?  (Sorry, I'm pretty new to ABAP and I've been searching this forum for example but can't really find what I'm interested in).
    Basically what I need to do is to assign the following:
    ZCALMONTH01TEXT = ZCALMONTH --> The actual month is no problem as it's a simple replacement path variable defined
    ZCALMONTH02TEXT = ZCALMONTH with offset of + 1
    ZCALMONTH03TEXT ...
    ZCALMONTH12TEXT = ZCALMONTH with offset of + 11
    So it's ZCALMONTH02TEXT to ZCALMONTH12TEXT that I'm not sure how to code in the user exit..
    Thanks.

  • How to create a text variable for Calender Yr/Month depending on the prompt for calendar year

    Hi everyone
    Please assist on this issue:
    i have created a Bex report that has an offset for 12 months from the current calender month, i tried to use text variables to replace the calender months but i just learned now text variables from Bex dont work in BO, so I would like to create a prompt in BO to enter Calendar Year and then based on the input(Calender Year) the Webi report must display a 12 months for that Year.
    Please also indicate where exactly  i have to click in order to get that "Helpful icon "  when the my issues have been resolved, because i searched it and havent seen it anywhere on the communications
    Thanks in Advance
    Ole

    Hi Gill
    In BO I recieve my all months for existing data  and when i create a prompt for Calender Year the months in the report still has those text varibale for exampl if i enter 2011 on the prompt the text remains for the year that was already there wen i created my text variable... so its not dynamic.....
    So if i have text variables in Bex it will display like this in Webi in which it wont change if i put in 2011 as input for the prompt...

  • Text Variable for Report Title

    Hi All,
    My requirement is to keep a dynamic text as current fiscal period in the Title of the report.
    I have created a Customer exit variable and the value is getting populated. But the user does'nt wanna see the Key (Ex 2007004 ), he want to see the text as
    Apr 2007.
    If i am using a replacement path variable, then i can say replace with text. But as the text variable need to be in the report title, i have choosen the cust exit which will give only the key not the text.
    Can anyone suggest me how to solve it.
    Thanks In Advance
    Ram

    Hi,
    check the below thread.
    0CALMONTH values need to display in Texts
    Regards,
    Siva.

  • 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 variable for 0calmonth in the rows possible ?

    Hello BW Experts,
    I have 0calmonth in the rows and restricted key figures in the column. Wondering if we can show the month description in the rows using text variable?
    Please let me know if that is possible and what are the steps.?
    Suggestions appreciated.
    Regards,
    BWer

    Hi,
    Using Text variables you can display the headings in the reports.
    Thanks
    Reddy.

  • Text Variable for Top N in Report Name

    Hi Friends..
    I am using a Top N condition in my Report and need to take in value of N from the user and also display it in to title of the report.
    The Text variable wizard does not give me the option to populate a variable value in the title..
    Any ideas would be appreciated..
    Ashish..

    Hi Dorothy,
    Once I press the variable button ..I know I can create a text variable over a characteristic..
    My problem is that I have a Top N Variable created in the conditions which is populated by user entry and I need to populate my text variable in the report title by the value of N which the user enters..
    Hope you understand my problem
    Ashish.

  • Text Variable for Current Cal Year

    Hi Experts,
    I am performing some Calculactions in the Columns (Key Figures) as Fourmula...
    How can i name the Column with the Current Cal Year...
    My requirment is to name the column as Column2009 (Current Year)....and in the next  year it should be
    Column2010
    Please advise me on Text Variable

    Hi Raghu,
    I followed the procedure you outlined
    1. click on the key figure selection, where your are restricting the key figure with the customer exit variable.
    2. Now you have "change selection" popup window.
    3. In the description you have your key figure name. remove the description and write YTD &text_var_name&
    4.keep you cursor on &text_var_name& and select &text_var_name& and then,
    Beside "description" you will be able to see a variable ikon. click on that, from the contex menu of the variable ikon, choose the "change variable" option.
    5.you will now see a 'change variable'' popup window.
    6. give technical name text_var_name. description any thing.
    7.in global settings, give type of variable "text"
    8. processing type is "replacement path "
    9.Reference char is "calmonth"
    10. in the replacement path tab, in replacement rule, replace variable with "infoobject"
    replace with - "external charecteristic value key"
    11. use interval - select "from value" radio button.
    12. give 4 for offset length.
    13. save & ok.
    But the end result i am expecting 2009 but the result i am getting 2009.05
    But my requirment is to get 2009
    Please advise me on how to proceed
    Thanks

Maybe you are looking for

  • Creative Cloud Desktop App wont install on my Win 7

    Hello, i have been trying to install the CC Desktop on my computer all day today but it doesnt seem to work. I cleared the cache and tried to run the application in safe mode too but it just doesnt work. Does anyone have a work around to this? Thanks

  • Can I store thousands of iPhoto pictures on icloud if I am willing to purchase more space?

    We have several gig of pictures that we would like to keep a backup of in the iCloud so we could access them from any of our iOS devices. We have heard that there are limitations on the number of pictures and possibly the amount of time you could kee

  • Tax Calculation in TAXINN procedure

    Hi Seniors,   I know TAXINN procedure is condition based. But in FTXP while defining new tax codes, should i give value for the condition types there or need to create condition record in FV11 for all condition types ?? what are the condition types n

  • Add Element 9 to my Tower

    Hello, I only have Element 9 on this tower and my laptop, but it doesn't want to let me log on....says I have overused my license. If it was loaded on a drive, it is LONG GONE! HELP!

  • Images scrambled and error on PDF export since upgrade to 2014.1 / 10.1.0.71 build

    I am using a mac and just upgraded to the 2014.1 / 10.1.0.71 build.  I was working on a file and installed the upgrade (I know I shouldn't have done that while in the middle of a project.  Brain lapse), but as soon as I opened the file the images are