当前位置:网站首页>How to play with the purchase of SAP variant materials? Look at this article and you will understand
How to play with the purchase of SAP variant materials? Look at this article and you will understand
2022-07-27 07:58:00 【51CTO】
SAP How to play with the purchase of variable materials ? Look at this one and you'll see !
The author has the opportunity and the honor to work on the project of an auto parts company , The company used to produce “ tire ”. Sales in any industry 、 There are variations in both purchase and production businesses , It depends heavily on the characteristics and variants of materials ( variant / variant ), Inevitably, it must be implemented “ Variant configuration ”(VC).
Although the company does not use VC, But in the author's view SAP When the system is audited , The author observed that , When 100 When different material codes are enabled for different production variants , How boring the business has become . The purpose of this article is to explain in the procurement process , How to use SAP Variant conditions of the system (Variant Condition) function , To realize the effect of automatically calculating the surcharge or discount value according to the product characteristics .
The author thinks , Variant configuration is not a solution for customers in specific industries , Can be used anywhere ( for example , On order “Pizza” when ).
Here is a business scenario : According to Pizza Under the type Pizza Order , Then the supplier charges some surcharges according to the user's choice ( Extra cost ).
The test system :S/4 HANA 1709
Example : Product pizza , It has 6 There are two different characteristics ( Pizza type ), Surcharge calculation .

SAP VC Heavily dependent on classes 、 Characteristics and object dependencies to calculate values . under these circumstances , The author will use “Procedure”, Because the author needs to calculate the surcharge continuously , These surcharges are determined by the eigenvalue . Only “Procedure” This dependency type can provide the derivation function of the feature , At this time there is 2 Options to choose from : Coverage and continuous computing .
Dependency type “Procedure” It is mainly used for BOM Row item 、 Task list and configuration parameter file . Later in this article , The author will explain how to use the configuration parameter file .
1, Create a feature , To express different Pizza Types.

2, Use MMCOM Fields in the table VKOND, Use the reference feature to create another feature .
notes : Reference feature refers to the feature of a table field .
In this case , According to table MMCOM Field VKOND Corresponding Pizza type (Pizza Characteristics and their values ) To calculate the purchase Pizza The surcharge on .

MMCOM-VKOND, As shown in the figure below :

Create features and assign reference features .

3, Create a material , Make sure that it is marked as a configurable material in the material master , And assign a Class. Use transaction code CU41 Create a configuration parameter file , Then assign Class And use dependency types procedure Write dependent code .

Use $self-> Write dependent code , And check whether the grammar is correct .

4, Create a purchase information record for this material , As shown below . The condition type VA00 For variant function ( Based on quantity / value ).

Maintain based on pizza type The surcharge on . As shown in the figure below :

Why? VA00 Condition types are used to maintain surcharges in purchase information records ? You can see the configuration of this condition type .

5, Create a purchase order , We can see how the variant function works in purchasing .

choice pizza type, The system will automatically display the surcharge amount . For example, we choose 03 (Pepperoni), The system automatically gets a surcharge of 5 Yuan .

Check condition record , It can be found that the price of the purchase surcharge is based on Pizza Type Calculated according to the characteristics of .

If you will Pizza type Switch to 04(Meat), be SAP The system will automatically calculate the new purchase surcharge .

SAP The system will automatically take out the new surcharge 8 Yuan , As shown in the figure below :

Original English address
https://www.sapspot.com/variant-conditions-in-purchasing-using-reference-characteristics/
- End -
2021-9-22 Translation in residence .
边栏推荐
猜你喜欢

OpenGL shader learning notes: varying variables

如何获取广告服务流量变现数据,助力广告效果分析?

【QT】capture. Obj:-1: error: lnk2019: unresolved external symbols__ imp_ Htons (solution)

Day111.尚医通:集成NUXT框架、前台页面首页数据、医院详情页

Demo submit a program and obtain ALV data of the program

【pytorch】ResNet18、ResNet20、ResNet34、ResNet50网络结构与实现

增强:BTE流程简介

QingChuang technology joined dragon lizard community to build a new ecosystem of intelligent operation and maintenance platform

SQL labs SQL injection platform - level 1 less-1 get - error based - Single Quotes - string (get single quote character injection based on errors)

What are the software tuning methods? Let's see what Feiteng technology experts say about dragon lizard technology
随机推荐
MCU multi-level menu
DEMO SUBMIT 某程序并获取该程序ALV数据
代码接口自动化的有点
Lua stateful iterator
Enhancement: BTE process introduction
End of year summary
The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?
Lua有状态迭代器
C# 中的转译字符'/b'
Showdoc vulnerability learning - cnvd-2020-26585 (arbitrary file upload)
Primary key in MySQL secondary index - MySQL has a large number of same data paging query optimization
反弹shell是什么?反弹shell有什么用?
Can Linux install sqlserver
Framework of electronic mass production project -- basic idea
Lua iterator
Install tensorflow
API version control [eolink translation]
OpenGL shader learning notes: varying variables
Modification case of Ruixin micro rk3399-i2c4 mounting EEPROM
【小程序】uniapp发行微信小程序上传失败Error: Error: {'errCode':-10008,'errMsg':'invalid ip...