SAP NOTE 691154 DATA_TRANSFORM和 HIER_TRANSFORM 的说明

来源:互联网 发布:旅游策划师 知乎 编辑:程序博客网 时间:2024/05/20 13:10
691154 - SAPI with BAdI: User exits in SAPI with BAdI interfaces Version        Validity: 14.06.2011 - active  Language   Compare versions SSCR Download
Content:    Summary   |   Header Data   |   Validity   |   Support Packages & Patches


Symptom

You want to create your own BAdI implementations in the service API.


Other Terms

SAPI with BAdI


Reason and Prerequisites

Prerequisites:
---------------

  • As of SAP_BASIS 6.20 and as of PI_BASIS 2004_1/BASIS的版本要求为6.2,自PI_BASIS_2004_1/BASIS
  • Existence of the BAdI definition RSU5_SAPI_BADI (SE18) /SE18中RSU5_SAPI_BADI存在
  • Interfaces of the BAdI methods in the include LRSAPF06/BADI方法的借口存在于INCLUDE LRSAPF06


In the standard system, the BAdI (RSU5_SAPI_BADI) is active and is defined as "Multiple Use"; therefore, the "filter-dependent" option is not permitted.

All of the active implementations are called and executed. Therefore, you deactivate the active implementations that you do not want to execute.

在标准系统中, RSU5_SAPI_BADI默认是激活状态,并且是可多次使用,因此“过滤器相关”的选项是不允许的。所有的实现都会被调用和执行。因此,你如果你不想执行某个实现的时候,应该使之处于未激活状态。

Solution

The following BAdI methods of data are available: BADI的方法有:

- DATA_TRANSFORM for the transaction data and master data  用于事务数据和主数据
- HIER_TRANSFORM for the hierarchies (not for flexible hierarchies) 用于层级(非灵活性的层级)

Proceed according to the following instructions to implement your own BAdI methods:请按如下的步骤实施BADI的方法

    1. Use transaction SE19 to create your own implementation names.用SE19创建自定义的实现名称
    2. Use the definition name RSU5_SAPI_BADI as a template.以RSU5_SAPI_BADI为模板
    3. Save and activate this implementation name in your package.保存,并激活,保存在PACKAGE 中
    4. Select one of the methods to perform the implementation.选择一个方法执行你的实现。

    a) Implementing the DATA_TRANSFORM method: 实施DATA_TRANSFORM的方法

This method enables you to fill your own fields that you have attached as an append structure to the extract structure of transaction data and master data of the SAP BW. Do not use this method to change the contents of key fields; instead, you should change them in the SAP BW. The following passed parameters are available:

这个方法允许你填充已经增强过的,用来提取事务和主数据的提取结构,此方法不可以用来修改关键字段的内容,请在BW 中修改,一下的传递参数的用处:
                       I_DATASOURCE  - name of the DataSource for transaction data and master data. 数据源名称

                       I_UPDMODE     - transfer mode (full, delta).更新模式(完全,增量)

                       I_T_SELECT    - requested selection criteria.(选择条件)

                       I_T_FIELDS    - requested fields.(选择字段)

                       C_T_DATA      - table of extracted data.(被提取数据的表)

                       C_T_MESSAGES  - error log.(错误信息)

    b) Implementing the HIER_TRANSFORM method: Hier Transform 的方法

This method enables you to change the contents of transfer tables that are created for a hierarchy request. This can be useful in the case of your own hierarchy classes. Do not use this method to change the contents of key fields; instead, you should change them in the SAP BW. The following passed parameters are available:

此方法允许你改变用于改变层级请求的传输表中的内容,如果你要自定义的层级类,此方法很有帮助。请勿使用此方法改变关键字段的内容,请在BW中修改,传递参数如下
                       I_DATASOURCE  - name of the DataSource for hierarchies. 层级数据源的名称

                       I_S_HIEFLAG    - hierarchy control indicator for reference characteristics. 层级控制的参考特性指示标记

                       I_S_HIER_SEL   - selected hierarchy. 选择的层级

                       I_T_LANGU      - table of requested languages.语言表

                       C_T_HIETEXT    - name of the hierarchy (language-dependent). 层级的名称(语言相关)

                       C_T_HIENODE    - directory of the hierarchy elements.(层级元素的目录)

                       C_T_FOLDERT   - name of the nodes that cannot be posted to.(不可赋值的层级节点名称)

                       C_T_HIEINTV   - table of hierarchy intervals.(非连续层级表)

                       C_T_MESSAGES  - error log from the customer exit function.(错误信息)

一下为版本等信息,不做翻译。

Released On14.06.2011 11:02:46Release StatusReleased for CustomerComponentBC-BW BW Service APIOther Components
BW-WHM-DST Data Staging
PriorityCorrection with low priorityCategoryProgram error

Validity

Software Component
From Rel.
To Rel.
And Subsequent
PI_BASIS
2003_1_620
2003_1_620
 
2004_1_620
2004_1_640
 

Support Packages & Patches

Support Packages
Software Component
Release
Support Package
PI_BASIS
2003_1_620
SAPKIPYH57

0 0
原创粉丝点击