SD--如何在输出控制中增加自定义字段
2015-06-19 15:50
519 查看
在sap的输出控制中,我们有时需要增加系统未定义的字段作为条件表的字段,为了实现该需求我们就需要修改增强。
输出控制用到的通讯结构
KOMKBK1 (Output Determination Communication Area CAS Appl. K1)
KOMKBV1 (Output Determination Communication Area Header Appl. V1)
KOMKBV2 (Output Determination Communication Area Header Appl. V2)
KOMKBV3 (Output Determination Communication Area Header Appl. V3)
KOMKBV5 (Communication Structure for Output Control Groups Appl. V5)
KOMPBV1 (Output Determination Communication Area Item Appl. V1)
KOMPBV2 (Output Determination Communication Area Item Appl. V2)
KOMPBV3 (Output Determination Communication Area Item Appl. V3)
SAP在这些结构中预留了INCLUDEs,用户可以向这些结构添加新的字段
Sales activities: KOMKBZ1 (in KOMKBK1)
Sales document header: KOMKBZ3 (in KOMKBV1)
Delivery header: KOMKBZ4 (in KOMKBV2)
Groups header: KOMKBZF (in KOMKBV5)
Billing document header: KOMKBZ5 (in KOMKBV3)
Sales document item: KOMPBZ1 (in KOMPBV1)
Delivery item: KOMPBZ3 (in KOMPBV2)
Billing document item: KOMKBZ5 (in KOMPBV3)
如果需要用新增字段创建条件表,我们就需要同时向KOMBZ结构添加该字段 (KOMBZ包含在通讯结构KOMB中).
完成以上两部后,我们还需要增强sap的代码,对通讯结构的字段进行赋值。sap在RVCOMFZZ, RVCOMFZ1 和RVCOMFZ4单元预留了很多的出口。
RVCOMFZ1中的出口如下:
USEREXIT_KOMPBV2_FILL (item fields in delivery)
USEREXIT_KOMPBV2_PARTNER (item fields for partners in delivery)
USEREXIT_KOMPBV3_FILL (item fields in billing document)
USEREXIT_KOMPBV3_PARTNER (item fields for partners in billing document)
RVCOMFZZ中的出口如下:
USEREXIT_KOMKBK1_FILL (header fields in sales activities)
USEREXIT_KOMKBK1_PARTNER (header fields for partners in sales activ.)
USEREXIT_KOMKBV1_FILL (header fields for sales documents)
USEREXIT_KOMKBV1_PARTNER (header fields for partners in sales documents)
USEREXIT_KOMKBV2_FILL (header fields in delivery)
USEREXIT_KOMKBV2_PARTNER (header fields for partners in delivery)
USEREXIT_KOMKBV3_FILL (header fields in billing document)
USEREXIT_KOMKBV3_PARTNER (header fields for partners in billing doc.)
RVCOMFZ4中的出口如下:
USEREXIT_KOMKBV5_FILL (header field for groups)
In output determination, communication table KOMB contains all key fields that can be used for conditions for output determination.
When you create new fields for output determination, you can distinguish between two types of fields:
Fields that are used in condition tables
Fields which are only used to query conditions.
Both types of field have to be included in KOMKBV1. Fields which are only used to query conditions do not have to be included in KOMB and T681F or in the field catalog.
对订单输出控制增加自定义字段的详细步骤如下;
1、用SE11向KOMKBV1中的KOMKBZ3增加自定义字段;
2、用SE11向KOMB中的KOMBZ增加自定义字段;
3、用V/86将自定义字段添加到允许字段中(字段必须来自KOMB,否则在建表时不可见);
4、用V/57定义条件表;
5、定义条件存储顺序;
6、将条件存储顺序赋值给条件类型;
7、修改代码RVCOMFZZ中的子过程USEREXIT_KOMKBV1_FILL
转自:http://blog.csdn.net/sap_jack/article/details/46544619
输出控制用到的通讯结构
KOMKBK1 (Output Determination Communication Area CAS Appl. K1)
KOMKBV1 (Output Determination Communication Area Header Appl. V1)
KOMKBV2 (Output Determination Communication Area Header Appl. V2)
KOMKBV3 (Output Determination Communication Area Header Appl. V3)
KOMKBV5 (Communication Structure for Output Control Groups Appl. V5)
KOMPBV1 (Output Determination Communication Area Item Appl. V1)
KOMPBV2 (Output Determination Communication Area Item Appl. V2)
KOMPBV3 (Output Determination Communication Area Item Appl. V3)
SAP在这些结构中预留了INCLUDEs,用户可以向这些结构添加新的字段
Sales activities: KOMKBZ1 (in KOMKBK1)
Sales document header: KOMKBZ3 (in KOMKBV1)
Delivery header: KOMKBZ4 (in KOMKBV2)
Groups header: KOMKBZF (in KOMKBV5)
Billing document header: KOMKBZ5 (in KOMKBV3)
Sales document item: KOMPBZ1 (in KOMPBV1)
Delivery item: KOMPBZ3 (in KOMPBV2)
Billing document item: KOMKBZ5 (in KOMPBV3)
如果需要用新增字段创建条件表,我们就需要同时向KOMBZ结构添加该字段 (KOMBZ包含在通讯结构KOMB中).
完成以上两部后,我们还需要增强sap的代码,对通讯结构的字段进行赋值。sap在RVCOMFZZ, RVCOMFZ1 和RVCOMFZ4单元预留了很多的出口。
RVCOMFZ1中的出口如下:
USEREXIT_KOMPBV2_FILL (item fields in delivery)
USEREXIT_KOMPBV2_PARTNER (item fields for partners in delivery)
USEREXIT_KOMPBV3_FILL (item fields in billing document)
USEREXIT_KOMPBV3_PARTNER (item fields for partners in billing document)
RVCOMFZZ中的出口如下:
USEREXIT_KOMKBK1_FILL (header fields in sales activities)
USEREXIT_KOMKBK1_PARTNER (header fields for partners in sales activ.)
USEREXIT_KOMKBV1_FILL (header fields for sales documents)
USEREXIT_KOMKBV1_PARTNER (header fields for partners in sales documents)
USEREXIT_KOMKBV2_FILL (header fields in delivery)
USEREXIT_KOMKBV2_PARTNER (header fields for partners in delivery)
USEREXIT_KOMKBV3_FILL (header fields in billing document)
USEREXIT_KOMKBV3_PARTNER (header fields for partners in billing doc.)
RVCOMFZ4中的出口如下:
USEREXIT_KOMKBV5_FILL (header field for groups)
In output determination, communication table KOMB contains all key fields that can be used for conditions for output determination.
When you create new fields for output determination, you can distinguish between two types of fields:
Fields that are used in condition tables
Fields which are only used to query conditions.
Both types of field have to be included in KOMKBV1. Fields which are only used to query conditions do not have to be included in KOMB and T681F or in the field catalog.
对订单输出控制增加自定义字段的详细步骤如下;
1、用SE11向KOMKBV1中的KOMKBZ3增加自定义字段;
2、用SE11向KOMB中的KOMBZ增加自定义字段;
3、用V/86将自定义字段添加到允许字段中(字段必须来自KOMB,否则在建表时不可见);
4、用V/57定义条件表;
5、定义条件存储顺序;
6、将条件存储顺序赋值给条件类型;
7、修改代码RVCOMFZZ中的子过程USEREXIT_KOMKBV1_FILL
转自:http://blog.csdn.net/sap_jack/article/details/46544619
相关文章推荐
- MVC视图中@Html.DisplayFor 控件 日期的显示格式
- jquery 自动跳出列表
- python的xml库操作读写文件真是慢的无语,跟直接操作文本型的操作真不是一个级别的
- mysql中limit的查询优化,千万级也能轻松搞定
- 使用Python和xml.etree.ElementTree解析xml文件
- python 调用word打开doc文档报错,“word无法启动转换器mswrd632.wpc”
- eclipse新建python项Project interpreter not specified
- python Word 编程
- python数组交集、并集与不同
- python数组交集、并集与不同
- django1.2.4 session保存有bug
- mongodb注册为服务
- 一个很好玩的jquery例子:小方块先逐渐显示,后向右滑动,再向左滑回,最后向上隐藏
- JS nodeName、nodeValue、nodeType返回类型
- python链接mysql常见问题汇总
- 【转】Python2.6下安装Mysqldb出现DeprecationWarning: the sets module is deprecated from sets错误解决方案
- django报错:No module named urls
- \'RegistrationForm\' object has no attribute \'clean_data 语法变更
- django 中 slice 和 truncatewords 不同用法
- django模板变量直接显示html代码的问题