Skip to content

Instantly share code, notes, and snippets.

@flaiker
flaiker / exception.abap
Last active Jan 4, 2021
Backport of if_t100_dyn_msg
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( ).
@flaiker
flaiker / zcl_abapgit_user_exit.clas.abap
Created Apr 14, 2019
Example implementation for custom_serialize_abap_clif
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.
@flaiker
flaiker / adt-templates.xml
Created Jan 15, 2017
Additional ADT code templates
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,