Logical Formulae in Report Painter

Hi,
How do we insert a logical formula in a report painter.
For instance, "IF-THEN-ELSE".
Your early replies would be appreciated..

You would create a formula column in reports or formula variables to use in columns. 
More details on link's below:
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22c6243c611d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22ea043c611d182b30000e829fbfe/frameset.htm
Best Regards,
Daniel Scoz.

Similar Messages

  • Alternative Periods in Report Painter

    I'm trying to create a report painter report for labour efficiency, it compares actual labour confirmations to a statistical key figure for payroll hours.
    I have the basic elements, but my problem is this.  We currently run our accounts on a calendar month basis, so we have 12 periods in FI.  This report is required on a weekly basis for each weeks payroll.  Is it possibly to report totals for a given week, when that is not your accounting period?
    I can't see any obvious characterisics that will give me a weekly total of each figure, but I'm wondering if it os possible to define alternative periods (e.g. 52/53 week years ending each sunday for a period, and bring that in as a row characteristic).
    Has anybody managed to achieve anything like this, and if so how?
    Postings can occur anytime in the week, so I don't think posting date is an option, but may be if you can specify ranges that can be logically extrapelated in the report (i.e. Mon-Sun).
    Thanks for any advice on this
    Graham

    Has anybody got any comments or advice on this?
    Graham

  • Trail Balance in report painter

    Hello Friends,
    i want to create trail balance report In report painter(table:faglflext). My issue is if the cumulative balance i.e (Dr. - Cr.) of G/L is positive then the balance should be shown in debit side column, if the cumulative balance i.e (Dr. - Cr.) of G/L is negative then the balance should be shown in Credit side column. will you please let me know how and where to write this logic...
    Thank You....

    Hello,
    Normally, reports S_ALR_87012277 - G/L Account Balances and S_ALR_87012301 - Totals and Balances serve the purpose of outputing trail balance for accounting staff.
    Kind regards,
    John Chin

  • Need to add Purchase Order field in Standard report in report painter

    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 Subramaniyam,
    You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
    cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field.

  • Use of Constants in Report Painter

    Dear All,
    I am designing a report in Report Painter. For this, I need to introduce a line with constant value in every column. I need this value to be subsequently used in formulae.
    Is this possible. What is the use of a 'Constant'. I created a Constant, but am not able to bring it in the report.
    Please help. Full points would be awarded..
    Thanks

    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

  • Report Painter: How to change the order of lines in selection screen

    Dear Gurus on Report Painter,
    how can I change the order of the lines (where the values for the variable selection of my cost center report are entered) in the selection screen of a report painter report? The Selection screen looks awful.
    Is there also a possibility to add another description to each line of the selection screen?
    Thank you very much for your advice.
    Best regards Timo

    I am afraid you have much choice in choosing the order of the selection parameters. However, with the developer's access you may.
    This is how!
    Step 1: If it is a standard report, copy to your own report. and assign it to a report group. and execute.
    Step 2: When you execute, and the selection appears, go to systems>status and here , copy the program name (it may look something like GP46LP6VEDORBSA2IHWYSR4TL58020)
    Step3: Go to SE38 and enter the above derived program name with a view to re-arrange the line withing the program, with reference to selection parameters. 
    For example: I have a selection screen in the following order:
      Controlling area            
      Fiscal Year                 
      From period                 
      To period                   
      Plan version                                                                               
    Cost center group           
      Or value(s)                 
      Cost element group          
      Or value(s)                 
    The corresponding program that drives this order is in the program and would look like this,
    SELECTION-SCREEN BEGIN OF BLOCK VALUE_SELECTION
                     WITH FRAME TITLE TEXT-003.
    <b> PARAMETERS: $1KOKRE  LIKE CCR1S-KOKRS .
      PARAMETERS: %1KOKRE  LIKE CCR1S-KOKRS MODIF ID IN4.</b>
    <b><i> for controlling area</i></b>
      PARAMETERS: $1GJAHR  LIKE COSP-GJAHR .
      PARAMETERS: %1GJAHR  LIKE COSP-GJAHR MODIF ID IN4.
    <b><i> for fiscal year</i></b>
      PARAMETERS: $1PERIV  LIKE COSP-PERBL .
      PARAMETERS: %1PERIV  LIKE COSP-PERBL MODIF ID IN4.
    <b><i> for period from</i></b>
      PARAMETERS: $1PERIB  LIKE COSP-PERBL .
      PARAMETERS: %1PERIB  LIKE COSP-PERBL MODIF ID IN4.
    <b><i> for period to</i></b>
    etc.
      PARAMETERS: $1VERP   LIKE COSP-VERSN .
      PARAMETERS: %1VERP   LIKE COSP-VERSN MODIF ID IN4.
      PARAMETERS: $1VALUTP LIKE CCR1S-VALUTYP MODIF ID IN4 .
      PARAMETERS: %1VALUTP LIKE CCR1S-VALUTYP MODIF ID IN4.
    SELECTION-SCREEN END OF BLOCK VALUE_SELECTION.
    ......... set variables ..............................................
    SELECTION-SCREEN BEGIN OF BLOCK SET_SELECTION
                     WITH FRAME TITLE TEXT-004.
      PARAMETERS: $1KOSET  LIKE RKSB1-KSGRU.
      PARAMETERS: %1KOSET  LIKE RGSBS-SETNR MODIF ID IN5.
      SELECT-OPTIONS _1KOSET  FOR CCR1S-KOSTL .
      PARAMETERS: $1KSTAR  LIKE RKSB1-KAGRU.
      PARAMETERS: %1KSTAR  LIKE RGSBS-SETNR MODIF ID IN5.
      SELECT-OPTIONS _1KSTAR  FOR CCR1Z-KSTAR .
    SELECTION-SCREEN END OF BLOCK SET_SELECTION.<i></i><b></b>
    If you want fiscal year to appear first, you try just copying the coding relating to fiscal year just above the coding for Controlling area.
    Extend the same logic for what you may want to get.

  • SAP Report Painter (Drill down)

    Hi, SAP Experts,
    I'm Henry. This is my first post on SCN.
    I'm trying to solve a problem on drill down report of report painter.
    I don't have much experiences. I really need your help. 
    The problem is that I developed one report painter (Balance Sheet) and one query (Line item report by account code).
    I put the query on the report painter as drill down report. So, when I click a row on the report painter,
    It should go to the query and see appropriate data on it.
    However, somehow, company code is NOT copied to the query. Therefore, the result is the query shows all compnies data.
    *My client has several compnay codes.
    <Example>
      [Selection field on the report painter (BS)]
       *Table: FAGLFLEXT
       1. Company code: "A1"
       2. Fiscal Year: "2014"
       3. Fiscal Month: "3"
      [Selection field on the query (Line item report by account code)]
       *Logical DB: SDF
       1. Company code: blank  (This is the problem. I need to know why the company code isn't copied)
       2. Account code: xxxxxxxxx (The account code is copied from the report painter. This is no problem.)
       3. Fiscal Year: "2014" (No problem)
       4. Fiscal Month: "3" (No problem)
       *After clicking a row on the report painter, I can see all companise data on the query. The query should give only one company which is selected.
    If you have any solution or knowledge, could you please share it with me?
    If you give me some advice, I would really appreciate it.
    Best Regards,
    Henry

    Hiii Sai Krishna,
    can u forward the same documentation to me..plsss
    my mail id - [email protected]
    thanks in advance
    regards
    ramki

  • Profit center trail balance report using report painter

    HI Experts,
    Please let me know steps to write functional specs for creating profit center trail balancing using report painter and also steps to create profit center trail balance using report painter.
    Thnaks,
    Vani

    Hi ,
    If that kind of report is not available in sap standard then write functional specification with relavant technical field name and table name with the required logic .Give that functional spec to  abapers they will write the technical specification and they will create the required report.
    Thanks & Regards
       pavan

  • Report painter header text with customize variable

    Hi All,
    Can we have a customize variable/ logic based on the selection parameter in the header text(not in the report's columns) in report painter? understand the standard sap provides a few standard options, gen, variables, sel. parameters, spec. variables and characteristics but non meet the requirement.
    Requirement:
    get the selection parameter fiscal year variable, display the value with a logic where if the posting period = 9 the fiscal year +1
    all idea welcome. Thanks
    Regards,
    John

    Hi Sarma tadikonda,
    Thanks for the reply, but the offset provides the output control format? and it only take in numeric.
    Regards,
    John

  • SAP Report Painter

    Is there a maximum on the number of cell formulas that can be created in formula builder within report painter ?  I have created 999 cell formulas (last one is Z999), and when I create 1 additional, it becomes Z000.  Now I have 2 Z000's.  Creating one more becomes Z001 (already have a Z001 - first formula created). How does report painter know which Z000 or Z001 to use ?  Is there a way to change the maximum number of formulas ?  'Couldn't find any OSS notes that relate to this....
    Thanks,
    John

    Hi,
    If all cells in a particular row has same formula, and if you have given individually different formula, then you can avoid such multiple formula with a formula in the lead column itself. It would be noted as Y001 and so on..
    This way one can minimise the number of cell formulaes (i.e. Z000 etc)

  • Report Painter : Local currency is having decimal points for chile

    Hi Friends,
    I have a report painter in which the amount for the the countries which are not having the decimal places
    like chile and Japan are displying with the decimal places, when i changed the base key figure as the transaction currency instead of the local currency then no data is coming.
    If someone have some good ideas which can resolve this issue please suggest me.
    Thanks & Regards
    Digvijay

    Hi Yogesh,
    Thank you for ur reply.
    in the report, i have 10 keyfigures. 4 are being picked up from the report and they have currency translation variable. The rest 6 are formulas. On these formulae, i restricted the decimal display to "nothing defined". it works fine for all the 6 formulae. for WON it does NOT show decimals and for the rest of the currencies, it shows decimals.
    but how this can be achieved on the 4 direct keyfigures??
    Rgds.,
    ASha

  • T.Code for Report painter report

    Hi,
    Is there a way to assign a T.Code to the Report painter report, so that users do not have to go to GR53.
    thanks & Regards
    Rose

    thanks Eli, I tried this in Sandbox and it looks good.
    You seem to know a lot about Report Painter, I hope you would be able to certainly help me understand this :
    My predecessor here, created a report painter report and then asked the ABAP team to copy the report painter program (its like a query name) to a Z Prpgram and assign a transaction code. As I hear this was done to avoid the authorization issues.. (???) when this was moved to Testing Dev client, all this worked But when we moved this to QA, the error "program doesnot exist" made us to change the zprogram to remove the logic that the program had to check for the Client, in which the report was created. We removed that but then it then includes started giving the same error. so this will surely not work.
    So, my question is : when this simple way of giving a report painter report a t.code with the defaults, would there be any auth issues that you can think of ???
    thanks in advance.
    Regards
    Rose

  • 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

  • Quesiton on Report painter

    Hi ,
    I have a requirement to copy a generated report painter program and modify it..
    can any on show help in this regard..
    Thanks,
    Krishna

    Hi Krishnakumar Ramadoss,
    Report writer / Report painter reports are reports which are created with zero percent coding.
    The SAP generated program (E.g: GP3ICYT39FHJLOYBA2025DBAE1V213) cannot be changed or modified.
    The only coding that you can do in a report writer are the formula's and logic that you can write in variables of the report writer / painter
    Regards,
    Subin John

  • Regarding Report Painter

    hi all,
    i have got a problem in performance of a report painter.
    i am asked to add a field in the selection screen for a plant so that the performance can improve.
    its a module pool i guess.
    i am not able to find the selection screens and all.
    can any one tell me how to go ahead?

    Open your program thru SE80>open the tree of screen>see their layout by DClick on screen each screen and see one by one,you will come to know which is your selection-screen.once you got than note that screen number and go in PBO out your logic their.
    probably screen number should be 1000 for selection screen if all rules are followed while developing the module pool.
    Amit.

Maybe you are looking for

  • Wanting to do this effect (did you know)

    http://www.youtube.com/watch?v=ECDZbrzkTxk The effect is the multiple "?" in yellow boxes flying at the screen. I would be replacing "?" with "!" but thats not important Im not even sure where to start on this one. Any help would be much appreciated.

  • J2EE Engine is not comming up.

    Dear All, I was trying to run BSP applications on BW to accomplish this I change WORKGROUP to domain to create FQDN.(NW04 is running on Windows 2003 server). My system is dual stack system. After restart I can login to the ABAP system but & JAVA Engi

  • Cover Flow view bug

    Is there a better place than this to submit bug reports to Apple? Problem: Multiple albums named the same (i.e. Greatest Hits) by different artists have problems in Cover Flow view. The albums have separate cover art, but when selecting the album to

  • Can I disable firewall for only VoIP; does firewall affect both ends of call?

    Hello AT&T Forum! Question 1: Can I disable the AT&T modem for only my VoIP phone line and have it enabled for everything else? I have got Vonage VoIP telephone. I have been having issues with callers on the other end. It happens on both outbound cal

  • 80GB Video iPod - Shuffling playlist?

    I have 2 iPods, 8GB nano shuffles tracks inside a playlist by default. I'm still having trouble figuring out how to shuffle "playlist" on 80GB video iPod. Please help. <edited by host>