Show TOC

Procedure documentationCreating Replication Objects

 

You create replication objects to distribute data from BDoc types, via sites.

You cannot create replication objects in a production system, but only in a development or test system. Replication objects created there are then activated, corresponding function modules are generated, and a transport request, which has to be released explicitly so that the replication objects are transferred into the production system (target system), is created.

Prerequisites

You have selected the object type Replication Object in the Object Type selection list.

If you are creating replication objects in the context of special developments in SAP systems, you should pay particular attention to note 423443.

Procedure

Perform the following steps:

  1. Choose the function Start of the navigation path Object Next navigation step Create End of the navigation path from the application menu, or choose the corresponding icon from the application toolbar.

    The Replication Object Wizard then starts, which helps you to create a new replication object.

  2. Choose Continue and then select a Business Document Type in the next screen. The following are available for selection:

    • Synchronization BDoc Type

      This BDoc type is used for exchanging data between the mobile clients and the CRM server. The BDoc segments are mapped to the corresponding CDB tables.

      There is, at most, one messaging BDoc type for a synchronization BDoc type.

    • Messaging BDoc Type

      A messaging BDoc type is processed on the CRM server only. The BDoc segments are not mapped to CDB tables. This means that the messaging BDoc type is distributed on a simple basis only, without the involvement of the consolidated database.

      There can be several synchronization BDoc types for one messaging BDoc type.

  3. Choose Continue and then select a Business Document in the next screen. You can only select BDoc types for which a replication object has not yet been defined.

  4. In the valid namespace (beginning with Y or Z), enter a unique three digit identifier as the short ID for the replication object, and select the replication type that you want. Depending on the BDoc type, the replication object may be:

    • Intelligent:

      An intelligent BDoc type is one for which you can specify potential distribution criteria and parent objects for the replication object, in addition to the short ID.

      An intelligent replication object can handle and distribute information at object level. It always has its own look-up table. This table is maintained by means of rules, which can be determined for this intelligent replication object.

    • Simple intelligent (sync/msg):

      A simple intelligent BDoc type is one for which you can specify potential distribution criteria for the replication object, in addition to the short ID.

      A simple intelligent replication object is then able to deal with, and distribute, information at object level. However, it does not have its own look-up table, and thus realignment is not carried out automatically. Distribution takes place using the recipient list, which must be recalculated each time.

      A simple intelligent replication object can be neither a parent object, nor a dependent replication object (and thus cannot have a parent object).

    • Dependent:

      A dependent BDoc type is one for which you can specify a parent object, in addition to the short ID.

      Dependent replication objects are then distributed using part of the look-up table of a higher-level intelligent replication object. These objects therefore do not have their own look-up table, and no potential distribution criteria are defined for them. They follow the higher level replication object when they are distributed.

      Caution Caution

      Assign a dependent replication object only to intelligent replication objects that have not yet been assigned to a publication.

      End of the caution.
    • Bulk (unfiltered):

      A Bulk BDoc type is one for which distribution at object level is neither necessary nor practical.

      In the case of replication objects of type Bulk, the corresponding BDocs are distributed in their entirety to all sites that have subscribed to the corresponding publications. There is a single look-up table for such object types.

    • Simple bulk (msg):

      A BDoc type of the type Simple Bulk is one for which distribution at object level is neither necessary nor practical.

      In the case of replication objects of the type Simple Bulk, the corresponding BDocs are distributed in their entirety to all sites that have subscribed to the corresponding publication.

      However, these object types do not have their own look-up table, and so realignment is not carried out automatically. Distribution takes place using the recipient list, which must be recalculated each time.

  5. Select Continue to go to the next screen. In the case of intelligent replication objects and simple intelligent replication objects, you now have to establish the potential criteria fields for data distribution.

    This step is not necessary for replication objects of type Bulk, and for dependent replication objects.

  6. To select the criteria fields, select the required operators for each criteria field in the table that is displayed.

    The following table is displayed:

    Column

    Display

    Segments

    The selected segment.

    Fields

    The criteria field that has been assigned for distribution.

    Op.

    The operators for the distribution criterion:

    EQ/Equals (EQ/Equals)

    NE/Not equal to (NE/Not equal to)

    LT/Less than (LT/Less than)

    GT/Greater than (GT/Greater than)

    GE/Greater than or equal to (GE/Greater than or equal to)

    LE/Less than or equal to (LE/Less than or equal to)

    BT/Include range (BT/Include range)

    Interlink

    Select the operator Interlink if, and only if, you want to identify the field as a target field for an interlinkage (not possible for simple intelligent replication objects). The selected criteria field becomes the criteria field of type Interlink (Crittype I).

    For all other operators the selected criteria field becomes a criteria field of type Direct (Crittype D).

    Note Note

    Even though all of the segment fields of a BDoc type can be used as criteria fields, they are not necessarily useful. For this reason, you can store screen texts to help users choose the most appropriate criteria fields. See SAP Note 488646Information published on SAP site.

    End of the note.
  7. Select Continue to go to the next screen. In the case of intelligent replication objects you can, and in the case of dependent replication objects you must, select the parent object that the dependent object should follow in the distribution. This step is not necessary for replication objects of the type Bulk, and for simple intelligent replication objects.

    For intelligent replication objects the selected criteria field becomes a criteria field of type Referential (Crittype R).

  8. To select a parent object in the left-hand column of the displayed table, select a field in the corresponding line of the right-hand column, and choose Continue to reach the next screen.

  9. To create the new replication object, choose Complete.

  10. If the replication object was successfully created, choose Start of the navigation path Architecture and Technology Next navigation step Middleware Next navigation step Development Next navigation step Generation Next navigation step Generation Next navigation step Generate Application Table Indexes End of the navigation path from your SAP Easy Access user menu, to check whether missing indexes have to be regenerated.