现在的位置: 首页 > 综合 > 正文

插入、更新扩展字段

2012年04月18日 ⁄ 综合 ⁄ 共 1623字 ⁄ 字号 评论关闭
文章目录
插入、更新扩展字段:
BAPI:BAPI_MATERIAL_MAINTAINDATA_RT
CLIENTEXT            LIKE              BAPIE1MARAEXTRT                  Customer-defined client-specific material data
CLIENTEXTX         LIKE               BAPIE1MARAEXTRTX                Information on update for CLIENTEXT
这两个是用来更新商品的扩展字段。

Customer-defined client-specific article data

Description

If the general basic data for the material has been extended to include customer-specific fields, you can use this structure to transfer the data for these customer-specific fields.

The key fields are already specified. You can store the customer-specific data in the data container provided by fields FIELD1 to FIELD4. The split into four individual fields was necessary for purely technical reasons. If the data is transferred using this structure, the structure information for the customer-specific fields is lost.

Example
Extending table MARA using the following APPEND structure:

Structure name ZMARA

Field name Type name Data type Length
ZCUST1 ZCUST1 CHAR 10
ZCUST2 ZCUST2 CHAR 2
ZCUST3 ZCUST3 CHAR 5

The data can be transferred to this structure by appending the field contents of FUNCTION, MATERIAL, ZCUST1, ZCUST2, and ZCUST3.

Information on update for CLIENTEXT

Description

This structure (checkbox structure) is used to determine which fields in the assigned user data structure (CLIENTEXT) contain change-relevant information.

This makes it possible to supply valid values only to the relevant fields in the assigned user data structure. These fields are then selected in the checkbox structure, ensuring that all nonselected fields retain their current value in the database.

Note

If the indicator ALL_FIELDS in the structure HEADDATA is set, the information in the checkbox structure is irrelevant; that is, no data records are required in the checkbox structure (see also the documentation for data element UPDALL).

抱歉!评论已关闭.