SAP Knowledge Base Article - Public

3354034 - Material Variant creation within a Sales Order fails with popup 'Creation of product variant by custom logic has failed'

Symptom

  • Material Variant creation within a Sales Order fails with popup 'Creation of product variant by custom logic has failed'
  • Material Variant creation does not work when using the BADI's BD_LO_VCHCLF_VCH_SD_VAR_COPY or BD_LO_VCHCLF_VCH_SD_VAR_DATA in a Sales Order
  • Error ''You have not fully maintained the tax classifications" appears when creating a Material Variant and not known why 

Environment

  • Advanced Variant Configuration
  • SAP S/4HANA Cloud -All versions

Reproducing the Issue

  1. Access the app Create Sales Order (VA01)
  2. Enter Order Type
  3. Enter Sold To / Ship To 
  4. Press Enter
  5. Input Configurable Material and Quantity
  6. Select Sales Organisation , Distribution Channel and Division to use 
  7. On the Characteristic Valuation Screen, valuate the characteristics involved
  8. Click on 'Create Variant' in the split menu of the Variant Matching button
  9. Popup appears with 'Creation of product variant by custom logic has failed'

Cause

Tax Classification not maintained for Template Product that is used as reference to create the Material Variant

Resolution


The unsuccessful creation of the Product Variant from the sales order item variant configuration screen is caused by a missing tax classification in the Template Product for sales org and distribution channel selected

There is an additional line(s) where no tax classification is maintained, which causes the product creation to fail, because for the Variant Product creation logic a valid Product without any errors is required

Once you maintain this tax classification(s) through the Manage Product Master Data app for the Template Product, the variant creation will be successful

Keywords

CUOBJ , OD , KMAT , MLAN , SDRAFT_COMMON    , MG172 , 'Variant Configuration: Create Product Variant from Sales Order, Template Data' , 'Variant Configuration: Create Product Variant from Sales Order, Product Data' , KBA , LO-VCH-2CL , Advanced Variant Configuration (Public Cloud) , SD-FIO-SLS , Sales Apps , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions