Calling Report Parameter in Row Formula - Report Painter

hello
i have a unique situation in which 11 months out of the year i need to call a certain "cell" and then in December I need to call another "cell"
i figured if that is possible I would be able to do this one of two ways:
IF "Eval Period" <> 12 THEN "Y021" ELSE "Y023" - this would result in a single line solution
IF "Eval Period" <> 12 THEN "Y021" ELSE 0
IF "Eval Period" = 12 THEN "Y023" ELSE 0
the later formula would be split into two lines.
i am a big excel and VBA user (where this would be possible with some trick coding), but i am slowly learning the art of report painter. Is this possible. I know you can define a row or column with a variable, but can you call it out in a formula?
thanks

Hi Adam01,
I am not sure if I have understood your problem, but I am going to comment one thing in case it is helful for you.
If you press F1 in the u201CFormulaLineu201D when you are editing the formula, you can read:
Formula syntax in the Report Writer
A formula consists of operands, operators, numbers, and parentheses.
The following operands are possible:
Row numbers (for example, Y001 for row 001)
Column numbers (for example, X001 for column 001)
Cells (for example, Z001 for a specific total in a report)
Value variables (for example, '1PERIK' for the value variable 1PERIK)
You can enter numbers directly, with or without a decimal point (for example, 100 or 2.5).
Example (percentage difference):
( X001 - X002 ) * 100 / X001
In addition to basic arithmetic operations + - * / the following operators are supported:
Operator Example
ABS   Absolute value ABS(-10) = 10
DIV   Quotient-whole no. div. 10 DIV 3 = 3
MOD   Remainder-whole no. div. 10 MOD 3 = 1
SQRT  Square root SQRT(9) = 3
INT   Truncation to integer INT(3.9) = 3
TRUNC Truncation to integer TRUNC(3.9) = 3
ROUND Rounding ROUND(3.5) = 4
EXP   Exponential function EXP(1) = 2.71828
LOG   Logarithm LOG(10) = 2.3025
SIN, COS, TAN  Trigonomic functions (length of a curve)
Example (difference of absolute values):
ABS(X001) - ABS(X002)
Logical Expressions:
IF c1 THEN f1 ELSE f2
where c1 is a comparison condition, f1 and f2 are formulas.
In comparison conditions, the following operators are allowed:
< less than
<= less than or equal to
> greater than
>= greater than or equal to
= equal to
Example (determine maximum value):
IF Y001 > Y002 THEN Y001 ELSE Y002
For instance you can write:
  IF '8A-PER' < 12 THEN Y023 ELSE Y021
Best regards,
Paco

Similar Messages

  • Dump in report painter

    Hi ,
    I am getting dump while calling report painter transaction (z *), the dump is from submit program statement.The automatic generated program does not exist in the system, can any body help me why it is not generating?
    Regards,
    siva kumar

    hi..
      Goto GRR3 > click on Lib 1VK it will show you all the report in 1VK library > select your report & double click on it
      It will display the report format. Then go to Edit at the top. you will find General data selection.click on it you will find available characteristics. Then goto GRR2 for making any change/selection for Fiscal year char
      If your report is a standard one you can not change. then copy the report from GRR1 and make the changes.
      You can also see the char in GR23 by selecting 1VK lib.
    kkumar
    Edited by: kkbdsp on Mar 11, 2011 9:21 AM

  • Dynamic Rows in Report Painter

    Hello everyone,
    I'm new to report painter and m using the SAP Library help  material to understand report painter. I've one query though i.e
    Is it possible to create a report hrough report painter with dynamic rows ? if yes then pls let me know how.
    Regards
    Anik

    Thank you.
    See I have the below Rows
    Total Revenue
    Cost2
    Cost3
    Direct Cost
    Gross = Total revenue - Direct Cost
    Gross % = (Gross/Total revenue ) * 100
    I have Columns as with basic Key figures and Formulas
    Year(basic key Figure)
    Year+1(basic key Figure)
    Total = Year + (Year+1)
    Its giving me correct values in case of Basic Key figures and not in the formula case.
    It giving error when there is formula both in Row and Column.
    In the above case last row and last colum. Only Column formula is getting implemented.
    Here for example I have mentioned 4 rows and 4 columns.. But I have 15 Rows and 30 columns .. out of which 15 rows and columns have formulas...
    % Rows are problem.. which gives me errors... I tried using Special cells, but I am not 100% sure how to use them.
    I would be very thankful if you can help me out.. Please

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

  • No totalization in a report of report painter for row containing a set

    Hi!
    I've created a set XXXX based on the table-field  GLPCT-RACCT. One of the row of the set is a formula. The formula is the sum of the rows of the set / 2  i.e row 005 of the set XXXX is (001002003+004)/2. The set has been added as characteristic value element, as row of a report of report painter. I've take a look to the output of the report but the total of the row based on the set does not take into consideration the formula inside. why?
    i.e
    Report                                  period 1
    row 1                                          100
    row 2                                      10000
    row Z based on set XXXX:          
    001                                               20                                             
    002                                               20
    003                                               20                                              
    004                                               40
    005 (formula)                               50
    total of row Z based on set       100  (instead of 150)
    Could you help me in solving the problem?
    Thanks
    Giovanna

    There may not be any currency attached to the value derived by the formula. That could be the reason why it is not getting summed up. The total would be expecting all the items to be summed up are of same currency,
    I am not sure of how to make the total to add up the formula.
    Alternatively you may check to see if all your row requirements can be fitted in within the set , i.e. including subtotals and totals.

  • Report Painter - how to insert sub header rows with no values

    In a report painter, I am designing a report with several rows with formulas. I need to insert a sub-header row in the middle of the rows. That will not have a value. It shall contain no value, but I am given only options of either insert a row of characteristics or a formula. I need neither of them. Can we have something excel  like feature in report painter (4.6c) just to insert a sub header row? If so how do we get that.
    e.g
    ADMINISTRATIVE EXPENSES (how to insert this row?)
    Account 1 - 10

    Hi,
    try to add a formular row containing a formular like = +x -x.
    Maybe you can use "formatting / row" and use overscores / underscores to get a blank row (underscore one line, overscore the line thats following).
    No other idea...
    best regards, Christian

  • Report painter element formula

    Hey guys..
    i need to create ratio in console report using report painter. environment i have is still using LC @ 4.6C.
    Element Column :
    Total Consolidation -> sum of legal comp, elimination and CI
    Element Row
    Total Asset --> sum formula
    Total Liabilities -->  sum formula
    Ratio --> divided formula
    In intersection of column total consolidation i have row ratio. how i can achieve ratio in total consolidation column?
    the thing happens right now ratio @ total consolidation is a sum of all ratio in legal comp, elimination and CI.
    many thanks....

    @ Shaubhik :
    Here some example :
    (for better view please copy & paste into the excel and set data to column)
    text,                                           Total Consolidation,       Elimination,      CI,         Total Groups
    Total Current Asset,                  60,                                 10,                  20,         30
    Total Short Term Liabilities,        30,                                 5,                   10,          15
    Ratio,                                          1.5,                                0.5,                 0.5,         0.5
    I want ratio @ Total console is 0.5 not 1.5.
    Hope i serve the illustration completely for you.
    @ Nikolas John :
    yes, i tried to use it. but it shown error and can't be used when i used those value that already marked by double click. (value 60 and value 30 is mark)
    Regards

  • How to add external call from Report Painter

    Hi experts,
    I'm working on a report painter, and I need to do an external call, from the generated code.
    add something like this    PERFORM Z_CALCULO_IMPORTE_COMPENSADO(ZCASS_FFMRBCS)
                                                                                    USING CUR-TAB
    Is there any way to do it without an SSCR key?
    Thanks in advance

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • Re: Report Painter Diff. formula in same column.

    Hi,
    I have some queries for report painter.
    I have 2 columns, A & B. I've created column C and the first 5 row I would like to have a set of formula such as A10 and for the same column, the row 6 to 10 from column B, I want to have formulate B5-10.
    My question is, whether it's posible to have 2 formula defined in the same column because value for each row may need to apply the formula differently.
    Thx & Rgds

    You can do this, although you need to split the columns into "Sections".  You also need to remove the column headers so they are not repeated between each section.
    They almost act similar to a page break, without actually breaking the column over pages.
    http://help.sap.com/saphelp_47X200/helpdata/EN/c7/50673ad016ec32e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_47X200/helpdata/EN/5b/d22d8a43c611d182b30000e829fbfe/frameset.htm
    You can then have different calculated key figures within the same column.
    To amend sections, go to Formatting > Section Overview/Section Layout.

  • 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

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

  • Report painter- problem in creating formula variable- ps

    Hi Experts,
      i have copied report  6P3 - 6PP1-001 Act/Com/Total/Plan    from library in report painter.
    our requirement is we want two user fields from cj20n  in this report. they are prps-usr04
    and prps-usr05.
    i have added these in header as  special text variable as they were ALREADY available at header under
    MASTER DATA FOR PROJECTS / WBS ELEMENT IN REPORT-WRITER. 
    now my requirement is to add new columns. for that i required these two fields in formula.
    but as they are not present in formula component  i am not able to get it.
    what should i do to enter these fields in component list in formula?
    PLEASE GUIDE ME?
    AMOL

    ActRunningBal is a running total calculated in crystal or database field? If it is a database field then you can try this
    if {command.CR-Amount} &lt;&gt;0 then
    {command.CR-Amount}
    else
    previuous()+previous({command.Dr-Amount})
    If it is a running total you cannot apply previous function on it.
    Regards,
    Raghavendra

  • Requirement to add new parameter in selection  in report painter report

    Hi Gurus,
    I have a requirement to add an extra field in Cost center:Act/Plan/Comm CC Cur report.This is otherwise a Z report in report painter with 0% code (T-code : GR55-> Report group->Report).But,when we go to technical information of this report,it has four standard sap programs,which contains code for this selection screen.It does not even have a modification scope.
    Selection screen of this report contains following parameters:
    Selection values:
    Controlling Ar
    Fiscal Year
    From Period
    To Period
    Plan Version
    Selection Groups:
    Cost Center Group
    Or value(s)
    Cost Element Group
    Or value(s)
    My requirement is to add one more parameter : Purchase oeder in new block:
    Is there any way to achieve it.
    Note: Copying the standard progs into custom prog is not working,i already tried that.
    Please let me know your suggestions,if any one of you came across such requirement before.it is very impoertant for me.
    Thanks in advance,
    Meenakshi

    Hi,
    This report (and all generic reports which are based on the same library) looks on CCSS structure. This structure extracts data from totals tables. Therefore, it's not possible to add the parameter of purchase order, as it's a detail line attribute.
    Regards,
    Eli

  • Issue with row/column text lengths in report painter

    Hi Gurus,
    I have created a report painter report with formatting of the row/column length text as medium, but for one FS item/GL Account the report when executed still picks up only the short text length. I am not sure how this can be resolved.
    Any ideas is appreciated.
    Regards
    Satish

    Applied OSS Note 360096 and it worked. Thanks for all your help.

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

Maybe you are looking for

  • Auto install of 1.4.1_02 -- How?

    I can't seem to get web start to auto install 1.4.1_02. If I use the following JNLP, it installs 1.4.1, not 1.4.1_02. <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="http://myapp.com/myapp" href="myapp.jnlp"> <information> </inform

  • How to reduce execution time ?

    Hi friends... I have created a report to display vendor opening balances, total debit ,total credit , total balance & closing balance for the given date range. it is working fine .But it takes more time to execute . How can I reduce execution time ?

  • When opening a pdf set default view on details

    Dear reader, I have a question about the default view when opening an pdf. How can I set the default view to detail its on list now. I also want this setting to be saved. Im using adobe reader 8.1.2. Any help would be appriciated.

  • OEM 12.0.1.4.2 Patch Install

    I'm attempting to install the OEM Patch 19176910 OMS Plugins 12.1.0.4.2 but I'm running into a issue with the install.  I have downloaded the zip file and unzipped it.  I then set the OMS_HOME to the ORACLE_HOME and included the OPatch in the Patch v

  • Error occurs while the user creates an vendor(MDM)

    Hi, The following error occurs when the user creates an vendor(MDM) and submits the form for validation on Enterprise portal. " Could not create JCOClientConnection for logical System: MDM_WD_MODELDATA_DEST - Model: class com.xxxx.ven.crt.MDMBAPIVali