Ansicht
Dokumentation

NUMBER_RANGE_GROUP_UPDATE - NUmber range: Create, change, delete groups with check

NUMBER_RANGE_GROUP_UPDATE - NUmber range: Create, change, delete groups with check

TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book
Preliminary comment

This function module has been released.

The documentation is being revised so that it conforms to the requirements for released function modules.

The function module can only be used for categories 2, 3 and 5 to 8.

With the function module, elements can be allocated to other intervals, allocations deleted, as well as group texts maintained. The changes are transferred via the internal tables. The changes are not written directly to the database but included in local memory first. By calling up the function module NUMBER_RANGE_UPDATE_CLOSE, the contents of the local memory are written to the database. Before the changes are copied into local memory, they are checked. In the case of an error, no change is copied, so that the local memory always has a consistent, error-free status. The errors are transferred to the calling program via an error table.

Before calling this function module, you must call the function module to lock the number range object. This is to avoid competing updates.

All exceptions are created with MESSAGE ... RAISING ... .

Example:

Object HUGO

DATA: BEGIN OF ELEM OCCURS 20 TIMES.
INCLUDE STRUCTURE INRG1.
DATA: END OF ELEM.
DATA: BEGIN OF GROUP OCCURS 20 TIMES.
INCLUDE STRUCTURE INRGT.
DATA: END OF GROUP.
DATA: BEGIN OF ERROR OCCURS 5 TIMES.
INCLUDE STRUCTURE INRER.
DATA: END OF ERROR.
DATA: ERROR_OCCURRED(1) TYPE C.

CALL FUNCTION 'NUMBER_RANGE_GROUP_UPDATE'
EXPORTING OBJECT = 'HUGO'
IMPORTING ERROR_OCCURRED = ERROR_OCCURRED
TABLES ELEMENTS = ELEM
GROUPTEXT = GROUP
ERRORS = ERROR.

IF ERROR_OCCURRED = SPACE.
* changes were copied into local memory
ELSE.
* errors occurred, table ERROR contains the errors
ENDIF.





Parameters

CALLED_FROM_AIM
CLIENT_AIM
ELEMENTS
ERRORS
ERROR_OCCURED
GROUPTEXT
LANGU
OBJECT

Exceptions

OBJECT_NOT_FOUND

Function Group

SNR1

rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 2858 Date: 20240523 Time: 142444     sap01-206 ( 52 ms )