Ansicht
Dokumentation

NUMBER_RANGE_SUBOBJECT_COPY - Number range: Copy groups and intervals of a sub-object

NUMBER_RANGE_SUBOBJECT_COPY - Number range: Copy groups and intervals of a sub-object

Addresses (Business Address Services)   rdisp/max_wprun_time - Maximum work process run time  
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.

This function module can only be used for types 4 to 8.

The function module displays a dialog box and provide a From subobject and a To subobject. Both subobjects must exist. Intervals must exist for the From subobject; no intervals may exist for the To subobject. In cases 5 to 8, the interval numbers of the corresponding group entries of the To subobject must be initial. All group data and interval data is copied. The From and To subobjects can be predefined.

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

Example calls:

Object type 5, object TEST5, subobject BUKRS, subobjects are predefined in the dialog box.

DATA: RC                     TYPE SY-UCOMM,
      FROM_SUBOBJECT_DEFAULT TYPE T001-BUKRS,
      TO_SUBOBJECT_DEFAULT   TYPE T001-BUKRS,
      FROM_SUBOBJECT_DEFAULT TYPE T001-BUKRS,
      FROM_SUBOBJECT         TYPE T001-BUKRS,
      TO_SUBOBJECT           TYPE T001-BUKRS.

CALL FUNCTION 'NUMBER_RANGE_SUBOBJECT_COPY

      EXPORTING

        OBJECT                 = 'TEST5'
        FROM_SUBOBJECT_DEFAULT = BUKRS_FROM
        TO_SUBOBJECT_DEFAULT   = BUKRS_TO
      IMPORTING

        RETURNCODE             = RC
        FROM_SUBOBJECT         = BUKRS_FROM
        TO_SUBOBJECT           = BUKRS_TO.

IF RC = 'A'.
* Copying was canceled
ELSE.
* Copied
* Copied from FROM_SUBOBJECT to TO_SUBOBJECT.
ENDIF.





Parameters

COLLECT_MESSAGES_IN_TABLE
FROM_SUBOBJECT
FROM_SUBOBJECT_DEFAULT
MESSAGE_TABLE
OBJECT
RETURNCODE
TO_SUBOBJECT
TO_SUBOBJECT_DEFAULT

Exceptions

FOREIGN_LOCK
NO_AUTHORITY
NO_SUBOBJECT_DEFINED
OBJECT_HAS_NO_SUBOBJECTS
OBJECT_NOT_FOUND

Function Group

SNR0

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4152 Date: 20240523 Time: 142742     sap01-206 ( 33 ms )