Formula variable in Report painter

Hi
Normally when ever you create a formula varibale for year or period system will
check the period and year from current system year and period(S001 and S002)
I am looking for a solution where i can create variable which is independent of
current year and period.
Lets Say if i give 2006 and period 7(of 2006)system has to give results
in the predefined columns like 2006 of period 7 and 2005 of period 7 and 2004 of period 7 and 2003 of period 7(I have 4 columns)
Can any one tell me how to create this using the formual variable,which will allow
me to select in the input screen any period and year and display the results  as per my own requirement.
Thanks
Lily

Hi Ramachandra
Sorry for late reply
As per your reply,i am not still clear,can i put in more clear my question again
Selection screen 
Year-2006
Period-6
I have 5 columns ,can you specify me the formula for 5 columns in your reply.
Column1- (it has to display 2nd  quarter of 2006)
Column2-(it has to display 1nd  quarter of 2006)
Column3-(it has to display 4nd  quarter of 2005)
Column4-(it has to display 3nd  quarter of 2005)
Column5-(it has to display 2nd  quarter of 2005)
Pls specify me FYEAR and Period from and period to which formula variable i need
to use,how many variables i need to create for this purpose.
Keep in view that selction screen i can give 2006,or 2005 or 2007,but system has to display 5 quarters back data in in 5 columns.
This is urgent,can you pls help.
Thanks
Lily

Similar Messages

  • Formula Variables for Report Painter

    Dear Experts,
    I have a Report Painter Report which displays month wise report in columns and now i want the report to be displayed based on the period mentioned in selection screen.
    Can someone please advice how do I do the same with use of Formula Variables.
    Regards,
    Rahul

    Go to the selection screen and press F1 and go to technical details to name the name of the screen field. example: 8A-VON (period from) and 8A-BIS (period to).
    In your report designer, you enter the those variable for the "period" characteristic and tick the variable ON/OFF checkbox.

  • Formula Variables for Report Painter- Syntac error in formula, Please Help!

    Dear Experts,
    I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))12*
    I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
    I have tried so many different way but nothing seems to work. one of the ways i tried was:
    In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
    So Im trying to create a folowing formula:
    IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
    IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
    Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
    Thank you in advance
    Regards
    Ernesta

    Thank you all for your help. The issue was that the variable was assigned to the different table as the library. After I changed it, it worked fine.
    Regards
    Ernesta

  • Formula Variables in Report Painter- Syntac error in formula

    Dear Experts,
    I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))*12
    I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
    I have tried so many different way but nothing seems to work. one of the ways i tried was:
    In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
    So Im trying to create a folowing formula:
    IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
    IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
    Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
    Thank you in advance
    Regards
    Ernesta

    so, I would use parameters.....
    P_fr_MO(2) TYPE N DEFAULT '01',
    p_fr_yr(4) type n default '2011'.
    Then, to set my range, i would do something like....
    data: lv_to_mon(2) type n,
             lv_to_yr(4) type n.
    if p_fr_mo eq '01'.
      lv_to_yr = p_fr_yr.  "12th month, same year...
    else.
    lv_to_yr = p_fr_yr + 1.  "any other month puts us into next year.
    endif.
    case p_fr_mo.
      when '01'.
       lv_to_mon = 12.  "always for 12 month period...
    when others.
       lv_to_mon = p_fo_no - 1.  '''example 10/2010 to 09/2011.
    endcase.
    then concatenate the from and to variables into what format is needed to read the data...
    on the other hand, if the user gives us from and to, we have a different problem....one then has to calculate what part of a year they have and create a factor for multiplying any data values....
    for instance if user says Jan (01) to (03) March, then I know that to month - from month + 1 is the number of months I have....
    then 12 / that number is the factor to multiply the results by....
    example...
    data : factor(5) type p decimals 2
              months(3) type n.
    if p_to < p_from.  "adjust if I cross a year boundary....Oct to Jan becomes 13 - 10 + 1 or 4 months.
    p_to = p_to + 12.
    endif.
    months = p_to - p_from + 1.
    factor  = 12 / months.  " factor   12 /4 months = 3 times the values obtained  = 1 year.
    something like this....hope this is helpful to you.
    Edited by: DaveL on Oct 18, 2011 6:24 PM

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • Formula line in Report painter

    Hello,
    Can I use 'IF' phrase in Formula column in Report painter ?  If so what's the right Syntax .
    Thank you,
    Ran.

    Hi Ran,
    Glad to hear from you too!
    Did you put '.' in the formula at the end of the message? You shouldn't in this kind of statement, so the expression should be:
    IF X005 > 0 THEN X004 + X003 + X005 ELSE X004 + X003
    Regards,
    Eli
    P.S. I tried it, just in case, and it works.

  • Variable in report painter

    Hi,
    I have a customized variable in report painter which pulls data from standard table, profit centre (GLPCT).  The data is included dummy profit centre. 
    How can block or should not allow dummy profit centre data to flow to the report?
    Please advice.

    Hi,
    Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
    Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
    Regards
    Sudhakar Reddy

  • How to create characterstic formula variable in reporting

    how to create characterstic formula variable in reporting
    tell me any one in steps
    thanks

    HI
    Query Designer -- Select your Char -- Create Char Variable -- Processing type should be Replacment path =In the Replace Variable with drop down box, choose Attribute Value. In the Attribute drop down, select Characteristic Reference
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/6ba03cc24efd1de10000000a114084/frameset.htm
    Hope it helps

  • Creating variables in Report Painter

    Hi ...
    I would like to know ... how do I create variable ? I know it is via T CODE GS11, but when run tht, in the next screen it pops up for variable ? What variable do I need to enter ? is this predelivered Eg : CE-PK, or can we create one ? Please advise
    Also, I would like to I have a requirement for a report whereby the format is like this .....
    SALES       CURR MONTH (06/2006)  LAST YEAR          
    - Sales IT
    - Sales 1
    - Sales 2
    COGS
    - cogs 1
    - cogs 2
    - cogs 3
    COS
    - cos 1
    - cos 2
    - cos 3
    GROSS PROFIT
    Whereby, SALES = sales it + sales 1 + sales 2, COGS = cogs 1+cogs 2 + cogs 3, COS = cos 1+ cos 2+ cos 3. also GROSS PROFIT = SALES + COGS + COS
    The abpve report is inclusive of Cost Centre and Profit Centre, how acn I utilize the libraray in Report Pianter to create such report, is this possible in Report Painter whereby including Cost center and Profit Centre in one single report
    Pls assist me
    Nathan

    When you create your variable first enter the variable name. Second enter the reporting "table" to use. Third enter the "field'. Press enter. Next enter a default value for your field. Save you variable. It is now ready to use in your report painter.
    Using the PCA reporting tables gives you the profit center but not the cost center. You can only use one reporting table per report. you will need a cctr report for that.
    First create your own libray from GLPCT. Next create your report using your new library. The report painter can do the calculations that you have shown.
    You create a formula in the row or column to calculate your sub totals.
    pls assign points if helpful as a way to say thanks.

  • New variable in Report Painter - GRR2

    Hi,
    Can i create a variable with a value of table PROJ, the value is in Z field of table PROJ?
    I need to create a formula in report painter to take the field value PROJ table and multiply by the actual costs.
    Many thanks.
    Regards.

    Hi,
    Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
    Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
    Regards
    Sudhakar Reddy

  • FI-SL How to define  formula components ID(report painter)

    Hi Experts
    please teach me how to define formula components ID.(it is related to report painter)
    I cannot see by GS13(variable)
    Regards.

    I sloved by myself. it automatically made when I add the row or culumn.
    but after delete the  row or culumn. it may have a problem.... I do not know.
    thanks.

  • Adding variable in Report painter

    Hi Gurus,
    I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am unable to find any way.
    Awaiting your help.
    thanks in advance.

    Hi,
    Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
    now its just done run the report and test it!
    If you still not make it refer to standard report of such kind, you will surely get it....
    Regards,
    Sayujya

  • Internal variables of report painter shouldn't be selectable

    Dear collegues,
    I have created two new internal variables in report writer in order to use them in planning layout of TA KP67:
    - previous year: marked as internal variable: calculated as: &1CGJAHE-1 (2008)
    and
    - future year: marked as internal variable: calcualted as: &1CGJAHE+1 (2010).
    In report painter these variables are assigned to key figures and are not shown on the selection screen again as they are calculated internally.
    But in planning layout of TA KP67 cost activity planning these variables are also assigned to key figures like actual costs or fixed planned costs and are indicated as acceptable for input on the selection screen but shouldn't - so how it is possible to define internal variables in co planning layouts as really internal which do not come up if the planning layout is executed via TA KP06?
    Thanks and regards,
    Christian

    Hello Christian,
    when I understand your request correctly, you want to plan for several years like 2008, 2009 and 2010 but you just want to enter one year. Right?
    For the column with the current fiscal year you can use a standard variable like GJAHR. For the other columns you define the year in the column as variable with value "GJAHR-1" (last year) and with value "GJAHR+1" (following year). On the selection screen of the planning transaction you will only have one field for the current year and the fiscal year for the other columns is calculated accordingly when you run the planning.
    Hope this helps.
    Cheers,
    Daniela

  • Contents of Formula (Sumaary) of Report painter report

    We have a report painter report for Balance sheet. The Cost of goods section is summarized with several GL accounts belows. The COGS section is detailed as formula . A certain GL account that is listed as part of COGS doesnot seem to getting added to the COGS(which is using formula).
    How do I know what is in the formula?

    Under formula, you will see something like Y037 + Y036 + Y040.   Look for the numbers under formula line in the formula components and then write down the descriptions for these lines.
    Now, locate these descriptions in the report by double clicking on the rows to get the sets.
    Those descriptions are likely to be sets.  Enter these descriptions one by one in transaction code: GS03 to determine the G/L account numbers under the various descriptions.
    Feel free to refer back.
    Elias

  • Report Painter - Use of Constants / Local Formula Variable

    Hi,
    I am using constant and/or local formula variable in report painter in FSI.
    I could use both the values for calculating percentages, ie. it can be used for multiplication or division. However, when I try to use it for addition or subtraction, I am getting the error message no. KH206.
    In all cases, I am using different values in the formula, i.e. a absolute figure and a GL based figure.
    I am not able to understand, why it even allows me for calculating percentage.
    Can anyone help me in using a absolute figure for input and thereafter use it in addition / subtraction.
    I would prefer an immediate solution to this as I am in the final stages of this report.
    Full points guaranteed.....

    Hi Kash,
    Thanks for your reply..
    Can you elaborate bit further. You mean to say I should create a Constant with some value.
    Thereafter how should I bring that in the form. But, How do I enter the Constant in the Formula... There is no key for entering any text in the formula.. there are only ID (the values which we bring in the form and which can be selected for the formula) and numbers which can be entered.
    So how do I enter the name of the Constant?
    I tried just keying in the name of the Constant, and I could check the formula also, However, while saving the form, I am getting an error,
    Element WCaplimit Bis letztem ATag bis &$BISD is not defined correctly -> check definition
    Message no. KH206
    Diagnosis
    In element WCaplimit Bis letztem ATag bis &$BISD the system adds quantities and values or different currencies.
    Can you please revert back with step by step solution?
    Appreciate your prompt reply.... Thanks

Maybe you are looking for

  • Data Transfer to Application server in Background

    Hi, I tried running a report in background.If I choose "print immediately" option, the required file is written to the application server.But on scheduling the date and time of the job(the print immediate option is not checked), the file is not writt

  • What are the advantages  using internal tables without headerline.

    hi, i have a doubt,please clarify. data:itab like <databse table> occurs 0 with header line. or data:itab like <databse table>occurs 0, wa like line type of itab. in above two cases , in my view  no difference. in first case there will be one workare

  • 2.8Ghz seen as a 1.6Ghz HELP! ;) + Other Questions

    First off, I want to thank anyone that replies to this post as I appreciate the help. So, I just received my new MSI 865PE Neo2-FISR MB and having problems with it seeing my processor correctly.  Inside the Windows System info screen it shows it as a

  • Https certificate issue

    Hi We wanted to access https://<server>:<port>/index.html and the https services are enabled on our sap system (abap+java). The issue is while accessing the link it ask for a secure digital certificate which is understandable. We do not want every sy

  • I have problems viewing photos in blogs using Blogger

    I have a couple of blogs that I frequent and lately (within the last month or so), I am having trouble viewing photos the bloggers have posted. Sometimes the first photo will seem to load, but by the time the entire page has loaded, where there is a