Difference b/w  AT  NEW and AT END OF

Hi all,
Can any body exactly explain me the difference between  AT  NEW and AT END  OF with example
Regards,
N Manjrekar

Hi Nikhil,
at new - > means inside the loop, the new value.
eg :
1
1
2
3
4
5
5
loop at itab
at new matnr
write matnr.
end at.
end loop.
1
2
3
4
5
data : begin of itab occurs 0,
       f1(4) type c,
       f2(4) type c,
       end of itab.
data : begin of Jtab occurs 0,
       f1(4) type c,
       f2(4) type c,
       f3(4) type c,
       end of Jtab.
DATA : CNT TYPE I.
DATA: GV_FLAG TYPE C.
       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.
       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.
       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.
       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.
       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.
       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.
      SORT ITAB BY F1 F2.  "use this
       LOOP AT ITAB.
        CNT = CNT + 1.
        AT END OF F1.      "apply here
        GV_FLAG = 'X'.
        ENDAT.
        IF GV_FLAG = 'X'.
        JTAB-F1 = ITAB-F1.
        JTAB-F2 = ITAB-F2.
        JTAB-F3 = CNT.
        APPEND JTAB.
        CLEAR JTAB.
        CLEAR: CNT , GV_FLAG.
        ENDIF.
       ENDLOOP.
       LOOP AT JTAB.
       WRITE:/ JTAB-F1 , JTAB-F2, JTAB-F3.
       ENDLOOP.
Regards,
Priyanka.

Similar Messages

  • COLLECT with AT NEW and AT END OF....?

    Hi Experts,
    I'm trying to use the collect statement withiin a at new and at end of loop as follows.
    DATA: BEGIN OF gt_item OCCURS 0,
          order TYPE order,
          quantity TYPE quantity,
          line_no TYPE line_no,
          END OF gt_item.
      DATA: BEGIN OF lt_picks OCCURS 0,
            pick(2) TYPE c,
            count TYPE i,
            END OF lt_picks.
    SORT gt_item BY suborder_no.
      LOOP AT gt_item.
        AT NEW suborder_no.
          CLEAR lt_picks.
          CLEAR lv_count.
        ENDAT.
    **EACH ITEM
        ADD 1 TO lv_count.
        AT END OF suborder_no.
          lt_picks-pick = lv_count.
          lt_picks-count = 1.
          COLLECT lt_picks.
        ENDAT.
      ENDLOOP.
    I have essetially 23 entries in gt_item where some ordr numbers are the same - the quantity for 20 entries is 1 and for 3 entries is 3.
    Therefore i should get back lt_picks as
    Pick     |      Count
    1                  20
    3                   3
    But what im getting back is
    Pick     |      Count
    1                  7
    3                  2
    2                  3
    4                   1
    Any ideas anyone - Thanks in advance

    Hi Henri,
    Contents are as follows :
    0806107835168-1                  |1            |000001                 
    2938277835168-1                  |1            |000003                 
    2938277835168-1                  |1            |000002                 
    2938277835168-1                  |1            |000001                 
    2938277835168-2                  |1            |000001                 
    080605-122378-2                  |1            |000002                 
    080605-122378-2                  |1            |000001                 
    080605-502378-1                  |1            |000003                 
    080605-502378-1                  |1            |000002                
    080605-502378-1                  |1            |000001                 
    080605-502378-2                  |1            |000002                 
    080605-502378-2                  |1            |000001                 
    080605-502379-1                  |3            |000001                 
    080605-502379-2                  |3            |000001                 
    080605-502379-3                  |3            |000001                 
    080605-502379-4                  |1            |000001                 
    080605-502380-1                  |1            |000001                 
    080605-502381-1                  |1            |000001                 
    080605-502381-1                  |1            |000002                 
    V80905-502374-1                  |1            |000005                 
    V80905-502374-1                  |1            |000003                 
    V80905-502374-1                  |1            |000002                 
    V80905-502374-1                  |1            |000001     
    Thanks

  • At new and at end of statement

    how to use AT NEW and AT END OF
    efficiently,kindly give some solid examples.
    thanks!!

    Now say, u have internal table with mateirals....there are 100 records with 10 mterials...
    loop at it_matnr.
      at new matnr.
        <b>write code</b>
      endat.
      <b>write code.</b>
      at end of matnr.
         <b>write code</b>
      endat.
    endloop.
    Check this which is explained...
    Control Level Processing
    When you perform a sort using the SORTstatement, control levels are defined in the extract dataset. For general information about control levels, refer to Processing Internal Tables in Loops The control level hierarchy of an extract dataset corresponds to the sequence of the fields in the header field group. After sorting, you can use the ATstatement within a LOOP loop to program statement blocks that the system processes only when the control level changes.
    AT NEW f | AT END OF f.
    ENDAT.
    A control break occurs when the value of the field f or a superior field in the current record has a different value from the previous record (AT NEW) or the subsequent record (AT END). Field f must be part of the header field group.
    If the extract dataset is not sorted, the AT - ENDAT block is never executed. Furthermore, all extract records with the value HEX null in the field f are ignored when the control breaks are determined.
    The AT... ENDAT blocks in a loop are processed in the order in which they occur. This sequence should be the same as the sort sequence. This sequence must not necessarily be the sequence of the fields in the header field group, but can also be the one determined in the SORT statement.
    If you have sorted an extract dataset by the fields f1, f2, …, the processing of the control levels should be written between the other control statements in the LOOP loop as follows:
    LOOP.
      AT FIRST.... ENDAT.
        AT NEW f1....... ENDAT.
          AT NEW f2....... ENDAT.
              AT fgi..... ENDAT.
              Single record processing without control statement
          AT END OF f2.... ENDAT.
        AT END OF f1.... ENDAT.
      AT LAST..... ENDAT.
    ENDLOOP.
    You do not have to use all of the statement blocks listed here, but only the ones you require.
    REPORT demo_extract_at_new.
    DATA: t1(4) TYPE c, t2 TYPE i.
    FIELD-GROUPS: header.
    INSERT t2 t1 INTO header.
    t1 ='AABB'. t2 = 1. EXTRACT header.
    t1 ='BBCC'. t2 = 2. EXTRACT header.
    t1 ='AAAA'. t2 = 2. EXTRACT header.
    t1 ='AABB'. t2 = 1. EXTRACT header.
    t1 ='BBBB'. t2 = 2. EXTRACT header.
    t1 ='BBCC'. t2 = 2. EXTRACT header.
    t1 ='AAAA'. t2 = 1. EXTRACT header.
    t1 ='BBBB'. t2 = 1. EXTRACT header.
    t1 ='AAAA'. t2 = 3. EXTRACT header.
    t1 ='AABB'. t2 = 1. EXTRACT header.
    SORT BY t1 t2.
    LOOP.
      AT FIRST.
        WRITE 'Start of LOOP'.
        ULINE.
      ENDAT.
      AT NEW t1.
        WRITE / '   New T1:'.
      ENDAT.
      AT NEW t2.
        WRITE / '   New T2:'.
      ENDAT.
      WRITE: /14 t1, t2.
      AT END OF t2.
        WRITE / 'End of T2'.
      ENDAT.
      AT END OF t1.
        WRITE / 'End of T1'.
      ENDAT.
      AT LAST.
        ULINE.
      ENDAT.
    ENDLOOP.
    This program creates a sample extract, containing the fields of the header field group only. After the sorting process, the extract dataset has several control breaks for the control levels T1 and T2, which are indicated in the following figure:
    In the LOOP loop, the system displays the contents of the dataset and the control breaks it recognized as follows:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm

  • Difference between on change of and at end of :

    Hi Can any one explain me what is the exact difference between on change of and at end of .
    I know the basic differences.
    But i would like to know in which case we can use the above two statemetns.
    Suppose :
    Matnr   plant       sloc       movementype      date                          qty
    12       001          002           261                12/11/08                    10
    12      001          002            261               12/11/08                      11
    12      002          003            261               12/11/08                      12
    Here i need to add the quantity based up on the material,
    If the materials is maintained in different plants then it should give the total for for that particular plant.
    Please help me how to build logic to this :
    Regards,
    Vinay.

    ok sure i will give it to u.
    MATNR       PLANT          SLOC            BWART           BUDAT         QTY1           QTY2           QTY3             QTY4            QTY5
    127874     2501     3025     200906     201     0.000     0.000     0.000     0.000     0.000
                         QTY6           QTY7             QTY8             QTY9           QTY10         QTY11            QTY12
         0.000     0.000     0.000     0.000     0.000     0.364     0.000
    127874     2501     3025     200905     201     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     7.000     0.000     0.000
    127874     2501     3025     200905     202     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     1.000     0.000     0.000
    127874     2501     3025     200905     261     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     35.000     0.000     0.000
    127874     2501     3025     200905     551     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     0.000     5.000     0.000     0.000
    Here i need to write the logic for that material usage :
    This material usage will be caliculated based upon the movement types in that particular month :
    The formula is :
    AT END OF BUDAT.
         FINAL_VALUE_WA-KWMENG12 =   ( W_QTY261 -   W_QTY262 ) + ( W_QTY201 - W_QTY202 ) + ( W_QTY551 - W_QTY552 ).
          CLEAR : W_QTY261,W_QTY262,W_QTY201,W_QTY202,W_QTY551,W_QTY552.
        ENDAT.
    Here iam writting the logic as at end of the month iam caliculating.
    But what my question is if we have same material in different plant and the usage is in the same month
    then i think this query is going to fail.
    Edited by: vinay raj on Jul 6, 2009 2:02 PM
    Edited by: vinay raj on Jul 6, 2009 2:03 PM

  • In Reports what  is the difference between the AT NEW and ON CHANGE Event

    Hi,
            Could you tell the differences of AT NEW and ON CHANGE events in Repors

    Hi raghava,
    The Major Difference is :
    a) When AT NEW occurs,
    the alpha-numeric fields have ******* in their value,
    b) where as in case of ON CHANGE,
    the alpha-numeric fields have their corresponding value,
    of that particular record,
    where the Event gets fired.
    Other differences are :
    ON CHANGE OF can be used any where in the program..
    on change of differs from at new in the following respects:
    1.It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
    2.A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
    3.When used within a loop, a change in a field to the left of the control level does not trigger a control break.
    4.When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
    5.You can use else between on change of and endon.
    6.You can use it with loop at it where . . ..
    7.You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
    8.Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
    while
    AT NEW can be used only within a loop of an INTERNAL TABLE..
    5. Sample program to get the taste of it
    (just copy paste)
    6.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    bukrs like t001-bukrs,
    f1(10) type c,
    end of itab.
    itab-bukrs = '1000'.
    itab-f1 = '1111111'.
    append itab.
    itab-bukrs = '1100'.
    itab-f1 = '3333333'.
    append itab.
    itab-bukrs = '1200'.
    itab-f1 = '555555'.
    append itab.
    AT NEW
    loop at itab.
    at new bukrs.
    write :/ itab-bukrs , itab-f1.
    endat.
    endloop.
    AT ONCHANGE
    loop at itab.
    ON CHANGE OF ITAB-BUKRS.
    write :/ itab-bukrs , itab-f1.
    ENDON.
    endloop.

  • Problem with AT NEW and AT END Statements

    Hi all,
    I am facing a problem in a report with i have to change ,
    currently report is for single plant input but now multiple option is to be given , so now the material quantity and value should come along with material and plant.
    But in report lot's of AT NEW matnr and AT END of matnr has been use but now i have to add plant in it , but these statements take only one parameter.
    I tried using ON CHANGE Statement but in that SUM Can't be use.
    So please help me in sorting out this problem.
    Thanks and Regards,
    Vivek

    Hi,
      Already you are using material in AT NEW statements and you want to include Plant. by changing the structure you can continue with the same statement i.e., AT NEW matnr.
    Structure:
    Data: begin of itab  occurs 0,
               werks  type werks,
               matnr   type  matnr,
               qyt     type  matqty,
             end of itab.
    SORT itab BY  werks, matnr.
    If you use AT NEW matnr. this will be triggered  when plant value changes and also when matnr changes.
    Hope it is clear.

  • AT NEW and AT END OF

    Hey gurus
    sorted ITAB according to D and E
    A     B     C     D     E 
    1     10    A     123  10
    1     20    A     123  20
    1     30    A     456  10
    1     40    A     456  20
    LOOP AT ITAB
      AT NEW D.
    ......processing
      ENDAT.
      FILL XYZ table.
      AT END OF D
       CALL FUNCTION.
      ENDAT.
    ENDLOOP
    I want to fill the XYZ table for same value of D. But as soon as it arrives at ENDAT, it moves to next statement. And process all the four readings separately.
    please help me out with this. its urgent
    points will be rewarded.

    Hi Rohit,
    this is because the value of the B field is changing for every record.
    A B C D E
    1 10 A 123 10
    1 20 A 123 20
    1 30 A 456 10
    1 40 A 456 20
    the control break statements check the values from the left most field onwards.
    even though a single value differs from the above record the AT NEW triggers
    If u  want to fill the XYZ table for same value of D. then remove the field B from the second place and keep it on fifth palce . Now try writing AT NEW on Field D. it works
    A  C D E B
    1  A 123 10 10
    1  A 123 20 20
    1  A 456 10 30
    1  A 456 20 40
    Now write AT NEW D.
    ENDAT.
    reward if helpful
    raam

  • How to cope with differences in menu between new and old ATV?

    I am using the same iTunes library but two atv in different rooms.
    Why does the newer atv does not group movies or tv shows by "show".
    Or tv shows show in alphabetical order in the old gen one but random order in the new atv
    All from same iTunes library
    In old (hard disk type) we can browse movies and tv shows in alphabetical order .
    In the new atv depending whether it is a movie or tv show it is either reverse alphabetical order or totally random
    Seasons are grouped in old atv but show as separate shows in new atv?
    Any tips on extra tags in iTunes content that might help?
    I set episode ID season and show numbers
    Use show to group similar movies or show to indicate the tv show
    Also use genre

    I'd updated itunes first. Apple just released an 10.6.1 which address specifically the TV show sorting issue first. regardless Itunes TV show sort remains annoying. It my understanding that that the show will sort properly once in the playlist. However, I'm holding firm at 4.4.4 and wiating for 5.0 update to address the remaining issues with the ATV lastest software.
    from the Apple support page:
    About iTunes 10.6.1
    iTunes 10.6.1 provides a number of improvements, including:
    Fixes several issues that may cause iTunes to unexpectedly quit while playing videos, changing artwork size in Grid view, and syncing photos to devices.
    Addresses an issue where some iTunes interface elements are incorrectly described by VoiceOver and WindowEyes. • Fixes a problem where iTunes may become unresponsive while syncing iPod nano or iPod shuffle.
    Resolves an ordering problem while browsing TV episodes in your iTunes library on Apple TV.
    For information on the security content of this update, please visit: support.apple.com/kb/HT1222

  • Issue when "AT NEW " or "AT END OF " is executed

    Hi,
    I face an issue, when "AT NEW <>" or "AT END OF <>" line gets executed: the loop structure which fetches record from internal table, gets reset every time when either of above two statements are executed. But, whenever loop is called and the structure gets assigned with value, it seems to be fine. Only when above two statements are executed, the problem is introduced. I checked it in debug mode. Not sure on how to solve it. please help.
    Thanks,
    Gaurav.

    Hi,
    When the AT NEW or AT END command get executed in that time the structure which toy are using will make all the fields * other except the field on which you do the AT NEW or AT END.
    Hence you need to pass that structure values to the another structure before the AT NEW and AT END and use that structure in the AT NEW and AT END so ypu will get all the values inside these functions.
    loop at t_temp to lw_temp.
    lw_temp1 = lw_temp.
    AT NEW field name
    Lw_temp =lw_temp1.
    ENDAT.
    ENDLOOP

  • AT NEW and AT CHANGE

    Hi,
    what is use of AT NEW and AT CHANGE.
    When we will use it?
    Akash

    Hi Akash,,
    Using the at new and at end of Statements
    Use the at new and at end of statements to detect a change in a column from one loop pass to the next. These statements enable you to execute code at the beginning and end of a group of records.
    sort by c.
    loop at it.
    at new c.
    endat.
    at end of c.
    endat.
    endloop.
    where:
    These statements can only be used within loop at; they cannot be used within select.
    at new does not have to come before at end of. These statements can appear in any order.
    These statements can appear multiple times within the same loop. For example, you could have two at new and three at end of statements within one loop and they can appear in any order.
    These statements should not be nested inside of one another (that is, at end of should not be placed inside of at new / endat).
    There are no additions to these statements.
    Using at new
    Each time the value of c changes, the lines of code between at new and endat are executed. This block is also executed during the first loop pass or if any fields to the left of c change. Between at and endat, the numeric fields to the right of c are set to zero. The non-numeric fields are filled with asterisks (*). If there are multiple occurrences of at new, they are all executed. at end of behaves in a similar fashion.
    A control level is the component named on a control break statement; it regulates the control break. For example, in the following code snippet, f2 is a control level because it appears on the at new statement.
    loop at it.
    at new f2.
    "(some code here)
    endat.
    endloop.
    It is said that a control break is triggered if the control level changes. This means that when the contents of the control level change, the code between the at and endat is executed.
    A control break is also triggered if any of the fields prior to the control level in the structure change. Therefore, you should define the internal table structure to begin with the fields that form your control levels. You must also sort by all fields prior to and including c.
    Between at and endat, numeric fields to the right of the control level will be zero and non-numeric fields will be filled with asterisks.
    The lines of code between at end of and endat are executed:
    If the control level changes.
    If any field prior to the control level changes.
    If this is the last row of the table.
    report Ztemp.
      data: begin of it occurs 4,
                f1,
                f2,
                end of it.
      it = '1A'. append it. "Fill it with data
      it = '3A'. append it.
      it = '1B'. append it.
    it = '2B'. append it.
    sort it by f1.       
    loop at it.
         at new f1.
             write: / it-f1, it-f2.
             endat.
         endloop.
    skip.
    sort it by f2.       
    loop at it.
         at new f2.
             write: / it-f1, it-f2.
             endat.
         endloop.
    skip.
    sort it by f1 f2.    
    loop at it.
         at new f1.
             write: / it-f1.
             endat.
         at new f2.
             write: /4 it-f2.
             endat.
         endloop.
    free it.
    If Found Help Full Do Reward.
    Regards.
    Eshwar.

  • The new and old imac G5

    hey i just want to know what the difference is between the new and the old imac G5.. it seems that the new one came out after a few days i bought the old one.. but why is new one so inexpensive?
    oh and also.. i want to buy some extra ram from apple store.. and it seems the new imac ram costs way less than the old one.. i don't get it..
    please help me.. thank you

    carl,
    You wrote: "it seems the new imac ram costs way less than the old one."
    The latest iMac uses DDR2 memory and the "old" one uses DDR memory.
    The memory manufacturers have ramped up dor DDR2 memory and are starting to drop DDR memory. That is why new may be cheaper than old. Visit www.crucial.com to see this in action.
    ,dave

  • ON CHANGE and AT END

    Is there a substitute for AT END.
    See in a loop if our control level is not at the begining we can use ON CHANGE instead of AT NEW.
    Like that is there a substitue for AT END

    Hi,
    just a note:
    ON CHANGE OF is not a control-break-statement. It is uses to check the change of any variables content. It will create invisible overhead, not work in OO constructions and slow down performance. Just do not use!
    AT NEW and AT END OF rely on the table structure and need a sorted table. It is not recomenend if you do not fully understand the logic behind it.
    AT FIRST and AT LAST (same applies to AT NEW and AT END OF) will not work correctly if a WHERE clause is used . If the records to be processed by the above statements are not included in the WHERE condition, nothing is triggered.
    The best thing you can do is use the F1 help on the above statements or - even better - tell us what you want to achieve in business terms.
    Regards,
    Clemens

  • DIFFERENCE BETWEEN "AT NEW " AND "AT FIRST" , "AT END OF" AND "AT LAST" ?

    WHAT IS THE DIFFERENCE BETWEEN "AT NEW " AND "AT FIRST" , "AT END OF" AND "AT LAST" WITH REFERENCE TO CONTROL BREAK STATEMENTS ? PLEASE EXPLAIN IN DETAIL.
    BEST REGARDS
    RYAN.

    Hi
    i am sending you a simple program in which i had write program on that events
    you can understand very easily
    Using AT FIRST , AT NEW, AT THE END OF , AT LAST.
    DATA: BEGIN OF ITAB OCCURS 0,
          F1 TYPE I,
          F2(6) TYPE C,
          F3(10) TYPE N,
          F4(16) TYPE P DECIMALS  2,
          END OF ITAB.
    DATA: SUB_TOT(10) TYPE P DECIMALS 3.
    **--1
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 30.
    ITAB-F4 = '3000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    *--2
    ITAB-F1 = 2.
    ITAB-F2 = 'TWO'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 2.
    ITAB-F2 = 'TWO'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    *-- 3
    ITAB-F1 = 3.
    ITAB-F2 = 'THREE'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 3.
    ITAB-F2 = 'THREE'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    SORT ITAB BY F1.
    LOOP AT ITAB.
    AT FIRST.
    WRITE: /35 ' MATERIAL DETAILS:'.
    ULINE.
    ENDAT.
    AT NEW F1.
    WRITE: / 'DETAILS OF MATERIAL:' COLOR 7  , ITAB-F1.
    ULINE.
    ENDAT.
    WRITE: / ITAB-F1, ITAB-F2, ITAB-F3, ITAB-F4.
    SUB_TOT = SUB_TOT + ITAB-F4.
    AT END OF F1.
    ULINE.
    WRITE: / 'SUB TOTAL :'  COLOR 3 INVERSE ON, SUB_TOT COLOR 3 INVERSE ON.
    CLEAR SUB_TOT.
    ENDAT.
    AT LAST.
    SUM.
    ULINE.
    WRITE: 'SUM:', ITAB-F4.
    ULINE.
    ENDAT.
    ENDLOOP.
    Using AT FIRST , AT NEW, AT THE END OF , AT LAST.
    DATA: BEGIN OF ITAB OCCURS 0,
          F1 TYPE I,
          F2(6) TYPE C,
          F3(10) TYPE N,
          F4(16) TYPE P DECIMALS  2,
          END OF ITAB.
    DATA: SUB_TOT(10) TYPE P DECIMALS 3.
    **--1
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 1.
    ITAB-F2 = 'ONE'.
    ITAB-F3 = 30.
    ITAB-F4 = '3000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    *--2
    ITAB-F1 = 2.
    ITAB-F2 = 'TWO'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 2.
    ITAB-F2 = 'TWO'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    *-- 3
    ITAB-F1 = 3.
    ITAB-F2 = 'THREE'.
    ITAB-F3 = 10.
    ITAB-F4 = '1000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-F1 = 3.
    ITAB-F2 = 'THREE'.
    ITAB-F3 = 20.
    ITAB-F4 = '2000.00'.
    APPEND ITAB.
    CLEAR ITAB.
    SORT ITAB BY F1.
    LOOP AT ITAB.
    AT FIRST.
    WRITE: /35 ' MATERIAL DETAILS:'.
    ULINE.
    ENDAT.
    AT NEW F1.
    WRITE: / 'DETAILS OF MATERIAL:' COLOR 7  , ITAB-F1.
    ULINE.
    ENDAT.
    WRITE: / ITAB-F1, ITAB-F2, ITAB-F3, ITAB-F4.
    SUB_TOT = SUB_TOT + ITAB-F4.
    AT END OF F1.
    ULINE.
    WRITE: / 'SUB TOTAL :'  COLOR 3 INVERSE ON, SUB_TOT COLOR 3 INVERSE ON.
    CLEAR SUB_TOT.
    ENDAT.
    AT LAST.
    SUM.
    ULINE.
    WRITE: 'SUM:', ITAB-F4.
    ULINE.
    ENDAT.
    ENDLOOP.
    <b>Reward if usefull</b>

  • I did re-set my password and when I click on Install for Mavericks, I still get a box for "administrator password" and it still won't accept my new password. Is there a difference between my Apple ID and the administrator password they're asking for?

    I downloaded Mavericks and it won't install. I did re-set my password and when I click on Install for Mavericks, I still get a box for "administrator password" and it still won't accept my new password. Is there a difference between my Apple ID and the administrator password they're asking for? I never had an administrator password-- I just hit enter and have never had a problem before with previous installations. I'm on an iMac, from 2007, running Mt. Lion (version 10.8.5). I've been looking for other's posts who may be having the same problem, but haven't found any. Can anyone help?

    Ugh. The 'no password, no work' thing is a recent Apple development. I ran into it on my system and ended up having to do a clean install on a partition I fully erased.
    I suppose, if you have the ability to, go online and look up how to burn a bootable DVD image. Download the 10.8.4 image then use the Disk Utility to make a boot image of it. You'll need a dual-layer DVD or a USB drive (or memory stick at least 8GB) If you've got an optical drive, burn the disk, if you've a USB device, use that.
    Then get a pocket drive and copy your important files off the system or let Time Machine do a full backup.
    When the backup is done, insert the disk and hold down the C key until the machine boots off of the DVD. At the point you get to the start window, go to the menu and choose the Disk Utility.
    In the Disk Utility, reformat the drive. You go to the actual DRIVE (not the Macintosh HD, but the root above it that is the actual hard drive device)
    I always do this and *partition* it into several volumes, the benefit being, you can store all of your music, documents and importans stuff on that secondary storage volume you make - it will have it's own index and then the first volume is where you put the OS and it will have it's own index as well. That way, if the OS throws a wobbler and you need to reinstall, you don't lose your data.
    Depending on the size of your hard drive, it is good to give your OS partition at least 60GB and optimally 100GB, and the rest for storage.
    Name your volumes, use the little box sliders to manually size them or put that number in the size window, select for the format, Mac OS Extended (Journaled) and hit Apply and then the Disk Utility will quickly create your new partitions.
    Once finished, quit the Utility and it will return you to the OS installer. Select the volume you want to install to and it should start up and install.
    Once the installation is done, you'll get the new machine startup then you MUST put in a password for the computer. Once you're in, and to the desktop, don't bother with any Mountain Lion updates, go right to the App Store and get the Mavericks update and let it install the app to your Applicaitons folder, then do that install.
    On a side note, there MAY be a way to make a disk image from the Mavericks application and avoid the entire Mountain Lion step.. I honestly do not know, but a bit of hitting the search engines may find out if there is. I think that if you looked for "make Mavericks boot disk or boot image' you may find something.
    Good luck!

  • Difference btwn at new and on change of

    Hi all,
    can i know the difference between 'at new' and 'on change of'.

    Hi,
    at new - > means inside the loop, the new value.
    eg :
    1
    1
    2
    3
    4
    5
    5
    loop at itab
    at new matnr
    write matnr.
    end at.
    end loop.
    1
    2
    3
    4
    5
    On change of -> chnage of particular value inside the loop.
    The Major Difference is :
    a) When AT NEW occurs,
    the alpha-numeric fields have ******* in their value,
    b) where as in case of ON CHANGE,
    the alpha-numeric fields have their corresponding value,
    of that particular record,
    where the Event gets fired.
    Other differences are :
    ON CHANGE OF can be used any where in the program..
    on change of differs from at new in the following respects:
    1.It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
    2.A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
    3.When used within a loop, a change in a field to the left of the control level does not trigger a control break.
    4.When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
    5.You can use else between on change of and endon.
    6.You can use it with loop at it where . . ..
    7.You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
    8.Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
    while
    AT NEW can be used only within a loop of an INTERNAL TABLE..
    5. Sample program to get the taste of it
    (just copy paste)
    6.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    bukrs like t001-bukrs,
    f1(10) type c,
    end of itab.
    itab-bukrs = '1000'.
    itab-f1 = '1111111'.
    append itab.
    itab-bukrs = '1100'.
    itab-f1 = '3333333'.
    append itab.
    itab-bukrs = '1200'.
    itab-f1 = '555555'.
    append itab.
    AT NEW
    loop at itab.
    at new bukrs.
    write :/ itab-bukrs , itab-f1.
    endat.
    endloop.
    AT ONCHANGE
    loop at itab.
    ON CHANGE OF ITAB-BUKRS.
    write :/ itab-bukrs , itab-f1.
    ENDON.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • RFC function module - to have it as time dependent

    Hi, I have a RFC call to CRM system from R/3 side.  This call is made to get email address of users in CRM system - during the triggering of order confirmation output.  Some times the RFC queue is full and these calls also get in to the queue blockin

  • Port replicator screen resolution

    I am using HP250 laptop with 2005pr usb port replicator. Using laptop stnad alone the screen is set to maximum resolution but when I attached the 2005pr the monitor res is dropped to 1280x720 max. It worked fine originally, this has only recently sta

  • Sun Cluster failed to switchover

    Hi, I have configured two node sun cluster and was working fine all these days. Since yesterday, i am unable to failover the cluster to second node. instead, resources are stopped and started again on the first node. when i use the command "scswitch

  • Search result problem in material master (MM03)

    When I use either of the default text searches provided in MM03 (Advanced Search for Material Using Search Engine or Quick Search for Material using Search Engine), I get correct results from the search.   However, the first column in the results tab

  • Controlling spry menu inside tables

    I am trying to add a spry menu bar widget inside a table on my web page. The problem I am having is the spry menu floats and does not move with the table. Is there something I must do to nest the spry menu bar inside the table ? I tried inserting a d