Transformation Routines

本文详细介绍了数据转换中的各种规则类型,包括常量填充、公式应用、读取主数据等,并阐述了不同类型的例行程序及其参数,帮助理解数据如何在源字段和目标字段间进行映射。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Transformations are made up at least one transformation rule.

1.    Transformation rules map any number of source fields to at least one field in the target. You can use different rules types for this.

2.    The different rule types available within a transformation rule are laid out below

a)    Constants – A field can be filled directly with a value that is predetermined

b)    Formula – Formula Builder and Transformation Library

c)    Reading Master Data – Derive values off of existing master data

d)    Time Update – When performing a time update, an automatic time conversion and a time distribution are available

e)    Unit of Measure Conversion / Currency Translation

f)     Initial – Leave a fields value blank

g)    Routines – Custom code which you have written that will determine based on the programmed logic what the eventual value(s) of a field will be.

 

Types of Routines within Transformations

1.    Start Routine

2.    Routine for updating Key Figures

3.    Routine for updating Characteristics

4.    End Routine

5.    Expert Routine

Parameters of Interfaces of Routines

REQUEST – Request ID of load in progress

DATAPACKID – data package ID (i.e. 1, 2, 3)

MONITOR – Messaging mechanism for Transformations, place informational and error messages inside the structure, it will then be displayed from within the monitor.

SOURCE_PACKAGE – (formerly DATA_PACKAGE) Contains all of the data being passed into the Transformation from the specified source

CX_RSROUT_ABORT – Class Exception when raised will cause the transformation process to halt.

SOURCE_FIELDS – Structure containing the values of the field(s) specified as source fields when creating the rule.

RESULT – Parameter that receives the desired result value for the characteristic.
CX_RSROUT_SKIP_RECORD – Class Exception when raised will cause the transformation process to skip a record.

 

RESULT_PACKAGE –Contains all of the data being passed out of the Transformation after the the different Rule Groups have been processed, transforming the data.

 

Monitor Entries within Transformation Routine

DATA: MONITOR_REC TYPE rsmonitor.

MONITOR_REC-MSGID = 'RSM'.

MONITOR_REC-MSGTY = 'E'.

MONITOR_REC-MSGNO = '799'.

MONITOR_REC-MSGV1 = 'Cost Center '.

MONITOR_REC-MSGV2 = SOURCE_FIELDS-KOSTL.

APPEND MONITOR_REC to MONITOR.

RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD/CX_RSROUT_ABORT.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值