From 6e77a42de094d8baa5d7d9e4997f553070901721 Mon Sep 17 00:00:00 2001 From: danrega <16720986+danrega@users.noreply.github.com> Date: Mon, 20 Feb 2023 14:46:07 +0100 Subject: [PATCH] Add ABAP unit test cheat sheet --- src/zdemo_abap_get_data_itf.intf.abap | 31 +++++++++++++++++++++++++++ src/zdemo_abap_get_data_itf.intf.xml | 15 +++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 src/zdemo_abap_get_data_itf.intf.abap create mode 100644 src/zdemo_abap_get_data_itf.intf.xml diff --git a/src/zdemo_abap_get_data_itf.intf.abap b/src/zdemo_abap_get_data_itf.intf.abap new file mode 100644 index 0000000..fcf914f --- /dev/null +++ b/src/zdemo_abap_get_data_itf.intf.abap @@ -0,0 +1,31 @@ +*********************************************************************** +* ---------------------------- PURPOSE -------------------------------- +* Interface to support the ABAP cheat sheet: A Glimpse on ABAP Unit Tests +* +* ----------------------------- NOTE ---------------------------------- +* The code presented in this class is only meant for supporting the ABAP +* cheat sheets. It is not intended for direct use in a +* production system environment. The code examples in the ABAP cheat +* sheets are primarily intended to provide a better explanation and +* visualization of the syntax and semantics of ABAP statements and not to +* solve concrete programming tasks. For production application programs, +* a dedicated solution should therefore always be worked out for each +* individual case. There is no guarantee for either the correctness or +* the completeness of the code. In addition, there is no legal +* responsibility or liability for possible errors or their consequences +* which occur through the use of the example code. +* +*********************************************************************** +"!

Interface for ABAP cheat sheet example

+"! The interface supports the ABAP cheat sheet: A Glimpse on ABAP Unit Tests. +INTERFACE zdemo_abap_get_data_itf + PUBLIC. + + TYPES: carr_tab TYPE TABLE OF zdemo_abap_fli WITH EMPTY KEY, + occ_rate TYPE p LENGTH 4 DECIMALS 2. + + METHODS: select_flight_data IMPORTING carrier TYPE zdemo_abap_fli-carrid + RETURNING VALUE(flight_data) TYPE carr_tab, + say_hello RETURNING VALUE(hi) TYPE string. + +ENDINTERFACE. diff --git a/src/zdemo_abap_get_data_itf.intf.xml b/src/zdemo_abap_get_data_itf.intf.xml new file mode 100644 index 0000000..3e8a07b --- /dev/null +++ b/src/zdemo_abap_get_data_itf.intf.xml @@ -0,0 +1,15 @@ + + + + + + ZDEMO_ABAP_GET_DATA_ITF + E + Interface for ABAP cheat sheet example + 2 + 1 + 5 + + + +