How to get propose products in Sales Order
Logon on HN1/Q2U using SALESPRO role, Sales Cycle -> Sales Order Search -> Edit List in Items AB -> More -> Propose Items from Listings (please see CRM_PT_SALES_Product_Proposal.xls for detail steps)
After clicked Propose Items from Listing, the propose products will be rendered in the list table.
Question: How to get products in Sales Order? Does it use Product Search component or itself?
# Conclusions
As you see, when adding items in list, not only include product id, but also include Unit, Currency, and Net Value and so on. There are three steps to render products in Items AB:
Step1: Get product list by additional function modules, not Product Search Component. This step just get product id list.
Step2: Get product attributes by Product Search Component based on the product id list in step1.
Step3: get price based on products with attributes.
So in sales order, they get product id list by their own function modules. Product Search Component is used to get attributes of result products which will be used to get product price.
# Explanation
(1) using St05 to trace the sql when clicked Propose Items form Listing, see screenshot:
The highlight item is sql in SQL_issue.txt.
Setting a breakpoint in SAPLCRM_PRODUCT_GETLIST/CRM_PRODUCT_GETLIST2 to debug, see call stack screenshot:
UI Component: BT115IT_SLSO
View: BT115IT_SLSO/Items
Trigger event: eh_onpp_listings
Call stack 21: trigger event en_onpp_listings
Call stack 30: CRM_PRODUCT_PROPOSAL_DETERMINE is key function
first, function CRM_MKTPR_PP_GENERATE is the funtion to get product id list.
In it, it reads method schema.
Then loop schemas to execute function modules to get propose products:
Then call funtion CRM_PRODUCT_PROPOSAL_PRICEDET to get net price
More Info here:
Spro -> img -> crm -> transactions -> settings for sales transaction -> product proposals in Quotations and Orders -> method schemas for product proposals -> assign method schema to transaction type.
You can assign a method schema to a sales organization with a transaction type
Every method schema has a list of function modules:
Call stack 32: In BEA_CNPL_API_SIMULATE to call funtion BEA_CNPL_PDL_O_DATA_ENRICH to get product attributes.
Call stack 35: call function COM_PRODUCT_GETLIST_API with scenario parameter.
Call stack 36: delegate to product search component with proposed product in it_criteria.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2677218/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP Cloud for Customer裡Sales Order和Sales Quote的建模方式Cloud
- How do I reverse selected lines order in Vim?
- EBS:OM Sales Order銷售訂單【Open Interface、Open API】API
- How to get the description of blast hit using blastdbcmd?AST
- 使用ABAP程式碼建立S/4HANA裡的Sales Order
- 如何利用BAPI SD_SALESDOCUMENT_CHANGE修改Sales Order的欄位API
- How to get the exact duration of an audio file in js All In OneJS
- SAP SD 基礎知識之Cash Sales和Rush Order的區別
- [20190522]How to get dump or list parameters set at session level.txtSession
- [20201110]How to get the Data Guard broker configuration from a SQL query.txtSQL
- 如何處理用程式碼建立SD Sales order時遇到的錯誤訊息KI 180
- 使用函式BAPISDORDER_GETDETAILEDLIST讀取S/4HANA中Sales Order行專案資料函式APIAI
- [ABC132F] Small Products 題解
- [LeetCode] 2064. Minimized Maximum of Products Distributed to Any StoreLeetCodeZed
- CSS orderCSS
- 【Lintcode】1793. Balanced Sales Array
- How to ssh
- SAP CRM Fiori應用如何啟用Sales Office和Sales Group兩個欄位
- Order by 優化優化
- order by與索引索引
- How to find dependency
- SAP 電商雲 Spartacus UI 和 CPQ Configurable Products 的整合UI
- 淺談SAP Cloud for Sales 自動化Cloud
- mysql order by 優化MySql優化
- CSS3 orderCSSS3
- [Javascript] Object property orderJavaScriptObject
- MySQL 之 ORDER BY FIELDMySql
- [譯] WebAssembly: How and whyWeb
- How OpenStack integrates with Ceph?
- How to Build a Cybersecurity CareerUI
- CISO之What & How
- How to Restart Qt ApplicationRESTQTAPP
- How Python list works?Python
- How to Install psql on MacSQLMac
- How to Install LibreOffice on UbuntuUbuntu
- 如何從ERP下載Sales BOM到CRM
- 錯誤訊息sales area is not assigned for the header productHeader
- 題解:AT_arc116_b [ARC116B] Products of Min-Max