Ansicht
Dokumentation

FKK_SAMPLE_TFK8109EV_15 - Event 15: Adjust Data Record Before Conversion to Internal Data Types

FKK_SAMPLE_TFK8109EV_15 - Event 15: Adjust Data Record Before Conversion to Internal Data Types

Addresses (Business Address Services)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this module, it is possible to edit a record type in an external format (as a data type string) before it is converted to an internal ABAP data type.

  • Importing Interface:
  • Upload Source

  • Upload schema

  • The table IT_FIELDINFOS that contains all relevant information to determine the data required quickly. The table is sorted by 'FIELDNAME'.
    By using the field 'Fieldindex' it is possible to assign the relevant field value in the table IT_FIELDVALUE.

  • IT_FIELDVALUE contains the data of the actual data type in the field 'Value'. Using the 'Index' field it the allocation for the relevant field names from IT_FIELDINFOS is possible.

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

  • Exporting Interface:
  • ET_FIELDVALUE_CHANGE
    You can make changes to field names here. The assignment to the source values from IT_FIELD VALUE can be carried out by using the index.

Example

  • Change Value
    Let's assume that you want to change the currency from EUR to EUR6. Determine the 'Fieldindex' from the field BIT_CURR from the table IT_FIELDINFOS. Afterwards, add a new entry in ET_FIELDVALUE as follows:
  • Value = 'EUR6'

  • Index = 'Fieldindex' in the BIT_CURR field.

  • Fill additional fields from event 10
    Following the example in event 10, you can fill the BITDATE and BITTIME fields here. Determine the 'Fieldindex' of the 'EventTimeStamp', CITDATE and CITTIME from the table IT_FIELDINFOS. Determine the value of 'EventTimeStamp' from the table IT_FIELDVALUE using the determined field index. Then add two new entries in ET_FIELDVALUE as follows:
  • Entry 1 for BITDATE
    Value: the first 8 characters of the value of EventTimeStamp
    Index: the determined field index for BITDATE

  • Entry 2 for BITTIME
    Value: the last 6 characters of the value of EventTimeStamp
    Index: the determined field index for BITTIME

Notes

The function module contains coding with comments to illustrate the examples described here.

Further information





Parameters

ET_FIELDVALUE_CHANGE
ET_MESSAGES
EV_ERROR
IS_PARAMS
IS_SCHEMA
IS_SETTINGS
IT_DFIES
IT_FIELDINFOS
IT_FIELDVALUE
IV_SOURCE
IV_SOURCE_TYPE

Exceptions

Function Group

FKKBIX_UPLOAD

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3422 Date: 20240603 Time: 233935     sap01-206 ( 51 ms )