You are on page 1of 4

Note Page 1 of 4

SAP Note Number 445428

Number 445428
Version 0015
Processor -
Processing Status new
Impl. State Can be implemented
Language E
Short Text Client-wide selection of "old" serial numbers
Component LO-MD-SN Serial Numbers

Long Text

Symptom
Performance problems occur with the selection of serial numbers.

Other Terms
RIEQUI21, IQ09, IQ08, RISERNROLD, serial numbers, serial number inventory

Reason and Prerequisites


Before Release 4.5, inventory data of the serial numbers were not entered, with the exception of the
plant and the storage location (fields WERK and LAGER in EQUI table). As of Release 4.5, there is a
separate inventory data table for the serial numbers (table EQBS). Serial numbers that were generated
before Release 4.5 are subsequently called "old" and those that were created in higher releases are
called "new".
As long as both old and new serial numbers exist on the system, the selection reports have to work
with a two-fold logic. Only once all serial numbers have been converted to "new", can they (the
reports) work with just a simple logic, depending on a flag in a Customizing table.
Basically, individual "old" serial numbers become "new" serial numbers due to a goods movement
executed with them. If you want all "old" serial numbers to become "new" in one go, we recommend
a physical inventory with serial numbers.
The attached report RISERNROLD now analyzes the existing serial numbers for the entire client and
sets, if necessary, the indicator for new serial numbers only. Otherwise, you can use the report to get
an overview of your legacy data.

Solution
Implement the attached source code for the report RISERNROLD.

saphtmlp://htmlviewer.sap.com/051Mg0l27ko1XBOhdNMCcm/HTML000002.htm 8/23/2021
Note Page 2 of 4

1. Selection texts:

Name Text Dictionary


SO_LAGER Storage location Yes
SO_MATNR Material Yes
SO_WERK Plant Yes
S_LIST Output in list No
S_MAXREC No. of old serial numbers No

2. Text symbols:

Symbol Text
001 Number of "old" serial number records:
002 No "old" serial number records found.
003 "Only new serial numbers exist" indicator set.
004 Selection criteria
005 Client:
006 Material
007 Plant
008 Storage location
009 Serial number
010 No "old" serial numbers exist for the selection.
011 "Only new serial numbers exist" indicator
012 not set (only possible system-wide).
013 Additional selection criteria

3. Maintain the following text as the documentation for the report:

Documentation for the report RISERNROLD

Title: Client-wide selection of "old" serial numbers

Usage

Serial numbers that are in stock and were created before Release 4.5 are subsequently referred to as
"old", and those that are in stock and were created from Release 4.5 onwards are referred to as "new".

Before Release 4.5, the system saved only certain stock data (plant and storage location) of the serial
numbers in the table EQUI. As of Release 4.5, there is the separate stock data table EQBS, in which
the system saves all the stock data (for example, stock type, special stock type, special stock
customer).
"Old" serial numbers generally become "new" as soon as the stock data has been added to the table
EQBS. This always happens automatically for individual serial numbers when you execute a goods
movement for the serial number. If you want to convert all of the "old" serial numbers to "new" ones
in one go, we recommend a serial number inventory (see SAP Notes 375643, 371689 and 372344).
As long as the "old" and "new" serial numbers exist next to each other in the system, the system must
execute a two-fold logic for the serial number selection; this may have a negative impact on

saphtmlp://htmlviewer.sap.com/051Mg0l27ko1XBOhdNMCcm/HTML000002.htm 8/23/2021
Note Page 3 of 4

performance.
However, if only “new” serial numbers now exist for the entire client, the indicator "Nur noch neue
Serialnummern" is set in Customizing and the system selects based on a simple logic. As a result, the
performance is improved.

With this program, you determine how many "old" serial numbers you still have for the entire client.
In addition, if the program detects that there are no longer any "old" serial numbers, it automatically
sets the indicator "Nur noch neue Serialnummern vorhanden" in a Customizing table. As of this point
in time, the system selects only in accordance with the simple logic during the serial number
selection.

Prerequisite:

The program RISERNOLD uses the indicator S_EQBS of the table EQUI for the selection. To avoid
inconsistencies that may occasionally occur, and to ensure that the indicator in this table is set
correctly, you should see SAP Note 316868 in advance and execute the analysis report (RISTEQ07)
provided in it.

1. Procedure

Selection criteria and additional selection criteria are available.

2. Selection criteria

To obtain an overview, you should first only work with the first two selection criteria:

a) Anzahl alter Serialnummern: Here, you can restrict the number of

serial numbers to be selected.

b) Output as list: Here, you can control the output in a list,

sorted by plant, storage location and the number of "old" serial numbers.

If you do not enter any selection criteria, the system issues only the number of "old" serial numbers in
the relevant client:

c) If there are more than 10000 "old" serial numbers for each client, the system always
issues

a simple list.

d) If there are fewer than 10000 "old" serial numbers for each client, the system issues,

depending on your user data, either an ALV list

or an ALV grid with the relevant standard functions

(for example, filters, sort functions, and so on).

saphtmlp://htmlviewer.sap.com/051Mg0l27ko1XBOhdNMCcm/HTML000002.htm 8/23/2021
Note Page 4 of 4

Additional Selection Criteria


You can use the additional selection criteria for a more detailed analysis. You can, for example, for
your frequently used materials, plants or storage locations, see how many "old" serial numbers are
still available.

If you select according to the additional selection criteria, the system cannot, however, set the
indicator "Nur neue Serialnummern vorhanden", because to do this, you must ensure that there are no
longer any "old" serial numbers for the entire client. In this case, you must execute the program again
for the entire client as a final step.

Valid Releases

SAP Application

• 46B
• 46C
• 470
• 500
• 600
• 602
• 603
• 604
• 605
• 606
• 616
• 617
• 618

• 617

• 100
• 102
• 103

Links to Support Packages

Software Component Release Package Name

saphtmlp://htmlviewer.sap.com/051Mg0l27ko1XBOhdNMCcm/HTML000002.htm 8/23/2021

You might also like