测试
全部博文(931)
分类: 架构设计与优化
2019-12-19 13:19:49
An example from sap help
For a car, the interior, the engine capacity, and the exterior paint color can vary, for example. When the customer selects this car in the Web shop, the possible characteristics for the product are displayed automatically. The customer can select the characteristic values that he or she wants. Only characteristics that are compatible with the previously selected characteristic values are shown. If the various characteristics of a product affect its price, the price that is displayed is also recalculated.
This issue introduces basic functionality of product model in CRM WebClient UI, which is a prerequisite knowledge for co-deployment project.
You should first switch on configurable flag for the product type via customizing below:
Save the product. Now you should see "Product Model" assignment block. Click "Edit List" to create a new model:
Choose String as data type:
Based on this size characteristic, create three local values:
Create another COLOR characteristic:
And the third chatacteristic for Accessory number:
And click "Apply Changes":
Now the model is ready for simulation:
Once you click Simulation button, you can configure the model according to available characteristic value maintained in previous step:
Once you have done value selection, click preview hyperlink:
You will get an overview of configured product model:
Edit the product Model created in previous blog, create a new dependency with type "Formula":
We can maintain formula for example below. In this case, it means "if the characteristic MACHINE_SIZE is selected as H(Home), another characteristic ACCESSORY_NUMBER would automatically be determined as 2".
You can click button "Suggest" to get some editing proposal.
Once edit is done, click "Check Syntax" to ensure the formula does not have any syntax error.
Since the product configuration engine is implemented in Java, there is a corresponding remote function module which delegates the check job to Java application running in virtual machine container.
You can find more information by tcode SM53:
Now simulate the product model, once Home is selected from drop down list and press entry key, the value 2 is automatically determined to 2 as expected.
Create a new quotation, add the product which owns the created product model as item. Save the quotation.
Enter the item detail page, you can see a new "Configuration" assignment block.
The product model simulation page is now opened as a embedded view in Quotation item detail page.
Select value for characteristic according to your business. Now the configured product is persisted in quotation item level.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":