Skip to Content
-4

Doubt in sap concept.

What are the disadvantages of using Control Break Statements in abap.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 25, 2019 at 12:59 AM

    Hello MAHARSHI PADAMATINTI,

    One issue that we face in control break statements is in between the AT... ENDAT, We can't process the values in the loop. The values of the work area of loop will hold value like ***** etc... In the AT... ENDAT block. Thats the reason we have to declare a variable inside AT... ENDAT block and we have to process the values of the loop outside the AT... ENDAT block .

    Another one is you have to be very careful with the choice of the field you select for control break statements. In case you select the third field in the loop then the processing of control break statements will happen for the combination of first three fields and it will not consider only the third field for processing.

    Another requisite is these statements should only be used inside a loop.

    All the above are just precautions we should follow while dealing with control break statements. I don't see them as a drawback. We have different statements to deal different scenarios. Based on Your requirements you should decide.

    Below link can give you a better understanding!

    CONTROL BREAK STATEMENTS

    Regards!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 24, 2019 at 08:49 PM

    one i can think of is, if your table isnt sorted by that specific field, AT NEW command will work in the wrong way if not handled.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.