建立合約時擷取可配置物料中選配的特性值

來源:互聯網
上載者:User

http://forums.sdn.sap.com/thread.jspa?threadID=1027022

 

Hi,
I have taken configuration data of sales order/item from VC_I_GET_CONFIGURATION function module, i should change some of the data and save them back,
Can any one provide the function module name to save the configuration data in SAP sytem,

Thanks in advance,

 

 

 

CUCB_SET_CONFIGURATION

 

 

 

Try with Function module

CE_C_PROCESSING.also you can use

CE_I_SET_CONFIGURATION

CUCB_CHANGE_CONFIGURATION

CUD0_CONFIGURATION_TO_DB
CUCB_SET_CONFIGURATION
FUNCTION GROUP: CEI0
FUNCTION GROUP: CLBP
IDOC_INPUT_CLASS_CREATE
ALE_CLASS_CREATE
BAPI_CLASS_CREATE_TEST(Program)

 

參考:
http://forums.sdn.sap.com/thread.jspa?threadID=1128411
http://aq33.com/development-programming/Articles009018.html

CUCB_GET_SINGLE_INSTANCE  

vc_i_get_configuration  (也是調用CUCB_GET_SINGLE_INSTANCE)

CE_I_GET_CONFIGURATION

I am not able to check on a release 4.0B system, but on the 4.6C system I am working on there is a function module CUCB_GET_SINGLE_INSTANCE which you can use to retrieve the values for the configuration instance (VBAP-CUOBJ) before an update has occured. Quite handily this function module works after an update has taken place also.

 

業務需求:
建立合約時擷取可配置物料中選配的機型,便於做一些增強控制。

技術需求:在VA41 (SAPMV45A)合約儲存前,需要擷取到特性值

經測試,USEREXIT_SAVE_DOCUMENT 這個出口當中,VBAP-CUOBJ已經產生,通過VC_I_GET_CONFIGURATION擷取到特性值。

實際上,VA41中是通過行項目中的“按鈕”跳轉到選擇配置的介面時,就已經開始構造配置表,這時候配置表可能並沒有存入資料庫,而是在BUFFER當中。

例如:斷點調試到USEREXIT_SAVE_DOCUMENT 這個出口時,VBAP-CUOBJ已經產生,SE37去調用VC_I_GET_CONFIGURATION是並不能獲得前台選定的配置。但如果在USEREXIT_SAVE_DOCUMENT中編碼測試,則VC_I_GET_CONFIGURATION可以取得特性值。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.