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

control break statments

Former Member
0 Likes
733

Hi all

in control break statments AT NEW COMMAND will provide astrik and blank in the out put in right side of the column.why!

in the case of on change of it will not give astrik and blank on the right side of the column in the out put . why!

regards

Nagendra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
714

Control Break Statements:

1. At First

2. At last

3. At New

4. At End of

5. on change.

*at first, at last, at new, at end of are also called as at

events and these will be used in loop.....endloop of an

internal table.

*'on change' can be used in out side of the loop...endloop.

1.At first event will be executed only for the first

iteration of the loop...endloop. This event is used for

writing headings.

2. At last event will be triggered for the last iteration

of the loop...endloop.

3. At new event will be triggered for every new value

enters in to the field.

4. event at end of will be triggered if the current running

value is the last value.

5. on change will be triggered for any change in the

specified field value.

5 REPLIES 5
Read only

Former Member
0 Likes
714

Hi,

At new - we can use only in control break

on change of - we can use any loop like do.

That is the speciality of on change of

Regards,

Nandha

Reward if it helps

Read only

Former Member
0 Likes
714

Hi Nagendra,

It is because of your structure. If you are keeping control AT NEW itab-<field1>

Then it has to be first field in the defined structure of ITAB.

Reward if useful.

Read only

Former Member
0 Likes
714

Hi,

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.

Thanks,

Anitha

Read only

Former Member
0 Likes
714

hi,

a) When AT NEW statement triggers, the alpha-numeric fields have ******* in their value,

b) where as in case of ON CHANGE control break statement the alpha-numeric fields have their corresponding value of that particular record.

regards,

Suresh.A

Read only

Former Member
0 Likes
715

Control Break Statements:

1. At First

2. At last

3. At New

4. At End of

5. on change.

*at first, at last, at new, at end of are also called as at

events and these will be used in loop.....endloop of an

internal table.

*'on change' can be used in out side of the loop...endloop.

1.At first event will be executed only for the first

iteration of the loop...endloop. This event is used for

writing headings.

2. At last event will be triggered for the last iteration

of the loop...endloop.

3. At new event will be triggered for every new value

enters in to the field.

4. event at end of will be triggered if the current running

value is the last value.

5. on change will be triggered for any change in the

specified field value.