Skip to content

Instantly share code, notes, and snippets.

View pokrakam's full-sized avatar

Mike Pokraka pokrakam

View GitHub Profile
@pokrakam
pokrakam / zmessageperf.prog.abap
Created April 12, 2022 20:57
Exception vs Message performance
report zmessageperf.
class lcx_error definition inheriting from cx_static_check.
public section.
interfaces if_t100_dyn_msg.
endclass.
class ltc_exception_perf definition final for testing
@pokrakam
pokrakam / MinimalEclipseOnMacOS.md
Last active July 11, 2023 09:28
Installing minimal Eclipse with ADT on MacOS
@pokrakam
pokrakam / UpdateTable
Last active December 13, 2021 14:08
Update table without GUI View or Fiori
----------
Table
----------
@EndUserText.label : 'Test'
@AbapCatalog.enhancementCategory : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #LIMITED
define table ztest {
key client : abap.clnt not null;
@pokrakam
pokrakam / znarcissistic_numbers.abap
Created April 5, 2021 19:27
Answer to coding puzzle on Narcissistic Numbers
REPORT znarcissistic_numbers.
" https://blogs.sap.com/2021/03/20/another-abap-puzzle-narcissistic-numbers/
PARAMETERS p_digits TYPE i DEFAULT 5.
CLASS lcl_narcissist DEFINITION CREATE PUBLIC.
PUBLIC SECTION.
METHODS run IMPORTING i_length TYPE i.
@pokrakam
pokrakam / zcallurl.abap
Created November 26, 2020 15:21
Simple ABAP to call a URL
REPORT zcallurl.
PARAMETERS url TYPE string LOWER CASE.
cl_http_client=>create( EXPORTING host = url
IMPORTING client = DATA(client)
EXCEPTIONS argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4 ).