Ansicht
Dokumentation

CRM_DARTX_0002 - Maintain Relationships Between Segments

CRM_DARTX_0002 - Maintain Relationships Between Segments

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you get an overview of which relationships or relations between segments are provided by SAP. You make new entries here only if you created customer-specific segments under Define Segment.

You combine data from different segments when you wish to look at data from fields that reside in those segments. The role of the relationships is to ensure that only relevant data records from the two segments are combined.

A relationship does not necessarily have to compare values of fields with the same name. They only have to contain common data. Usually, if not using the same name, the two fields are based on the same data element or at least on the same domain.

Relationships are the prerequisite for generating views that supply data from more than one segment under Define Data Views. You must specify relationships in the definition of a DARTX view if the view combines data from more than one segment. You must specify at least one relation ship for every pair of segments whose data you are including in the view. You may have to specify multiple relationships for any such pair of segments.

A relationship specifies the condition for combining the data from a record in the first segment with the data from a related record in the second segment. It compares the data in a field in the first segment with the data in a parallel field in the second segment.

Relationships between segments are of a technical nature. Therefore you require knowledge of the data model of the underlying database tables. To obtain information about the possible relationships between segments, have a close look at the foreign key relationships of the underlying database tables in the ABAP Dictionary. Then enter the relationships between the segments in this Customizing activity in accordance with that information.

To create a new entry, proceed as follows:

  1. In the Relationship Name column, enter a unique name for the relationship.
  2. In the Segment Name 1 column, enter the name of the first segment in the relationship.
  3. In the Field Name 1 column, enter the name of the field of the segment.
  4. In the Segment Name 2 and Field Name 2 columns, enter the name of the segment and the name of the field that is related to field 1 and segment 1.
  5. In some cases, the relationship between one or more segments in certain fields might not be through the same contents, but through a constant value. In that case, enter this constant value in the Constant column.

Billing document header data is in the TXCRM_BEAD_CRMB_BDH segment and billing document item data is in the TXCRM_BEAD_CRMB_BDI segment. To obtain the complete data of a billing document, you need to combine the two segments in a view. For TXCRM_BEAD_CRMB_BDH (billing document header) and TXCRM_BEAD_CRMB_BDI (billing document item), the relationship specifies that the values in the BDH_GUID field have to be equal. That is, the BDH_GUID is the join criterion for these segments.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3482 Date: 20240523 Time: 155826     sap01-206 ( 79 ms )