Variable for Offset

There is standard report Customer overdue Analysis in which it gives the days overdue amount.Like,0-15 days, 16-30 days,31-60 days etc.
Now the clients requirement is he should be able to input the days interval as per his desire, say 0-5 days, 6-10 days.
The problem is if it is fixed then I know we can hardcode it in the offset but if it is not fixed then how should I go about it?
That is take the input from user 5,10 then it should show me the overdue amount for 0-5 days and 6-10 days.
Any suggestions wold be greatly appreciated.
Thanks in advance.
Anuj

Hi,
one way is to predefine structures:
Structure1 0-15 16-30 31-60
Structure2 0-5   6-10 11-20
Structure3 0-7   8-14 15-20
User can select which Sructure he wants to see.
Kind Regards,
Alican

Similar Messages

  • How to create variables for offsets?

    Hi BW Experts.
    I have a tricky one that has been posted before, but I couldn't get my head around a feasible answer just yet.
    My customer wants to be able to display his ageing AR report with different buckets, depending on the month.
    For example, if it's January he wants to see buckets for 1-30 days, 31-60 days, 61-90 days and 91 to 120 days.
    If it's February, he wants to see buckets for 1-28 days, 29-58 days, 59-88 days and 89-118 days.
    If it's March, he wants to see buckets for 1-30 days, 31-58 days, 59-88 days and 89-118 days,
    and so on.
    We have create a structure in the query, filtering the key figure 0DEB_CRE_LC by 0NETDUEDATE. We have a variable for 0NETDUEDATE as a starting date and use different offsets to get the buckets. However, the offsets need to be hard coded, preventing us the flexibility of choosing the days in the buckets.
    Is it possible to create variables for the offsets, so the user can choose the days for the buckets at the report run time?
    Thanks in advance.
    Kind regards,
    Aline Passos.

    Hi Aline,
    as user is entering 0NETDUEDATE & he needs different buket for different months, which are more or less decided well in advance, I believe it cane be handled by User Exit varaibles which will draw value from the variable value you have entered & go backward.
    you will need to write the ABAP code with your logic to drive the correct user exit values.
    hope it helps
    regards
    VC

  • Predefined variable for offset

    HI,
    Can anyone provide me any system variable which will provide me the current offset of line from top of page (either in cms or in line count).
    Bye

    Hi,
    Use SY-LISEL,
    it holds the current line contents of the field
    SY-CUCOL-- which gives the offset value of the current column..
    SY-LILLI   - which gives the current line
    Regards
    kiran
    Edited by: Kiran Saka on Feb 9, 2009 1:52 PM

  • Use a variable for the integer in Fmt offset modifier

    I'm trying to pluck values out of a long array of comma separated string
    values.
    I'm doing this within a loop and would like to use the loop interation to
    point to the starting point in the array.
    Here's what I have working so far:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf);
    Works great.
    Now if I go in and change i0 to i3 then my modifier doesn't start looking
    for a comma "," until after the 3rd character. Still working great. However....
    If I try to use an integer called "loop" instead of the literal offset
    value it blows up:
    Fmt (scratch,"%s<%s[iloopt44]",transmitBuf);
    Is there a way that I can use a variable for the integer portion of the
    offset modifer?
    Thanks All!

    Hi Roberto
    Thank you. I actually need to use a symbolic value for the interger section of the modifer vs. the specifier.
    So, in my example:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf); 
    I want to make the following substitution (Assume z=0)
    Fmt (scratch,"%s<%s[izt44]",transmitBuf);
    Some background...
    I'm looking to loop index through a long CSV string array (transmitBuf) that looks like this:
    1,PEEP,7,6,,,21,20,
    So on my first loop when I use the following:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf); 
    scratch = "1"
    ... Perfect. I now do a string length of scratch (which equals 1)
    and add 1 to it, I'm ready for my next loop which would
    literally read like this:
    Fmt (scratch,"%s<%s[i2t44]",transmitBuf); 
    However, I want to put this inside a loop, so I would like to
    increment a variable (++z) and use the following:
    Fmt (scratch,"%s<%s[izt44]",transmitBuf); ---- Ka-Boom!
    So it's the use of the variable in the modifer that blows up
    the Fmt command.
    appreciate any thoughts...
    Thanks
    Mark

  • Using a variable for two different characteristic

    Hello
    I've to following situation:
    1) While execuring a query in BEx Analyzer, the user should manually enter a specific key date KEY_DATE
    2) Then, two InfoObjects should be restricted by using that KEY_DATE as follows
         a) InfoObject BEG_DATE <= KEY_DATE
         b) InfoObject END_DATE > KEY_DATE
    So, in Query Designer I've created a variable KEY_DATE and added it to each of the above InfoObjects. Now, while executing the query I get an error: "Variable KEY_DATE is used for two different characteristics".
    Is there another possibility to realize my requirements?

    Hi Dear,
             create variable for that date and restrict the char. info object by that date.
    -->create a variable of date char.
    -->in General tab, select processing by Replacement path
    -->in replacement path , offset 0 and lenght 0
    -->ok
    when u restrict, select value ranges and select greater than for one and less than equal for another
    try and let me know if any probm...
    Regards
    Obaid

  • 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

  • Dynamic Variable for YTD08

    Hi All,
       I am having a requirement for the generating a report for the selection field 0calmonth.if execute the report,the field name should get change for the previous years and i should get the data for the same.
    For Example:
    Input : 200906
                                                                YTD' 200906(Dynamic)      YTD 08 (Dynamic)
    ARCHWAY SALES - CINCINNATI         1234                                       1234
    ARCHWAY SALES - CINCINNATI        13,725                                     13,725.
    Eg.. If i give the input as 200906 and execute the report then at YTD 08 place i have to get previous year ( 200906 has to be converted as 200806) so it has to generate dynamically .
    Let me know if you have any queries
    Thanks!!!

    Hi
    Create 2 Restricted Key Figures YTD(FiscalPeriod) and YTD(FiscalPeriod-12)
    In 1st RKF
    Bring the KF of YTD and restrict by Fiscalperiod Variable
    In 2nd RKF
    Bring the KF of YTD and restrict by Fiscalperiod Variable and offset the variable by -12.
    Use these 2 in your report.
    Regards,
    Bilapati

  • Dynamic variable for 0CALDAY

    Hi all, this is my scenario:
    I've created a query with input variable for characteristic Year/Month (0CALMONTH), in columns i added a key figure and in rows i added the characteristic 0CALDAY. The result looks someting like this:
    Varibale entry: 09.2006
    Result table:
    <b>
    0CALDAY      | KYF</b>
    01.09.2006 | 1,000
    02.09.2006 | 2,000
    03.09.2006 | 1,500
    30.09.2006 | 2,100
    31.09.2006 | 2,350
    Now, what i need is to add a column that shows the value of the previous day, so the result should be:
    Varibale entry: 09.2006
    Result table:
    <b>
    0CALDAY      | KYF      | Previous Day KYF</b>
    01.09.2006 | 1,000  | -
    02.09.2006 | 2,000  | 1,000
    03.09.2006 | 1,500  | 2,000
    30.09.2006 | 2,100  | (value for 29.09.2006)
    31.09.2006 | 2,350  | 2,350
    I guess offsets will be the solution, but i need a variable (dynamic variable) to read the current day (0CALDAY) in the report... anyone knows how to do this? a customer exit can solve it (which code)? Please advice.
    Thank you.

    Thank you KJ for your answer, but unfortunatelly my knowledge in ABAP is very limited, ¿Do you happen to have an example so i can see how to customize it in order to read values from characteristic 0CALDAY?

  • How can you change text varaible for offset fiscal year

    Hello all,
    I am using variable for fiscal year (0P_GJAHR) and then I am using text varaible (&0T_FYEAR&) so that the fiscal year comes up in the key figure column.
    Now I am offsetting the fical year variable by -1 so that I can get comaprison between current year and previous year but the text varaible still shows the current year, how do you offset the text varaible by -1 ?
    Thanks in advance

    Yes Bhanu actually results pretty ok. I am inputting fiscal year as 2007 and so the offset is 2006. My cibe does not have data for 2007 so the first column is empty and I have data in 2nd (offset) column whic is right data for 2006.
    I will try what you suggested.
    Thanks
    Edited:
    When I say RKF, i created it on LHS and then when I am trying to offset what I do is basically do the restrict again for fiscal year when its on right hand side. I hope I am doing that right?
    Thanks
    Message was edited by: Raj M

  • Urgent!!Variable for days not displaying properly!!!

    Hi
    When executing the Query,Variable for displaying Aging in days are not displaying between the selection.Pls any one help with regard to it.Pls tell wht r the main thing to be taken to consideration for this issue.
    Thanks

    Hi
    We have 2 formula var.
    <b>Current Cal day</b> which is based on SAP exit ,single val ,mandatory & dimension is date
    Another Formula var--<b>PR Info date</b> based on Replacemtn path ,replace with infoobject ,key,Interval value from,offset 0 to 8,single val ,optional & dimention tab as date.
    So calculating Ageing as   <b>Var Current Cal day</b> Minus <b> VarPR Info date</b>
    Then u have condition for Ageing Selection, with above calculating ageing -
    operator between, another var as AGING Frm & aging TO which is  form var by manual input ,interval is From val & Offset start & length  as 0 & 0, single val & optional..
    These r the selction made for the variables.
    Pls if u can get idea,tell where the problem is??????????URGENT
    ASAP...When I select range, Calculate COlumn for Ageing ..........displays all different days values not as per the selection range.

  • Variables with Offsets in Cache

    Hi Guys,
    I have a number of queries that I want to cache the current week, plus the last 4 weeks, each night.
    I have the variable for current week working but how do I create offsets of this in the 'Filling OLAP Cache' in Info Broadcasting?
    Regards
    Scott

    Thanks for your reply. I guess after looking into the problem yesterday I found out that if the changes are made to the project that will be executing then the changes in static String are detected but we have 3 projects in addition to the project with web module (all projects sit in the same workspace). If the static String in one of the project is changed the change is not reflected when the web module is run. As the additional projects are domain objects they are not supposed to be run by themselves only to be called by the web project. We have tried building every project before running web module that does not help. So, any thoughts how this situation can be remedied. BTW- we have just moved all our development to JDeveloper and are loving it.
    Glad to hear that you are loving JDeveloper. Right now your workaround is to Build each of the projects. For the next release we will have a Build Workspace command which will build all of the projects in the workspace.
    Part of the problem, is that your static String (probably final), is getting inlined by the java compiler (this is normal for final values), and therefore not getting updated since it lives in a different project.
    You could not make it a constant (final static) value, and make a static method to get the value, or just remember to build all of the projects for now. With the release later this year, Build Workspace will work nicely for you in this situation.
    Thanks,
    Rob

  • CUSTOMER VARIABLE FOR MONTH

    Hi all,
    i have one requerment. that is in the report i will give date on  selection screen ,based on the date i want to get month only.
    on that month ican use variable offset.. please give me the code if any body have (i_step =2).
    thanks

    Hi.
    You can try the next:
    1. create variable for user date (lets say Z_DATE)
    2. create variable for month (not ready for input, mandatory, customer exit) lets say Z_MON
    3. in [EXIT_SAPLRRS0_001 |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90?quicklink=index&overridelayout=true]try to read i_t_var_range table with key Z_DATE
    4. parse this value - take by ABAP only month from the date
    5. set this value (month) = value - 1
    6. assign this value to Z_MON variable.
    Regards.

  • 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

  • Replacement path variable for date not working

    We have a formula variable using replacement path (BEx 7.0) for a date field and after that we have calculated key figures to perform date difference calculations.
    This was working perfectly well until recently when the calculated key figures displayed an "X" instead of the value.
    The value seems to appear only when the date fields are drilled down in the report.SO this works like a formula instead.
    Is this just an unnatural case where something just stopped working ?
    We have checked the calculated key figures and the formula variables , they havent been changed in the recent past.
    Is there any other solution you could offer to get date differences without having the date fields in the rows ?
    Edited by: ABCD on Jul 29, 2009 2:28 PM

    How to use Replacement Path Variables to perform Date Calculations
    A Step-by-Step guide
    Have you ever wanted to perform calculations using dates defined as characteristics but have never worked out how it can be done? Replacement Path Variables are the key.
    Using Replacement Path in your Text and Formula variables, replace values held in a characteristic. The Characteristic value variables are replaced by the results of a query at run-time.
    The steps detailed below show a technique to enable a BEx query user to determine the number of days between two dates.
    Scenario:
    The group HR administrator wants a detailed line item report that lists all employee absences in a given period. The report is to show the employee number, the absence start date, together with the end date of the absence and show the number of calendar days the employee was absent.
    The good thing about using this technique is that no redesign work is needed from your technical BW team, no ABAP is involved and best of all, it quick and easy.
    Solution:
    For this example I created an ODS object called Absence that holds basic employee information along with individual absence record data.
    Follow the steps below:
    1.     Open the BEx Query Designer and create a new report on your chosen InfoProvider.
    2.     Drag the Employee, Valid from and Valid to characteristics into the Rows section of the screen.
    If needed, apply data selection restrictions to the characteristics as shown in Figure 1.
    3.     Right click on the Key Figures structure and select New Formula (Figure 1).
    Figure 1
    4.     
    5.     In the new formula window right click on Formula Variable and choose New Variable ( Figure 2 ).
    Figure 2
    6.     
    7.     The Variables Wizard will launch and will require you to specify the variable details.
    ( Click the NEXT button if the Introduction screen appears )
    8.     Enter the variable details on the General Information as shown in Figure 3 .
    Enter the Variable Name , Description and select Replacement Path in the Processing by field.
    Click the Next Button.
    Figure 3
    9.     
    10.     In the Characteristic screen (Figure 4) select the date characteristic that represents the first date to use in the calculation (From Date).
    Click the Next Button.
    Figure 4
    11.     
    12.     In the Replacement Path screen (Figure 5) select Key in the Replace Variable with field. Leave all the other options as they are (The offset values will be set automatically).
    Click the Next Button.
    Figure 5
    13.     
    14.     In the Currencies and Units screen (Figure 6) select Date as the Dimension ID.
    Click the Next button.
    Figure 6
    15.     
    16.     The Save Variable screen (Figure 7) displays a summary of the new variable.
    Click on the Finish button to save the variable.
    Figure 7
    17.     
    18.     Repeat steps 4 to 11 to create a second variable for the second date to be used in the calculation.
    In the example shown, the characteristic 0DATETO is used to create the variable ABSEND (Absence End Date).
    Define the Calculation
    We can now use our two new replacement variables to define our new calculated key figure that generates the number of absence days for each record.
    1.     You will now be back at the New Formula screen (Figure 8). Drag and drop the two new variables into the formula section of the screen and insert the subtract sign (u201C-u201C) between the two.
    2.     Give the new formula a description and click the formula syntax check button  to ensure the formula is valid.
    Figure 8
    3.     
    4.     The new calculated key figure will now show in the columns section of the BEx query designer (Figure 9).
    Figure 9
    5.     
    6.     Save the query and execute it.
    In the example shown the Number of Calendar Days Absent is calculated correctly. See the table of results below.
    Employee     Valid From     Valid To     Number of Calendar
    Days Absent
    50000001     17/04/2004      21/04/2004      4
    50000002     16/07/2004      29/09/2004      13
    50000003     07/01/2004      09/02/2004      33
    50000004     04/08/2004      05/08/2004      1
    Cheers:)
    Vivek

  • How to create a 0FISCPER variable for [last period of current year]

    Hello,
    Can anybody tell me how to create a (exit) variable for the last period of the current year, based on 0FISCPER ?
    Based on a single value, user entry variable based on 0FISCPER.
    I did not find any standard (business content) variables for this.
    Can anybody tell me whether the following alternative works:
    variable 0P_BA102 (last period pervious year) with offset of +12 
    Kind regards.

    Hi,
    It should work.
    You can refer to the following link:
    http://help.sap.com/saphelp_sm32/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    Regards,
    Amit

Maybe you are looking for

  • What is the max number of hyperlinks supported in a PDF docment?

    What is the max number of hyperlinks supported in a PDF docment? How do I find out how many hyperlinks there are in a PDF document?

  • Add selection-screen parameter in HUMO

    Hi everybody, I need to add selection-screen parameters in transaction HUMO. I tried to create an new specific program with a subscreen. This subscreen is a copy of subscreen 2050 of program RHU_HELP and I had my news parameters to it. But the proble

  • Readding and writing with currect enties of xml into config file?

    Hey dear Developers, i ask about xml file for config.xml. If you change line of config.xml than application air will to read sometimes xml structures... Example: <config> <app>   <lang>langde</lang>   <style>default</style> </app> </config> If i chan

  • Error - REP 1849

    Hi, I do have a problem printing my report, it gives me this error, It's not a user interface error.. can anybody help me on this.. thanks in advance Lilibeth

  • Can't download and install Adobe Flash Player

    I have a new Acer Aspire laptop on Windows 8.1, running the latest Firefox as default browser. On trying to open Al Jazeera in Firefox I get a window that says I need to download Adobe Flash Player: I click on that and get the Adobe download page: I