What are control break statements?




Answers were Sorted based on User's Feedback



Answer / naveen kumar guduri

I think this is not the correct answer

control break statements in abap r

1. AT NEW f.
2. AT END OF f.
3. AT FIRST.
4. AT LAST.

these r with internal tables.....

Is This Answer Correct ?    142 Yes 7 No

Answer / priya

control break statements are of 4 types:

AT FIRST
AT NEW
AT END
AT LAST

Is This Answer Correct ?    108 Yes 5 No

Answer / priya

AT FIRST---->this is used for system field heading in
ABAP program.

AT NEW------>this is used to display the fields.

AT END------>this is used for row-wise calculation i.e,
sub-total.

AT LAST----->this is used for calculation of grand total.


these are the control statements used.


hope this is right.

Is This Answer Correct ?    87 Yes 9 No




Answer / srikanth

AT First ===> Triggers in the first loop operation.
At New ===> Triggers when ever new field value changes at
first.
At End Of ===> Triggers at the end of every field value.
At Last ===> Triggers in the last loop operation

Is This Answer Correct ?    46 Yes 6 No

Answer / mani

Priya answer is absolutely right , I faced this question in
TCS Hyd.

Is This Answer Correct ?    28 Yes 5 No

Answer / pria

one more control break statement is there that is 'ON
CHANGE OF'.
can anybody tell the difference between ON CHANGE OF and AT
NEW OF ?

Is This Answer Correct ?    20 Yes 5 No

Answer / arjun manglekar

Belo are some more diff. between AT NEW and ON CHANGE OF
statement..
1) AT NEW checks all the values above it ..where as
ON CHANGE OF cheks only that particular value

2) AT NEW can be used in only LOOP..ENDLOOP where as
ON CAHNGE OF can be used in any looping ...e.g
LOOP..ENDLOOP, DO..ENDDO, WHILE..ENDWHILE etc.

Is This Answer Correct ?    11 Yes 1 No

Answer / raktim bhattacharjee

1. AT NEW.
2. AT LAST.
3. AT FIRST.
4. AT END OF.
5. ON CHANGE OF.

Is This Answer Correct ?    9 Yes 2 No

Answer / sandeep joshi

@ Priya.
According to my one experience you can only use 'AT NEW'
with only the table's fields in which you are looping
whereas 'ON CHANGE OF' can be used with any data element
inside any table's loop.

Second 'ON CHANGE OF' is obsolete but as of my experience
'AT NEW' doesn't provide the same functionality.

Is This Answer Correct ?    13 Yes 8 No

Answer / sunil

Control break statements are
1. At First
2. At Last
3. At New
4. At End of
And all these statements work only between Loop and Endloop.

Example:
F1 F2 F3
1 A B
1 B C
2 C A
3 D E

here F1, F2 and F3 are the three fields

if we apply the At New statement between these three fields
then the output would be
1 b c
2 c a
3 d e

Is This Answer Correct ?    9 Yes 5 No

Post New Answer



More SAP ABAP Interview Questions

what type of error will be seeing in the log file in SM35

1 Answers   EDS,


What is report category and for what purpose do we use report category

2 Answers  


How to transport from one client data to another in realtime, what is the transaction code for transport, where the maintain table maintenance generator in realtime,

3 Answers   KPIT,


Which is the best institute for abap in ameerpet

7 Answers  


What was the purpose of the BADI you have used?

1 Answers   IBM,


In the User exits how you can use sub screen and please tell me the steps

2 Answers   Deloitte,


ALV's?

2 Answers  


Hi, Can any one help me. i have a dropdown list box with values like LG01 SAMPLEDRAW LG02 LASER......... Like this i have multiple values .and my table name is T496N. Whenever i select ex:lgo1 sampledraw the program title should be change with SAMPLEDRAW(With out execute f8 button). Thanks and Regards

1 Answers  


how to handle double click event in table contorl....

1 Answers  


Difference between check table and value table.

3 Answers   vCentric Technologies,


1.Have you created custom table? Do you always use existing data elements and domains or create new ones? whatis the transaction code to see existing data elements and domains? 2.Performance wise inner join is better or For..ALL entries? why? 3.Where will you place data element domain and field together in an ABAP Program? 4.How will you pass the data/programs from one system to other system? 5.How will you print TOP-OF-PAGE in ALV Report?How will you make ALV Report interactive? 6.In Interactive report if i try to go to 20th list and my report has only 19 list what will be output? 7.Have you worked on Function Modules?How will you raise EXCEPTIONS in function modules? 8.Why you say Call transaction is faster than session? 9.How the business is carried out in your organisation?How did you get specs for coding ? Explain me complete step by step scenario from client deciding to switch SAP to your role of coding and after coding explain me how the object reaches back to client? Dont explain me about 5 phases like Business blueprint,realization etc? 10.To find User exit in SD module we can use development class VMOD and find out related exits. Which development class you use for MM FICO and PP Modules?

3 Answers   IBM,


Can any please explain me what r bundling technics in SAP?

2 Answers   IBM,




Categories