2012 Aug 04 7:27 AM
Hi All,
in my report program i am using control break events at new , at end of , i am using these two events
i wrote like below.
first 3 are the same values belongs to custno from 4th to 6th again same values
when we debugg this, first time control should enter into "at new" event but it should not enter into "at end of " event ... i hope it is the correct process.
but in my program when i am debugging this, the control is enter and execute all the event ...
any one please give me suggestion..
loop at internal table to workarea
pass this work area to another work area (because our custno field possition is last position in the structure)
at new custno
wa_tot-oid = wa_evt-oid.
endat.
count = count + 1.
amount = amount + wa_coll-wrbtr.
at end of custno
wa_tot-tot_contracts = count.
wa_tot-tot_amount = tot_amount.
clear : count, amount.
endat.
endloop.
Hi All,
in my report program i am using control break events at new , at end of , i am using these two events
i wrote like below.
first 3 are the same values belongs to custno from 4th to 6th again same values
when we debugg this, first time control should enter into "at new" event but it should not enter into "at end of " event ... i hope it is the correct process.
but in my program when i am debugging this, the control is enter and execute all the event ...
any one please give me suggestion..
loop at internal table to workarea
pass this work area to another work area (because our custno field possition is last position in the structure)
at new custno
wa_tot-oid = wa_evt-oid.
endat.
count = count + 1.
amount = amount + wa_coll-wrbtr.
at end of custno
wa_tot-tot_contracts = count.
wa_tot-tot_amount = tot_amount.
clear : count, amount.
endat.
endloop.
2012 Aug 04 8:18 AM
Hi,
The field CUSTNO should be in the first column, when control break events are used the fields used must be in the first position.
Regards
Bala Krishna
2012 Aug 04 8:55 AM
thank you , very much and one small problem
when i am executing this program in SE30 runtime analysis
in ABAP it is showing RED COLOUR ,
is it any problem ? is there any solution to that
2012 Aug 04 9:16 AM
Analyse which part of the code is causing that, click on the details in SE30.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |