How do you replace classic techniques in ABAP Cloud: system date and user, application log, number ranges, HTTP calls, background jobs, parallel processing?
Say your answer out loud first.
Practise another way
Each has a released class. Date and time come from CL_ABAP_CONTEXT_INFO instead of sy-datum. Application logs use the CL_BALI classes. Number ranges use CL_NUMBERRANGE_RUNTIME. Outbound HTTP uses CL_WEB_HTTP_CLIENT_MANAGER with a destination from CL_HTTP_DESTINATION_PROVIDER.
Background jobs become application jobs with IF_APJ_RT_RUN, and asynchronous work can use the background processing framework. Parallel processing uses CL_ABAP_PARALLEL instead of STARTING NEW TASK.
The pattern: the classic function module, report or system field is not released, so SAP provides a released class. Names below come from SAP's abap-cheat-sheets (Released ABAP Classes), read on 2026-11-21. Always confirm in ADT's API State for your release, because availability differs by release.
| Classic technique | Released replacement |
|---|---|
sy-datum, sy-uzeit |
cl_abap_context_info=>get_system_date( ) and get_system_time( ) |
| User details | sy-uname still works; alias via cl_abap_context_info=>get_user_alias( ) |
Application log (BAL_* function modules) |
cl_bali_header_setter, cl_bali_log, cl_bali_log_db (plus free-text and exception setters) |
NUMBER_GET_NEXT |
cl_numberrange_runtime=>number_get; objects and intervals via cl_numberrange_objects and cl_numberrange_intervals |
cl_http_client |
cl_web_http_client_manager with a destination from cl_http_destination_provider (communication arrangement or URL) |
SM36 / JOB_OPEN |
Application jobs: class implements if_apj_rt_run; catalog entry and template via cl_apj_dt_create_content; scheduling via cl_apj_rt_api |
| Update or async work | bgPF: cl_bgmc_process_factory=>get_default( )->create( ) with if_bgmc_op_single (RAP-aware) or if_bgmc_op_single_tx_uncontr |
CALL FUNCTION ... STARTING NEW TASK |
cl_abap_parallel with if_abap_parallel |
| GUID generation | cl_system_uuid |
DATA(today) = cl_abap_context_info=>get_system_date( ).
TRY.
cl_numberrange_runtime=>number_get(
EXPORTING nr_range_nr = '01'
object = 'ZORDER_NR'
IMPORTING number = DATA(next_no) ).
CATCH cx_nr_object_not_found cx_number_ranges INTO DATA(nr_err).
"handle: object missing or interval exhausted
ENDTRY.
Practical points
- Outbound HTTP needs a communication arrangement (scenario, system, user), not a hard-coded URL;
create_by_urlis for tests or public services only. - In RAP, long-running work belongs in bgPF or application jobs, not in
COMMIT WORKcalls inside handlers. - The ATC check Usage of Released APIs names the successor when you try the old call.
Applies to: ABAP environment, Public Edition, and S/4HANA 2022 and later with ABAP for Cloud Development.
Gives the exact released class for each technique, mentions communication arrangements and application jobs, and says to confirm API State per release.
Answers 'use released APIs instead' without naming any, or says sy-datum still works.
Naming a function module replacement from memory. Function modules like BAL_LOG_CREATE or NUMBER_GET_NEXT are not usable in ABAP Cloud, so a classic-ABAP answer shows you have not worked in the language version.
- Why must an application job class implement IF_APJ_RT_RUN?
- How does bgPF behave in a RAP save sequence?
- How do you get the user's time zone instead of the system time?
- What replaces authorization checks on classic objects in ABAP Cloud?
4 official pages. Confidence: medium. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.