Skip to content

Instantly share code, notes, and snippets.

View mbtools's full-sized avatar
📦
Get things rolling for ABAPConf 2024

Marc Bernard mbtools

📦
Get things rolling for ABAPConf 2024
View GitHub Profile
@mbtools
mbtools / ZBC_SENDGRID_SETUP
Created December 29, 2021 22:39
Adjust the setup of the SMTP node for SendGrid
************************************************************************
* ZBC_SENDGRID_SETUP
*
* Helper: Adjust the setup of the SMTP node for SendGrid
*
* (c) Marc Bernard Tools 2021
************************************************************************
REPORT zbc_sendgrid_setup.
@mbtools
mbtools / zcl_abapgit_object_nspc.abap
Created June 27, 2022 18:53
Enhanced version for serializing namespaces with software component
CLASS zcl_abapgit_object_nspc DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
METHODS constructor
@mbtools
mbtools / PowerShell7.syn
Last active October 13, 2022 15:30
TextPad syntax definition file for PowerShell 7.2
; TextPad syntax definitions, updated for PowerShell 7.2
; See also https://skatterbrainz.wordpress.com/2017/04/27/textpad-the-other-editor/
; Marc Bernard (Oct 2022)
; Based on: PowerShell5.syn by David Stein, skatterbrainz.wordpress.com (Apr 2017)
; Based on: PowerShell3.syn by Matt Boren (Jun 2013)
; Based on: which was based on contribution for PowerShell 1 by James Booth (Dec 2009)
PERL=1
[Syntax]
@mbtools
mbtools / ztest_round.abap
Created November 1, 2022 21:08
Test ABAP round built-in
REPORT ztest_round.
DATA p TYPE p LENGTH 10 DECIMALS 2.
DATA r TYPE p LENGTH 10 DECIMALS 2.
DATA i TYPE i.
DO 6 TIMES.
CASE sy-index.
WHEN 1.
p = '123.49'.
WHEN 2.
@mbtools
mbtools / zabapgit_repo_labels.abap
Created November 4, 2022 15:42
Tool for mass maintenance of abapGit repository labels
REPORT zabapgit_repo_labels.
********************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2022 abapGit Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@mbtools
mbtools / zvsi_test.abap
Created December 5, 2022 14:08
Test of the ABAP Virus Scan Interface (EICAR.EXE)
*----------------------------------------------------------------------*
* Test of the ABAP Virus Scan Interface *
*----------------------------------------------------------------------*
REPORT zvsi_test.
TYPE-POOLS:
abap.
DATA:
gf_rc TYPE i,
@mbtools
mbtools / zcl_abapgit_syntax_po.clas.abap
Created April 5, 2023 11:08
PO Syntax Highlighter
CLASS zcl_abapgit_syntax_po DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_syntax_highlighter
CREATE PUBLIC.
PUBLIC SECTION.
CONSTANTS:
BEGIN OF c_css,
keyword TYPE string VALUE 'keyword',
@mbtools
mbtools / zabapgit_adjust_code.abap
Created April 20, 2023 15:40
Adjust method implementations for abapGit serializer classes
*&---------------------------------------------------------------------*
*& Report ZABAPGIT_ADJUST_CODE
*&---------------------------------------------------------------------*
*& Adjust method implementations for abapGit serializer classes
*&---------------------------------------------------------------------*
REPORT zabapgit_adjust_code.
PARAMETERS p_test AS CHECKBOX DEFAULT 'X'.
CLASS lcl_code DEFINITION.
@mbtools
mbtools / z_all_abap.abap
Last active June 4, 2023 17:07
List of all ABAP statements from https://github.com/abaplint/abaplint/tree/main/packages/core/test/abap/statements (pretty-printed and identifiers changed so they don't match any keywords)
*&---------------------------------------------------------------------*
*& Report Z_ALL_ABAP
*&---------------------------------------------------------------------*
*& All ABAP statements from
*& https://github.com/abaplint/abaplint/tree/main/packages/core/test/abap/statements
*&---------------------------------------------------------------------*
REPORT z_all_abap.
ADD 2 TO lv_foo.
@mbtools
mbtools / zabapgit_background_mode.abap
Created August 10, 2023 15:38
Run background logic for selected abapGit repositories
REPORT zabapgit_background_mode.
DATA lv_repo TYPE c LENGTH 60.
SELECT-OPTIONS so_repo FOR lv_repo OBLIGATORY.
INITIALIZATION.
%_so_repo_%_app_%-text = 'abapGit Repositories'.
FORM run.