/ABAP-Dump-Memes

Memes for ABAP Dumps

Primary LanguageJavaScriptMIT LicenseMIT

Memes for ABAP Dumps

image

Installation

  1. Install this repo using abapGit
  2. Edit include MS380F10 (Note: In recent releases, this program is protected so enhancement are not allowed)
  3. At the end of FORM INIT. add the following code
FORM init.
...
*{   INSERT
  INCLUDE zhack_st22_memes.
*}   INSERT

ENDFORM.
  1. Activate the includes ZHACK_ST22_MEMES and MS380F10.

Alternatively, you can copy the code from here directly into include MS380F10.

Usage

There are there modes:

Parameter Value Mode Source for Memes
initial Regular dump (default) n/a
1 Curated memes for selected runtime errors and exceptions See /img folder
2 Random memes "matching" the description of the error or exception Reddit search on /r/memes community

😈 Beware: Mode 2 is for the brave since you don't know what you will get! 😈

You set the mode using a parameter ZHACK_ST22_MEMES in transactions SU01 or SU3:

image

Trigger

Run some code that causes a dump in SAP GUI 😁. For example:

REPORT ztest_x.
MESSAGE 'This is a runtime error' TYPE 'X'.
* or
DATA(exc) = NEW cx_sy_ref_is_initial( ).
RAISE EXCEPTION exc.

Demos

Here are some examples of what the result will look like:

Mode 1: Runtime Error

Mode 1: Exception

Mode 2: Random Meme

Add Memes

Upload memes to the /img/ folder using <RUNTIME_ERROR>.mp4 or <EXCEPTION>.mp4 as a filename.

Note: You can use https://twdownload.com/ to download the mp4 file from a tweet.