Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in control break events

Former Member
0 Likes
611

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.

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
587

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

Read only

0 Likes
587

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

Read only

0 Likes
587

Analyse which part of the code is causing that, click on the details in SE30.