Ansicht
Dokumentation

NUMBER_RANGE_OBJECT_UPDATE - Number range: Insert or change object

NUMBER_RANGE_OBJECT_UPDATE - Number range: Insert or change object

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
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.

Number range objects can be inserted and changed with the function module. Before inserting and changing, the objects are checked and if there are no errors, they are put into the local memory. Saving the entered or changed data is carried out via NUMBER_RANGE_OBJECT_CLOSE.

During the check, errors and warning messages are distinguished between. For warning messages, the number range object is copied into the local memory. The checks are listed below.

The function module can be called as a first function module of this group; a previous reading with NUMBER_RANGE_OBJECT_READ or initializing with NUMBER_RANGE_OBJET_INIT is not necessary.

This function module does not copy the connection to the transport and correction system.

Example

TABLES: TNRO,TNROT.
DATA: BEGIN OF ERRORS OCCURS 10.
INCLUDE STRUCTURE INOER.
DATA: END OF ERRORS.
DATA: RET_CODE(1) TYPE C.

* fill TNRO
* fill TNROT

CALL FUNCTION 'NUMBER_RANGE_OBJECT_UPDATE'
EXPORTING OBJECT_ATTRIBUTES = TNRO
OBJECT_TEXT = TNROT
IMPORTING RETURNCODE = RET_CODE
TABLES ERRORS = ERRORS.
CASE RET_CODE.
WHEN SPACE.
* Changes made without errors
WHEN 'E'.
* Changes contained errors
* Process error
LOOP AT ERRORS.
ENDLOOP.
WHEN 'W'.
* Warning messages occurred
* Process warning messages
LOOP AT ERRORS.
ENDLOOP.
ENDCASE.

Checks

Checks which are indicated with "*" result in errors for existing intervals, otherwise in warning messages. They indicate that errors occur when transporting changes if intervals exist in the target system.

  1. Short text and long text must be specified
  2. Data element subobject (if specified)
    1. must actively exist in the DDIC
    2. must have a domain which actively exists in the DDIC
    3. Domain must have a value table
    4. Domain must be of the data type CHAR or NUMC
    5. Domain must have an internal length between 1 and 6
    6. Data element may only be changed if value table, data type and internal length remain the same *
    7. Data element must not be entered or deleted *
  3. TO-fiscal year indicator must not be changed *
  4. Domain for number length
    1. Domain must actively exist in the Dictionary
    2. Domain must have data type CHAR or NUMC
    3. Domain must have an internal length between 1 and 20
    4. Intervals may not have limits which have more valid characters than the internal length of the domain *
  5. Percentage for warning message must be between 0.1 and 99.9
  6. If specified, transaction code may not be assigned for any other transaction
  7. Group fields must not be changed *
  8. Group fields, if specified
    1. Group table must be specified
    2. Group table must exist in the DDIC
    3. Group table must not be of the category INTTAB
    4. Group table may not be used in any other number range object
    5. Subobject field for group table may only be specified if data element for subobject is specified
    6. If subobject field specified, then
  • it must be part of the key of the group table

  • the data type and the internal length must agree with the data element subobject

  1. number range element field must be specified and belong to the key of the group table
  2. number range element field must not agree with subobject field
  3. except for the number range element field and the subobject field, at most the client may be part of the key of the group table
  • Number range element field
    1. an internal and an external or only one number range element field must be specified
    2. a number range element field must
    • have an internal length of 2

    • be of the data type NUMC or CHAR

    • belong to the data division of the group table

    1. internal and external number range field must be different




    Parameters

    ERRORS
    INDICATOR
    OBJECT_ATTRIBUTES
    OBJECT_TEXT
    RETURNCODE

    Exceptions

    OBJECT_ALREADY_EXISTS
    OBJECT_ATTRIBUTES_MISSING
    OBJECT_NOT_FOUND
    OBJECT_TEXT_MISSING
    WRONG_INDICATOR

    Function Group

    SNR2

    ROGBILLS - Synchronize billing plans   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
    This documentation is copyright by SAP AG.

    Length: 6366 Date: 20240523 Time: 133423     sap01-206 ( 54 ms )