Adding formula in report writer

Hi Experts,
I am trying to build a formula in report writer
In one the hierarchy report   I need I have 4 columns formula should be
   A-B-C =X but values should populate in the X column when the A column value is greater than the B or C, or B and C 
If add the simple formula A-B-C= X it will show wrong values if B values or C values or B+C values is greater than the A
Is there any possibilities creating a conditions in the table TKCKO
Please help me this issue.
Thanks and Regards,
Naren

Hi,
In the formula make a condition "IF (A > B) OR (A > C) THEN A-B-C". (if I got your logic right)
Regards,
Eli

Similar Messages

  • Constant Checking in Row Formula for Report Writer

    Dear All,
    Please advice what is the format to check a constant (string) in the row formula for Report Writer.
    Let's say if I want to check the cost center group -->
    If '&1KOSET' = 'ABC' then .... else......
    So, what is the format for ABC? Because if i put 'ABC' it will be treated as cell. But if i do not put the ' ', then i get system error.
    Thanks a million for your advice.
    Best Regards,
    CW

    Hi John Lee,
    The logic that you would want , can be implemented through a column set. That is, as per your logic written in the set, your column values differ.
    First in your set, keep your account number in the first set line. ie. 5000000.
    Then you enter the following formula in the second line of a set defined for a report column:
    IF u2018001u2019 > 5000000 THEN u2018001u2019 ELSE 0
    If the value in the first column (set line 001) is greater than 5000000, then this value displays in the second column; if the value in the first column is less than 1000, the value 0 displays in the second column.
    Revert if you need any additional help.
    Regards,
    Subin John

  • How to apply condtion formula inside Report Writer and Report Painter

    Hi anybody,
    I am doing report painter. but i don't know how to include condition formula inside report painter or report writer. ex if condition ..
    Anybody please explain to me the steps of report writer how do this.
    I will appreciate goods answers to me.
    thanks
    Regards,
    S.Muthu
    Edited by: Subramaniyan Marimuthu on Jun 3, 2009 7:50 AM

    www.virtuosollc.com/PDF/Get_Reporter.pdf
    This is most useful PDF written by industry expert. This is more informative.
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/frameset.htm
    Regards,
    Ravi

  • User Exit for For Variable G_Set_Formula_Exit on Report Writer

    Hi SAP Experts,
    I want to create user exit for formula variable for Cost Center Group with alphanumeric type ( like 1KOSET- but 1KOSET is a set variable). I will use it as one of my row formula in report writer.
    There is one alphanumeric user exit example, which is Controlling Area (#S010) in GS13. SAP message said that I can create other alphanumeric user exit by using user exit G_Set_Formula_Exit.
    Can someone advice on how to implement this user exit?
    Your advice on this issue is highly appreciated.
    Thanks,
    CW

    Hello Ce Wie,
    Were you able to implement G_SET_FORMULA_EXIT? I am also very interested on this issue.
    Thanks!
    Josep

  • Report Writer - Using Formula in a set

    Hi I am trying to learn Report Writer (GR31) and one of the things I want to do is put a formula in a set, but I am having hard time getting it to work.
    I want to put a formula like this...
    if account is 5000000 then put do one thing else put 1
    IF '&ZACCT1' = 500000 THEN '001' * 'A' ELSE 1
    but I am not getting any value back.
    Anyone have any idea what I am doing wrong.
    Thanks in advance for any help/suggestions.
    John

    Hi John Lee,
    The logic that you would want , can be implemented through a column set. That is, as per your logic written in the set, your column values differ.
    First in your set, keep your account number in the first set line. ie. 5000000.
    Then you enter the following formula in the second line of a set defined for a report column:
    IF u2018001u2019 > 5000000 THEN u2018001u2019 ELSE 0
    If the value in the first column (set line 001) is greater than 5000000, then this value displays in the second column; if the value in the first column is less than 1000, the value 0 displays in the second column.
    Revert if you need any additional help.
    Regards,
    Subin John

  • Report Writer Adding New GL Account

    Hi experts,
    I would like to add new GL Account in the existing report in Report Writer. I do Do have following information to make changes, but I don't know where I could add new Gl Account.
    Library = ZRU
    Report Group = ZBS2
    Report Name = ZBS-0002
    Please help me
    Thanks

    hi
    as far as I understand, document splitting clearing account is not for the purpose you mentioned (if you mean the clearing account in GSP_KD1). you don't need to analyze those accounts which are only for balancing.
    best regards, Lawrence

  • Report Writer - SETs

    Please let me know how to create SET for the below requirement.
    Year -1            Oct                         should be   Period  1
    Y-1                  Nov                                          Period  2
    Y-1                  Dec                                          Period  3
    Y(current year)  Jan                                           Period 4
    Y                      Aug                                          Period 11
    Y                      Sept                                         Period 12
    Please let me know how to write formula for year and period together to get the above said way.
    Many Thanks!
    Regards,
    Kiran

    Thanks for the response.
    That will not serve the purpose. In this set should be created and this should be added to the report as column.
    My requirement is how to create set which will create the above scenerio. - Formula is what I will be needing

  • Error generating report in Report writer (GR214, short dump)

    Hello
    We are making a report in GGR2. When generating the report group, we have dump with error:
    Short text of error message:
    Internal error.: SAPMGRW2, Include: MGRW2F20, FORM: GEN_DATAFI
    ELD.
    Long text of error message:
    Technical information about the message:
    Message class....... "GR"
    Number.............. 214
    Variable 1.......... "SAPMGRW2"
    Variable 2.......... "MGRW2F20"
    Variable 3.......... "GEN_DATAFIELD"
    Variable 4.......... " "
    I have generated as well via GR52 with the same result.
    The report i try to generate has about 500 lines, uses a number of existing sets and has simple formulas in it. When i restrict the number of rows to say 400 I donu2019t have the issue. Is there a restriction to rows in report writer?
    Thanks for your help
    Kai

    Hi,
    The error you are receiving could be caused by a large number of row blocks in your report definition, (you can check the report definition with report RGRRDC00). A report should not contain too many row and column blocks. It is not possible to give an upper bound for the number of row blocks (since the length of the coding depends on other parts of the report as well). However, even a complicated Report Writer or Report Painter report should not contain more than 50 row blocks, and reports with more than 100 row blocks should not be defined.
    In this case the report(s) have to be redefined. Please also refer to the note 387916 for further information regarding this issue.
    When there are more than 30 variables in a report, please have a look at the note 332091.
    Please reduce the number of row blocks in the report by using the function 'Edit' -> 'Rows' -> 'Explode' in the Report Painter
    definition. This function enables several rows to be created for one row block (in the Report Painter definition one row block is just one row). Report Painter (and Report Writer) are designed to display hierarchical reports where the rows in the few row blocks are built up using the 'Explode' function.
    regards
    Waman

  • Modifications in Transaction  S_ALR_87013611( Report Writer )

    Hi Gurus,
    I have a Standard transaction S_ALR_87013611 which in turn calls the transaction KSB1.This former transaction is developed using report writer. The Issue is that when I give Cost Center Values twice in the selection screen with multiple values , I get two cost centre values with same number and the corresponding values are added.So I need to restrict the Cost Centre values in the selection screen to unique values.And for that I need to modify the report . So if anyone have ever worked with report writer or report painter, please tell how to modify the report and add our own coding as in the case of ABAP Query.
    Thanks in advance.

    Thanks for not replying...I have found the solution myself

  • Getting a weird error in Report Writer Report(ABAP Reporting tool)

    Hi Guys,
    If anybody has worked on Report Writer Report.Can you help me in this regards?
    There is a peculiar problem for the (Column block) .In the Column block there are 3 key figures(Quantity,Local Currency and Group Currency).
    Of these in the output of the Report Writer Report the Quantity Column is not getting summed up properly.Though the other 2 columns(Local Currency and Group Currency)are reflecting the proper summed up data.
    According to the tables, all of them are reflecting the accurate data.But only for the Quantity column though its reflecting the actual data,but the summation for it is not reflecting the correct data.
    Can anybody tell me if we can attach screen-shots for Questions posted in Forums?
    Please help me in this regards.

    Hi James,
    Thank you for your quick response.
    I checked the report and the remainder functions is not being used.
    The only formulas being used in the report are the following.
    UpperCase ([1])
    + ", " + - This is set to @name
    {@name} + " (" + + ")"
    There are some formatting formulas set on the above values, but other than that, there is a sql query and the "select distinct rows" and "perform grouping on server" is selected.
    Thanks,
    Jayashree

  • Table fields used for basic key figures in report writer/report painter

    Does anyone know how I can find which <u>table field</u> is actually being used for SAP defined <b>basic key figures</b> in report writer report? For example, <b>HSL</b> is a basic key figure for income statement, library 0F1, report 0F-GUVV. It only shows data is coming from table GLFUNCT. How does the report writer program knows which fields to select? What is the logic behind the basic key figures?
    Any advice is appreciated!!
    Minami

    I have now resolved this issue.
    I had to manually update TablesT804B and T804F. 
    I've added entries to T804A in the past without the need to update T804B or T804F manually so it appears that the way these tables work together has changed following an upgrade or application of support packs.
    Regards
    Mel

  • Report writer help

    Hi Gurus
    we need a new SAP Report Writer report similar to the current a current report say ZCST .
    The new report needs to have all of the information that the current ZCST report has but with Prior Year Actual and a Variance of Current to Prior Year Actual.
    I am very new to report writer and please help me .Please tell me step by step how to proceed .
    Thanks
    Satya

    Hi Sridhar
    Thanks for your reply.I am still stuck with this report.Can you please give some more details or step of how to do it. See my question in italic.
    Go to GR32 change mode of report writer. Click on column. Find out if, there is a current year actual column set. Copy the name of the set. <u><i>Go to GS01 to create a new set copying the current year set</i></u>.
    <b><i>I am stuck here as in gs01 it ask for lot for fields like table name,four radio button. I don't see any option for copying the setname.Can u please elaborate further this step ?</i></b>
    <u><i>Look into the definition set that represent the fiscal year.</i></u>
    <i>This too, not clear.</i>Open an another session and create a new set for fiscal year as a formula. The formula shall be current year variable minus 1. Name the column set you are creating as Prior year Actual.
    Insert the new column inyour report.
    For variance to PY actual, create another key figure set, in which you shall give a forumla (there will be an icon saying [a/b], when you are in GS01. The formula will subtract the column that says current year with the new column Prior year.
    Thanks in advance

  • Report Writer Issues

    A user transported Report Writer objects into a production system which is affecting other businesses data when they run report writer. The first issue I am seeing is that incorrect variants  are defaulting fir at least one Report Group, and maybe more. I suppose it is impossible to back out the transports that are causing the problem?
    How does the variant default to a specific report Group?
    Any other Report Writer transactions, info, or other materials will be appreciated.
                   Thank-You

    In the lead column, this is where you define your row definitions. For example if you are using GL accounts these would be defined here. Next, create another row definition by double clicking. It will bring up an option. Pick formula. Then you can do math calculations.
    In the currency column you should only define one currency. This is your key figure. Also select the characteristics that you want it to be based on 'ie fiscal year'.  If in FI try TSL.
    Message was edited by: Dave Scarpino
    Message was edited by: Dave Scarpino

  • Is there any tool like report writer in JDeveloper

    I want to generate printable(paper) report based on perameters . is there anty tool like report writer.

    No. Many people use Jasper Reports (http://jasperreports.sourceforge.net/) for their reporting. It's free and opensource. You define your reports in xml and you can create text, html and pdf reports.
    You can also try to use html for reporting. I've used it on a project with pretty good results. The benefit is that you probably don't need to learn a new tool/language.
    We generated the html using velocity, layout was done using css. You can remove the default headers, footer and page margins added by internet explorer by setting some registry keys:
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]
    "header"=""
    "footer"=""
    "margin_bottom"="0.1"
    "margin_left"="0.10"
    "margin_right"="0.10"
    "margin_top"="0.1"

  • Report Painter/ Report writer

    Hi,
    Can anybody please explain me what is report painter with an example to how to create it if u have any document please forward it to me <REMOVED BY MODERATOR>
    also please explain me what is characterstics, key figures set and variables,
    <REMOVED BY MODERATOR>
    Regards,
    Sunil Kumar Mutyala.
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 6:19 PM

    Hi,
    Report Writer enables you to report on data from multiple applications. Using functions such as sets, variables, formulas, cells and key figures, you can create complex reports that meet specific reporting requirements.
    The Report Painter is similar to the Report Writer, but is simpler to use.The main components of report painter are characterestics and basic key figure.
    The majority of reports end users use in the R/3 System is Report Painter reports. Most of these reports (@ 80+ %) began as Report Writer reports.
    The major difference is Report Painter uses a graphical interface (analogous to Notepad and MS Word).
    Very few R/3 users employ Report Writer – however, many still use, modify and develop reports using Report Painter. Report Painter permits complex groupings and drill-down reporting – very useful for such applications as FI-CO and SD. It can also be used interactively – allowing users to enter variables for specific steps; thereby permitting ‘drill-across' functionality.
    However, Report Painter does have its limitations; it can display only numeric data (excluding column headers) – therefore, short text, etc. is not available. It is much easier (quicker) to modify than ABAP and requires no ABAP expertise – however, many combine Report Painter with ABAP reports to fill-in many of the missing pieces. Layout design is archaic and rudimentary ~ therefore; many use Report Painter to ‘retrieve and massage the data' and eventually export it into Excel for end use.
    also check the link
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Please go through the enclosed document. This will give you step-by-step approach for Report painter:
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Check url
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    Check Report Painter Step-by-Step example under Tools->Report Painter / Report Writer->Report Painter->Creating a Report Painter Report.
    Just go through These Links to learn about report Painter.
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    Please go through the enclosed document. This will give you step-by-step approach for Report painter:
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Check url
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    Check Report Painter Step-by-Step example under Tools->Report Painter / Report Writer->Report Painter->Creating a Report Painter Report.
    Just go through These Links to learn about report Painter.
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    I think it will give you some hint. I wish I could have authorization to use report painter on my this project so I can help you out practically.
    Please see these steps , it`ll help you ...
    [http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp]
    <REMOVED BY MODERATOR>
    Cheers,
    Chandra Sekhar.
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 6:19 PM

Maybe you are looking for