USE:
The number ranges allow generating new values for variables. Those values are used to substitute original document numbers or other values in reference messages.
The number range that is used to replace source system document number should be always configured in the way to not overwrite original number. It means that documents generated by int4 IFTT should have own subset of original document number. Usually it might be subset of upper limit of original number range.
It is important as otherwise automated testing with int4 IFTT could consume numbers that source system will generate during manual testing. Additionally if testing environment data is refreshed from production system, there would be much more documents than it was created in testing environment and if the int4 IFTT number will be configured in the same range, it would start creating duplicates.
For example original number range for document number from source system is 560000 - 590000. It would be wise to set int4 IFTT number range from 590000 to 600000. However if SAP beckend system use external number range and it is important to stay in original range, then int4 IFTT number range may be 585000-590000 that gives space for 5000 testing documents. Using range from upper interval reduces the risk that number will be overwritten.
Additionally the good practice is to used prefixes or suffixes that will easily separate source system documents and the one created by int4 IFTT. It should be always used when there is no document number validation by SAP backend.
Each Object Definition can contain an unlimited number of number ranges. This way each variable declared in an object can use its own, specific number range.
Number ranges are used by variable processing, check there how they are applied.
PROCEDURE:
Number ranges are created per configuration object. Select particular object by marking row and double click on Number Ranges nodes in the navigation tree.
Fill below fields to create a new number range:
Parameter name | Description | Example |
---|---|---|
Number range | Provide a name for number range. This name would be passed as parameter in variable processing for actions that will generate values from it | PO_NUMBER_RANGE |
Prefix for number | The alphanumeric characters to be appended at the beginning of the document number to separate original documents from source systems and the one created during int4 IFTT testing (optional) | IFTT |
Number range low | The first number of our range | 1 |
Number range high | The last number of our range | 99999 |
Current value | The value to begin creating new documents with. When creating number range this value should be same as Number Range Low. Later on, when number range will be used during testing it would increment per each use. | 1 |
Suffix for number | The alphanumeric characters to be appended at the end of the document number to separate original documents from source systems and the one created during int4 IFTT testing (optional) | _T |
Format - add zeros | If this box is checked zeros will be automatically appended to the beginning of the document number like for example 000500. | |
Increment once per Test Run | If this indicator is selected number range is incrementing once per test run. In case there are multiple test cases with the same Automation Object in test run they will receive the same value. |