Show TOC

 Using Additional Filters Locate this document in the navigation structure

Purpose

You can create filter for general checks in the standard SAP System. You can use these additional filters to select product data for enterprise-specific checks. You can set up a filter for each object (for example, material or document) which data is read and displayed.

Example Example

You define a filter that only selects documents that have the name Smith as the author or person responsible.

End of the example.

Prerequisites

You must create a program for enterprise-specific filters. The program’s interface must be identical to the example program RCPDMEXTENDEDFILTERTEMPLATE .

Caution Caution

Do not change the interface of the example program.

End of the caution.

Process

  1. Display the source text of the example program RCPDMEXTENDEDFILTERTEMPLATE .

  2. This program contains a FORM routine for each object. You can take the parameters you require from this routine.

    Verify the interface of the FORM routine that you want to use to execute enterprise-specific filter checks, for example for documents FORM CHECK_DOCUMENT .

  3. Create the enterprise-specific filter program in the following steps:

  • Copy the source text (source and text elements) of the example program.

  • Enter the program name that is located in Customer name space such as Z_FILTER_DOC_SPECIALIST .

  • Change the name of the FORM routine that you are using for an enterprise-specific check, such as FORM SPECIALIST_CHECK_DOCUMENT .

  • Create the source test for the FORM routine.

Example Example

You only want documents to be filtered that have the person responsible as Smith:

check document_data-dwnam ne 'SMITH'

End of the example.
  • Enter at the end of the FORM routine whether the object has successfully completed the additional check and you want it to be displayed. Set the parameter CHECK_OK with the following values:

    X Display object.

    Space: Do not display object.

  1. Edit the filter you want to use to select enterprise-specific product data.

  • Expand the tree structure of the object that you want to use the special check with.

  • Double-click on the structure entry additional filter and the dialog box additional filter appears.

  • Enter the name of the program and the FORM routine for the check.

Example Example

Program name: Z_FILTER_DOC_SPECIALIST

FORM routine: SPECIALIST_CHECK_DOCUMENT

End of the example.
  • Save the filter setting.

  1. Activate the enterprise-specific filter.

Result

The system runs a filter check all the way to the deepest explosion level when you start an explosion. On product data is returned that meets the criteria of the general and enterprise-specific filter checks.