Defining a WHERE Clause for Segment Field Filtering

Use

A WHERE clause is a search condition that allows you to filter records from the database. When you query the database to retrieve specific records, you can specify the search condition by using the WHERE clause. The conditions that you specify in a WHEREclause can consist of several elementary comparisons linked with the AND or OR filters.

Procedure

  1. Log on to the CRM server and choose Start of the navigation pathArchitecture and Technology Next navigation step Middleware Next navigation step Development Next navigation step Meta Object Modeling Next navigation step BDoc ModelerEnd of the navigation path .

    The CRM BDoc Modeler screen appears.

  2. Expand the synchronization or Mobile Application BDoc type in the tree.

  3. To view the tables, expand the segment under the required BDoc type.

  4. Double-click the table to which you want to add the WHEREclause.

    The Map Overview and Where Clauses panes appear.

  5. In the Where Clauses pane, Choose .

    The Where 1 dialog box appears.

  6. Enter the WHERE clause.

  7. Save the BDoc type.

Example

You want to retrieve a customer record that has the customer key 0001.

Select *

                        From <Customer>

                        Where customer record = 0001.