Friday, May 17, 2013

ABAP Statement IF FOUND

There is an interesting addition to some of ABAP statements which is suppressing ABAP dump (Runtime Error: LOAD_PROGRAM_NOT_FOUND, Except: CX_SY_PROGRAM_NOT_FOUND) introduced. It came with NetWeaver ABAP AS release 6.40. It is used to in case when specified include program does not exist normally a syntax error will be triggered. Syntax error message can be suppressed by specifying the addition IF FOUND. Usage e.g.:

INCLUDE ZMM001 FOUND.
PERFORM function(zmm_formpool_1) IF FOUND.

In BW area IF FOUND can be used as well. E.g. If you have your business logic for BW transformation in include ABAP program. You can call include the include ABAP report with the if found addition.

1 comment:

Unknown said...

Thanks for sharing about this.