Report Painter - Use of Constants / Local Formula Variable

Hi,
I am using constant and/or local formula variable in report painter in FSI.
I could use both the values for calculating percentages, ie. it can be used for multiplication or division. However, when I try to use it for addition or subtraction, I am getting the error message no. KH206.
In all cases, I am using different values in the formula, i.e. a absolute figure and a GL based figure.
I am not able to understand, why it even allows me for calculating percentage.
Can anyone help me in using a absolute figure for input and thereafter use it in addition / subtraction.
I would prefer an immediate solution to this as I am in the final stages of this report.
Full points guaranteed.....

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

Similar Messages

  • Create Report Painter using LIS table

    Hi Expert,
    I'n new in ECC version but I found we can create report painter using LIS table,
    but I'm not success to create report without error or debug
    Anybody have the documentation about it ?  or tell me how it works ...
    Please ..urgent...need to tell client about it..
    Thanks

    Hi,
    I have not worked on it but you can try this out:
    TCODE for report writer table is GRCT.
    There You need to add your z fields in some pre-defined structure like CCSS and then activate the structure and then activate characteristics.
    NOTE: 24 charcter is max. length for the characteristics.
    Regards,
    Harsh.

  • Report Painter using user exit U002 to create a formel variable for FI-SL

    Hi,
    I would like to use Report painter creating a formel variable with U002(VAR1,VAR2) for FI-SL and did following:
    1. go to TCode: GS11
    2. Formel: selecting U002 from Formel-Exit list and giving var1 and var2
          '#U002(VAR1, VAR2)'
    3. Save
    4. Erro message: U002 is not definiert.
    Why???
    U002 is already implementiert  in
    Class ZCL_IM_FI_FORMULA_EXIT
    method IF_EX_G_SET_FORMULA_EXIT~EVALUATE
    CASE flt_val.
        WHEN 'U002'
    Could anyone help me? Thanks!
    Klara Zhao

    dollyb wrote:
    if enter 05.2008
    the volume should look like below as a vairable range.
    sales volume
    01.2008 - 05.2008
    you want  01.2008 - 05.2008 as description , thats what your requirement right?
    When 'ZTEXT2'.
    DATA: ZYEAR(4)   TYPE C,
    ZTEMP1(6) TYPE C,
    ZLOW(14) TYPE C.
    if i_step = 2.
    CLEAR L_S_RANGE.
    Loop at i_t_var_range into intern_range where VNAM = 'user entered variable for calmonth'.
    *lets say user entered 05.2008
    ZTEMP1 = INTERN_RANGE-LOW.
    * now ZTEMP1 has 05.2008
    ZYEAR =  ZTEMP1+0(4)
    * zyear = 2008
    *A SLIGHT MODIFICATION TO CONCATENATION 
    CONCATENATE '01'  ' .'  ZYEAR '-'  ZTEMP1 INTO ZLOW.
    *SO 01. 2008 -05.2008 WILL BEN IN ZLOW
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW = ZLOW.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDLOOP
    ENDIF.
    use the text variable as description then u will get the required result i.e &ztext2&
    HERE I DIDN'T written any  L_S_RAnGE-HIGH.
    Regards,
    Ranganath
    Edited by: Ranganath on Nov 9, 2011 9:41 AM

  • Report Painter - ERP Financials - Question on Value Variable useage

    I want to use a value variable that works in Report Writer (table GLPCT, field MSL [quantity] but cannot select MSL as a variable field in Report Painter to insert the same variable (it is not a selectable characteristic) using the same Library and Table.
    Is there a way to make the field selectable in Report Painter in order to select a value variable that uses the field MSL ?  It is a valid field in the Library that I am building the report in.
    In building the columns, I can select characteristic fields such as:
    Ledger
    Record Type
    Version
    Fiscal Year
    Profit Center
    Functional Area
    Account number
    Period
    etc
    but not MSL Quantity.  Is there configuration to make this (or any field) accessible to Report Painter ?
    Any advice is welcome.....
    Thanks......

    Quantity is a key figure. When you create the column values you would get this from the key figure drop list.

  • Create PS Report Painter using Z fields

    Hi all!
    Can any one help me how to create report painter from PS using Z fields which were added in table PROJ by append CI_PROJ?
    I need to know how to turn this fields visible to add in creaton of the variable . transaction CJEV.
    Thank you
    Best Regards
    Lina

    Hi,
    I have not worked on it but you can try this out:
    TCODE for report writer table is GRCT.
    There You need to add your z fields in some pre-defined structure like CCSS and then activate the structure and then activate characteristics.
    NOTE: 24 charcter is max. length for the characteristics.
    Regards,
    Harsh.

  • Report Painter - Use SKF to calc act/plan unit costs in CCtr report

    Hi Report Painter Gurus,
    I am an end user working with our Report Painter consultant and I have asked for a Cost Centre report with columns for Actual Costs, Actual Unit costs, Plan costs, Plan Unit costs for Month and Cumulative. I have seen this report in my previous business so I know it can be done but consultant says it's impossible.
    The report I previously used had the SKF values at the bottom of the cost centre report and then the unit costs columns (both actual and plan) referenced these SKF cells in the formula which divided Cost by SKF.
    We have created the SKF using KK01 and posted dummy amounts in KB31N but consultant says he cannot reference the SKF values in the formlas.
    If you can spell it out to me (I have dabbled in Report Painter myself), then I am sure I can explain it to consultant.
    Any help gratefully appreciated!
    Cheers,
    Matthew.

    Matthew,
    I think it is quiet simple. When you add a column to the report painter report you can choose from the drop down menu for 'Basic Key figure' whether it is Costs, Activity quantity, Statistical quantities, etc.
    So if you have a column with Costs (X1) and one more column with quantities (X2), you can easily come up with another 'formula' column and use the equation (X1/X2).
    I think this should serve your purpose.
    Best regards,
    Vishal Thakur.
    Edited by: Vishal Thakur on Mar 2, 2010 11:08 AM

  • New Characteristic in Report Painter using table CCSS

    Dear all,
    Can someone help me add characteristic "Original Business Transaction" COBK-ORGVG into a report painter report that is using table CCSS.
    Any help would be appreciated and points will be assigned.
    Kind regards to all.
    Orestis Chaitas

    I am designing the P&L report and I want to split my R&D expenses split down by Internal Orders. Since, I have not seen Internal order field in summary table of new GL..ie., FAGFLEXT  table.
    I want to know how this can be achieved in the same report in report painter.
    I am talking this issue from Report Painter point of view where each report is based on library , which is defined per summary table.(ie., Library can refer to only one table....finding it odd to believe there is no join in reporting tool).....
    Thanks and let me know if you want to know more on the issue I am facing.

  • Report painter use for CO-PA

    Hi Gurus,
    I would like to set up segment reporting using Report painter. The format I would like is the segments going across at the top, with my accounts at the bottom. Can anyone help me with this
    Regards
    Johan

    Hi,
    add a characteristic "SEGMENT" and derive it using KEDR from Profit-center master data.
    If you need the segment data for already posted CO-PA docs, try line item reposting (KE4S, KE4SFI,...); Maybe its necessary (depending on the number of line items) to use RKECADL1 (SAPNET 126937, 1405404).
    Other possibility is to use the realignment functionality KEND to add the segment information to CO-PA data posted before the new characteristic is used.
    Best regards, Christian

  • How do we track back the ABAP queries/report painter used to custom report?

    Hi Experts,
    I only have some ideas about report painter and ABAP query. If a company has a number of different Z reports in production.
    1. How do we identify if it's report painter/writer or ABAP query??
    2. For ABAP query report, suppose that i can identify one. If i am given a Z tcode of that report and identify the program of that report behind it, How do i know what query that program belongs to?? What are the steps i go back in SQ03 to view that query??
    3. For report painter, starting from ztcode of the report, where do i check and track the original painter of that report??
    Please help clarify my doubts..
    Monica

    Hi Monica,
    For report painter/writer, you can identified it by go to
    Environment --> Technical information when you execute your Z-tcode.
    To refer back to the report painter/writer t-code you just need to double click oh the report group that you see by clicking the link above.
    Thanks,
    Victor.

  • Generate Data selection in Report Painter using Z fields

    Hi all,
    I had created Customer specific fields in project definition and now i want to use them in PS reporting.
    I did what note 929889 say to do that, i created structure CI_CC1S and included my Z fileds. Then i entered GRCT and create a new entry: CCSS in field  table and in Field name ZZDEPARTAMENTO.
    I went to GR22 and modify 6P3 library to check this new characteristics.
    In report writer i created the variable with a set , execute report and may new field appears in selection screen, the problem is that the program SAFK21R doesn't consider my new field in the selection so the display is wrong... what is missing? CAn any one help with this issue?
    I think it's because structure CCR1S is empty in the Z fields.... what i need to create to report recognize z field as selection options.
    Best Regards
    Lina

    hi poonam,
              u can add the field by selecting one of the radio buttons. i.e.,
    keyfigure with characteristics.
    predefined key figure
    formula
    Then u select the field which u want to add and provide options as per ur requirement right..
    i dont know why r u getting dump...
    i have just tried and it is working fine for me..
    Rgds.,
    subash

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

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

  • Report Painter for B/S , P&L statements

    Hii gurus
    this is ramki...
    Plssss help me in the making of Report painter for Balance Sheet and Profit And Loss Statements , as of now i didn't did Report Painter .
    I have tried no.of times , i dont know the confg also...
    My client is asking DR & Cr columns for the statements..
    can any body plsssss forward to me  report painter confg documentation...( atleat for base level confg )
    helpers will b great appreciateble..
    thanks in advance
    regards
    ramki

    Hi
    i am sending you a sample of how to createa report in report painter follow it,
    Main Steps in Creating a Report Using Report Painter
    The illustration below shows the main steps in creating a report with Report Painter:
    In this section, you learn how to create a Profit Center Accounting (PCA) report with Report Painter.
    For these sample reports, you should focus on the tables that correspond to the SAP application areas with which you are working. The examples shown in this section have been created in Release 4.6C.
    Sample Report for Gross Profit Margin
    Bungee Corporation wants to use Report Painter to create a gross margin report. This Profit Center Accounting report uses data table GLPCT. The desired PCA report displays the gross margin for each profit center.
    Below is an illustration of the completed gross margin report.
    Prerequisites to Creating a Report with Report Painter
    Before you can create a report with Report Painter, you need to:
    •     Determine the table
    •     Find the library
    •     Create sets
    •     Create variables
    The following sections explain these prerequisites.
    Determine the Table
    Before you can start creating the report, you must decide on the table you need to use. In this example, we use table GLPCT in Profit Center Accounting.
    Find the Library
    Determine the library you want to use for the desired table.
    If you need to create a library, on the SAP Easy Access screen, either:
    •     From the navigation menu, choose SAP menu → Information systems → Ad hoc reports → Report painter → Report Writer → Library → Create.
    •     In the Command field, enter transaction GR21 and choose  .
    In our example, we use existing library 8A2 for creating a report.
    Create Sets
    Create the required sets for your report. To create a set, on the SAP Easy Access screen, either:
    •     From the navigation menu, choose SAP menu → Information systems → Ad hoc reports → Report painter → Report Writer → Set → Create.
    •     In the Command field, enter transaction GS01 and choose  .
    Note that this procedure is not necessary for creating the report given in the example that follows.
    Create Variables
    Create any variables for the fields that must be entered before the report is executed. To create a variable, on the SAP Easy Access screen, either:
    •     From the navigation menu, choose SAP menu → Information systems → Ad hoc reports → Report painter → Report Writer → Variable → Create.
    •     In the Command field, enter transaction GS11 and choose  .
    Note that this procedure is not necessary for the sample report in the next section.
    Creating a Report with Report Painter
    When you are ready to create the report using Report Painter, use the following steps.
    Example Task: Creating a report using Report Painter
    1.     On the SAP Easy Access screen, either:
    o     From the navigation menu, choose: SAP menu → Information systems → Ad hoc reports → Report painter → Report → Create.
    o     In the Command field, enter transaction GRR1 and choose  .
    2.     On the Report Painter: Create Report screen:
    a.     In Library, enter the name of the library to be used for the report (for this example, 8A2).
    b.     In the Report, enter a name for your report and a short text description.
    c.     Choose Create.
    1.     
    To help you better understand how to create a report in Report Painter, the next procedures explain the varying substeps. You can either:
    o     Define the rows (or rows with a formula)
    o     Define the columns (or columns with a formula)
    o     Define the general data selection
    Define Rows
    Example Task: Defining rows (including defining a row with a formula)
    To start defining the rows, on the Report Painter: Create Report screen, double click on Row
    On the Element definition: Row1 dialog box:
    a.     To include characteristics in the first row of the report, select the desired characteristics in the Available characteristics frame (for example, Account number)
    b.     Use  to transfer the chosen characteristic to the Selected characteristics frame.
    c.     In From, enter the account number(s) you want to include in the row definition. Either enter to and from values or a group set (for example, the value 800000).
    d.     To enter the row heading, choose
    On the Text maintenance dialog box:
    a.     In Short, enter the desired short text (for example, Revenue).
    b.     To copy the short text into the Medium and Long text fields, choose Copy short text.
    c.     To continue, choose
    On the Element definition: Row1 dialog box:
    a.     To check if the selection is correct, choose  Check.
    b.     To transfer the selection to the row 1 definition, choose Confirm.
    You have now defined the first row.
    To define the second row for costs, on the Report Painter: Create Report screen, double-click on Row 2.
    On the Select element type dialog box:
    a.     Select Characteristics.
    b.     Choose
    On the Element definition Row 2 dialog box:
    a.     To include characteristics in the second row of the report, select the desired characteristics in the Available characteristics frame (for example, Account number)
    b.     Use  to transfer the chosen characteristic to the Selected characteristics frame.
    c.     In From and To, enter the account number(s) you want to include in the row definition (for example, 400000 and 490000).
    d.     To enter the row heading, choose
    On the Text maintenance dialog box:
    a.     In Short, enter the desired short text (for example, Costs).
    b.     Choose Copy short text to copy the short text into the Medium and Long text fields.
    c.     To continue, choose
    On the Report Painter: Create Report screen:
    a.     You can now choose to add further rows with other required characteristics. In this example, you can create a formula in the third row.
    b.     Double-click on Row 3.
    On the Select element type screen:
                       a. Select Formula as the row element type.
                       b. Choose
    On the Enter Formula screen:
    a.     Enter the formula for Row 3. You can either type it in or use your mouse and the formula components buttons. If you type the formula, do not forget the spaces. In this example, Y001 and Y002 represent Revenue and Costs respectively.
    b.     To check the correctness of the formula, choose  Check.
    c.     Choose
    On the resulting Text maintenance dialog box:
    a.     In Short field, enter the text for the formula field (for example, Gross Marg).
    b.     In Medium and Long fields, enter the required text (for example, Gross Margin).
    c.     Choose  .
    You have now defined three rows (Revenue, Costs, and Gross Margin).
    Define Columns
    Example Task: Defining columns
    On the Report Painter: Create Report screen, double-click on the first column, Column 1.
    On the Select Element Type (not shown) dialog box:
    a.     Select Key Figure with characteristics.
    b.     Choose  .
    On the Element definition: Column 1 dialog box:
    c.     In the Basic Key figure field, use the dropdown to select Amount in company code curr.
    d.     In the Available Characteristics frame, select the desired characteristic for column 1 (for example, Fiscal Year).
    If you want to be prompted for the fiscal year at the time of running the report, you must make this a variable instead of a value.
    e.     Choose  to move the desired characteristic to the selected characteristics frame (for example, Fiscal year).
    f.     Place your cursor in the From value field and select the checkbox to the left under  (variable on/off).
    g.     To view the possible entries for the From field, choose  .
    h.     From the resulting selection dialog box:
         Select a variable from the list of available variables (for example, CYear).
         Choose  .
    i.     On the Element definition dialog box, choose  .
    j.     On the resulting Text maintenance dialog box:
         In Short, enter a text for the column header (for example, Curr Year).
         To copy the short text to Medium and Long text fields, choose the Copy short text button.
         Choose  .
    Now you have defined the column 1 for your report.
    k.     Back on the Element definition dialog box, choose Confirm.
    On the Report Painter: Create Report screen, define column 2 and all other columns you choose to define. You can define these columns either by:
    o     Repeating steps for column 1
    o     Copying columns
    o     Entering a formula that calculates the difference between columns (for example, between Current Year and Prior Year [variable is Pyear] in a column called Variance)
    Adding a column or formula is similar to adding a row formula. After defining the rows and the columns, the screen would appear as follows.
    General Data Selection
    After you define the rows and columns, define the general data selection screen for the report.
    Example Task: Defining the general data selection screen for the report
    1.     On the Report Painter: Create Report screen, from the menu bar, choose Edit → General data selection.
    2.     On the Element definition: General data selection screen:
    a.     From the Available characteristics frame, select the fields to add to the general data selection as shown.
    b.     Choose  to move the selections into the Selected characteristics frame.
    c.     Enter the values for each field. (For example, the standard ledger for PCA is 8A to 8E and the U.S. company code in IDES is 3000. This example is a year-to-date report, so all 12 periods are in the range. The standard Version in PCA is 0, the Record type for actual dollars is 0, and CO is 2000).
    d.     To check the selections, choose  Check.
    e.     To create the definition for the general data selection for the report, choose Confirm.
          3.   On the Report Painter: Change Report screen:
    a.     To save the report, choose 
    To include the report into a report group, choose Environment → Assign report group.
          1.     On the Insert Report in Report Group dialog box:
    a.     In Report group, enter a report group name (for example, ZTGR).
    b.     Choose  .
    2.     On the Create report group dialog box, choose Yes to create and assign to a new report group.
    Display and Execute the Report
    Example Task: Displaying the report you created in the previous steps
    1.     On the SAP Easy Access screen, either:
    o     From the navigation menu, choose: SAP menu → Information systems → Ad hoc reports → Report painter → Report → Display.
    o     In the Command field, enter transaction GRR3 and choose  .
    2.     On the Report Painter: Display Report screen:
    a.     Double-click on your report.
    b.     Review the report display.
    c.     To execute the report, from the application toolbar, choose execute.
    On the Selection screen:
    a.     Enter the variables used to execute the report (for example, Current Year 2000 and Last Fiscal Year as 1999).
    b.     On the application toolbar, choose execute.
    The report appears. You have successfully created a report in Report Painter.
    You can also execute the report through the report group (for example, ZTGR).
    1.     On the SAP Easy Access screen, choose SAP menu → Information systems → Ad hoc reports → Report Painter → Report Writer → Report group → Execute or in the Command field, enter transaction GR55 and choose 
    2.     On the Execute Report Group: Initial Screen:
    o     In Report Group, use  to select a report group.
    o     Choose  .
    3.     On the next screen, enter appropriate values and choose  .
    4.     On the next screen, from the menu bar, choose:
    o     Settings → Column attributes to change the column attributes such as changing the column width, setting the scaling factor, and setting decimal place numbering for number display.
    o     Settings → Summation levels to specify a range of summation levels for which totals will display.
    o     Settings → Print page format to change the layout of the report output.
    5.     To transfer the report to Microsoft Excel or Lotus 123, from the application toolbar, choose  .
    6.     On the Options dialog box, select the radio button of your choice and choose  . Note that for the report to open in Microsoft Excel or Lotus 123, you need to have these applications installed on your PC.
    7.     To get back to the original display of the report, select Inactive on the Options dialog box.
    Understanding the Report List
    After executing a Report Painter report, several additional functions can be applied to the output to make your reports as meaningful as possible. You can:
    •     Sort on each column.
    •     Highlight rows that meet the threshold criteria, for example any amount greater than 6,000.
    •     Drill down from any line item. Drilling down you can access ABAP programs, transaction codes, SAP Queries, drilldown reports, or other Report Painter and Report Writer reports.
    •     Launch SAP Graphics.
    •     Send the report through SAP mail.
    •     Save as an extract to be brought up later.
    •     Expand and collapse rows.
    •     Change the layout settings.
    •     Display the report in Microsoft Excel with office integration.
    hope this gives you an idea, and send me an email to [email protected] i will send you a doc on it,
    if this was helpful then assign points ..
    regards
    Jay

  • 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

  • User Exit Formula Variable - to calculate #days of any month

    Hello Team,
    I need a column in my report layout which shows the #days of any month entered by the user. User entry 01.2014 to 03.2014 report should have 31 28 & 31 according to the Calendar month in the rows.
    To achieve this I'm using a user exit formula variable in my local calculation. An Optional Interval User Entry variable on CALMONTH is also put in at the filter section.
    I created a CLASS with 2 methods CONSTRUCTOR( vNam = 'ZC2C_DSONWDAYS') & GET_VALUES. We may also use FM /OSP/GET_DAYS_IN_MONTH but i need the code because I failed terribly.
    GET_VALUES method code:
    if i_step = 2.
       DATA: wa like line of i_t_var_range[].
       DATA: L_V_INDICATOR TYPE SCAL-INDICATOR.
       data: begin of ccrange ,
               iobjnm(30) type c,
                 sign(1),
                  opt(2),
                  low(7) type c,
                 high(7) type c,
             end of ccrange.
      data: l_s_range type rrrangesid,
            no_of_wrkdays type i value 0,
            startdate     type d,
            enddate       type d,
            startmth(2)   type c,
            endmth(2)     type c,
            startyr(4)    type c,
            endyr(4)      type c,
            endday(2)     type c,
            leapyear      type i value 0,
            dayofmth      type syst-datum.
    DATA:  day           type SCAL-INDICATOR.
      loop at i_t_var_range into wa.
        if wa-iobjnm = '0CALMONTH'.
           ccrange-sign = wa-sign.
           ccrange-opt = wa-opt.
           ccrange-low = wa-low.
           ccrange-high = wa-high.
           exit.
        endif.
      endloop.
      startyr  = ccrange-low+0(4).
      startmth = ccrange-low+4(2).
      endyr    = ccrange-high+0(4).
      endmth   = ccrange-high+4(2).
      concatenate startyr startmth '01' into startdate.
    * determine last day of the end month
      if endmth = '02'.
         leapyear = endyr mod 4.
         if leapyear = 0.
            endday = '29'.
         else.
            endday = '28'.
         endif.
      elseif ( endmth = '04' or endmth = '06' or endmth = '09' or endmth = '11' ).
           endday = '30'.
      else.
           endday = '31'.
      endif.
      concatenate endyr endmth endday into enddate.
      dayofmth = startdate.
    IF startmth <= endmth.
       startmth = startmth+1.
    ENDIF.
    * do it for all days in space of time
       WHILE dayofmth <= enddate.     "to date
         CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
         EXPORTING
           input = startmth
         IMPORTING
           output = no_of_wrkdays.
           CLEAR l_s_range.
           l_s_range-sign = 'I'.
           l_s_range-opt = 'EQ'.
           l_s_range-low = no_of_wrkdays.
       append l_s_range to e_t_range.
           startmth = startmth + 1.
           CONCATENATE startyr startmth '01' into dayofmth.
        ENDWHILE.
    endif.
    endmethod.

    Hi Vasavi,
    1)  Create a FV to calculate no.of days  like below, with calmonth in ref characteristics :
    2. If you see number of days is an attribute of calmonth. Please enter that as below :
    3. Create a formula with above variable and make sure calmonth is added in the row.
    Its giving output like this :
    I hope this will help you.
    Thanks,

Maybe you are looking for

  • Re-associating previously purchased iTunes apps, etc with different Apple ID?

    , I want to get a brand new Apple ID to replace my current MobileMe address which I will convert to iCloud just for transition purposes and until my contacts update to my new email. I want to be able to ultimately eliminate my old .mac and .me addres

  • Sharing internet from macbook pr

    I have a sprint wireless card for my internet connected to the express slot in my MBP. Previously, I turned on internet sharing in the system preferences and shared from my express card to ethernet. The ethernet would connect to the wan port on the A

  • Count of 0TOTALSTCK

    Hi all I'm struggling with a count issue which i hope you can help me with. On IC_C03 i need to count the number of entries where 0TOTALSTCK = 0. As 0TOTALSTCK is non-cumulative i don't know the value of each row until query runtime. As such i can't

  • UIWebView not displaying my website !!?

    Greeting to all developers,, i have make my first application using UIWebView,, it  is simple application just to display a webpage i have made a webpage and publish it in the internet using Sencha Touch http://www.sencha.com/products/touch unfortuna

  • Logon prompt is coming

    Hi, In portal I need to access quality server. For a certain iView when I clicked it in Q server, another logon prompt is coming showing that it referring to Production backend. I this case it should not asked for another login i.e. the iview must ge