EXTREMELY URGENT: % Cost (out of Total Costs) Column in Report Painter

Hi Gurus,
I'm not new to Report Painter, but, am stuck at one thing.
In report, Col 1 shows Costs by Administration (row 1), Labor (row 2), Others (row 3) and total (row 4 being formula as total of row 1, 2 & 3).
Client wants col 2 to show % Cost of each row out of total Expenses (so totals row in this col. will have 100%)
How to do it technically.
Please help. It's EXTREMELY URGENT.
I'll award points ASAP
Regards,
SB

Its abit difficult to illustrate without having a screen dump, what you can do is make use of something called special cell definition. Now if you double click on the cell for column 1 of row 4 for total costs then the system identifies it as a cell Z001 which in fact will recognise a constant value of total costs , thereby you can define in Column 2 as a formula element with (X001/Z001)*100 thereby giving a value in %. Try it and see if it helps

Similar Messages

  • How to find out the total, subtotal in alv report

    hi dears,
    how to find out the total, subtotal in alv report?
    pls tell me logic ,
    i will be waiting for eply
    regards
    eswar

    Hi,
    <b>ALV Grid List with sub-totals</b>
    REPORT z_demo_alv_sort.
    * This program lists orders (VBAK) with sort and sub-total for        *
    * 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG)            *
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA
    ***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
    Regards
    Sudheer

  • Additional Lead Column in Report painter

    Hi Gurus
    Please guide me how to add an additional Lead column in Report painter
    Thanks
    Hiren

    Hi HIren,
    There can be only one lead column in report painter.
    However within the one lead column you can identify more than one characteristic - e.g. cost center and cost element. You can then identify that both characteristics should be exploded.
    If you go Edit > Rows > Explode, you have the opportunity of identifying which characteristic takes presidence over the other, and how they expand. So in this example, Cost center will be 1 and cost element will be 2.
    The output will be dependant upon your report layout, but you should have the layout so that you have:
    Cost Center A:
    - Cost Element A
    - Cost Element B:
    - Cost Element C:
    Cost Center B:
    - Cost Element A:
    - Cost Element B:
    - Cost Element C:
    And to distinguish the cost centers from the cost elements, you can format the cost center row "Color for Totals"
    Regards,
    Gaurav

  • How to include variable in the text column in report painter?

    Dear Expert,
    Would like to seek for your help to include How to include variable in the text column in report painter?Please advice.
    Thank you.
    Regards,
    Karen
    Edited by: Karen Swee Ping Ho on Jun 17, 2011 2:48 AM

    Hi,
    Thank you for the promt reply.
    1) How I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    which variable should i use?
    2) Where can i find more information about the characteristic and which variable to be use base on the characteristic?
    For example: I would like to display the fiscal year from the selection screen/input screen when execute the report which also will reflected to the element definition and will display the fiscal year also in the column text?
    3) Kindly advise base on question 2, the variable that i use in element definition it will also display  in selection screen?
    4) When execute the report the first selection screen input parameter it obtain from where it is from element definition?
    5) Please advice how to be done when report execute with first screen input selection will also reflect the element definition of column and rom with the selection of the fiscal year?
    Please help.
    many thanks
    Edited by: KH on Jun 18, 2011 7:18 AM

  • How to add new column in report painter

    Hi Experts,
    I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...

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

  • How to use field "responsible Cost center" in Report Painter

    Hi
    I create report painter by using standard LIbrary and want to use field "Responsible Cost Center" as a parameter in order to display report in hierachy.But the standard Library  "6O1"  doesn't provide  this field .
    So I try to create new library by copy the standard  "6O1" and using  the structure "CCSS".But it doesn't show this "Responsible Cost Center" Field as a parameter .
    Please give me an advice step by step the way to get this field as parameter in report painter 
    regards
    Chompleon

    Hi,
    I have a similar requirement. I have followed OSS note 358251 as an example to add the 'Responsible Cost Center', however it doesn't display in the report even after I choose the field for display. The steps I have followed are -
    1) Added the field ZZ_KOSTV in the include structure CI_CC1S.
    2) Using transaction GRCT, table CCSS, I added a characteristic KOSTV with Def field OBJNR, and filler routinue EZZ_FILL_KOSTV.  I then wrote code in this routinue to populate the value KOSTV from AUFK table in the include program FK21REZZ. In debug mode, I can see correct values are populated in this field.
    3) I created a copy of an existing report in the library 6O1, changed it and in the Total line, added the field Responsible Cost Center to the Selected Characteristics. When I save, regenerate and execute the report, the value for  Responsible Cost Center doesn't get displayed though the displayed orders have a value populated in this field and when I debug I can see the value is passed ut correctly form the filler routinue to the field KOSTV.
    Please help and let me know what I need to do to be able to see this field in the output result.
    Regards,
    Neha

  • Add Range Selection for Cost Center in Report Painter

    Dear Gurus,
    I had a report painter which had Cost Center selection, may I know how to change the cost center selection become in range like shown in below picture?
    [Report Painter - Cost Center in Range|http://www.pikipimp.com/pp/pimped_photo/s/image/42/231/888/range-compiled.JPG?ts=1236930732343]
    Thank you very much!

    Hi,
    Thanks for your guide, is really detail ~
    I had follow your step, create a new variable set for the cost center at GS11.
    When I want to include the set (KOSTL2) into the general data selection it prompt this [error|http://www.pikipimp.com/pp/pimped_photo/s/image/42/314/153/ErrorGS12-compiled.JPG?ts=1237172967140] may I know how should I correct it?
    Is it my setting was wrong?
    Please guide if possible.
    Thank you very much!
    Warm regards

  • Lead Columns in Report Painter

    Hi All
    Is it possible to have two lead columns in a report?  My requirement is that i want to prepare a profit and loss account by using report painter. It should look like
    Expense           Amount           Revenue          Amount
    Exp G/L A/c       XXX             Sale G/L A/c      XXX          (For Example)
    Now i want to define Expense column as lead column and revenue column as a lead column
    Kindly help me with issue
    Regards
    Invin

    Hi Abhijit
    Kindly elaborate it I am new to report painter i would like to tell you again what is my specific design requirement
    LEAD Column                Column 1                              LEAD Column                    Column 2
    Expense                      Amount                                     Revenue                      Amount
    (These four will be my columns under this following will be )
    Salary Exp G/L       1000                                 Sale G/L A/c       2000 (For Example)
    (This salary will be my heading and i will be typing in words and under this i will be assigning my salary Gl A/c same will be the case with Sale)
    Now i want to define Expense column as lead column and revenue column as a lead column so that i can write Salary as heading and sales as heading just like traditional Profit and loss account what earlier we use to prepare by hand.
    Kindly elaborate it how to do it
    Regards
    Invin
    Edited by: sapcofi on Oct 6, 2009 1:37 PM

  • Moving columns in report painter

    Hi All,
    I have created a report in report painter. Now i want to move a column from one horizontal page to another.
    Is it possible? If yes then how?
    Thanks in advance,
    Nitish

    Select the column, which need to be moved by placing your cursor on the column & press F9. Now place the cursor at a place where the column needs to be moved & press F8.
    Regards,
    Rakesh Pawaskar

  • Display Profit Center & GL Account in 2 Seperate Columns in Report Painter Report

    Hello All,
    I am building a Report Painter Report for Inventory Balances. As psrt of my requirement I have to display GL Account & Profit Center ina different Column & their Balances for each month on this Current Fiscal Period. As/of now I am only able to have both GL Account & Profit Center in the Same Lead Column? And it is perfect if I look on the Report but when I download all the GL Account & Profit Center are not seperated with Color, so it becomes confusing. I need to have  execlty the Report as Same Format S_PL0_86000030.
    How can this be achievable? Thanks for your valuable input?

    the account is probably in account group or set. Look for that one in report painter and then go to the set or account group and remove/add the account.

  • New column to report painter

    Hello ABAP Gurus,
    There is a report created with Report Writer (S_ALR_87013000) and I should add some extra columns to the end of it. The problem is that the new columns are not contained by the basic keyfigures of Report Painter; they should be red from masterdata: different fields from table AUFK.
    How can I add these columns? Is it possible to define own keyfigures? Or is any other way to enhance this report?
    Thanks,
    Krisztian

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

  • Trying to add new columns to Report painter Report

    Hi Experts,
    I created a report painter report by copying an already existing report. In addition I wanted to add extra columns to this report but after adding a few and coming to the last page of the existing report when i try to add a new column the system gives me an error message
    Insufficient space on current page -> moving not possible
        Message no. KH581
    As this is the last page, I am not able to add extra columns to this report. How can I go to the next page and add columns to this existing report. Your responses are highly appreciated.
    Regards
    ASLV

    Hello,
    This is a constraint in the system.
    The solution maybe is to define narrower columns        
    because there is a hard restriction in ABAP to have at least 255 digits            
    on one page.                                                                               
    The message KH581 is processed because there is not enough space left              
    on the first horizontal page. So if you first add a new horizontal page            
    you can add the new column on the second page. Also if you decrease the            
    column width of the columns to get more space left on the first page you           
    can add the new columns.
    I hope it helps.
    REgards,
    REnan

  • Total Eliminations column in Reporting Studio

    Hi ,
    In one of my report I need to show the SubTotal and Total Eliminations. I'm just curious to know How Total ELiminations are calculated/ shown on the report? Right now I'm considering "Sum of All entities within a specified parent (including parent) at [Elimination] Value Currency level" which gives all my auto eliminations values within HFM. Is this the best way? Please suggest What I did was correct or wrong?
    Thanks.

    This is fine except you should not include the parent, basically the number being eliminated, resides at the child level in the elimination bucket. You can use the children of function in one column or row, keep it hidden and in the displaying column insert your sum formula referencing the hidden row or column.

  • Total line in PA report painter

    Hi,
    I have a problem with total line calculation in KE30 report.
    I have defined a few colomns in the form like gross sales, discounts, returns by some customer and I have written a MAX formula for one colomn. When I select material for drill-down. the system generate a total line automatically. total line for MAX formula colomn is calculated as MAX of the related colomn total line result. I would like to change this calculation way and I want to see the result of  MAX colomn total at this line.
    the Report form can be seen as follow:
    Key colomn(material)Net sales(cust.1)  Net sales(Cust 2)  MAX of net sales
    Material 1                   100                        120                    120        
    Material 2                    90                           85                     90
    Total line                     190                        205                    205 (I want to see 210 for this total result)
    I have tried all type of report form to change the result like matrix, one axes with key figure but I could not solve the problem.
    Could you please help me about that issue If you have any idea or experience
    Thanks
    Best regards.
    Ozlem Babacan.

    Remove the drilldowns for the "detail" characteristics that you do not want to see. The report will then display only the "totals" that you do want to see.
    Hope this helps...
    Bob

  • How to add a column in report painter

    Hello
    i have a profit centre report where i have the profit centre group name in the header and i want to move it to column.
    could you please let me know how to do this?
    Thanks

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

Maybe you are looking for