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

Similar Messages

  • Report Writer using Consolidation Group

    Hi,
       I have created a reconciliation report using report writer (GR55).
    However, there is no data extraction when I used the field reconciliation group (FIMC-RCONGR or FIMC-INICG).
       Regards,
       Leslie

    1) If you have proper constraints (means foreign-keys) between the tables you could try to read the relations between the tables using a Select from ALL_CONSTRAINTS) but even this will be not to easy starting with tables having more than one constraint between each other. You have several possibilities to execute the generated sql depending on what you want to do with the query result.
    - Create a record-group with the created sql using CREATE_GROUP_FROM_QUERY-buit-in.
    - Use DBMS_SQL to execute with dynamic sql.
    - use EXECUTE IMMEDIATE (works only in a database function/procedure).
    What do you want to do with the results of your query?

  • REPORT WRITER AND REPORT PAINTER

    Hi Techis,
    Will anybody pls tell me the details workin of reort painter and report writer along with Tr code and also will u pls give me the steps to execute such type of report.
    Rewards will be given for each reply.
    Regards
    Santosh L.

    hi santosh,
    Where Is Report Painter/Report Writer Used?
    Initially, both tools were only available to the FI/CO modules. Later, with the introduction of the Logistics Information System and Flexible Analyses in Release 3.x, the functionality of these tools was further expanded. It still is not widely known that the Report Painter/Writer can be used for reporting against structures other than those delivered in FI and CO (see TechTalk on page 8-4).
    A common misconception in the user community is that Report Painter/Report Writer can only be used to report against a single table. However, some reporting structures do report against multiple tables. For example, CCSS (for Cost Center Accounting) refers to tables COSP, COSS and more, depending on the key figure configuration. Similarly, FI-SL (Special Purpose Ledger) reporting structures include summary and line-item tables (the key figure set determines where the data comes from).
    To configure other table joins, views may be created joining the necessary tables, and views can be added to the control tables, via Flexible Analyses in LIS. Report Painter/Report Writer can be used in almost any application area in R/3 to report on currencies and quantities.
    Data tables supported
    Both Report Painter and Report Writer can be used to report on the following tables and tables types:
    < Evaluation structures set up in the Logistics Information System (LIS). These structures normally begin with an “S” or “ZF.” Several different tables and views within the R/3 System can be added as evaluation structures.
    Note: You cannot add cluster tables, such as BSEG.
    < CCSS is used for Cost Center Accounting (CO-CCA), Internal Orders (CO-OPA), Activity Based Costing (CO-ABC) and for cost element reports in Project Systems (PS).
    < GLFUNCT is used for functional area reporting in cost-of-sales accounting.
    < GLPCT and GLPCOP are used for Profit Center Accounting (CO-PCA/EC-PCA).
    < FILC is used for Legal Consolidations (FI-LC).
    < COFIT is used for the Controlling Reconciliation Ledger (CO-CEL).
    < ZZ tables are created for the Special Purpose Ledger (FI-SL).
    < FIMC is used for consolidations in the Enterprise Controlling module (EC-LC).
    < GLT0 is used for Financial Accounting (General Ledger) reports by account, company, and business area (FI-GL).
    < KKBC, KKBE, and KKBU are used for the Controlling Product Costing module (CO-Costing).
    < New in Release 4.0A: RWCOOM is used for CO-CCA, CO-OPA, and CO-ABC. RWCOOM is used for special standard reports like internal order budget reports, cost center budget reports and cost component reports.
    Note: RPPS was used for Project Systems (PS). However, it is obsolete and will no longer be supported in Release 4.0. In Release 3.x there were only two special reports (6P70 and 6P71) using RPPS. These reports cannot be called directly, but via ABAP reports RKOPLAN0 and RKOPLAN1.
    How to Access Report Painter/Report Writer?
    To access the Report Painter you may use either of the following two methods:
    < Transaction FGRP
    < From the SAP main menu, choose Information systems ® Ad hoc reports® Report painter.
    Report Writer functions can be accessed from within the Report Painter. To access Report Writer, choose the following menu path from the SAP main menu:
    Information systems ® Ad hoc reports® Report painter® Report Writer.
    How Is Report Painter/Report Writer Organized?
    Report Painter/Report Writer has four main components:
    < Sets: Sets are logical groupings of characteristic values. For example, a cash line on a balance sheet is made up of a set of cash accounts or an energy product line on an inventory report is made up of a set of energy products. Variables can also be created which are placeholders for sets, or values within sets.
    < Libraries: Libraries control which characteristics and key figures from a table are available for reporting.
    < Reports: Reports hold a definition of the rows, columns, and overall data selection. They also include the header and footer texts and layout settings.
    < Report Groups: Report groups can contain one or more reports. The report group is what you execute—not the actual report. A report group is generated to create a set of ABAP programs that produce the reports.
    How Does Report Painter Differ from Other Reporting Tools?
    < With the exception of row titles which have text fields, Report Painter/Report Writer reports display numerical fields only (for example, dollar and quantity fields). This is not a requirement for ABAP Query and typical line item reporting tools, which can display arbitrary text columns.
    < While printed Report Painter/Report Writer reports appear much the same way on paper as they do on screen, the Drilldown reporting tool produces a different output format. Drilldown reporting is an online analytical tool which can be used to drill down to different levels of detail, but it is infrequently used for printing.
    < Report Painter/Report Writer reports are hierarchical and take advantage of configured hierarchies (for example, with cost center hierarchies). You can also execute Report Painter/Report Writer reports from each level within a hierarchy.
    < Report Painter/Report Writer reports can handle multiple currency/quantity units within a single column.
    < Report Painter/Report Writer is well suited to handle reports that require mass production. For example, Report Painter/Report Writer is a particularly effective tool for creating month-end reports.
    refer this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://abaplearner.blogspot.com/2007/12/more-abap-tutorials.html
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    regards,
    sravanthi

  • About Report Writer

    Hello Everyone!!
    We are a Fort&eacute; development team in Peru, and we were develop an
    application that can build a Report dynamicaly.
    In this application you can select the tables, fields, especify the
    query condition, (build the select statement by Drag and Drop) of any
    Database in the current environment. Also you can especify if you want
    send the report to the printer, screen of text file. You can especify
    too the Report Header and a preview.
    Regards
    Ronald Celis [email protected]
    Victor Navarro [email protected]
    Bruno Munoz [email protected]

    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Here are some salient features:
    1) Report Painter has 90% of the functionality that Report Writer has and is easier to develop.
    2) The last time I did anything on it, from the SAP main menu, choose Information systems->Ad hoc reports->Report painter.
    3) Report Writer functions can be accessed from within the Report Painter.
    4) Report Painter/Report Writer has four main components: Sets, Libraries, Reports, Report Groups
    5) The main difference between the two RW and RP is the graphical user interface of the Report Painter.
    6) It is generally used in FI-SL reporting.
    For more information, please check this links.
    For Report Painter
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    For Report Writer
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/content.htm
    Hope this will help.

  • Report Writer Exit abnormally

    <BR>Hi,<BR><BR>Report runs for 20 mins and stops giving the following error:<BR><BR><BR>[Tue May 23 10:33:55 2006]143.222.223.108/PWC_PRBK/PRBK/admin/Error(1013033)<BR>ReportWriter exit abnormally<BR><BR>[Tue May 23 10:33:55 2006]143.222.223.108/PWC_PRBK/PRBK/admin/Warning(1080014)<BR>Transaction [ 0x90001( 0x4473189e.0x73487 ) ] aborted due to status [1013033].<BR><BR><BR>I tried finding the reason from Development network.But no luck..<BR><BR>Thanks,<BR>Sathyan<BR>

    Hi,
    Here are some salient features:
    a) Report Painter has 90% of the functionality that Report Writer has and is easier to develop.
    b) The last time I did anything on it, from the SAP main menu, choose Information systems->Ad hoc reports->Report painter.
    c) Report Writer functions can be accessed from within the Report Painter.
    d) Report Painter/Report Writer has four main components: Sets, Libraries, Reports, Report Groups
    e) The main difference between the two RW and RP is the graphical user interface of the Report Painter.
    f) It is generally used in FI-SL reporting.
    For more information, please check this links.
    Report Writer
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22ba743c611d182b30000e829fbfe/frameset.htm
    Report Painter
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://www.sap-img.com/zf028.htm
    http://www.sap-img.com/zf027.htm
    Regards,
    Ferry Lianto

  • Report writer forms

    Hi,
    we have a custom report writer report, how can we see the layout of the form/selection screen of the report since some changes needs to be done in the selection screen for the report?
    Thank you.

    For report painter use GRR2 - Change and report writer use GR32 - Change.
    pls assign points to say thanks.

  • Selection screen of report writer

    Hi all,
    I am working on a report writer .In this report writer there is one column set which is a key figure set.
    It has two key figures,each is associated with one additional set.
    The fields of additional sets are as follows.
    Additional set 1 -
    period range1
    year1
    record type
    Additional set 2-
    period range2
    year2
    record type
    Its selection screen is automatically taking these as a parameters from additional sets in the following sequence.
    year1
    year2
    period1 to
    period1 from
    period2 to
    period2 from
    I want this sequence to be different i.e. as follows:
    Period1 to
    period1 from
    year1
    Period2 to
    period2 from
    year2
    Can anyone tell me how can  I achieve this.
    Thank You.

    Here is the Code:
    DATA: lt_params  TYPE STANDARD TABLE OF alv_s_param_wp,
    lwa_params TYPE alv_s_param_wp,
    lwa_msg    TYPE bapiret2,
    gt_msg     TYPE TABLE OF bapiret2,
    lv_dcpfm   TYPE xudcpfm,
    gt_data    TYPE STANDARD TABLE OF grwwebdata.
    CLEAR:gt_data,
    lwa_msg.
    REFRESH : gt_data, gt_msg.
    *  SET REPORT painter paramters
    lwa_params-pname  = '$PARAMETER[$1KOKRE'.
    lwa_params-pvalue = c_ccode.   '' (company code = 0010)
    APPEND lwa_params TO lt_params .
    lwa_params-pname  = '$PARAMETER[$1GJAHR'.
    lwa_params-pvalue = p_year.    (2011)
    APPEND lwa_params TO lt_params .
    lwa_params-pname  = '$PARAMETER[$1PERIV'.
    lwa_params-pvalue = s_month-low.     " (1)
    APPEND lwa_params TO lt_params .
    lwa_params-pname  = '$PARAMETER[$1PERIB'.
    lwa_params-pvalue = s_month-high.    "(12)
    APPEND lwa_params TO lt_params .
    lwa_params-pname  = '$PARAMETER[$1VERP'.
    lwa_params-pvalue = p_plan.        " (0)
    APPEND lwa_params TO lt_params .
    lwa_params-pname  = '$SELECT-OPTION[$1KOSET'.
    lwa_params-pvalue = 'I[EQ[1110[3190'.
    APPEND lwa_params TO lt_params .
    CALL FUNCTION 'CRIF_RW_WEB_CALL_REPORT'
    EXPORTING
    i_report_group  = '1SIP'
    *     I_PERS_APPL     =
    *     I_NEW_SELECTION =
    *     I_DISPLAY_LIST  =
    *     I_APPL_ID       =
    *     I_VAR           =
    TABLES
    it_params       = lt_params
    et_data         = gt_data
    et_messages     = gt_msg.

  • Report  Writer not displaying the column heading correctly.

    Hi,
    We have generated the report writer using the transaction GR55 by logging in EN language.
    But when we executed the report, column headings are not displayed properly, instead it is displayed some thing like $ZR07##ZCO-OI# $.
    Please help us in solving this issue.
    Regards
    Shibin

    Hi,
    Problem solved. We need to generate the report writer in original language only and it will reflect in other languages. Directly if we execute in other language it will display correct headings.
    if we generate in other language it will display wrong heading even in original  language also.
    So generate report writer in original language only
    Regards
    Shibino.

  • EC-CS report writer report: what sets to use in general data select/cols?

    I am about to write Report Writer reports using table FIMC. In the rows I will use a set that includes the whole balance sheet structure. What do I put in general data selection or columns? I need to know the ids of the (standard?) sets...

    hi,
    In General Data Selection you have to assign the
    1. Controlling Area or Company Code
    2. Fiscal Year.
    3. From and To Period.
    4. Dr. /Cr Indicators.
    Cheers
    Ranjit

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • New set for Report Writer

    Hello,
    I am new to the Report Writer.  My understanding is that Report Writer makes use of pre-defined sets of financial objects.  My user wants to create new report group in Report Writer and add some new data which are currently in Z-table. Is this possible? Do we create a new set based on Z-table and then incorporate it in the new report?
    Please advise,
    Thanks
    Galina

    Hi Galina,
    No were SAP released document Z tables is support for report writer.
    moreever SAP recomonded to create reports by using report writer / painter for specific Tables only not for all standared tables.
    as i know not possible to use Z tables for report writer.
    still your business want A table data report, you can able to develop through ABAPer help.
    Refer: http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Regards,
    Viswa

  • Re: Setting Authorization Check in Report Writer

    Hi,
    In ABAP Query or ABAP customized program, it is possible to set authorization object checking.
    In Report Writer, how can I do it?
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks
    Edited by: Alvaro Tejada Galindo on Dec 26, 2008 10:59 AM

    Hi Colin,
    I would like to suggest,
    Creating an Authorization object & then using it in the report program is the preffered way.
    I would like to suggest a couple of references, quite similar to your issue,
    [SDN - Reference for using authorization checks at the report level|User authorisation check in ABAP-HR program;
    [SAP HELP - Standard Reference for Programming Autorization checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm]
    [SAP HELP - Standard Reference for Authorization checks|http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3ba5358411d1829f0000e829fbfe/frameset.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • 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

  • SET ID in Report Writer

    Hi Friends,
    I don't have knowledge pertaining report writer.  I need to find out what data source is in a particular SET ID.  Also, how is the SET ID created and how do I view it.  Please advise.
    Thanks,
    HN

    <b>SET PARAMETER</b>
    SET PARAMETER ID pid FIELD f.
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See ABAP Unicode - Other Changes
    <b>
    Effect</b>
    Writes the contents of the field f to the global user-specific SAP memory and the local transaction-specific SAP memory under the ID pid. Any existing values under the same ID are overwritten.
    Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench.
    <b>Notes</b>
    The global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program.
    Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.
    Only store data of the types C, N, D, and T, as well as structures that consist of these types, in the SAP Memory.
    You can create new parameter IDs using the ABAP Workbench.
    Parameter IDs may have a namespace prefix.
    <b>Example</b>
    DATA REPID like sy-repid VALUE 'RSPFPAR'.
    SET PARAMETER ID 'RID' FIELD REPID.
    Sets the program name so it can be passed to other programs.
    <b>GET PARAMETER</b>
    GET PARAMETER ID pid FIELD f.
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See ABAP Unicode - Other Changes
    <b>
    Effect</b>
    First, the value stored under the key pid is transferred from the local SAP memory into the field f. If this key is not available in the local SAP memory, the value stored under the same key pid is transferred from the global user-related SAP memory to the field f.
    A parameter ID can have up to 20 characters. You can find an overview of the keys (parameters) used in the SAP system description or the appropriate function in the ABAP Workbench.
    The Return Code is set as follows:
    SY-SUBRC = 0: A value was read from SAP memory. SY-SUBRC = 4: No value was found in SAP memory under the specified key.
    <b>Notes</b>
    The global user-related SAP memory is available to each user for the entire duration of a terminal session. For this reason, set values are retained when you leave a program.
    You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory.
    <b>Example</b>
    Read the program name from SAP memory:
    DATA : REPID LIKE SY-REPID.
    GET PARAMETER ID 'RID' FIELD REPID

  • Set id for a report in report writer

    Hi ,
    Could you tell me how to find the set id for a report created through report writer ,
    For example, Library -SL5 ,Report group is -M038 , Report is M038-0001 .
    If i run this report it is showing the error that set id not found .
    How to solve this ?
    Thanks in advance.

    Hi Devika,
    You can create set ids using transaction code GS01. For change and display you can use transaction codes GS02 and GS03.
    Thanks,
    Reward If helpful.

Maybe you are looking for