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.

Similar Messages

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

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

  • Attaching Variable to the Library for Report Painter for Cost center report

    Hi,
    I want to attach the Variable - "Cost element group" to the Library for Report Painter for getting Cost center report. The Cost center report should be cost element group wise with actaul, budget and variance. Please let me know the process.

    hi..
      I think you have to first define Attribute mis as "V" in Cost element master basic data tab for the elements you want to capture as varible.
      Then make a Cost element group / set in KAH1/GS01 and use it in your report.
      kkumar

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

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

  • Creating Tcode for report painter program in 4.0B version?

    hi all,
    How to create a tcode for report painter program in 4.0 B?
    I searched the forums. but i couldn't find the same for 4.0 B?
    Please helo me to solve this?
    Thanks,
    Vamshi

    I am closing as no one answered and worked in alaternative way for the requirement.

  • 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

  • Assign Transaction Code for Report Painter generated program

    I am trying to assign a transaction code for report painter generated program... I assigned the transaction code in Development for the generated program but the program name changes in every system and I get a runtime error...
    Can you please guide me on how to handle this problem

    http://dap-consulting.com/yahoo_site_admin/assets/docs/Report_Painter_Reports.47142031.pdf
    Found my answer in the above link

  • DB Table for Report Painter

    Hi all,
    Can anybody please let me know in which db table the details of the Report Painter are stored?
    If I have a Transaction Code, I want to know if that transaction code is created for Report Painter or not through program not through SE93.
    I have to create a report on all Z Transaction Codes.
    Thanks in advance.

    Hi Mr.A ,
    while creating tcode for report painters we will take option PARAMETER Transaction code , so based on the transaction type u can find out from the same tables - TSTCP or TSTC.
    regards
    Prabhu

  • T-code for Report painter.

    Hi
    can anyone tell me, Is there any transaction code for report painter or it is an external tool.??
    Thanks
    Utpal

    Hi,
    Please check this transaction codes.
    GR31/32/33 - Create/Change/Display Report
    GR51/52/53 - Create/Change/Display Report Group
    Regards,
    Ferry Lianto

  • Configuration doc for Report painter

    Hi Friends,
    Can any one send configuration document for Report painter?
    [email protected]
    Regards
    Babu

    hi
    find this link
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf

  • Tcode for Report painter

    Hello All,
    when m trying to create a tcode for report painter through se93 its show erre for D_SREPOVARI-EXTDREPORT parameter,m felling the parameter with the value gatting from table TKEB1,-APPLCLASS /SUBCLASS /TABNAME  23 space / REPID.error is do not use blank char. Suggest Please and please give some idea about how to copy a stand. report painter and change the Z according to client requirement.
    Thanks
    Sam

    Hi,
    I will suggest you to execute the transaction START_REPORT and put the report type report and ext. name. If it executes well over here then you can create a transaction using SE93
    Something like this
    Default value for transaction ‘START_REPORT’
    In    bellow default value section insert default value
    SREPOVARI-REPORTTYPE      = AQ      "Parameter    indicating Abap Query
    D_SREPOVARI-REPORT           = ZY_CS_ALLSLS   "Query    User group
    D_SREPOVARI-EXTDREPORT= ZY_SLS_MST_001     "Query name  
    Hope this helps.
    Thanks,
    Tooshar Bendale

Maybe you are looking for

  • Fnd_new_messages won't display "new line" in sswa

    I created a new message in FND_NEW_MESSAGE, and I can't get "new lines"/"carriage returns" to display properly. Can someone explain how to get this to work? I am currently using BR, enclosed in <>, to force newline. For Example: ( i am using the tag

  • How to create R/3 Transaction Iviews in EP

    Hi Experts, I want to create R/3 Transaction Iview in EP. So can any body guide me step by step procedure for it. Regards, DS

  • How text will be redetermined if the ship to party is changed

    Hello, The test is maintaining at ship to party level and if the ship to party is changed how the text will be redetermined here in the order the text is not redetermining. kindly give the solution for redetermination on this. Regards, Kishore.a

  • Is there any workaround for URL & TABS

    Hi , 1.I have the following case mentioned at : URL region error when changing tabs 2. I would like to know if there are any workarounds for this case, due to we urgently need this functionality. Thanks in advance Etay G

  • Turkish character problem in SAPScript

    Hi , I have created a SAPScript form (Purchasing - RFQ) original language is TR, and created a copy of this in language EN. I have problem with Turkish characters when printing an RFQ in English. Any comments ? Thanks. Utku