SAP Variant Conditions in Purchasing using reference characteristics【中英文双语版】
SAP Variant Conditions in Purchasing using reference characteristics
SAP变式物料的采购如何玩转?看看这篇你就明白了!
I had opportunity and privilege to work for an automotive organization which used to manufacture “Tyres”. Any industry which has variants in their business from Sales, Purchasing and in production heavily depend on characteristics and variants of materials and inevitably ”Variant Configuration” has to be implemented. 我有机会也有幸在一家汽车公司的项目上工作,该公司过去生产“轮胎”。任何行业的销售、采购和生产业务都存在变体,严重依赖于物料的特性和变式(变体/变种),不可避免地必须实施“变式配置”(VC)。
Though client was not using VC, during our system audit, we observed how tedious has become the business when 100 of variants of production were taking place and all where on different material codes. This blog is written to explain how during purchasing, a variant conditions can be deployed so as to calculate surcharges or discount values based on characteristics of product. 该公司没有使用VC功能,在我们对其SAP系统做审计的时候,我们观察到,当100种不同的生产变体启用了各自不同的物料代码时,业务变得多么单调乏味。本文旨在解释在采购流程如何通过部署SAP的变式条件(Variant Condition),来实现根据产品特性值自动计算附加费或折扣值的效果。
Variant configuration from my perspective is not an industry specific solutions for customer and its usage can be anywhere example while placing an order for a ”Pizza”:) 我个人观点是,变式配置并不是对于特定行业客户的解决方案,它可以在任何地方使用(例如,在订购“Pizza”时)。
You place an order of Pizza and based on Pizza types, and vendor put some surcharges ( Additional charges) based on your choice. 您根据Pizza类型下Pizza订单,供应商根据您的选择收取一些附加费(额外费用)。
Testing system: S4H 1709 测试系统:S/4 HANA 1709
Example. Product Pizza and it has 6 different characteristics(Pizza types), surcharge calculation. 例子:比萨饼,它有6个不同的特点(比萨饼类型),附加费计算。
SAP VC heavily rely on class, characteristics and object dependencies to infer the values. In this case, I will use“Procedure”because I need successive calculation of surcharges which will be derived by characteristics value. Only dependency type“Procedure”provides derivation of characteristics with option of overwriting and successive calculation. SAP VC严重依赖于类、特征和对象依赖关系来推算值。在这种情况下,我将使用“Procedure”,因为我需要连续计算附加费,这些附加费是由特征值来决定。只有 “Procedure”这个依赖类型才能提供特征的派生功能,此时有2个选项可供选择:覆盖和连续计算。
Dependency type “Procedure” is primarily used in BOM Items, Task list object and Configuration Profile. Latter this blog, it will be explained, how in our case, configuration profile will be used. 依赖类型“Procedure”主要用于BOM行项目、任务列表和配置参数文件。在本文后面,我们将解释如何使用配置参数文件。
Create different Pizza types using a characteristics. 创建一个特性,来表示不同的Pizza Types。
Create another Characteristics using reference characteristics using table MMCOM, field VKOND. 使用MMCOM表中的字段VKOND,使用参考特征创建另一个特征。
–> Reference characteristics are characteristics that refer to table fields. 参考特征是参考某个表字段的特征。
In our case, surcharges on pizza during Purchasing will be calculated based on Pizza Types (Characteristics of pizzas and its values) from reference table MMCOM VKOND. 在我们的案例中,将根据表MMCOM字段VKOND对应Pizza类型(Pizza特征及其值)来计算购买Pizza的附加费。
MMCOM-VKOND, 如下图示意:
Create a characteristics and assign the reference characteristics in it. 创建特征并指派参考特征。
Create a material and ensure to make to configurable product in material master and assign a class having both the characteristics being created above. 创建一个物料,确保在物料主数据里将其标记为可配置物料,并分配一个具有上述两个特征的Class。
Create a configuration profile CU41 and assign the class and write a dependency code using dependency type procedure. 可以使用事务代码CU41创建配置参数文件,然后分配Class并使用依赖类型procedure编写依赖代码。
Use $self-> for writing the dependency code and check the syntax is correct or not. 使用$self->编写依赖代码,并检查语法是否正确。
Create a vendor info record for this Material as below. Condition type VA00 is used for variant functions( Qty/ value based). 为该物料创建采购信息记录,如下所示。条件类型VA00用于变式功能(基于数量/值)。
and mention the surcharge rate based on pizza types. 维护好基于pizza type的附加费。如下图示:
why VA00 condition type is used in creating Vendor info record for surcharge is explicable from configuration. 为啥VA00条件类型用于维护采购信息记录里的附加费?可以看看该条件类型的配置。
Now, create a Purchase order and see how our variant function in purchasing works. 创建一个采购订单,我们可以看看在采购中的变式功能是如何工作的。
Select the pizza of your choice, system will automatically bring its values. 选择您选择的pizza type,系统将自动显示附加费金额。比如我们选择Pizza type 03, 系统自动取出附加费5块钱。
and if you check the condition record, price is fetched based on characteristics of Pizza. 如果你去检查条件记录,可以发现这个采购附加费的价格是根据Pizza Type的特性来计算的。
if we change the alternative to another variant of Pizza 04(Meat), system automatically adjusts the new one. 如果我们将Pizza type换成 04(Meat),则SAP系统会自动推算出新的采购附加费金额。
The new surcharge is calculated. 取出新的附加费8块钱,如下图示:
英文原文地址
Variant Conditions in Purchasing using reference characteristics - SAPSPOT
-完-
2021-9-22 翻译于住处。
文章来自于网络,如果侵犯了您的权益,请联系站长删除!