Calculations on Total column' fields(bps layout: dynamic calmonth)

hi friends,
in bps, output layout, based on dynamic calmonth i showing number of months.  I want to system to calulate total(all calmonths) sum for a particular field.
Lead column    data columns
Expenses      apr2009  may 2009 june 2009.....mar2010   Total
  Office             20         10        20                                       100
Usually for caculating total in layout builder 2nd screen, we chose tickmark(total) and then write c(1): c(1)   like that or simply c(1) which calculates all calmonth values.
My situation is like this, user only enter number of year(s), in terms of range. I populate calmonth field using user-exit based on  year range. Next using calmonth field in layout builder as dynamic field. Now user wants  TOTAL of individual years along with calmonths.  How can i put this condition in layout builder?
eg:
                   apr2009 may 2009......mar2010  Total(09-10)  apr2010 may 2010  ...mar2011  Total(10-11).apr2011 ..Total(11-12).
Expenses   10           20   30..............
Next question, Can i do arthemetic calculation on total fields?
eg:
Lead column     apr09 may09 ....mar10 total
A                         10      20                           100
B                          20     30                             200
c                           10    5                              ????(this value i want to calulate by above totals eg:   (200/100)* 85.
Can it possible to get that?
thanks,
kumar

It is not possible to hide or change the column width during design time if the layout is ALV.
However if the layout is used in WIB (web interface builder), I believe the column widths can be modified at run time. This would need additional coding.
Regards

Similar Messages

  • Data columns in BPS layout

    Hi,
      My current BPS layout has three columns, they are cost,price and margin respectively. The user now ask to add another column call "alert" after the margin column.
    The logic is that if the margin is less than 10%, then the alert column should marked with "X", otherwise leave it blank.
      In order to add a column after margin column, the added column have to be key figure which will not allowed characteristics,while all the other key figure type such as amount, quantity, date ect will not take
    "X".
      Any idea or suggestion.

    JW,
    If Margin is the last column on your layout, what you do is in the last layout definition screen, add the locl excel formula to the column after where the margin would appear.  Then you just use simple excel formula to do it.
    For things to appear only if there is data in the row, I typically use an IF in the excel formula and check for values in cost, price, margin.  Actually it would be 2 nested IFs.  One to check for value and the other to determine the 10% and mark it with a X...  In purely excel formula, there is no distinction between key figures and characteristics since it is only Excel.
    Hope this helps.

  • Making attrbute of  field in layout dynamic (mandatory on not in config)

    Hi,
    One of the functional team member had some issue with configuration. He checked the box in configuration which is mandatory flag chack box in Manitain Field groups. But a particular field does not change it status in transcation.
    I am having a very basic ABAP question.
    When I go in the SAP program, and see the Attributes of that field in layout editor as Input Field 'Required'. I am wondering if the attribute is set as required, how can configuration make the field non-mandatory. What technique is used to make dynpro field attributes dynamic based on configuration ?
    I am thinking a lot on this.
    Regards,
    Rajesh.

    Even if we find the user exit, how can we modify the code. Because the modify in this means modifying the Field attribute in layourt editor. How can we do this ?
    Thanks.
    Regards,
    Rajesh.

  • Is it possible  Hide a column in BPS layout "WEB" ?

    Hi,
    Is it possible to hide a column in a "WEB" BPS layout  ?
    Have you an example to hide a column in web thanks to Java and where insert it ?

    Alessandro,
    I create in BPS0 all the customizing I need (functions, layout...). After that, I create a web interface with these components (variables, functions, layout).
    That 's why I wonder what could be the java code to hide a column in web interface.
    regards

  • Hide a column in BPS layout ?

    Hi,
    Is it possible to hide a column in a BPS layout (Web Excel) ?
    When I hide a column in the layout definition, saving it resets the hidden column.
    Any idea if it will be included in a future release ?
    Thanks

    Alessandro,
    I create in BPS0 all the customizing I need (functions, layout...). After that, I create a web interface with these components (variables, functions, layout).
    That 's why I wonder what could be the java code to hide a column in web interface.
    regards

  • Column in bps layout

    Hi all,
    How can I hide a key figure data column in my BPS layout?
    Thanks
    Gianmarco

    Thanks but this solution isn't OK because when I start the layout there are a column and not keep my hide changes.
    Any suggestion please?
    Gianmarco

  • Blocked columns in BPS Layout

    Hello BPS-enthousiasts,
    We have a problem concerning our input screens. We have recently started a BPS-project on a 7.0-system and ran into - what we think - is a bug.
    These input screens have fiscal year, posting period and currency as data columns. The currency is hardcoded into the screen and the fiscal year and posting period in the screen are defined as follows:
    Fiscyear          Posting period
    FISCYEAR      1
    FISCYEAR      2
    FISCYEAR      3
    FISCYEAR      4
    FISCYEAR      5
    FISCYEAR      6
    FISCYEAR      7
    FISCYEAR      8
    FISCYEAR      9
    FISCYEAR      10
    FISCYEAR      11
    FISCYEAR      12
    FISCYEAR+1  #
    FISCYEAR+2  #
    FISCYEAR+3  #
    FISCYEAR+4  #
    FISCYEAR+5  #
    FISCYEAR+6  #
    Where FISCYEAR is a variable. For the first year we want to input figures every month, for the other years one figure for the whole year
    When we define fiscyear as a range from 2008-2014 our input screen allows input in all columns except for the last three (2012-2014). No data slices or anything are blocking these years.
    Has anybody encountered this before. We did this already on a 3.5-system, without any problems.
    In any case, we are thankfull for your advise
    Edited by: Vandersteen Jorg on Jul 16, 2008 4:19 PM

    The master data of the infoobjects 0fiscper3 and 0fiscyear are filled for the years and periods we want to see in the screen.
    Also the business content 'time-objects' are a bit special in the system and it is not possible to maintain the master data yourself.
    Kind regards,
    Jorg

  • Total column in print layout

    Hi Dear;
    i created a formula field in the end of report area that show the total of ca olumn in the repetetive area 0.
    if there is data in the repetetive area the field show the correct answer, but if there is no data in the repetetive area i have the following error:
    "Printing error: missing field (rpt -6717) (field:tp) [message 200-38]
    anybody can help me please?
    thank you dear;

    Hi Dany Bittar,
                        I have tried u r problem. and i get it. I did as u done and  i wrote the formula as ColSum("Field") for the formula feild.
                        Let me know is it ok or not?
    Thanks,
    Suresh Yerra.

  • Total in BPS Layout

    Hi All,
    I want to add a line for total in a BPS layout.
    In BPS0 transaction, there is a button that allowed to add line for total in the Excel sheet. The problem is that line don't appear in the layout of the campaign in CRM.
    Could you please help me ?
    Thank you in adavance
    Regards

    Hi Ivan,
    yes.
    You also might consider to use BW-IP where you have the full reporting and planning
    features integrated in BW queries. There it would even be possible to make 'AVERAGE'
    an input ready formula (BW 7.01, SP05 or higher):
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/49/db8d1bc2245d5de10000000a421937/frameset.htm
    Regards,
    Gregor

  • How to Remove totals on few columns from SEM BPS layout

    On SEM BPS layout it has 10 5 charatestics columns
    and 10 key figure columns.
    out of these key figures I want see totals on some
    coulmns and for few columns I do not want to see totals.
    for wxample it does not make sense of seeing total under
    the salary incrase percentage coulmn.
    Please suggest anyway we can remove total for some  
    columns on the layout

    Hey, thanks -- everything worked as you described. It never would have occurred to me that the "put back" button refers to the browser selection not the layout selection, for reasons I give below.
    I think Aperture exhibits some conceptual confusion here. First of all, a "light table" is created by the New > Light Table command, and you add images to the newly created light table just as you would add them to an album. But those images don't go on the light table layout until you drag them from the browser to the layout table. The "put back" button and "remove from light table" contextual menu command both mean remove from the layout. The phrasing of the contextual menu command make it sounds as if it will remove the clicked image from the light table's collection of images, like removing an image from an album -- it would have made more sense to name this command "put back". Furthermore, the "put back" button is above the layout display, not above the browser, which to me implies that it applies to selections in the layout display. To select an image in the browser, and click "put back selected" seems backwards -- if you just selected the image in the browser, your attention is focused on the browser, not the layout; from the browser's point of view, the button should read "bring back" not "put back".
    The documentation didn't really help when I was trying to figure this out. Sometimes the Aperture documentation refers to just a "light table", as on the overview on page 732. On pages 733 and 734, though, it refers to a "light table album". On page 735 of the Aperture manual there is a very brief explanation of how "to add images to the light table" and "to remove an image from the light table". Here, "light table" refers to the layout not the album. The explanation of the "Put Back Selected" button says to select an image then click the button, and the picture shown is of an image selected in the layout, not in the browser.

  • Data in BPS layout columns

    Hi,
       I have two data columns in my BPS layout called price and margin with one lead column material, the layout looks like this when it initially display:
       Material    Price   margin
          1          1.25
          2
          3
          4
    The requirments is if user input date in the margin column and the price should be calculated by the following logic
         second  material price = (first price ) + (first margin) and so on.
         if we input margin column 0.50,0.40 0.30  for material 1,2,3,4 respectively, we will get the following price result:
        Material    Price   margin
          1          1.25    0.50
          2          1.75    0.40
          3          2.15    0.30
          4          2.45   
    I am tried to use the excel formula for achieve this, but as much as I know the excel formula can not been saved when we configure the BPS layout,beside since the number of material display under different data selection criteria is vary, it's diffculty to hard code the formula in the excel.
    Anybody have any suggestion how to do it?

    Hi JW,
    BPS is designed in a way that layouts and planning functions are completely independent of each other (otherwise you would have to build a layout for each function or something like that).
    The data in the layout is sorted according to the lead column. So if you use FOREACH in FOX with the same characteristic, the data will be processed in the same order as the lead column.
    Alternatively, you can do it with an exit function. All you need to do in an exit is copy XTH_DATA into an internal table and then use the SORT statement with the same sort key as the lead column.
      DATA:
        lr_aera     TYPE REF TO cl_sem_planarea_attributes,
        lr_t_data   TYPE REF TO data.
      FIELD-SYMBOLS:
        <lt_data>   TYPE STANDARD TABLE.
      CALL METHOD cl_sem_planarea_attributes=>get_instance
        EXPORTING
          i_area      = i_area
        RECEIVING
          er_instance = lr_area.
      CREATE DATA lr_t_data TYPE (lr_area->typename_t_data).
      ASSIGN lr_t_data->*   TO <lt_data>.
      <lt_data> = xth_data.
      sort <lt_data> by ...
    your logic here
      xth_data = <lt_data>.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Sorting on a total column or calculated column in a pivot table

    We have a pivot table showing customer activity by month. We have added a calculated field to show the YTD average instead of a total column. Is there a way to sort on this calculated field? We have applied a sort on the measure in the criteria, and our resulting pivot table sorts by the values in the most recent month, not by the YTD average.

    I think we cant sort when we use a pivot view becoz all the rows are already fixed. Say your rows are sales and volume and columns are year 2007 and 2008, imagine if you r given the sorting ability then if number of units solds is more then it need to change the rows (but in pivot table rows are fixed). So, we cant sort in pivot tables!!

  • CRM fields not populating in BPS layout for opportunity Planning 0crm_order

    Hello Support,                                                                               
    We are using SAP CRM 5.0 SP09 with BW 7.0 SP 09.                                                                               
    When creating an opportunity in CRM, the product data ( quantity ,
    values) are not appearing in Planning tab( SEM-BPS Layout) .                                                                               
    Kindly let us know what needs to be done to resolve this issue.    
    Thanks and regards,                                                
    Rajiv Jain

    In your CRM system, check your mapping from CRM to BW are correct.
    You can do this in transaction SPRO. Menu path 'SAP Implementation Guide --> Integration with other mySAP components --> SEM --> Change mapping between CRM fields and InfoObjects'. Select planning application 'OPP' and click on 'Mapping table - system entries' on the left.
    In here you should see the mapping from the InfoObject to the CRM field (eg. Infoobject 0CRM_EXPREV uses structure CRM_BW_OPPT_H and field name EXP_REVENUE).
    In order for the value to be passed to planning you must tick the 'Empty' checkbox on.
    Regards,
    Adrian

  • How to display total amount field in PO layout

    Dear All,
    I have a query related to Purchase Order Printing.
    I copied the standard programme SAPFM06P as ZSAPFM06P. I didn't make any changes to standard program.
    I copied the standard layout MEDRUCK as ZMEDRUCK.
    I am able to display all the data of PO but I am facing problem in displaying <b>Total Amount</b> field (i.e sum of amount and tax value).
    How can we display the Total Amount in the layout without changing the Standard program. I want to make the changes only in ZMEDRUCK for this field.
    My main window details are as follows :
    MatNo MatDesc Uom Quantity rate amount <b>Total amount</b>
    Here I am not able to print Total amount(amount + tax value)
    Please help me on this .
    Thanks & Regards
    Rajvinder

    Hi Rajvinder,
    u need not be so much against changing the program.. infact it s the best way to get the desired output if its done properly...to be completely safe,wat u can do is insert a subroutine somewhere after the values have been populated in the program n then add these inside the subroutine to get the total in a different variable..in this way ur original data s intact n u can use ur new variable in the script as total..
    neways if u dont want to change ur program, then u need to keep these things in mind..
    the value of total & tax shud be available at the point of calling the perform from the sapscript so that u can pass those to a new program for addition.
    eg :
    while writing this in script
    :/ perform add in program znew using &total& &tax& changing &final&
    before this command u need to make sure that total & tax values r ther to pass to the program..
    then u can write a FORM in ur znew to add these two n pass to final..
    in sapscript u can then print &final&
    Hope it helps,
    Regards,
    Bikash

  • Column field to be added in Layouts of ALV Display.

    Dear Expert,
    I need to add one column field in IW37 transaction layout.IW37 transaction output is diplayed in ALV where i need to add one field in layout set of column.This layout of column can be found under the menu settings> layouts>curent in the ALV output of transaction IW37.Please suggest how to accomplish this?
    Thanks

    Seem you have to find the exit to add field in standard program then find enhancement spot to put your field to gt_fieldcat.
    Otherwise, should copy the standard program and edit by yourself.
    How about your result now? Can you please post your solution?
    Regards,
    Hung Tran

Maybe you are looking for

  • Possible to use the UDI Wizard for standalone USMT Online Restore?

    I'm looking for a solution for a specific scenario.  We are looking to use UDI for a replace scenario where we will use a UDI task sequence to backup USMT data to a USB drive on the old PC and turn around and restore that data on a new PC already pro

  • Outlook 2013 can't connect to Exchange server

    Trying to set up Outlook 2013 on my new work laptop. I have the correct Exchange server name  and emaill address, but get the error message "The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this act

  • Why can't I log into my sidereel account

    I've asked for help about this issue a couple of weeks ago already. I have an account with sidereel. I never had problems and everything was working fine. Suddenly I can't access my account. I keep coming back in the screen where I need to sign up or

  • Regarding control breaks

    hello folks,                ON CHANGE OF event is for?

  • Mac mini won't boot after latest update Maverick

    My Mac mini running Maverick after an automatic update won't boot. " no bootable device -- insert boot disk and press any key" What option do I have here?