what is Catch Command?

Answer Posted / shreeshaildiggi

Syntax
CATCH cx_class1 cx_class2 ... [INTO oref].



Effect
Introduction of a statement block of a TRY control
structure in which exceptions can be handled.

Syntax
TRY.
[try_block]
[CATCH cx_class1 cx_class2 ... [INTO oref].
[catch_block]]
...
[CLEANUP [INTO oref].
[cleanup_block]]
ENDTRY.



Effect
The statement TRY introduces a control structure with
several statement blocks. The first statement block
try_block is always run, whereas a branching off to exactly
one of the remaining statement blocks only occurs if a
class-based exception occurs in the try_block.

Thank's and Regards
Shreeshail Diggi
SAP Technical Consultant Infinite India

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which objects are independent transport objects?

1024


What is meant by write lock? : sap abap data dictionary

802


Explain the disadvantages of abap query tool?

788


What is the logo in sap script?

766


Workbench request are client dependent or client independent

770


Specify the types of data dictionary objects.

712


What are the page headers for secondary lists?

826


what are the critical issues u face in ur project?

2230


When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?

775


What is the difference between bdc_okcode and bdc_cursor? : abap bdc

819


What are ranges?

783


Explain the uses of the simple maintenance interface? : sap abap hr

796


What are the aggregate objects in data dictionary? : sap abap data dictionary

922


What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr

928


How will you define posting procedures?

1112