Ansicht
Dokumentation

FKK_SAMPLE_TFK8109EV_10 - Event 10: Map External Field Names to Internal / Define Additional Fields

FKK_SAMPLE_TFK8109EV_10 - Event 10: Map External Field Names to Internal / Define Additional Fields

CPI1466 during Backup   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this module, it is possible to map external field names to internal field names or include additional internal fields.

  • Importing Interface:
  • The current upload source

  • Upload schema

  • External field names from the source inclusive of item (IT_FIELDNAME)

  • IT_DFIES contains detailed information about all available target fields (cross-class, sorted by ‘field name’)

  • Exporting Interface
  • ET_FIELDNAME_MAPPING
    You can define internal field names here. Assignment to the external field names from IT_FIELDNAME is carried out via the index.

  • ET_FIELDNAME_NEW
    It is possible to define additional target fields that are not present in the source file here. These fields can then be filled in the schema event15 per data record.

Example

  • Simple field name mapping
    If the file to be imported contains the field name ‘Business Partner’, this field can be mapped to the field name ‘GPART’. To map this field name, add a new entry in the return table ET_FIELDNAME_MAPPING as follows:
  • 'Value' = 'GPART'

  • 'Index' = Value of 'Fieldindex' of field 'BusinessPartner' from the table IT_FIELDNAME

  • Adding additional fields that are not present in the file to be imported.
    If the file to be imported contains the field name 'EventTimeStamp' and there is no field suitable in the target structure to which the time stamp can easily be mapped, please proceed as follows:
Do not map the 'EventTimeStamp', instead add the fields BITDATE and BITTIME to the table ET_FIELDNAME_NEW. This means that the time stamp 'EventTimeStamp' has correspondingly been transferred to the two new fields in the subsequent schema event15.

Notes

  • The function module contains coding with comments to illustrate the examples described here.
  • If you work with several record types, then the first entry of IT_FIELDNAMES is the indicator for the record type.

Further information





Parameters

ET_FIELDNAME_MAPPING
ET_FIELDNAME_NEW
ET_MESSAGES
EV_ERROR
IS_PARAMS
IS_SCHEMA
IS_SETTINGS
IT_DFIES
IT_FIELDNAME
IV_SOURCE
IV_SOURCE_TYPE

Exceptions

Function Group

FKKBIX_UPLOAD

General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3462 Date: 20240523 Time: 075315     sap01-206 ( 54 ms )