Ansicht
Dokumentation

/AIF/VARIANT_MAPPING - Define Variant Mappings

/AIF/VARIANT_MAPPING - Define Variant Mappings

TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you define a variant mapping for a given interface variant. One variant mapping can include alternative mappings for different interfaces.

Setting up a variant mapping is similar to the initial configuration of the mapping in the Customizing activity Define Structure Mappings. You have the possibility to define alternative structure mappings, actions, checks, fix values, value mappings, and/or field mappings.

Linking an alternative mapping to the original mapping is carried out using multiple criteria as follows:

  • When defining an action / check / field mapping in the original mapping, you also assigned numbers for the identification of these objects. You can use these numbers to influence the variant mapping as follows:
  • Define a number which does not exist in the original mapping

The new action / check / field mapping will be called in addition to those defined in the original mapping. The order is defined by the sequence of the numbers (ascending).
  • Define a number which does already exist in the original mapping

The new action / check / field mapping will replace the one with the same number defined in the original mapping.
  • You can add new structure mappings by defining a source and destination structure.
Checks, fix values, and field mappings can then be assigned as usual. If you enter an existing source / destination structure combination, the corresponding structure mapping will be extended, that is, the original checks / fix value mappings / field mappings will be executed as usual and the checks / fix value mappings / field mappings defined in the interface variant will be executed additionally.

You need to have completed the preceding three steps Define Interface Variants, Define Assigning Tables, and Define Interface Key Fields.

You have the authorization to display and / or maintain interface variants for a given namespace.

There are no default variants in the delivery of the SAP Application Interface Framework.

  1. Choose an existing namespace and interface variant.
  2. To define an alternative structure mapping / action / check / fix value / value mapping / field mapping, choose New Entries in the corresponding view which you select in the menu on the left-hand side.
  3. Enter the option(s) you require for your desired interface variant.
  • Example 1: Fix Values
You are able to replace original fix values with an alternative fix value. For example, in the structure mapping, a fix value is used called ZGTP/ VALB. It has the value B. Using variant mapping, it is possible to define an alternative so that instead of the value B, a new value C is used wherever the fix value is customized in the structure mapping.
  • Example 2: Actions
You can add new actions to the standard processing or create an action that replaces an existing action. This is dependent on the action numbergiven to an action. For example, if the original action with the action number 10exists, then this will be replaced if an action createdwithin Interface Variants is also given 10as an action number. If an action is given the action number 20within Interface Variants and this number has not been previously assigned, then this will be called as an additional action.





PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4723 Date: 20240424 Time: 213959     sap01-206 ( 87 ms )