Ansicht
Dokumentation

FTR_TARO_DER_CONTENT - Determine Field Values for TARO Content Data

FTR_TARO_DER_CONTENT - Determine Field Values for TARO Content Data

General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you can define derivation rules for field values of the content data of trade repository objects.

These derivation rules are called after the active BAdI implementation for filling the content data of the trade repository object ( BAdI: Fill Content for Trade Repository Object, method FILL_CONTENT) has filled the fields of the content data with values.

You can base your derivation rules on the values filled by the BAdI implementation and on the fields of the financial transaction and the trade repository data to fill the content data fields that have not beenfilled by the BAdI implementation, or change the values filled by the BAdI implementation.

You can use the fields of the following origins as source fields:

Origin Name DDIC Structure
CONTENT TARO Content TLRS_TARO_CNT_DATA
TRADE_REPOSITORY Config. Data Trade Repository TLRC_TARO_TAR
TRANSACTION_ACTIVITY Financial Transaction VTBFHA
TRANSACTION Financial Transaction Activity VTBFHAZU

The target fields are all fields of the following origin:

Origin Name DDIC Structure
CONTENT TARO Content TLRS_TARO_CNT_DATA

Derivation steps are processed as follows:

  1. If you have defined a condition for performing a derivation step (see below), this is checked first. If the condition is not met, the step is not performed. When the condition is met, the step is performed.
  2. The system checks the source and target fields according to your settings in the derivation step and executes the step.
  3. If the system cannot find suitable target values in this derivation step, the target fields are not changed. Otherwise, the new values are written in the target fields.
TARO Content

TARO Content

TARO Content
  1. Call the Customizing activity. The Derivation of Content for Trade Repository Objects: Change Strategy screen appears.
In this screen, you can enter rules for deriving the values for the content fields of the trade repository objects.
The rule can involve various steps. The system follows these steps in order until it is able to determine a value for the target field.
A step can consist of a derivation rule, table lookup, or a move:
  • Step type Derivation Rule

In a derivation rule, you can choose various source fields, the values of which are used as a basis for deriving the field value for the target field.
  • Step type Table Lookup

Table lookups let you read individual records from any table to determine characteristic values. Here, the source fields must make up the key of a specific table, from which the system can copy certain contents to the target fields of trade repository object content data table (TLRS_TARO_CNT_DATA).
  • Step type Move

In the case of a move, you specify the value to be written to the target field.
For each derivation step, you can define a condition that must be met for the step to be executed on the Condition tab page.
On the Attributes tab page, you can use the step attributes for each derivation step to control the following:
  • Whether an error message is issued when no target values are found

  • Whether processing of strategy is ended when no values are found

For derivation type Move, this function is not available.
You can also make settings for derivation rules to allow expiration dates to be maintained for rule entries. If you activate this attribute, you can define a "Valid From" date for your entries for a derivation rule.
Field Attributes
You can determine field attributes by choosing Details for the source and target fields.
You can make settings to allow blank values for a source field. This means that derivation will still be performed, even if the given source field does not contain a value.
You can stipulate the following for a target field:
  • Do not overwrite with new value if field already filled

  • Overwrite with new value even if the new value is initial

  • Overwrite with new value only if new value found

This allows you to ensure that, whatever the value determined by the derivation step, it is copied to the target field irrespective of whether the field already contains a value. After this derivation, you will not be able to overwrite this value manually.
In the case of table lookups, you can choose further options for selecting field attributes for source and target fields. For example, you can choose to consider just one part of each field.
  1. Defining a Derivation Rule
    1. Choose the Create Step pushbutton. In the dialog box, select Derivation Rule and confirm your entry.
    2. Enter a text for the derivation rule.
    3. On the Definition tab, enter the fields that you want to use in the Source Fields section. In the Target fields section, choose the content field from the list.
    4. You can enter conditions for applying the derivation rule on the Conditions tab.
    5. You now have to assign the target field values to the values of the source fields. To do this, choose the Maintain Rule Values pushbutton.
In the table that follows, you can assign the target field values to combinations of source field values. The first column contains the first source field that you selected, the second column the second source field, and so on. The last column contains the target field.
  1. Define a table lookup.
    1. Choose the Create Step pushbutton. In the dialog box, select Table Lookup and confirm your entry.
    2. Enter the table name.
    3. Enter a text for the derivation rule.
    4. On the Definition tab, assign the corresponding source fields to the key fields of the table. Then assign the table fields to the target fields and define the field attributes (by choosing Details).
    5. You can enter conditions for applying the derivation rule on the Conditions tab.
    6. On the Attributes tab page, you can use the step attributes for each derivation step to control whether an error message is issued if no target values are found.
  2. Define a move.
    1. Choose the Create Step pushbutton. Select Move in the dialog box and confirm your entry.
    2. Enter a text for the Move.
    3. On the Definition tab, you have two options:
- You can choose a source field, the value of which is then written to the target field [in this case, all the values of the source field must correspond to short keys for target field].
- You can enter the field value directly in the Constant field.
On the Condition tab, you can make the assignment dependent on the fulfillment of a condition.
  1. Select the target field.
  2. The settings on the Attributes tab are not supported.
  • Changing the order of the steps
  • You can change the order of the steps after they have been defined. To do this, proceed as follows:
    1. Select the step that you want to move.
    2. Position the cursor beneath the target position.
    3. Choose Move.
    TARO Content






    TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
    This documentation is copyright by SAP AG.

    Length: 11048 Date: 20240523 Time: 215710     sap01-206 ( 126 ms )