snippets

Custom input helps

What to do when there is no user friendly standard value help available for a given data element? Find out how to enable end-users to easily make a selection with a custom implementation.

SAP Gateway: $expand

In OData, $expand allows providing multiple entities and/or entity sets as a response to a single service call. Although the SAP Gateway framework can handle expands out of the box, implementing custom logic is recommended for performance reasons.

Local ABAP exception classes

It is generally best practice to create global exception classes. That said, a handy but not so well-known option is to define a local exception class inside a global class. These allow internal exceptions to be handled without the need for another global DDIC object.

Easily use ABAP range tables

Use ABAP 7.40 syntax to straightforwardly fill ranges from internal tables or directly during data selection.

Ternary operator in ABAP

There is no ternary operator in ABAP, but the ABAP 7.40 syntax can get pretty close.

Leading and trailing zeros in ABAP

Everything you need to know about handling leading and trailing zeros in ABAP.

SALV: ALV List Quickstart

Class `CL_SALV_TABLE` remains widely used for displaying simple, two-dimensional ALV grids. Get your ALV List up and running in no time using this collection of snippets covering all basic requirements.