How to refer parent node when we are at child element ?

Hi members, how everbody is fine.
i have one question.
i have four group in my template.
i am doing group total at the end of each group.
at the end of each group i want to check that if group A then
store group total in variable XX.
if that group total for group B thens store group total in variable YY.
then at the end of group B , after group B total
i want to subtract group B total from group A total.
any kinda help is greatly appreciated.
thanks/

hi,
below is my output.
Grouup 1
1st year 2nd year
------- 1 3
------- 10 11
all elements 5 5
------ 2 1
------- 4 3
Total 22 23
Group 2
1st year 2nd year
------- 5 6
------- 9 10
all elements 2 4
------ 1 0
------- 11 12
Total 28 32
total 28-22=6 32-23=9
so how can i subtract this above total from group 2 - group 1 ?
and this same like that if there is group 3 then
at the end of group 3 - right below of total of group 3
i need to display group 3 total - group 2 total ..
thanks.

Similar Messages

  • HOw to get parent node name value through its child node?

    Hi,
    Experts,
    I am able to get child node name values but according to attribute name value i want to  get its parent name value how to achieve that. For that i have used If_Ixml_element->Get_parent. Please pass some idea on it.
    Thanks in advance,
    Shabeer ahmed.

    Hello Shabeer
    I think the coding should be straightforward:
    DATA: lo_element   TYPE REF TO if_ixml_element,
              lo_child        TYPE REF TO if_ixml_node,
              lo_parent      TYPE REF TO if_ixml_node.
    " NOTE: LO_ELEMENT holds your child node
      lo_child ?= lo_element.
      lo_parent = lo_child->get_parent( ).
    Regards
      Uwe

  • How to use java script when popups are blocked in browser

    How to use java script when popups are blocked in browser

    Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.

  • How to refer dynamic node?

    Hi All
    I create dynamic table with dynamic node.  Table has one row, and one of the column is Button, if i click on this button i want to add on more empty row of same structure as above row with some changes. If we declare node in context for adding row we follow this code...
    data: lr_node type ref to if_wd_context_node,
    ls_struc type if_main_view=>element_nomenclature.
    lr_node = wd_context->get_child_node( if_main_view=>wdctx_nomenclature ).
    lr_node->bind_element( new_item = ls_struc set_initial_elements = abap_false ).
    But here i  create node dynamycally.  how to refer dynamic node, and how to create row??
    Thanks,
    Madhan.

    Use
    data lr_element type ref to if_wd_context_element.
    lr_element = lr_node->create_element(  ).
    lr_node->bind_element( new_item = lr_element set_initial_elements = abap_false ).
    thanks
    sarbjeet singh

  • How can I improve performance when scopes are open?

    How can I improve performance when scopes are open?
    When Color correcting, performance severely lags, stalls, freezes!
    Nothing to complex...simple 3 way color corrector, occasional curves filters.
    I am constantly waiting for the timeline to update as I move around....sometimes as long as a minute or so.
    I'm on brand new 2.7 Ghz 12-Core MacPro with 64 GB of RAM
    Thanks in advance.
    Jay

    http://forums.adobe.com/thread/1369260?tstart=0

  • HT1430 How do I restart iPad when buttons are not responding?

    How do I restart iPad when buttons are not responding?

    GIve the reset another try; nothing to lose.
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • How to close parent window when we use call method l_window_manager- create

    hi...
    how to close parent window when we use call method l_window_manager->create_external_window
    thank you.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
    thanks
    mrutyun^

  • How to get Parent nodes and corresponding child nodes in BI Hierarchy

    Hi all,
    I have a standard function module 'RSNDI_SHIE_STRUCTURE_GET3'  to get child node if i pass parent node. But I need child nodes along with the provided parent node as I use this in a loop in BI.
    Thanks

    Could any one help me in this regards .
    Thanks in advance
    Regards,
    sri

  • How can I increase resolution when burning a dvd with elements 11 premiere

    How can I increase resolution when burning a dvd with elements 11 premiere
    I am trying to generate a slide show DVD....the pictures on the TV are poor quality

    Welcome to the forum.
    As Steve points out, a DVD-Video is set in resolution, to 720 x 480 (for NTSC), in either Standard 4:3, or Widescreen 16:9. That is as good as it can get, and is not a limitation of PrE, but of the DVD-Video specs, which were written a long time ago.
    The best that one can get is to play that DVD-Video on an up-rezzing DVD player, or most BD players, that also have up-rezzing, to an HD TV monitor. Those players have dedicated chips, JUST for up-rezzing.
    Then, and per Peru Bob's questions, I attain the ultimate Still Images to DVD-Video, by doing my Scaling in Photoshop, and using either the Bicubic Sharper, or Bicubic Smoother Scaling algorithms. I Scale my Camera RAW Images to match my Project's Frame Size, and Crop, where necessary to match the Aspect Ratio of my Images, to the Aspect Ratio of the Project, i.e. if going to a 16:9 Widescreen, I will lose some pixels top and bottom, but I account for that, per my asesthetic.
    Note: some PrE users insist that the Scaling in PrE is as good as Photoshop's, but my critical eyes point to using PS. Also, I do NOT use JPEG, which is a lossy, compressed format, and will Save_As PSD from Photoshop, for ultimate quality.
    Good luck, and please let us know the pixel x pixel dimensions of your Images.
    Hunt

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • How to remove parent nodes in an output XML?

    Hi! I'm having a problem as to removing a parent node in an xml output. The scenario goes like this, I have a source IDOC and two target External Definitions. When I have declared the two External Definitions, XI inserted a structure in the output xml as shown below:
    Messages        (1..1)
              Message1       (1..1)
                 Message1Header    (0..1)
              Message2       (1..1)
                 Message2Header    (0..1)
    Is there anyway to have an output that looks just like this (without their respective parent nodes)?
    a.) Message1Header  (0..1)
    or
    b.) Message2Header  (0..1)
    Please help
    Regards,
    Mark

    Since you have two External Definitions and you are using both in on mapping hence your scenario becomes 1:N mapping scenario and this is the reason you are getting the additional nodes in your mapping.
    so if your requirement is 1:N then whatever you are getting is correct, you can refer the below mentioned blog for help on this, But if you don't want the additonal nodes then you have to create TWO different mappings and used the external definitions seprately in each mapping.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    I hope it helps...

  • Filteredtreemodel, how to hide parent nodes if no children

    hi. i have surfed and read a lot of posts and topics here regarding filteredtreemodel. some i found hard to understand so i chose to use NiceGuy1's code from long ago since it's the easiest to understand.
    package test;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import java.util.ArrayList;
    import java.util.Enumeration;
    public class FilteredTreeModel extends DefaultTreeModel {
        // this hashmap gets the list of pdf files and the filter status
        private String filterText;
        private DefaultMutableTreeNode orig_root;
        public FilteredTreeModel(DefaultMutableTreeNode root) {
            super(root);
            orig_root = root;
        public void setFilterText(String s) {
            this.filterText = s;
            reload();
        public String getFilterText() {
            return this.filterText;
        @Override
        public Object getChild(Object parent, int index) {
            return getFilteredChildren(parent).get(index);
        @Override
        public int getChildCount(Object parent) {
            return getFilteredChildCount(parent);
        @Override
        public int getIndexOfChild(Object parent, Object child) {
            return getFilteredChildren(parent).indexOf(child);
        private int getFilteredChildCount(Object parent) {
            return getFilteredChildren(parent).size();
        private ArrayList<TreeNode> getFilteredChildren(Object parent) {
            ArrayList<TreeNode> filteredChildren = new ArrayList<TreeNode>();
            DefaultMutableTreeNode parentNode = null;
            parentNode = (DefaultMutableTreeNode)parent;
            for (Enumeration e=parentNode.children(); e.hasMoreElements();) {
                DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode) e.nextElement();
                DefaultMutableTreeNode dummy = null;
                  if (nextNode.children().hasMoreElements()) {
                      filteredChildren.add(nextNode);
                } else {
                    // if node is leaf node
                    if (filterText == null ) {
                        // add right away if no filter
                        filteredChildren.add(nextNode);
                    } else {
                        // if filter matches this leaf node, add it. if not, how to check if
                        // parent nodes have empty children and remove it.
            return filteredChildren;
    }i havent had luck the whole day trying to make this work. it seemed that once the filteredChildren.add() is called, it gets rendered to the treecellrenreder right away so if i wnat to remove the parents (in case it has no children based on the filter),the parent nodes will stay put in the jtree. any workaround? or ideas? i dont want to use a different defaulttreemodel for this. i want to avoid that because i have lots of nodes in my jtree.

    Looks like you need this:
    for (Enumeration e=parentNode.getFilteredChildren(); e.hasMoreElements();) Edit: okay, that was just a quick guess. Actually you're going to get into trouble if you try to recursively suppress nodes with no children. First you suppress all the leaf nodes (because they naturally don't have any children). Then you suppress all of their parents, because now they don't have any unsuppressed children. Then you suppress all of the parents' parents, because now they don't have any unsuppressed children... and so on until you only have the root left. So you need to refine that requirement.
    But I get what you're saying. I had to do a similar thing, only I didn't use a FilteredTreeModel, I just built the TreeModel based on a selection from another tree. It's ridiculously hard to do when you don't get the nodes in order from the database, too, but that's a different problem.

  • How to make parent node JCheckbox

    How can I make the parent node in
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm
    to a checkbox.
    Any help is greatly appreciated.
    Regards,
    Anees

    See my example here: [http://forums.sun.com/thread.jspa?threadID=5180008&messageID=9699576]
    If you have a specific problem post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • How to hide multiple XsltListViewWebPart when they are empty using OOTB or script?

    Hello,
    I have a SharePoint 2013 page that displays a few XsltListViewWebParts i.e.(Lists).
    All the lists contains rows of data when we open: 
    http://Server/Pages/MyPage.aspx
    But, We have some customized filters and views in place, and when we open e.g.: http://Server/Pages/MyPage.aspx?FilterField1=LinkTitle&FilterValue1=250
    The page opens correctly, But all the XsltListViewWebParts which do not meet the filtering will still be shown but as empty web parts - How to hide those?
    In other words, In my SharePoint 2013, How to fully hide multiple XsltListViewWebParts on a page when they are empty ?
    I have already tried:
    http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/
    http://sharepoint.stackexchange.com/questions/340/setting-displaynone-for-empty-web-part-zones
    https://social.technet.microsoft.com/Forums/en-US/f26383dd-b53d-4ffa-8075-0ef8e46ab0b1/hide-list-view-web-part-when-list-is-empty?forum=sharepointgenerallegacy
    Nothing works - Am I doing it incorrectly or am I missing anything ?
    I would be thankful for your suggestions !

    Hi,
    The problem was due to JQuery is not loaded in the page.
    Please follow the steps given in the URL :http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/ 
    Instead of referring the JQuery link provided in that page, use the Google CDN (<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> )Link in script editor before calling 
    $(document).ready(function(){
         setTimeout(waitForSPReady, 100);
    Thanks.
    A'Kumar

  • How to backup a rootenv when there are subfolders with DBs?

    Hello,
    Is there any way to hotbackup a rootenv with databases when there are subfolders with databases?
    When I run a hotbackup (with db_hotbackup) on my rootenv, it only backups databases from the root of my rootenv. But, in that root directory, I have some subdirectories with databases too.
    Thank you.

    Hi,
    If you have root directory as : */your/root/dir*
    and within that you have folders like : */your/root/dir/sub1* and */your/root/dir/sub2* and would want to backup the db files in */your/backup/dir* then, you should invoke db_hotbackup as
    db_hotbackup -cv -b /your/backup/dir -h /your/root/dir -d ../dir/sub1 -d ../dir/sub2
    Regards,
    Debsubhra Roy

Maybe you are looking for

  • Why can't I download Free iPod Touch Apps from Apps Store w/Shopping Cart?

    I have an 8GB iPod Touch (original model) with the current 2.1 software. I also have iTunes v. 8.0. The behavior I am seeing started about 3 weeks ago and continues with these updates - it was not like this when I first downloaded the 2.0 software an

  • Download specific version of iTunes 11.1.1.11

    I am trying to uninstall and reinstall iTunes. The version of iTunes installed is corrupted. Version 11.1.1.11. I can not uninstall it or upgrade it.

  • Customised metadata - search for multiple fields?

    Background: I'm logging a STACK of footage and attempting to arrange it all by a series of different keyword categories (the day the footage was shot, location, camera type, content type, key players, etc). Each category has multiple variables (ie: i

  • [svn:fx-trunk] 9943: Border style defaults

    Revision: 9943 Author:   [email protected] Date:     2009-09-02 15:20:02 -0700 (Wed, 02 Sep 2009) Log Message: Border style defaults http://bugs.adobe.com/jira/browse/SDK-22955 - Border's default value of backgroundImageResizeMode should be "scale" h

  • Sleep or dim screen?

    My iBook is about 3 yrs old now, and it is my only computer, which i use on and off all day, writing, internet, etc. i was wondering which is better for the life of both the whole computer and the backlight/display when i'm not using it--putting the