View exception.abap
" Conditions: | |
" - Longtext support when using MESSAGE lx_ex TYPE 'S' DISPLAY LIKE 'E' | |
" - Where-used-list support where possible for messages in message classes | |
" 1. You have a message and want to raise an exception | |
MESSAGE e053(sv) INTO DATA(lv_dummy) ##NEEDED. | |
RAISE EXCEPTION TYPE /abc/cx_bc_no_authority | |
EXPORTING | |
is_msg = /abc/cl_bc_exc_tools=>get_msg_from_sy( ). |
View zcl_abapgit_user_exit.clas.abap
CLASS zcl_abapgit_user_exit DEFINITION | |
PUBLIC | |
FINAL | |
CREATE PUBLIC. | |
PUBLIC SECTION. | |
INTERFACES: | |
zif_abapgit_exit. | |
PROTECTED SECTION. | |
PRIVATE SECTION. |
View atc.abap
REPORT z_fl_atc_mail_test. | |
PARAMETERS: p_did TYPE satc_d_id. | |
CLASS lcl_main DEFINITION. | |
PUBLIC SECTION. | |
METHODS: | |
run. | |
PROTECTED SECTION. | |
PRIVATE SECTION. |
View adt-templates.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="ABAP" deleted="false" description="Exception class" enabled="true" name="exc">"! ${descr} | |
CLASS ${enclosing_object} DEFINITION | |
PUBLIC | |
INHERITING FROM ${base} | |
FINAL | |
CREATE PUBLIC. | |
PUBLIC SECTION. | |
CONSTANTS: | |
BEGIN OF gc_no_arguments, |