TRY. lo_tu_cntrl->create_new_bo_tu( EXPORTING is_bo_tu_new = ls_new_tu_head IMPORTING eo_bo_tu = eo_bo_tu ). IF eo_bo_tu IS BOUND. es_tu_act_num = eo_bo_tu->get_num( ). APPEND es_tu_act_num TO lt_inkeys. ENDIF. lo_tu_cntrl->save( ). *--Commit work COMMIT WORK AND WAIT. tu_num = es_tu_act_num-tu_num. "Log something in case of success CATCH /scwm/cx_sr_error INTO lo_tu_exception. ROLLBACK WORK. *--Log something in case of error
SAP EWM Help Latest Questions
DATA: lo_splitter TYPE REF TO cl_gui_splitter_container, lo_container1 TYPE REF TO cl_gui_container, lo_container2 TYPE REF TO cl_gui_container. DATA: lo_alv1 TYPE REF TO ...
Please help with sample code to get HU data
Instance Members (Methods & Data) Belong to individual objects (instances). Created using DATA and METHODS. Each object has its own copy of the data. Accessed using the object reference: lo_obj->method_name. Useful when each object should maintain its own state. Destroyed when the object goes out of ...
Concurrency in SAP RAP (RESTful ABAP Programming Model) refers to handling situations where multiple users try to modify the same data simultaneously — a classic case of the “lost update problem.” SAP RAP provides built-in mechanisms to ensure data consistency, conflict ...
When we create a variable in the public section of a class, we can use it within the methods of that class. Let’s say we assign it an initial value. Later, if we create another variable with the same name ...
In SAP RAP (RESTful ABAP Programming Model), Early Numbering refers to assigning the key (e.g., ID or number) of a new business object at creation time, before the record is persisted to the database. Follow the below code to implement early ...
Steps to create CDS view: Open Eclipse IDE (with ADT installed). Right-click your ABAP project → New → Other → Search for “DCL/CDS” → Select “Data Definition”. Enter: Name (e.g., zempView ) Description Select a transport request Click Finish. @AbapCatalog.viewEnhancementCategory: [#NONE] @AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'view ...