日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SD--如何在输出控制中增加自定义字段

發布時間:2025/3/20 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SD--如何在输出控制中增加自定义字段 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在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

總結

以上是生活随笔為你收集整理的SD--如何在输出控制中增加自定义字段的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。