fbpx

Advance Variant Configuration(AVC) & VCH_HL_AFL_CHECK

Loading

⚡Advance Variant Configuration(AVC) &VCH_HL_AFL_CHECK⚡

🎯  As we know the AVC has to be installed after the S4 Hana has been installed. This can be part of your upgrade or even for new installation

🎯 It is always important to evaluate if all the Technical Pre-Requisites are completed correctly

🎯 This is completely as Technical task for validation but still it is good for the Functional consultants also to be aware of this Pre-Requisites.

🎯 SAP has provided a standard report -VCH_HL_AFL_CHECK which will help you to execute and confirm the same.

🎯 There are parameters which are more technical but the important part is you should be getting a  message -“Procedure Called Successfully” in Green Highlighted color. This confirms that the technical pre-requisites are installed correctly.

Material and Class Linkage Details-1

In case if you are looking for solution of extracting the assignment of the Class data in SAP Using Standard Transaction, then below will be helpufl

Option 1:  Use the Standard Code  – CL6B – Object List 

This gives you List of Classes and the objects ( materials) assigned to it

Option 2:  Use the Standard Code  – CL6BN – Object List 

This gives you List of Classes and the objects ( materials) assigned to it in ALV Format.

 

 

The only challenge is in case if you need analzyse, the output when we save in exce l is not user friendly as it comes in a nested structure.

To avoid this we should try to extract the data from the SAP tables, will post as a separate thread.

Sales order Creation with Variant Configuration

The creation of sales order with variant configuration characteristics will be a little tricky one.
we have to use the below  Function module(FM) –
For Creation : SD_SALESDOCUMENT_CREATE
For Changes: SD_SALESDOCUMENT_CHANGE
 
one of the advantage of using this FM is that this will support all document types like Sales order, Scheduling agreements, Customer independent Requirements.

In the following section we will see the usage of this FM to create a simple Customer Independent requirement (MD81) with the variant configuration values passed on to the same.The below are the fM structure you need to work with

 

ORDER_HEADER_IN
ORDER_ITEMS_IN
SALES_SCHEDULES_IN
SALES_CFGS_REF
SALES_CFGS_INST
SALES_CFGS_VALUE

ORDER_HEADER_IN:

 

StructureFieldValueLogic
ORDER_HEADER_INREFOBJTYPEBUS2032Fixed
 REFOBJKEYRAMIRO1Fixed
 DOC_TYPE`01Fixed

ORDER_ITEMS_IN

 

StructureFieldValueLogic
ORDER_ITEMS_INITM_NUMBER10Fixed
 HG_LV_ITEM0 
 PO_ITM_NO10Fixed
 MATERIAL Dyanamic
 PLANT Dyanamic
 TARGET_QTY Dyanamic
 REQMTS_TYPKEKFixed
 MATERIAL_LONG Dyanamic

Note: In this structure the “common mistake” most of them do is not filling in the po_itm_no- if this is not filled then the SO will not be created with the characteristics values

SALES_SCHEDULES_IN

Structure Field Value Logic
SALES_SCHEDULES_IN ITM_NUMBER 10 Fixed
  SCHED_LINE 1 c
  REQ_DATE   Dynamic
  REFOBJKEY RAMIRO1 Fixed

SALES_CFGS_REF

Structure Field Value Logic
SALES_CFGS_REF POSEX 10 Fixed
  CONFIG_ID `000001 Fixed
  ROOT_ID `00000001 Fixed
  COMPLETE T Fixed
  CONSISTENT T Fixed
  CBASE_ID_TYPE G Fixed

SALES_CFGS_INST

Structure Field Value Logic
SALES_CFGS_INST CONFIG_ID `000001 Fixed
  INST_ID `00000001 Fixed
  OBJ_TYPE MARA Fixed
  CLASS_TYPE 300 Fixed
  OBJ_KEY   Dynamic-This will be Material Number
  OBJ_TXT    
  QUANTITY 10 Dynamic
  QUANTITY_UNIT TO Fixed
  COMPLETE T Fixed
  CONSISTENT T Fixed
  OBJECT_GUID   Dynamic-This will be Material Number
  PERSIST_ID_TYPE G Fixed

SALES_CFGS_VALUE

Structure Field Value Value Value
SALES_CFGS_VALUE CONFIG INST_ID CHARC VALUE
  `000001 `00000001 Charcteritics 1 Value 1
  `000001 `00000001 Charcteritics 2 Value 2
  `000001 `00000001 Charcteritics 3 Value 3

Variant Configuration – ALE Message Types

If you are working in a Variant configuration environment, then one of the best practices to transfer the VC – Master data between the Clients / Box is to use the ALE Methods.

The below list of message types can be a quick reference for Inward / Outward.

Outward:
MATMAS – Material master
BOMMAT -BOMs: Material BOM
CHRMAS -Class system: Characteristics master
CLFMAS -Class system: Classification master
CLSMAS -Class system: Classes master
CNPMAS -Configuration profile
DEPNET -DEPNET
ECMMAS-Engineering Change Management
KNOMAS -Global object dependencies

UPSMAS -ALE Distribution Unit (MASTER)
VFNMAS -Variant function
VTAMAS -Structure of the variant table
VTMMAS -Contents of variant table

INWARD:

MATMAS -MATM -Material Master
BOMMAT -BOMM -BOMs: Material BOM
CHRMAS -CHRM -Class system: Characteristics master
CLFMAS -CLFM -Class system: Classification master
CLSMAS -CLSM -Class system: Classes master
CNPMAS -CNPM -Configuration profile
DEPNET -DEPN -DEPNET
ECMMAS -ECMM -Engineering Change Management
KNOMAS -KNOM -Global object dependencies

UPSMAS -UPSM -ALE Distribution Unit (MASTER)
VFNMAS -VFNM -Variant function
VTAMAS -VTMAM Structure of variant table
VTMMAS -Contents of variant table

Variant Configuration – Formal Parameter not valid

Error Message: E28086 Formal parameter MATERIAL_XX not valid for: ZVC_XXX_YYY (Line 1)

Generally to read a value from the table we will define the C’stics from table and the C’stics from the class.

LHS = RHS

On LHS= we will be giving the Table Characteristics value

and on RHS = We will be giving the value from the Variant class.

In case if you are maintaining a DB link to the VC table, then more attention to be given to the C’stics when procedure is created.

Here you should ensure that we are giving the C’stic value from the Class and not the table. If we make any mistake then the Error E28086 bound to Happen.