ABAP help with deeply nested items.

Gurus,
We have a requirement whence we need to sum up the key figures from one transformation layer going to the next.  The challenge is, its a deeply nested structure. something like :
SalesOrderItem     Higher Level Item         KeyFig  
1000                     0000                          30
1010                     1000                          20
1011                     1010                          10
1015                     1010                          20
1020                     1010                          20
1021                     1020                          10
1022                     1020                          50
1023                     1020                          10
1025                     1020                          20
So now, in the next layer we will be rolling it upto the 1000 , 2000...levels- in this example 1000 level only.
The round figure items(1010, 1020.....) are the individual kmats and the summation happens like this:
1. Items 1021, 1022, 1023 and 1025 roll up to 1020; sum = 90.
2. Now when 1020 rolls up to its higher level item which is 1010, the sum that rolls up from 1020 should be 90 + 20.
3. Ultimately when all items roll up to item 1000, the total sum will be 190.
Can someone please help me write this logic in ABAP?
Thanks!
Chris

You can try this, but please put it through more examples. Assumption is that your highest level item will have higher item number as 0000 and that they are always sorted in the way it is given in your example.
DATA: BEGIN OF itab OCCURS 0,
        posnr(6) TYPE n,
        uposn(6) TYPE n,
        qty TYPE p DECIMALS 2.
DATA: END OF itab.
DATA: itab2 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: itab3 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: v_total TYPE p DECIMALS 2,
      v_posnr(6) TYPE n.
itab-posnr = '1000'.
itab-uposn = '0000'.
itab-qty   = 30.
APPEND itab.
itab-posnr = '1010'.
itab-uposn = '1000'.
itab-qty   = 20.
APPEND itab.
itab-posnr = '1011'.
itab-uposn = '1010'.
itab-qty   = 10.
APPEND itab.
itab-posnr = '1015'.
itab-uposn = '1010'.
itab-qty   = 20.
APPEND itab.
itab-posnr = '1020'.
itab-uposn = '1010'.
itab-qty   = 20.
APPEND itab.
itab-posnr = '1021'.
itab-uposn = '1020'.
itab-qty   = 10.
APPEND itab.
itab-posnr = '1022'.
itab-uposn = '1020'.
itab-qty   = 50.
APPEND itab.
itab-posnr = '1023'.
itab-uposn = '1020'.
itab-qty   = 10.
APPEND itab.
itab-posnr = '1025'.
itab-uposn = '1020'.
itab-qty   = 20.
APPEND itab.
itab2[] = itab[].
*-- assumption is that if UPOSN = 000000, then there is no higher level
*   item
LOOP AT itab WHERE uposn = '000000'.
  itab3-posnr = v_posnr = itab-posnr.
  DO.
    LOOP AT itab2 WHERE uposn = v_posnr.
      v_total = v_total + itab2-qty.
    ENDLOOP.
    IF sy-subrc <> 0.
      EXIT.
    ELSE.
      v_posnr = itab2-posnr.
    ENDIF.
*-- This item does not appear as a higher level item
  ENDDO.
  v_total = v_total + itab-qty.
  itab3-qty = v_total.
  APPEND itab3.
  CLEAR itab3.
ENDLOOP.
LOOP AT itab3.
  WRITE:/ itab3-posnr,
          itab3-qty.
ENDLOOP.

Similar Messages

  • Help with Scrolling Text Item.

    Hi , need help with making a text item scrollable.
    i.e. A field is 30 characters and i can only display 10
    characters, now what I would like is a scroll bar under the text
    item.
    Is this possible. I am using Forms 5.
    Thanx for any help.
    Pankaj Patel.
    null

    Petr Valouch (guest) wrote:
    : Pankaj Patel (guest) wrote:
    : : Hi , need help with making a text item scrollable.
    : : i.e. A field is 30 characters and i can only display 10
    : : characters, now what I would like is a scroll bar under the
    : text
    : : item.
    : : Is this possible. I am using Forms 5.
    : : Thanx for any help.
    : : Pankaj Patel.
    : Hi
    : You need that scrollbar under the item? You can set length
    of
    : text item and its size independently, so you can have text
    item
    : char(30) with size of 10 characters.
    An alternative is to declare the item as a multi-line text item
    with wrap set on. This would give you a vertical scroll bar on
    the item.
    Another option is to programmaticaly pop up an Editor, each time
    focus is moved to the item, or to actually change the width of
    the item when focus moves to it (and shrink it back when focus
    moves away.
    Simon Hedges
    Gloucester
    UK
    null

  • Help with corrupted nested sequences.

    First off, let me say that next project I'm going with Avid. 
    I have been using nested sequences as sparingly as possible on a long, complicated project, but the few that I have are prone to getting "corrupted" (this is the technical  term that Kevin Monahan from Adobe has used to describe what's happening).  So it's been recommended that I replace the corrupted sequence.  Sure I can just copy the material in the corrupted sequence and place it in a new sequence, but how can I do this without loosing my HOURS of edits with this nested sequence in my main timeline?
    Thanks,
    Steve Keller

    Have you got a backup of your original photos?  If so then you can
    recreate the catalogue very easily in less than 5 minutes.  PSE always
    leaves photos in their original location.  they are not moved at all. 
    One should always backup photos, videos, documents, emails etc
    separately from applications that created them in the first place. 
    Disasters happen and we can't always protect from them except to backup
    as taught in computing 101 class.

  • Help with Multiselect List Item

    Assuming one employee can work for multiple departments, I want to display the departments employee 7844 works for preselected in a multiselect list.
    I am using the following query statement in a report region.
    select htmldb_item.select_list_from_query_xl(1, deptno ,'select DEPTNO,DNAME from scott.dept ','MULTIPLE HEIGHT=25', 'Y',null,null,null,'Department',null) a from scott.emp where empno = 7844
    The result I am seeing is a multiple multiselect lists with one department selected in each list.
    How should I modify the query to get what I want?
    Thanks
    Mina

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Help with my nested loop...

    this application allows a user to enter two int values, rows(height) and columns(length), that are used to create a box of asterisks.
    my createBox() does not work correctly, only prints first line, loops infinitely, or doesnt loop. can someone help me out please?
    import java.io.*;
    public final class AsteriskBox
    /****InstanceVariables****/
    public static int row;
    public static int col;
    /****Constructor()****/
    public AsteriskBox()
    /****Access()'s****/
    public void createBox(int x, int y)
    if((x > 0) && (y > 0))
    for(int i = x; i > 0; i--)
    for(i = y; i > 0; i--)
    System.out.print("*");
    System.out.println();
    } // createBox()
    public void getInput() throws IOException
    BufferedReader input = new BufferedReader
    (new InputStreamReader(System.in));
    System.out.print("Enter a number of rows: ");
    String inputString = input.readLine();
    row = convertStringToInteger(inputString);
    System.out.print("Enter a number of columns: ");
    inputString = input.readLine();
    col = convertStringToInteger(inputString);
    } // getInput()
    /****Helper()****/
    private int convertStringToInteger(String s)
    Integer intObject = Integer.valueOf(s);
    return intObject.intValue();
    } // convertStringToInt()
    } // AsteriskBox class
    import java.io.*;
    public class AsteriskBoxUser
    public static void main(String args[]) throws IOException
    AsteriskBox box = new AsteriskBox();
    System.out.println("This program creates a box made of asterisks with values given by you!");
    System.out.println();
    box.getInput();
    box.createBox(AsteriskBox.row, AsteriskBox.col);
    }

    You will never break out of the first loop because you are using the same index variable i for both of your nested loops. Use a different variable, say j for your inner loop.
    Incidentally, your row and col variables are mislabeled. If you use the static modifier, they are class variables, not instance variables. This could cost you points on your assignment since it would imply that you don't know the difference.

  • Help with XML Nested sets

    I'm currently making a table similar to the Product Table on
    the Spry demo. I'm having some problems because I need to link
    videos and sounds from nested XML categories to a sidebar, similar
    to the features list on the demo site. The problem is, I dont want
    the full URL to show, but something else
    I managed to get the list to show what I wanted by doing
    something like this:
    <media>
    <video>2004/videos/x.mov <name>Great Video
    </name> </video>
    </media>
    By calling spry:region="media" and then
    <ul><li><a
    href={video}>{name}</a><li></ul>
    I got a full list with the names, but the links were
    apparently lost, and all pointed to the table's url.
    I also tried doing a <div spry:region="media"
    spry:region="name"> and list the <video> and <name>
    tags separately on the XML, but that didn't work.
    I'd be very greatful if someone could help me figure out how
    to do this.
    Thank you,
    Jose

    Just looking at your post, I noticed that when you put the ibar in your shelf and add applications the icons don't like to show up you have to
    1. right click on the application in the ibar
    2. select icon program-properties-icon
    3.click on the grey box
    4.navigate to /usr/share/icons/highcoler/64x64/apps  (you can select 48x48 as well)
    The icon should show up in ibar, as well as the applcation menu. It is hit and miss though. I hope this helps.
    Edit: I think I solved the hit and miss attribute, instead of selecting the file in the middle of the window manager select it to the right. And make sure that the file shows up in the bar at the bottom of the filemanager window.
    Last edited by mich04 (2012-11-25 13:40:36)

  • Help with select list item and dynamics action

    G'Day Apex Gurus,
    I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
    I think that I should be able to do it with dynamic actions but I can not get it to work.
    I know when someone click on the label of the select list item trigger this JavaScript
    javascript:popupFieldHelp('277938589795252851','1545903379570909')
    So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
    This is what I a doing:
    I created a Dynamic option as follow:
    Name : test
    Sequence: 30
    Even: Click
    Selection type: Item(s)
    Item(s): P1_RATING <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
    Kind regards
    Carlos

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Help with copy list item workflow in SPD 2013

    Hello
    i just can't find anywhere to help me on the web with workflows, I am very new to this.
    I have 2 custom lists.
    First list, 3 columns:
    'date received' (date)
    'student name' (text field)
    'hearing' (yes/no)
    When a new item is added, I enter text for student name and the date. Then I set 'hearing' to yes or no. 
    If yes, I would like a workflow to copy the student name for to the second list.
    In the second list, I have 2 columns (so far):
    'student name' (text field)
    'student number' (text field)
    I just have no idea where to start to do this. Could someone please help?
    Thanks.
    Mel

    Hi ,
    If you mean that you don't want to create duplicate items in list2 when you edit the item in list1 mutiple time, you can try adding another "if" condition contained within your above "if" block to determin if the current
    item "student name" equals to "student name" from list2, if yes then update the that item in list2, if no, then crate a new item in list2.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Help with accessing hidden items in Apex collections using  4.0.2.00.06

    Hello experts,
    I have the following code in my on load before header process
    declare
    l_sent_rec individual_original_pkg.case_rec_typ;
    begin
    individual_original_pkg.case_header(p_sent_id=>:P1_SENT_ID,l_case_rec=>l_sent_rec);
    :P2_DISPOSITIONS                           := l_sent_rec.sent_info.disp_type_code;
    :P2_SAFETY_VALVE                           := l_sent_rec.ind_sent_info.safety_valve;
    :P2_NO_OF_COUNTS_OF_CONVICTION             := l_sent_rec.sent_info.cnts_num;
    :P2_PRIM_OFFN_CONVICTION                   := l_sent_rec.sent_info.prim_offn_code;
    if wwv_flow_collection.collection_exists(p_collection_name=>'COUNTS') then
         wwv_flow_collection.delete_collection(p_collection_name=>'COUNTS');
    end if;
    wwv_flow_collection.create_or_truncate_collection(p_collection_name=>'COUNTS');
    FOR counts_rec IN (WITH     got_c_num     AS
         SELECT     oc.conv_cnt,
              oc.stat_min_mons_num,
              oc.stat_max_mons_num,
              ocs.statute_id,
              ocs.title_code,
              ocs.section_code,
              ocs.subsection_code,
              ROW_NUMBER () OVER ( PARTITION BY  oc.conv_cnt order by ocs.statute_id )         AS c_num
         FROM      offense_convictions oc,
                 offense_conviction_statutes ocs
         WHERE     oc.sent_id     = ocs.sent_id
         AND     oc.conv_cnt     = ocs.conv_cnt
         AND     oc.sent_id     = :P1_SENT_ID
    SELECT     conv_cnt,
         stat_min_mons_num,
         stat_max_mons_num,
         "1_STATUTE_ID"          as first_statute_id,
         "1_TITLE_CODE"          as first_title_code,
         "1_SECTION_CODE"     as first_section_code,
         "1_SUBSECTION_CODE"     as first_subsection_code,
         "2_STATUTE_ID"          as second_statute_id,
         "2_TITLE_CODE"          as second_title_code,
         "2_SECTION_CODE"     as second_section_code,
         "2_SUBSECTION_CODE"     as second_subsection_code,
         "3_STATUTE_ID"          as third_statute_id,
         "3_TITLE_CODE"          as third_title_code,
         "3_SECTION_CODE"     as third_section_code,
         "3_SUBSECTION_CODE"     as third_subsection_code
    FROM     got_c_num
    PIVOT     (     MIN (statute_id)     AS statute_id
         ,     MIN (title_code)     AS title_code
         ,     MIN (section_code)     AS section_code
         ,     MIN (subsection_code)     AS subsection_code
         FOR     c_num
         IN     (     1
              ,     2
              ,     3
    ORDER BY  conv_cnt)
    LOOP
         apex_collection.add_member(
         p_collection_name=>'COUNTS',
         p_generate_md5=>'YES',
         p_c001=>counts_rec.CONV_CNT,
         p_c002=>counts_rec.STAT_MIN_MONS_NUM,
         p_c003=>counts_rec.STAT_MAX_MONS_NUM,
         p_c004=>counts_rec.first_statute_id,
         p_c005=>counts_rec.first_title_code,
         p_c006=>counts_rec.first_section_code,
         p_c007=>counts_rec.first_subsection_code,
         p_c008=>counts_rec.second_statute_id,
         p_c009=>counts_rec.second_title_code,
         p_c010=>counts_rec.second_section_code,
         p_c011=>counts_rec.second_subsection_code,
         p_c012=>counts_rec.third_statute_id,
         p_c013=>counts_rec.third_title_code,
         p_c014=>counts_rec.third_section_code,
         p_c015=>counts_rec.third_subsection_code
    END LOOP;
    end;and my report region is as follows
    SELECT    
    apex_item.checkbox(1,c001) "Select Count",
    apex_item.text(p_idx=>2,p_value=>c001,p_size=>3,p_maxlength=>3,p_attributes=>'readonly') count,
    apex_item.text( 3, c002, 3, 3),
    apex_item.text( 4, c003, 3, 3),
    apex_item.hidden(5, c004),
    apex_item.text( 6, c005, 3, 3),
    apex_item.text( 7, c006, 4, 4),
    apex_item.text( 8, c007, 4, 4),
    apex_item.checkbox(9, c004) "Select Stat1",
    apex_item.hidden(10,c008),
    apex_item.text( 11, c009, 3, 3),
    apex_item.text( 12, c010, 4, 4),
    apex_item.text(13, c011, 4, 4),
    apex_item.checkbox(14,c008) "Select Stat2",
    apex_item.hidden(15,c012),
    apex_item.text(16, c013, 3, 3),
    apex_item.text(17, c014, 4, 4),
    apex_item.text(18, c015, 4, 4),
    apex_item.checkbox(19,c012) "Select Stat3"
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'COUNTS'I have a button with on submit - before computations and validations as
    DECLARE
      l_row NUMBER := 1;
      rows_to_be_deleted varchar2(2000) :=  null;
    BEGIN
    /* Stat 1 */
      FOR i IN 1..APEX_APPLICATION.G_F05.COUNT
      LOOP
        FOR j IN l_row..APEX_APPLICATION.G_F09.COUNT
        LOOP
          IF APEX_APPLICATION.G_F05(i) = APEX_APPLICATION.G_F09(j) THEN
               rows_to_be_deleted := rows_to_be_deleted || APEX_APPLICATION.G_F05(i)|| ',' ;
            l_row := j + 1;
            EXIT;
          END IF;
        END LOOP;
      END LOOP;
    :P2_BUTTON_PRESSED := substr(rows_to_be_deleted,1,(length(rows_to_be_deleted)-1));
    END;When i click on this button i am not able to access the hidden items in g_f05 array. All of the report attributes are set to render as "standard report column". How can i retrieve the values of G_F05 array items?
    thanks.
    Seetharaman

    In your report instead of this
    SELECT
    apex_item.checkbox(1,c001) "Select Count",
    apex_item.text(p_idx=>2,p_value=>c001,p_size=>3,p_maxlength=>3,p_attributes=>'readonly') count,
    apex_item.text( 3, c002, 3, 3),
    apex_item.text( 4, c003, 3, 3),
    apex_item.hidden(5, c004),
    apex_item.text( 6, c005, 3, 3),
    apex_item.text( 7, c006, 4, 4),
    apex_item.text( 8, c007, 4, 4),
    apex_item.checkbox(9, c004) "Select Stat1",
    apex_item.hidden(10,c008),
    apex_item.text( 11, c009, 3, 3),
    apex_item.text( 12, c010, 4, 4),
    apex_item.text(13, c011, 4, 4),
    apex_item.checkbox(14,c008) "Select Stat2",
    apex_item.hidden(15,c012),
    apex_item.text(16, c013, 3, 3),
    apex_item.text(17, c014, 4, 4),
    apex_item.text(18, c015, 4, 4),
    apex_item.checkbox(19,c012) "Select Stat3"
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'COUNTS'
    do like this
    SELECT
    apex_item.checkbox(1,c001) "Select Count",
    apex_item.text(p_idx=>2,p_value=>c001,p_size=>3,p_maxlength=>3,p_attributes=>'readonly') count,
    apex_item.text( 3, c002, 3, 3),
    apex_item.text( 4, c003, 3, 3),
    apex_item.hidden(5, c004)||
    apex_item.text( 6, c005, 3, 3),
    apex_item.text( 7, c006, 4, 4),
    apex_item.text( 8, c007, 4, 4),
    apex_item.checkbox(9, c004) "Select Stat1",
    apex_item.hidden(10,c008)||
    apex_item.text( 11, c009, 3, 3),
    apex_item.text( 12, c010, 4, 4),
    apex_item.text(13, c011, 4, 4),
    apex_item.checkbox(14,c008) "Select Stat2",
    apex_item.hidden(15,c012)||
    apex_item.text(16, c013, 3, 3),
    apex_item.text(17, c014, 4, 4),
    apex_item.text(18, c015, 4, 4),
    apex_item.checkbox(19,c012) "Select Stat3"
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'COUNTS'
    and check if it works
    Thanks

  • Help with datagrid custom item renderer

    Hi ,
    I have a datagrid in which I have a column with a checkbox and a custom Checkbox header renderer and an item renderer.
    When I try to disable the grid the checkbox column does not get disabled?
    Is there any way I can disable the entire grid along with the checkbox column?
    Thanks.

    Override updateDisplayList on the renderer and set the .enabled to match
    owner.enabled.

  • Need help with session state/item refresh

    I have an application that allows users to record productivity information for our employees. There are different types of work they have to do, so the form is in header/multiple-detail form and uses collections to handle all processing. In the header portion are the fields that record the time of work. Though this is stored in the database as a single field for start of shift and single field for end of shift, in the entry it is split up into 9 fields: 3 for day, month, and year, and three more each for start hours, start minutes, AM/PM, end hours, end minutes, and AM/PM, which I then concatenate to get the dates to store. The update part works fine. When I go in to display each of these, I have to use an SQL query to retrieve only that section of the time.
    The problem I am having is that if the user pulls up several timecards to edit them, it retains these time values from the previous timecard, and due to the way the collections refresh, I can't seem to get either item session state parameter (Only when Null/Always from Source) to achieve the desired result. If I use the Only When Null option, I retain the values from the previous timecard. If I use the Always from Source, the user can't update any of the time-related input.
    Can anyone suggest a solution? I've tried a session state process that fires on entry to clear those items and ran into the same problem as using the Always From Source option. There has got to be a way to handle this, but it's got me stumped and my users are clamoring for a fix.
    Page initial load
    A. Before Header process populates job collection and other collection (not header info), which comes straight from DB table.
    B. Data displays for Header (from table) and two detail sections (from collections)
    User presses Submit to save changes
    1. On Submit Before Processing: updates job and other collections (to preserve changes in case validation fails)
    2. Validations check to make sure job codes are valid, date is valid, employee is valid, etc.
    3. On Submit After Processing: Writes changes to header from input form, writes changes to job and other from collections to appropriate DB tables
    I also have two On Submit After Processing processes to add blank lines - one for each collection. These are triggered via buttons.

    Blair:
    Does creating a 'before header' process to populate these fields make a difference ? The sql could be something like
    select TO_CHAR(TC_START_TIME,'HH') into :P1115_TIME_IN_HH from TC where TC_ID = :P1115_TC_ID;You should set the 'Source Used' back to 'Only when current value in session is null' and the 'Source Type' to 'Static Assignment(....)' and clear out the 'Source value or expression' field.
    varad

  • Premier Pro CS 5 help with a few items

    How do I select footage from the imported footage
    example – 00001 to 10000 and I want to export frames 00999 to 01999.
    How do I import an image, one frame, and zoom in to or zoom out of an area of the image non-destructively? Or would using after effects Pro CS 5.0 do this or do it better – looking for a nondestructive way or ways of doing this.
    Same as zoom ours zooms except for doing it with high pans.

    Lets revisit what you are trying to do so that we are clear
    You drag your source footage into the Source Monitor
    You set an inpoint at Frame 00999 and an outpoint at Frame 01999
    You drag that to the time line.
    You go to the first frame in the timeline and Press ALT-[
    You go to the last frame in the timeline and press ALT-]
    (these have set the WAB - (as per Bills screen grab)
    Export. ( Select Work Area Bar not Sequence) in AME.  THis exports your selection.
    Ok thanks for this shootemz
    This one I didn't do
    You drag that to the time line.
    Or these two (the Alt-[ and Alt-]
    You go to the first frame in the timeline and Press ALT-[
    You go to the last frame in the timeline and press ALT-]
    (these have set the WAB - (as per Bills screen grab)
    I did the export from Premiere not the AME -
    Export. ( Select Work Area Bar not Sequence) in AME.  THis exports your selection.
    so I need to look for the Work Area Bar and not the Sequence for export in AME.
    Haven't gotten this far yet (working on the export of images above)
    Import an image into your project
    Place (drag)  it into the timeline
    Select the clip in the timeline
    Go to the FX Window.
    Got to the scale conntrols inthe FX window.
    Change it and click the stopwatch ( this Sets a Keyframe)
    Go to another position on the clip.
    Change the scale. A keyframe will automatically set it self to reflect the change.
    You have a zoom.
    It has not destroyed your source clip.
    Message was edited by: l1o1t1r1

  • PowerBI - Help with a nested join

    Hello:
    I am relatively new to PowerBI and am trying to optimize my queries. Can you please advise on one or both questions below?
    1. I have two external data sources, both SQL Server. I created two queries - one gets all students with a lastname starting with a letter and the second gets all students living in a certain state. I want to join the results of both queries which are pulling
    from the same table. The result of my query is as below:
    let
    Source = Sql.Database("server", "database", [Query="select * from students where state = 'ca'"]),
    Merge = Table.NestedJoin(Source,{"LastName"},NameQuery,{"LastName"},"NewColumn",JoinKind.Inner)
    in
    Merge
    The net result of this according to SQL profiler is that it pulls all 20,000 records for the name query and all 50,000 records for the state query and then appears to merge them in PowerQuery. I was expecting that the merge / join would pass this query down
    to the database and do the join there instead. Perhaps I missed a step in setting up the Query.
    2. Assuming #1 is possible, what if I wanted to achieve the same behavior with OData? Although I am very familiar with the OData filter syntax, how setting up the relationship in PowerQuery and pre-generating the query seems like it would not be possible
    but that's why I am looking for answers!
    Thanks.

    Thank you for the response(s).
    Can we dive just a bit deeper? Instead of specifying a query, I added just the connection and database. In the navigator I chose a view and created a connection (only) from it. I filtered this view (in PQ) to only return columns that matched a given value.
    I then created another query using the same connection as above and did a merge against my first dataset on the rowkey column in order to get the filtered result. I did not specify any queries. The result was still two queries, one filtered one not versus
    a singular query joined at the keys.
    For OData I am gathering that you are saying that my service has to include the columns through something like the expand method. Is there any documentation you can point me to regarding query generation of OData endpoints in Power BI?

  • Help with a nested loop

    basically i need to make a diamond shape out of asterisks. There should be 11 in the middle and decreasing by 2 each line above and below it, until it reaches 1. Now i've come up with a for loop that prints what i need for the top half of the diamond(but the asterisks are not centered). How would i center them and also print the bottom half of the diamond? here's what i have so far.
    import java.io.*;
    class diamond{
         public static void main(String[] args)
         int a;
         int b;
              for(a = 1; a <=11; a++)
                   for(b = 1; b <= a; b++)
                        System.out.print('*');
              System.out.println();
    }here's what it outputs:
    Press any key to continue . . .

    public class Diamond {
        private static final int MAX = 11;
        private static final int MIN = 1;
        public static void main(String[] args) throws Exception {
            for(int a = MIN; a <= MAX; a++) {
                for(int b = MAX; b >= MIN; b--) {
                    if(b <= a) {
                        System.out.print(" *");
                    } else {
                        System.out.print(" ");
                System.out.println();
            for(int a = MIN; a <= MAX; a++) {
                for(int b = MIN; b <= MAX; b++) {
                    if(b <= a) {
                        System.out.print(" ");
                    } else {
                        System.out.print(" *");
                System.out.println();
    }And here's my output:
               *

  • Help with a nested query

    I am currently using the query:
    SELECT vs.serial_num,
    nvl(sum(events), 0) as vs.events,
    nvl(get_part_count(vs.fiscal_year, vs.vehicle_type, vs.serial_num), 0) as unique_parts,          
    nvl((get_part_count(vs.fiscal_year, vs.vehicle_type, vs.serial_num)/total_parts), 0) as percent_unique_parts,
    FROM vehicle_stats vs
    WHERE vs.vehicle_type = 'truck'
    AND vs.fiscal_year = 2000
    GROUP BY vs.serial_num
    in a stored procedure that returns a ref_cursor to a web application. As you can see I'm calling get_part_count twice, once for the raw number and again for the percentage. Is there a simple way to eliminate one of these calls and still retain the return same cursor?
    Thanks in advance

    If you have a primary key for this table, you could try this :
    SELECT vs.serial_num,
    nvl(sum(events), 0) as vs.events,
    nvl(gp.gpc, 0) as unique_parts,
    nvl(gp.gpc/total_parts), 0) as percent_unique_parts,
    FROM vehicle_stats vs,
    (SELECT pk_column, get_part_count(vs.fiscal_year, vs.vehicle_type, vs.serial_num) gpc FROM vehicle_stats) gp
    WHERE vs.vehicle_type = 'truck'
    AND vs.fiscal_year = 2000
    AND vs.pk = gp.pk
    GROUP BY vs.serial_num

Maybe you are looking for

  • How to create table of contents in c# using indesign SDK CS5?

    Hi,            Currently I am using adobe indesign SDK to implement a sample application. Here I need to write C# code to generate tabel of contents in a indesign page. Since I am new to indesign sdk, so I need help from you guys.           Please se

  • Job scheduling in TOAD

    I want to get status of job scheduled in TOAD I want info like who has changed the job ..(Alter job) whom changed it means machine name like when changed. How can I get such details.. Thanx in advance.

  • Can Business Partner number and Vendor Number, Plant Numbe be same in SRM ?

    Hi Experts, We are configuring SRM7.0 with ECC6 ( Ehp4) having Classic Scenario . I configured sandbox, and everything working fine. I have one query.  The Business Partner Number and the Vendor Code or Plant code are different. So while entewring th

  • Change sub e-mail account to primary

    Hi, I am wanting to make my sub e-mail account the primary account for my BTYahoo account. I can't see any option to do this. Any ideas? Thanks Solved! Go to Solution.

  • InDesign 5.5 Presets

    I'm trying to load color presets and when I go to the local applications folder for InDesign the presets folder has a greyed out listing of all the presets. I can't load any. What can I do? Is this a common problem with a quick fix?