Terminate Program in OOPS
i am new to ABAP and ABAP with oops concept. now i have program in which i am calling one public method of local class.
This local class is placed inside other INCLUDES. i am calling it from main program.
now from this public method many private method is being called in some sequence . now i have situation, if in this some private method, data is not found then i need to stop execution of program with specific message and redirect user to selection screen so he/she can input other data.
i tried to use "STOP" but it is not supported in Object Oriented.
EXIT is also not working as it is just getting exited from that inner method.program is still executing
and i can not create global exception and message class.
so is it possible to create local custom exception class?
if yes then how?