Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CVMD
PBS archive add on
for Vendor Master Data
Manual part B
- Administration -
Compatible with
SAP R/3 Enterprise
SAP ERP 5.0 / 6.0
March 27, 2012
PBS archive add ons CCMD/CVMD - Administration - 2
®
PBS archive add ons is a registered trademark of PBS Software GmbH,
Bensheim.
SAP, R/3, R/2, SAP ERP, SAP NetWeaver, ABAP are registered trademarks of
SAP AG, Walldorf/Baden.
Acrobat Reader is a registered trademark of Adobe Systems Incorporated.
PBS archive add ons CCMD/CVMD - Administration - 3
Table of Contents
1 Basic Information on the PBS archive add ons CCMD/CVMD 7
1.1 Nomenclature 7
1.2 Navigation 8
1.3 Modules XF and FI 9
1.4 PBS archive add on CFI Plus 9
4 Index Management 21
4.1 Structure of the Index Infrastructure 23
4.1.1 Transfer from Search Helps 25
4.2 Structure of the Infrastructure 25
4.3 The Administration Board 25
4.3.1 Index Generation 26
4.4 Archive Utilities 31
4.5 Index Modification 31
4.5.1 Index Modification Procedure 32
4.5.2 Deletion of Versions no Longer Required 33
4.6 Export/Import into Other SAP Systems 33
4.6.1 Export of PBS Search Helps /PBS/DEBI and /PBS/KRED 33
4.6.2 Export of the Index Definition 34
4.6.3 Import of Archiving Object Definition and Index Definition 35
PBS archive add ons CCMD/CVMD - Administration - 5
Introduction
The PBS archive add ons are constructed in modular form and cover the applica-
tion modules FI, SD, MM, CO etc. with a special program package for exactly this
application. You can easily see from the name which PBS archive add on belongs
to which SAP module: CFI, CSD, CMM, CCO etc. All PBS archive add ons have in
common that they can be easily installed in the SAP system via the SAP transport
utilities “SAINT”. For installation details of the PBS archive add ons please see the
specific installation manual (manual part A).
The modular user manual of each PBS archive add on is composed of partial
manuals:
- Part A: Installation
- Part B: Administration, Archive Construction and Maintenance
- Part C: Application Programs / Transactions
There are additional manuals for the PBS utilities: Conversion Tool, Archive
Browser, Translation Tool.
Should you have questions regarding the installation of the PBS archive add ons or
if you have problems when installing the software please call directly the Service
Hotline of PBS Software GmbH:
Phone: +49 - 6251 - 174 110
Fax: +49 - 6251 - 174 174
Email: hotline@pbs-software.com
Release Compatibility
The PBS archive add ons CCMD/CVMD discussed in this manual run with the ba-
sis programs of SAP AG, 69190 Walldorf/Baden, Germany, releases R/3 Enter-
prise, ERP 2004 and ERP 6.0.
PBS archive add ons CCMD/CVMD - Administration - 7
In this handbook, the term archiving is used completely in the SAP sense. We use
the term archiving to mean collectively the processes that are controlled by SAP
programs for checking whether master data can be archived, the writing of this
master data to sequential archive files, and the removal of the master data from the
database. Archiving is controlled centrally by the SAP transaction SARA (see chap-
ter 2).
PBS now provides two packages of programs with the PBS archive add ons CCMD
and CVMD that make SAP archive files so accessible to the user as if they had
never been archived. In order to also completely relieve the load on the database
due to index data, the master data is read from the SAP archive files by the PBS
index generation programs and – equipped with all necessary index information –
are transferred into the file system. We call this process indexing, or setup of the
PBS archive add ons CCMD/CVMD.
PBS archive add ons CCMD/CVMD - Administration - 8
1.2 Navigation
The area menus /PBS/PBS (main menu of the PBS modules), /PBS/CCMD and
/PBS/CVMD (functions of master data modules) as well as /PBS/CUMD (functions
for the transaction figures) are included in the PBS archive add ons CCMD/CVMD.
Roles are to be generated from these menus, which can then be incorporated in
the user master. A role can be created directly from the Easy Access Menu.
You are free to choose the name of the role; the name can also be within the PBS
namespace. A PBS area menu is then transferred by pressing the function key
"Transfer menus from area menus" by indicating the corresponding PBS menu
name. During the transfer, answer the system query for the resolution of the area
menu with "Yes".
The role created in this way can now be integrated in the corresponding user mas-
ter. We recommend to allocate global role /PBS/PBS to the administrators and the
special function menu /PBS/CCMD or /PBS/CVMD to the end users.
Please see the current SAP standard documentation for more details on the crea-
tion of roles.
PBS archive add ons CCMD/CVMD - Administration - 9
.
PBS archive add ons CCMD/CVMD - Administration - 11
After calling the transaction SARA, the following initial screen is displayed:
You should now enter one of the archiving objects covered by the PBS archive add
on (FI_ACCRECV; FI_ACCPAYB or FI_MONTHLY) under Object name and then
choose the pushbutton Customizing. The following pop-up is displayed as in Dia-
gram 3.
Here, the button Verification time Read must be deactivated. If this is not the
case, the archive is read sequentially each time it is accessed.
PBS archive add ons CCMD/CVMD - Administration - 13
If you now choose the second of the selection options (Cross-Archiving Object
Customizing), Diagram 5 is displayed.
Although 15 MB or 5,000 data objects is defaulted for the size of an archive file, we
recommend to choose 100 MB here. If more data objects than are specified here
are archived during an archiving run, a follow-on file is opened under the same run
number.
Diagram 5 shows the setting for the archiving object FI_ACCRECV. In case of the
archiving objects FI_ACCPAYB and FI_MONTHLY the settings have to be carried
out in analogy. In this case, you should critically check the default values regarding
the size of the archive file and, in case of doubt, enter the same values like for the
object FI_ACCRECV. The same applies for all other customizable values.
PBS archive add ons CCMD/CVMD - Administration - 14
The connection to the archiving system plays a role in the case of optical archiving
and is not covered within the scope of this manual.
The settings for the delete program can be maintained as displayed. It is important
that "Start Automatically" is selected so that the deletion run is automatically
started as soon as the archive file is written. It deletes the archived master records
from the database.
Using the PBS archive add ons CCMD/CVMD this information, however, is not
necessary and disk space is occupied unnecessarily in the database. For this rea-
son, the archive structures should be deactivated. To do this, call the archive re-
trieval configurator via the transaction SARAInfo systemCustomizing. First, de-
termine the archive info structures that concern the archiving objects
FI_ACCRECV, FI_ACCPAYB or FI_MONTHLY via the input help. Then you can
deactivate the filling of the archive info structures via archive info structure De-
activate.
For this reason, the second point is of much greater importance. If you do not know
exactly which database tables and which archiving objects put the greatest load on
your database, we can recommend you our database analysis tool, the PBS Data-
base Analyzer PLUS. Generally, you should also aim to keep the SAP database
lean since the performance of display transactions and batch evaluations is then
much better. It is particularly important for the archiving runs themselves that the
database is not unnecessarily full. The archiving runtime namely increases at least
in proportion to the data volume in the database and can rise to unpleasantly high
values (several days) if archiving has not taken place for too long a period. If an
overdue archiving run then has to be postponed because there is no longer
enough time even at the weekend for the archiving run to take place, you can end
up entering a vicious circle. This situation should be avoided as soon as possible.
In the field Remark, a comment should be entered for identification purposes. Un-
der the Archiving quantity selection an account interval can be specified. You can-
PBS archive add ons CCMD/CVMD - Administration - 17
not archive data directly assigned under the master record together. The FI data
part and the SD data part must be archived in different runs.
In the block Program control it is important that Test run has not been selected. If
you were to check this parameter, the archiving would only be simulated but an ar-
chive file would not be created and master data would not be removed from the da-
tabase.
In the case of mass data, you should also forego a detail log since this can cause
the lists to be very unclear.
When using a minimum index structure you have to assume an occupancy of about
5 to 10 bytes per index. When using index attributes, for example in a maximum
index structure, no concrete recommendation can be made as this depends on the
size of the archive structure and the number of index attributes.
You have to reserve additional temporary disk space for extract as well as for sort
during an index generation run. Experience shows that you should reserve a disk
space of about 0.4 to 0.6 GB per index for extract and sort during an index gen-
eration run for an archive file of 10 MB.
In an extreme case, an archive file of 100 MB or more requires a very high disk
space capacity. To avoid such large amounts of data you can split one large index
generation run into several smaller runs. Since only the access of archived data for
each run is counted for extract and sort, only the corresponding part of disk space
is required.
The runtime for the index construction is mainly produced by merging already exist-
ing index stocks with newly added index data. However, the number of indices per
record as well as the size of the index structure also has an influence on the run-
time.
PBS archive add ons CCMD/CVMD - Administration - 19
As far as the size of the index files is concerned, several factors are decisive. On
the one hand, this is the ADK technique itself, the number of selected indices, as
well as the number of index attributes. The use of the ADK technique to store the
index data offers the advantage of compression of about factor 5. However, one of
the most important factors is the number of selected indices, as the size of the in-
dex files is directly proportional to this number. This means that ten indices per re-
cord also need 10 times the space for the index files. In general, this means that
the more indices are created for an optimal performance during a later access,
maybe including a larger number of index attributes, the more space must be pro-
vided for the index files.
The performance during the access basically depends on the type of indexing. The
indices should be selected in such a way that for each archive selection at least
one index can be used. Moreover, if all table fields are included in the index struc-
ture, this results in an optimal performance since an access to the SAP data ar-
chives is unnecessary in this case. However, if the access does not only refer to
PBS indices but also to the SAP data archives, then the access time will increase
by a factor of 3 to 5.
The file systems containing the PBS archive add on must first be released on the
database server using the command share. For example, the following command
(syntax of Sun/Solaris) releases the file system /pbs/cumd:
The released file systems can then be mounted on the file system of the applica-
tion server. A prerequisite for this is that the directories used as mount point exist.
The following example of a command mounts the released file system /pbs/cumd
of the database server sun20 at the mount point /archive/cumd:
Please note that in the case of several application servers, the same mount point is
to be used for each of them, as only one single path can be assigned to the PBS
archive add on (in this case, for example, /archive/cumd).
Attention:
The server containing the data of the PBS archive add on must also be an NFS
server so that the application servers can access the NFS server as NSF clients.
Under Windows NT- if NFS was not installed – the local drive of the database
server on which the PBS archive add on is located must be shared. This can be
done in the menu “Sharing” in the properties of the respective drive. After the drive
has been shared, the application server can be connected to the network drive, for
example, by using the file explorer (“Tools Map Network Drive”).
To realize this process, the authorization for the general PBS transaction
namespace "/PBS/*" should be assigned in the user profile at least.
For all critical programs which change the PBS archive stock the authorization for
the object S_ARCHIVE is required in the user master record. The authorization
normally must be activated for the archive administrator. End users and administra-
tors additionally require the S_DATASET authorization for an archive access in or-
der to access to the PBS index data respectively the original SAP archive data by
reading (activity 33).
PBS archive add ons CCMD/CVMD - Administration - 21
4 Index Management
The first step in constructing the customer/vendor archive indices is the creation of
an appropriate infrastructure (this is not necessary for the transaction figure index-
ing since here you can access directly via the Administration Board). Primarily, you
need to copy the search help as a template for the index creation. In a second
step, the index types and their index fields are defined. After creating the index ob-
ject, the structures and the object-specific programs, the creation of the infrastruc-
ture is complete.
The PBS archive add ons CCMD/CVMD are started with the transaction
/PBS/CCMD_INIT / /PBS/CVMD_INIT. The menu that is displayed is divided into
three sections:
PBS archive add ons CCMD/CVMD - Administration - 22
Setup
This menu option is used to define the indices and the infrastructure (DDIC ob-
jects, programs, function modules), which are necessary for the construction of
the indices as well as for the subsequent access to the archived data. The traf-
fic lights display the current status of the respective item.
Administration
All administration programs are started via the Administration Board (chapter
4.3).
In the following section, the submenus of the individual areas are explained.
The relationship between index, index structure and archive data is illustrated in
this section by means of an example. Diagram 9 shows the structure of an ADK file
with extracted SAP customers. Indices should now be constructed for the three
fields "Customer number", "Name" and "City". Each index structure consists of the
respective table field as the index key field in the first position, the index attributes,
as well as the pointer to the corresponding data record in the archive. During ar-
chive data selection which contains, for example, the selection fields "Vendor"
and/or "Material", the index attributes enable the complete selection to already be
performed at index level. This means that no more than the necessary data records
are selected during the subsequent archive access.
Key field
ADK File Customer Name City Street
number
Index key
Index 1 Customer Archive
number Pointer
Index 2 Name Archive
Pointer
Index 3 City Archive
Pointer
Diagram 9: Structure of SAP ADK data and their corresponding PBS in-
dices
The first step involves selecting the fields for which corresponding indices are cre-
ated. After selecting the item “Define PBS indices“, a selection screen where all ta-
bles of the archiving object are listed is displayed, as in Diagram 10. Several indi-
ces can be defined here for each table. To create a new index, select the corre-
sponding table and then press function key F5. A pop-up is displayed in which the
required fields can be selected (Diagram 11).
PBS archive add ons CCMD/CVMD - Administration - 24
The technical name in Diagram 11 identifies the index uniquely and must start with
an "M" for "manually". It also serves as an entry parameter for the function module
for data selection (for more information, see chapter 5.1). The priority is used for
automatic index determination for indices that are similar in their structure. Index
priority for already built indices can still be changed subsequently. The index name
is only a descriptive text and is of no relevance for the data selection.
PBS archive add ons CCMD/CVMD - Administration - 25
First, the index structures are created in the Data Dictionary. Afterwards, an archiv-
ing object is generated with which the indices are managed. The archiving object is
necessary as the indices are stored in the file system by means of the ADK inter-
face. The name is chosen in such a way that it lies within the Z* namespace, but
corresponds to that of the data archiving object as closely as possible (ZCMD*
bzw. ZVMD*).
Under item 4, "Generate PBS administration programs" the reports for generating
the PBS indices are created. The generated reports lie within the Z namespace
and are assigned to the local development class "$TMP".
Below the individual functions are described, which can also be executed via the
menu.
You can use this function to move an index area from the main index into
the long-term index or vice-versa. The index area is available within the
main index for further merging. The index area is not automatically made
available as a long-term index for further processing for index generation.
By activating an index area, the indices are made available for the user.
Only deactivated index areas can be activated.
Deactivation of an index area means that these indices are no longer avail-
able to the user.
The deletion of an index area results in all dependent table contents and
physical files being deleted.
The log of the run provides information about the number of processed indi-
ces, the runtime and the selection criteria.
The content of an index area is displayed using the archiving tool (chapter
4.4).
With the index generation it is possible to index ADK files from the archiving
object FI_ACCRECV / FI_ACCPAYB / FI_MONTHLY. The indices are also
stored in ADK files.
In the next section the delimitations of the selection screen and its effects are ex-
plained.
Select manually
With the manual selection option you can select the FI_ACCRECV archive files
yourself via a pop-up window. The selection list can be restricted using a date in-
terval (date of archive file creation) and by non-indexed archive files.
The parameter “Max. number of phys. files” can be used to restrict the number
of archive files per index generation. You only need to perform this restriction if
your sort capacities in the SAP system are not sufficient. For example, if seven ar-
PBS archive add ons CCMD/CVMD - Administration - 28
chive files are selected and you have specified that a maximum of two files can be
processed, four index generations are performed.
Diagram 14: Proposal list of the SAP archives that can be integrated in
the PBS index archive
Select automatically
If the option “Select automatically” is chosen, all archive files that were not in-
dexed yet and created within the specified date interval are processed. The pa-
rameter “Max. number of phys. files” has the same functionality as described
above for manual selection.
This function can be used to delete indices within an index area. After selecting the
button "Run", a list of the indexed ADK archive files is displayed. The list contains
the indexed archive files of the last main index that was created. All generated indi-
ces for an archive file can be deleted.
You can use this function to perform a further restriction of the required sort area
by specifying the number of master data when manually selecting an archive file.
You can name the first and last master record of an archive file for a run. As stan-
dard, all master records are to be processed. If an archive file is to be constructed
using sequential number intervals, you should ensure that the intervals are speci-
fied without overlaps (1 to 200,000, 200,001 to 400,000, 400,001 to 600,000 etc.).
Otherwise, you run the risk of individual master records being indexed twice in the
PBS index area. There is no automatic check for this.
PBS archive add ons CCMD/CVMD - Administration - 29
When merging index areas it is possible to choose between the last main index
and a manually selected index area. As standard, the current main index should be
used. In special cases such as a deletion run in a long-term index, an alternative
index can be selected.
All parameters that concern the newly created index area are grouped together in
this block. By checking the option "Activate index at runtime", the generated in-
dex area is immediately made available to users for accessing. If the index area is
not activated, it is stored as an inactive index area and can then be activated via
the Administration Board. If more index generations take place than the number of
archive files, this is only possible via index activation.
After an index area has been merged, the index area that was read is no longer
required and can be deleted immediately after index generation has been com-
pleted. To do this, the parameter "Delete previous index at runtime" should be
selected. By deactivating this parameter, the index area is set to inactive and can
be deleted manually in the Administration Board. The advantage of this is that you
can keep the index area for longer and can use it to restore an intermediate status
in the event of errors occurring.
PBS archive add ons CCMD/CVMD - Administration - 30
NOTE
If the indexing process terminates with the ABAP/4 runtime error message
SYSTEM_NO_MORE_PAGING or EXTRACT_NO_MORE_PAGING,
this is due to the insufficient size of the SAP paging file (see chapter 3).
Using transaction SM04, Goto -> Memory, an overview of the usage of the roll and
paging memory by the active users and their transactions is displayed. Try to use
this to clarify whether it is perhaps not the current program, but one of the others
that requires so much memory.
Use transaction RZ10 in the current instance profile to check both the parameters
"rdisp/ROLL_MAXFS" and "rdisp/PG_MAXFS". The values that can be found
there specify the current block sizes for the roll or page area respectively (1=block
= 8 kilobytes, 1 kilobyte = 1024 bytes).
On the system page, compare the size of the joint partition for the roll and paging
area with the values from transaction RZ10. If the converted values do not reach
the size of the partition, the parameters "rdisp/ROLL_MAXFS" and
"rdisp/PG_MAXFS" must be adapted to the value of the partition that is provided.
If the parameter was changed, the run should be repeated. Usually the run
can be started again without problems under the same delimitations. It could
be useful, however, to limit the data volume by selecting a sequential number
range.
We also refer you to SAP note number 14779, which provides further information
on the error described above (see also chapter 3 of this manual).
PBS archive add ons CCMD/CVMD - Administration - 31
Program /PBS/CUMDU001
This report is an example for accesses to transaction figures.
Program /PBS/CUMD_SCAN
This report provides a technical view of the generated indices in the PBS archive
add ons CCMD/CVMD. In particular, it is possible to view the statistics of the cur-
rent as well as all previous index generation runs. If the program is started directly,
the transaction figures can be evaluated. If you start the program via the Admini-
stration Board, the respective module is processed.
Note: The name of the index object is made up of the archiving object name and a
number. How up-to date a version is, does not depend on this number, since the
next free number starting from 1 is always used for a new version. If, for example,
you copy version 2, and no version 1 is available, the number used for the new ver-
sion is the number 1.
After selecting the data to be exported, start the export using the pushbutton "Ex-
port". A popup window is displayed in which you can enter a transport number.
Choose "Create request" here (function key F8). Afterwards, the transport can be
released directly.
PBS archive add ons CCMD/CVMD - Administration - 35
After starting the import, all required objects and programs are generated. A num-
ber of consistency checks are performed when doing this. If, for example, the index
definition for a PBS index object is imported for which index data has already been
created, a new index version is created automatically. At the end of the import a
technical status list is displayed.
PBS archive add ons CCMD/CVMD - Administration - 36
Diagram 18: Status list after generating the objects and programs
PBS archive add ons CCMD/CVMD - Administration - 37
5 Selection of Archived
Data
The PBS archive add ons CCMD/CVMD generate one function module for select-
ing data from the archive. The name of the function module is made up of:
Z<Module>_SELECT<Version number>
o first_index
first_index = "X" means that the system uses an index with the trans-
ferred values and a number is read from max_row_count.
first_index = space means that the system continues to read with the in-
dex that was used most recently.
o cumd_pbs
If this parameter is transferred to the function module, only the master
record is read and returned. All other export parameters are irrelevant.
IMPORTING
o index_type_out
"index_type_out" contains the technical index name of the read index.
TABLES
o ct_dyn_range (Export)
The internal table "ct_dyn_range" contains the selection parameters for
the archive data selection.
o Index table
The table contains selected indices.
EXCEPTIONS
o index_not_exist
The technical index name specified under "INDEX_TYPE_IN" does not
exist.
o index_not_found
No index could be determined on the basis of the internal table
"ct_dyn_range".
o ct_dyn_ranges_is_initial
The internal table "ct_dyn_ranges" does not contain any selection pa-
rameters.
o data_not_found
No data was selected with the selection parameters from "ct_dyn_range".
o no_selection_function
An active selection access module could not be determined.
PBS archive add ons CCMD/CVMD - Administration - 40
The programs differ in the way the indices are imported. In report
/PBS/CCMDU002 the indices are all imported together. In report /PBS/CCMDU003
the indices are imported at intervals. This is required particularly for larger data
volumes to avoid a memory overflow.