Ansicht
Dokumentation

NUMBER_RANGE_INTERVAL_UPDATE - Number range: Create, change, delete number range intervals

NUMBER_RANGE_INTERVAL_UPDATE - Number range: Create, change, delete number range intervals

Fill RESBD Structure from EBP Component Structure   CL_GUI_FRONTEND_SERVICES - Frontend Services  
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.

Intervals can be maintained with the function module. The changes are transferred via the internal table. 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 is 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 error is transferred to the calling program via an error structure. As soon as an error is found, the function module cancels processing.

If intervals overlap, which should be separate, the error table is filled with all overlapping intervals.

If an interval is deleted for categories 2, 3 and 5 to 8, the corresponding element assignments are customized. As a result, groups can be deleted implicitly.

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 IV OCCURS 20 TIMES.

INCLUDE STRUCUTRE INRIV.

DATA: END OF IV.

DATA: BEGIN OF ERROR_IV OCCURS 20 TIMES.

INCLUDE STRUCUTRE INRIV.

DATA: END OF ERROR_IV.

DATA: BEGIN OF ERROR.

INCLUDE STRUCUTRE INRER.

DATA: END OF ERROR.

DATA: ERROR_OCCURRED(1) TYPE C.

CALL FUNCTION 'NUMBER_RANGE_INTERVAL_UPDATE'

EXPORTING OBJECT = 'HUGO'

IMPORTING ERROR_OCCURRED = ERROR_OCCURRED

ERROR = ERROR

TABLES INTERVAL = IV

ERROR_IV = ERROR_IV.

IF ERROR_OCCURRED = SPACE.

* changes were copied into local memory

ELSE.

* errors occurred, structure ERROR contains the error

ENDIF.





Parameters

CALLED_FROM_AIM
CHECK_AT_ALL_EVENTS
CLIENT_AIM
ERROR
ERROR_IV
ERROR_OCCURED
INIT_ACT
INTERVAL
OBJECT
SUBOBJECT
WARNING_OCCURED

Exceptions

OBJECT_NOT_FOUND

Function Group

SNR1

General Data in Customer Master   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3546 Date: 20240523 Time: 122147     sap01-206 ( 71 ms )