Dynamic subtotal REquired

Friends,
I have a requirement where user can select (out of 18 in my case) cols in the ALV output, and i shd internally get get subtotals acc to cols selected and divide all the subtotals by one known predetermined field's subtotal and insert the new <b>subtotalled and divided</b> line .
I am able to get the cols selected by get_selected_columns method.
Now to  achieve the subtotal ..i am not able to use a dynamic IF condition. I am trying dynamic read,,but thats also giving problems in logic. In short i need to get subtotals dynmically acc to cols selected by user.
Can any one please help...
Regards,
Venkat

Sai,
First you have to decide based on what you want to get the subtotals.Then you select that field and click on the subtotals button(in the toolbar of alv output).
Now select all the fields for which you want the subtotals and click on the Aggregation button.This will give you the subtotals.
ALV itself provides you this option,there is no need to write any code.
K.Kiran.

Similar Messages

  • Dynamic Subtotal that includes Local Member in sum

    Hi,
    I have a dynamic report that i have separated into sections using blank local members. Now within one of these groups is a local member row that is an EPMRETRIEVEDATA function that is pulling some other data. Finally, I have a repeating subtotal local member that totals the values for each group of cost centers.
    My issue is that the SUBTOTAL local member won't include the EPMRETRIEVEDATA local member in the sum.
    It doesn't matter if I use sum of EPMSELECTEDMEMBERS or EPMALLMEMBERS. Of course, I can code in the excel reference but then the subtotal isn't dynamic and the reference will be incorrect if the report expands.
    FYI, in the attached picture, the highlighted row is the local member with EPMRETRIEVEDATA and the row below in bold is the SUBTOTAL.
    Any help with this is much appreciated!
    Edited to add more recent picture. Thanks!

    Another tricky option is:
    Subtotal member formula:
    =SUM(EPMSELECTEDMEMBERS(SOMEDIM))+INDIRECT(ADDRESS(ROW(EPMSELECTEDMEMBERS(SOMEDIM))+ROWS(EPMSELECTEDMEMBERS(SOMEDIM)),COLUMN(EPMSELECTEDMEMBERS(SOMEDIM))))
    During local member processing EPMSELECTEDMEMBERS(SOMEDIM) will be replaced with the range of normal members and INDIREC(ADDRESS(... will compose the reference to cell just under this range.
    B.R. Vadim

  • Dynamic Columns requirement in a report

    Hi,
    I have a requirement in my report:
    Report takes Month &Year presentation Variable as a input and result should be dynamic 11 past months as columns in my report.
    Eg: If i select September 2011, Report should have 11 coumns which should start from August 2010 till September 2011
    If i select August 2011, Report should have 11 coumns which should start from July 2010 till August 2011
    Please suggest the optimized way to acheive this result.
    Thanks in Advance.
    Regards,
    Rahul

    This is more simpler...think logically. Suppose, you take current month-yr i.e. Sept 2011, then you want to show data from Aug 10 - Sept 11.
    Simply follow these:
    - Create a simple report say 'Mid Report' with 2 columns. Change the fx to give something like 1109 for Sept-11 and 1008 for Aug-10
    - This will give you 1 record with 2 values 1008 & 1109
    - In your main report creata a similar FX for Year-Month and put a filter based on other report. One less than eqaul to 1109 and One more than or equal to 1008. This will give you results for:
    1008
    1009
    1010
    1011
    1012
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    This can be utilized to get any trend report

  • Dynamic actions required for IT0021 - child subtype 2.

    Hello ,
    Can someone help me  with required dynamic actions to delimit the child subtype in infotype 21,
    when any new subtype is created in IT0021?
    Best Regards,

    The scenario actually is like :
    After the Save of subtype XX, we could use table T588Z (Dynamic Action Table) and let the automatic calling of this table drive bringing up the IT0021 subtype 2 (Child) and even  put the End date on the IT0021 child.  The user would then click the Save button.  The advantage here is we donu2019t do any direct update of the Child IT0021.
    Regards.

  • Dynamically configure "required" on MessageTextInput

    Gurus!
    Quick question ... I need to dynamically configure the "required" option on a MessageTextInput if data is initially populated in the form. Do you guys know of any way this can be done?
    Thanks,
    -Scott

    you can use setRequired() method in the processRequest()
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAMessageTextInputBean a = (OAMessageTextInputBean)webBean.findChildRecursive("InputTextId");
    a.setRequired("no");
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Do Dynamic Cuepoints Require Embedded Cuepoints?

    I'm trying to add dynamic cuepoints to a video element using the cuepoint sample app, but I'm having difficulty getting the sample to work if I change the url of the video. I'm pointing it to a different f4v on a different Flash Media Server. The METADATA_ADD event never gets fired so my dynamicTimelineMetadata object remains null and I can't use addMarker() to add any dynamic cuepoints. Does this event only get fired if the video has embedded cuepoints? Am I required to add at least one cuepoint to the video file for this to work?

    Hi,
    I've modified the sample to add the metadata if it doesn't exist. The framework doesn't (and shouldn't IMHO) add TimelineMetadata to every video. It only adds it if the onMetadata contains cue points or it gets the in-stream onCuePoint event.
    You can grab the updated sample from the SVN repository. For info on how to get there:
    http://opensource.adobe.com/wiki/display/osmf/Get+Source+Code
    Thanks,
    - charles

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

  • Dynamic Parameter Requiring Database Login

    <p><span style="font-size: 7.5pt; font-family: Verdana">Hey All, </span><span style="font-size: 7.5pt; font-family: Verdana">Thanks in advance for any assistance.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">I created a report in Crystal Reports XI R2 in which I embedded 2 command objects, both of which connect to the same DB. Command_0 performs the SQL to bring back the information which is needed in the report. Command_1 pulls back two fields from a table which are used to fill a dynamic parameter used in command_0. I saved the report to the Crystal Repository which will host the report for our end users. </span></p><p><span style="font-size: 7.5pt; font-family: Verdana">I used the BusinessObjects Enterprise Central Management Console (CMC) to set up default DB connection information for the report so that the end users do not need to have the SQL server authentication information. To make sure everything worked as it had when I was designing the report I logged on to our Crystal Server as if I were and end user and tried to access the report. The report will run exactly as expected if I leave the default information in the dynamic parameter. However when I try to change my dynamic parameter the report prompts me for the SQL server authentication information. <span> </span>It appears as if the default DB connection information I set up using the CMC does not apply to command_1. <span> </span></span> </p><p><span style="font-size: 7.5pt; font-family: Verdana">I need to find a way to get this prompt to stop, I cannot release the SQL authentication information to<span>  </span>all of our end users that would be a security nightmare.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">Again Thanks for any assistance or advice you can offer.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">Gary </span></p><span style="font-size: 7.5pt; font-family: Verdana"> </span>

    When you create a dynamic parameter, Business Objects Enterprise Creates few objects for you that essentially creates you a List Of Values (LOV) object for that parameter. LOVs can be created and configured manually from the Business View Manager. You have to specify the database login information in the Data Connection object that your LOV uses.
    Hope that helps.

  • CVP OAMP dynamic ports requirement

    Hi all,
    Based on CVP SRND
    "Because the Unified CVP Operations Console Server uses dynamic ports for communication with other
    components, it cannot be deployed outside of a firewall while the rest of the Unified CVP components
    reside inside the firewall"
    In an environment where we have Call Server 1 & OAMP (Site A) and Call Server 2 (Site B)
    a) how would it be possible to comply to the SRND since Site A & B would definitely be separated by firewall?
    b) what method / workaround can be used to allow communication between OAMP (Site A) and Call Server 2 (Site B)?
    Thanks!
    -JT-

    Hi,
    I have a similar setup what you had descried. The firewall config is in such a way that it is IP to IP communication, where it would allow all the ports of Source and Destination. We have not come across any kind of issues so far
    Hope this helps!!!
    Thanks,
    Dass

  • Adobe Premiere Pro: Adobe Dynamic Link requires Adobe Production Premium?

    Hi all!
    We upgraded for some while ago from CS4 to CS5, but forgot to remove CS4 in the thrill of exploring CS5. It's two computers with Master Collection, but the problem I'm going to tell you about is only occuring on one of the computers.
    We uninstalled CS4 from Computer 1. And after the unistallation of CS4, Dynamic Link between Premiere Pro, After Effects and Encore won't work.
    Computer 2 has still CS4 installed, and the Dynamic Link works on that workstation.
    These computers are both Win 7 64 bit.
    How do I fix this? The Dynamic was such a nice part of the worklow.
    Any updates that were recently published or any fixes or workaround. Cause we have tried to unistall and reinstall and unistall and reinstall and even ran the Clean Tool a few times.
    Thanks for any help

    HII!
    Unistalled everything, from CS5, to Adobe player to Flash and ran the cleanupscript some times and ran CCleaner on the registry. After 6 reboots, I installed CS5 again, downloaded all updates and now it works!
    Thanks for the help guys!

  • Weird Dynamic visibility Requirement

    Hi All,
    Here is the strange requirement from cilent. This looks very simple but I am thinkging that this requirement is not acheivable from tool .
    I have a PUSH button on dashboard . This button should display a LIST BOX component on Click and after selection made from LIST BOX, The List box has to hide on its own. And again clicking on push button should enable the List box. And there is catch here , Label 1 has to be selected by default.
    Can any one try this and share the XLF please ?
    Thanks in Advance.

    Here is a xlf with the functionality you are looking for. The functionality is not working perfectly but something that you can use and might be helpful for this requirement..

  • Facing problem in a dynamic messaseChoice---Require help

    hi..
    My page has two messaseChoice dropdowns. When the page opens data comes in the first dd (drop down) as picklist from a VO.
    I have implied fireAction on this messaseChoice, which calls an event to redirect this page to the same page. And execute another VO query taking the value choosed in the first dropdown as setBindingParams, and result column is used as the picklist for the second messaseChoice.
    My problem is that all the rows is not displayed in the second messaseChoice and last option showing as "OAWEBBEANPICKLISTHELPER_END_OF_DATA"
    Please some one help to find out the problem.

    Hi
    Follow below things.
    1) Second message choice properties set like
    PicklistViewInstance: SecondVO
    Picklist Display Attribute : what you want to display front end
    Picklist Value Attribute : what you want to store in table.
    2) when select value from 1st DD event will be generated in process form request you should call the am method with 1st message choice value. In AM You pass to secondVO and execute the query.
    Sample code find below
    if(vEvent3 != null && vEvent3.equals("update1stDDEvent")) {
    String vVariable1 = pageContext.getParameter("Values");
    Serializable params2[]= {vVariable1};
    am.invokeMethod("updateSecondMessageChoice",params2);
    Try this way.
    Thanks
    Mateti

  • Difference between requirement  number and dynamic bin number

    hi,
    what is the difference between requirement number and dynamic bin number in the WMS.i used requirement number as bin number in various scenarios ,but i am not used dynamic bin ....what is the use of it....or it is same as requirement bin number.
    Thanks
    Muthuraman.D

    The Dynamic bin number means that SAP will create the number 'Dynamically. the requirement number is free text and is a reference number
    If you create an outbound delivery and create a TO to pick it the stock moves to st type 916 and the bin is the delivery number but the delivery number does not exist at this point as a bin and when the delivery has shipped ypu no lomger require that bin number and so SAP creates the bin dynamically and then it disappears when the delivery is shipped
    The createion of Dynamic bins is driven by a setting in the movement type so for instance for movement type 601 the dest st type is 916 and the destination st bin in the movement type config (OLMJ) is ticked so that the destination st bin is created 'Dynamically.
    Yhis is the same for a GR when the bin is the PO number in 902 because it is created dynamically
    I hope that this helps
    Frenchy

  • Dynamic value assignment to a particular column in a vertical ALV

    Hi Friends,
    In the present program ALV has 44 fields and output row is only one(with some field editable).
    My requirement is to change present output to vertical ALV and editable field should be available
    as editable.
    Now I have changed this to transposed ALV manually(not dynamically) with required fields editable.
    Now there is 44 rows and two column "FIELD and "VALUE'.Some values in the second column is editable.
    Previously output was like this:
    field1   field2  field3 ...
    val1     val2    val3   ...
    Now output is like:
    FIELD   VALUE
    field1  value1(type INT)
    field2  value2(type char5) Editable(need F4 help)
    field3  value3(type date)
    My present structure declaration is:
    types: begin of ty_itab,
            field type char 50,
            value type char70,
            celltab type lvc_t_styl,(for editing some values in VALUE column).
           end of ty_itab.
    data: itab type standard table of ty_itab.
    Now the second column i have declared as CHAR70 which contains only char
    values because to put all differt types of values to one single column named
    'VALUE'.
    But as field1 field2 field3... had differnt type of value like integer char date...I need to validate some values
    (specially those which are editable) before saving to custom DB table.
    So I need dynamic value assignment to VALUE column when preparing internal table for display.
    What I want to say is that VALUE column should be able to contain different type of values like INT, DATE, CHAR...etc
    Is the requirement is feasible?
    If yes then How should I declare the structure and populate different type of values within single column 'VALUE'.
    Also is it possible to have F4 helps in the second column (VALUE)???

    Hi Manab,
    I did something comparable: We have a very complex transaction with several subscreens with multiple fields to be filled with complex logic to create a very special contract. The requirement was to create a method to create a copy of this contract being able to apply some changes.
    I created a wizard (transaction SBPT_WIZARD_BUILDER - Wizard-Builder) to accomplish that. I grouped all the fields to just 3 logical groups and thius created 3 stesp where the user gets an ALV as you describe, but we have the rows like FIELD  with the new value editable. Additionally I have hidden fields with table name and field name so that I can determine the characteristics (datatype) at run time.
    The value fields are just strings (every ALV field is a text field on the surface).
    For editable fields, you have an event DATA_CHANGED. I used this method as a handler for the event:
    (I will leave out the wizard part here - maybe a good idea for a blog to explain that)
    METHOD handle_data_changed.
        CALL FUNCTION 'RS_CONV_EX_2_IN'
          EXPORTING
             input_external                     = <mod>-value
             table_field                        = ls_tabfield
    I also created handlers for F1 and F4
    Handler for CL_GUI_ALV_GRID->ONF1
    METHOD handle_f1.
        CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
          EXPORTING
            called_for_tab   = lv_tabname
            called_for_field = lv_fieldname
          EXCEPTIONS
            object_not_found = 1
            sapscript_error  = 2
            OTHERS           = 3.
    Handler for CL_GUI_ALV_GRID->HANDLE_F4
    METHOD handle_f4.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname    = lv_tabname
          fieldname  = lv_fieldname
        TABLES
          return_tab = lt_return_tab
        EXCEPTIONS
          OTHERS     = 5.
        er_event_data->m_event_handled = abap_true.
    * if er_event_data->m_event_handled is not set to abap_true, system will handle it.
    * In this context the message 'Keine Eingabehilfe verfügbar' will be displayed
    ENDMETHOD.
    This is just an excerpt from my project. It shows that you can do more in ALV as you knew.
    I tried to post a little more but the formatting break down, possibly a result of the character limit
    Regards,
    Clemens

  • F4 Help for a dynamic input field( class CL_DD_INPUT_ELEMENT)

    Hi all,
    I am programming a dynamic document which has several input fields on it. I want to program F4 helps for these fields, does anyone have an idea how I can do that?
    I have the idea to program a button(class CL_DD_BUTTON_ELEMENT) next to the input field and manually program an F4 help in the event handler of the button. But I do not know how I can handle pattern entries with '*' etc. in the input field. Is there a function module which could give me an F4 list(F4IF_INT_TABLE_VALUE_REQUEST could not be used, because it needs a dynpro field as a return field, which we do not have in this case).
    Kind Regards,
    Sükrü

    hi
    good
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
    allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
    F4 HELP->
    AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
        PERFORM VALUES_SACHA.
    THANKS
    MRUTYUN^

Maybe you are looking for

  • Can 'SUBSCRIBE' be removed from photo template pages in iWeb??

    I am using photo template pages on my website (designed in iWeb 08). My site is an artist portfolio site so the photo template pages work well for dealing with all the art images I am posting. One problem: there is a subscribe button on my pages whic

  • Program Logic & Java Graphics

    can anyone provide the source code how to create a ticket system. The system should have 2 category, adults and children with a pulldown menu for how many adults or children and calculate the total price of the ticket. example: Adult/$2.00 (the pulld

  • Duplications in "Open With" menu

    Sometimes after I upgrade an application, the "Open with" menu item in the Finder lists this application twice. Curiously, it doesn't list the duplication in all accounts. Is there any way I can remove the duplicates?

  • Publish Report from Report Builder

    Hi, I have a report built in report Builder 3.0. I need to publish it to a server. What i need is a Open Source Sever. Is there any open source servers available to do that. I know it is a silly question please help me out in this. Thanks, Shreyas M

  • I recently installed older version of Imovie and final cut pro free trial now imovie 11 wont open what do I do?

    I recently installed older version of Imovie and final cut pro free trial now imovie 11 wont open what do I do?