Creating a Segment

Prerequisites

You have created a BDoc type.

Context

After you create a BDoc type, you need to create segments. You use this procedure to create a segment for a BDoc type.

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. Right-click the required BDoc type in the tree.

    A context menu appears.

  3. Choose Add Segment.

    The Segment Overview, Mappings, Joins, and Segment Fields tabs appear.

  4. In the Segment Overview tab, enter the following details:

    Field name

    Description

    Req./Opt./Dep.

    User action and values

    Comment

    Segment name

    Indicates the name of the segment

    Req.

    Enter a name for the segment.

    N/A

    Generated structure

    Indicates the name of the generated structure

    Dep.

    This field is read-only.

    The structure is automatically generated.

    Description

    Indicates the description of the segment

    Opt.

    Enter a description for the segment.

    N/A

    Parent segment

    Indicates the name of the parent segment under which child segments are created

    Opt.

    Enter the name of the parent segment.

    You need to specify the name of the parent segment only if the segment you are creating is a child segment.

    Hierarchy level

    Indicates the level of the segment in the segment hierarchy

    Dep.

    This field is read-only.

    The root segment is assigned a level n while a child segment is assigned a level n+1. This is automatically generated.

    Order

    Indicates the order in which segments are created during the modeling process

    Dep.

    This field is read-only.

    This is automatically generated.

    Cascaded Delete

    Specifies the deletion of child segments when a parent segment is deleted

    Opt.

    Select the option.

    The child segments are deleted based on the value set for this flag at their level.

    Use map

    Specifies whether the segment field names and mapped table field names are same or different

    Opt.

    Select the option.

    If you select this option, mapped table field names used for generation assume that segment field names and mapped table field names are different. If you deselect this option, the segment field names used for generation assume that segment field names and mapped table field names are the same.

    Select Distinct

    Specifies the selection of distinct records

    Opt.

    Select the option.

    This is available for all the BDoc types except mBDoc types. This is applicable to the entire result set instead of specific columns. The default option is ALL, which is the opposite of DISTINCT. After you model a BDoc type to be DISTINCT, you cannot change it at runtime. If you select or deselect this option, it results in a BDoc type change. The indiscriminate use of this feature leads to poor performance.

  5. Save the BDoc type.