The ultimate S/4HANA Technical Cheat Sheet

Context information

Replace this……with this!
SY-UNAMECL_ABAP_CONTEXT_INFO=>GET_USER_TECHNICAL_NAME( )

The class can evel read some more user details:
CL_ABAP_CONTEXT_INFO=>GET_USER_FORMATTED_NAME()
CL_ABAP_CONTEXT_INFO=>GET_USER_DESCRIPTION( )
SY-LANGUCL_ABAP_CONTEXT_INFO=>GET_USER_LANGUAGE_ABAP_FORMAT( )
SY-DATUMCL_ABAP_CONTEXT_INFO=>GET_SYSTEM_DATE( )
SY-UZEITCL_ABAP_CONTEXT_INFO=>GET_SYSTEM_TIME( )
SY-ZTONECL_ABAP_CONTEXT_INFO=>GET_USER_TIME_ZONE( )

Lock objects

Replace this……with this!
Function modules:
ENQUEUE_E_TABLE
DEQUEUE_E_TABLE
DEQUEUE_ALL
cl_abap_lock_object_factory
with the methods enqueue( ) and dequeue( )

Find out more here.

Background jobs

Replace this……with this!
sm36 – Background JobsApplication jobs

Find out more here.

Table maintenance

Replace this……with this!
sm30 – Table maintenanceBusiness Configuration

Find out more here.

Capture Call Stack

Replace this……with this!
SYSTEM_CALLSTACK
SYSTEM_CALLSTACK_OF_PROCESS
xco_cp_call_stack

Find out more here.

Change Documents

Replace this……with this!
Tables: CDHDR and CDPOS
Function module: CHANGEDOCUMENT_READ_HEADERS
CL_<change document object name>_CHDO

Find out more here.

Text output (WRITE)

Replace this……with this!
WRITE ‘text’.IF_OO_ADT_CLASSRUN 
out->write( ‘text’ ).

Find out more here.

To be extended in the future 🙂