SAP ABAP IMG Activity SCMGVC_LOCAPROF (Create Profile for Case Search)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-CM (Application Component) Case Management
     SCMG_CUSTOMIZING (Package) Case Management: General Customizing
IMG Activity
ID SCMGVC_LOCAPROF Create Profile for Case Search  
Transaction Code S_BCE_68002065   (empty) 
Created on 20030828    
Customizing Attributes SCMGVC_LOCAPROF   Create Profile for Case Search 
Customizing Activity SCMGVC_LOCAPROF   Create Profile for Case Search 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SCMGVC_LOCAPROF    

Use

In this IMG activity, you can define the layout of the selection screen and activate the predefined search criteria and sorting.

Requirements

Standard settings

Activities

You must first create a case search profile in the IMG activity "Create Profile for Case Search". Create a structure with the required attributes for the search and the assignment of the structure to the profile. The search template is structured using the attributes of this attribute profile. You can also define the position of each field in the search screen. In addition, you can activate further selection criteria for each field; these could enable each user to enter a certain range of values. Finally, the resulting profile must be assigned to an element type of a service provider.

You can use the predefined search criteria as follows:

Assign values for some attributes in the option "Predefined Values for Direct Search". Specify X for the connection parameter EXEC_SEARCH_DIRECTLY for the element type in the registry (transaction SRMREGEDIT). When the element type node in the role-based view is double-clicked on the application screen, the search is performed with the specified criteria and the result is displayed directly. You can move the sash down to display the search criteria, make changes to the criteria, and perform the regular search again. If X is not specified for the connection parameter EXEC_SEARCH_DIRECTLY for the element type in the registry, a double-click on the element type node in the role-based view on the application screen opens the locator screen, including search criteria filled with the values specified under "Predefined Values for Direct Search". You can specify more than one value per attribute in the option "Predefined Values for Direct Search". Searches across value ranges are not possible.

You can sort the results as follows:

You can sort the results for one attribute only. The sort order must be numeric. Choose F4 to get the possible values. This attribute must be part of the locator profile (for example, it is specified in the view "Selection Fields"). The sort order can be "Ascending" or "Descending". You can choose whether you want to sort in the database by selecting the checkbox "Sort in Database". Note that database sorts can have a negative effect on the search performance. SAP recommends that you choose this option only the field used for sorting has an active database index. If the checkbox "Sort in Database" is not selected, all results are selected up to the number of hits defined in the database. The sort order is defined by the program logic.

Example

Creates a locator profile ZTEST with standard attributes only, activates the direct search for cases whose title contains the word 'Test', and sorts the results by the time at which the case was last changed.

1.    In the view "Profile of Case Search":

Profile                Profile Name                 Table Name

-------                --------------                ----------

ZTEST            Test Locator Profile            (not a table name if only standard case attributes

                                        are used)

2.    In the view "Selection Fields":

Row            Column            Case Attribute            Option selected (checkbox field)

----            ------                -----------            --------

1            1                CASE_TYPE       

1            2                CASE_TITLE       

2            1                CHANGE_TIME

2            2                CREATED_BY

3.    In the view "Predefined Values for Direct Search":

Case Attribute                Attribute Value

------------                ---------------

CASE_TITLE            *test*

CASE_TITLE            *case*

CREATED_BY            MYUSER

4.    In the view "Attribute for Results Sort":

Case Attribute            Sort Order            Sort in Database (Checkbox Field)

------------            ---------                    ----------------

CHANGE_TIME        A (descending)

Business Attributes
ASAP Roadmap ID 105   Define functions and processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SCMGVC_LOCAPROF 0 B200001542 Case Management 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
SCMGVC_LOCAPROF C - View cluster SM34  
History
Last changed by/on SAP  20030828 
SAP Release Created in 640