Advanced Price Rules Configuration

Create comprehensive pricing rules with conditions and actions for dynamic pricing strategies

Advanced Price Rules Configuration

Create comprehensive pricing rules with conditions and actions for dynamic pricing strategies

Gevorderd Gemiddeld Risico v2.0 Backup Vereist

Vereisten

Vereisten

  • Price engine configured
  • Customer groups defined
  • Product categories established

SAP Commerce Versie

1905 2005 2105 2205 2211

Vereiste Modules

core pricing rules

Bedrijfsimpact

Enables dynamic pricing strategies and customer-specific discounts

Parameters

tools.sapCommerceImpexLibrary.ui.parameterGuide

Impex Code

54 Regelspricingrulesdiscountsconditionsdynamic
# Advanced Price Rules Configuration
# Creates comprehensive pricing rules with conditions and actions

# Create price rule conditions
INSERT_UPDATE PriceRuleConditionDefinition;code[unique=true];name[lang=en];description[lang=en];type(code)
;CustomerGroupCondition;Customer Group Condition;Check if customer belongs to specific group;customerGroupCondition
;ProductCategoryCondition;Product Category Condition;Check if product belongs to specific category;productCategoryCondition
;OrderTotalCondition;Order Total Condition;Check if order total meets threshold;orderTotalCondition
;ProductQuantityCondition;Product Quantity Condition;Check if product quantity meets threshold;productQuantityCondition
;DateRangeCondition;Date Range Condition;Check if current date is within range;dateRangeCondition

# Create price rule actions
INSERT_UPDATE PriceRuleActionDefinition;code[unique=true];name[lang=en];description[lang=en];type(code)
;PercentageDiscountAction;Percentage Discount;Apply percentage discount;percentageDiscountAction
;FixedAmountDiscountAction;Fixed Amount Discount;Apply fixed amount discount;fixedAmountDiscountAction
;FreeShippingAction;Free Shipping;Apply free shipping;freeShippingAction
;ProductGiftAction;Product Gift;Add product as gift;productGiftAction
;PriceOverrideAction;Price Override;Override product price;priceOverrideAction

# Create price rules
INSERT_UPDATE PriceRule;code[unique=true];name[lang=en];description[lang=en];priority;active;startDate[dateformat=dd.MM.yyyy];endDate[dateformat=dd.MM.yyyy]
;VIP_CUSTOMER_DISCOUNT;VIP Customer Discount;20% discount for VIP customers;100;true;01.01.2024;31.12.2024
;BULK_ORDER_DISCOUNT;Bulk Order Discount;10% discount for orders over $500;200;true;01.01.2024;31.12.2024
;CATEGORY_PROMOTION;Category Promotion;15% off electronics category;300;true;01.03.2024;31.03.2024
;FREE_SHIPPING_OVER_100;Free Shipping Over $100;Free shipping for orders over $100;400;true;01.01.2024;31.12.2024

# Configure VIP customer discount rule
INSERT_UPDATE PriceRuleCondition;code[unique=true];priceRule(code);conditionDefinition(code);value
;VIP_CONDITION_001;VIP_CUSTOMER_DISCOUNT;CustomerGroupCondition;vip_customers

INSERT_UPDATE PriceRuleAction;code[unique=true];priceRule(code);actionDefinition(code);value
;VIP_ACTION_001;VIP_CUSTOMER_DISCOUNT;PercentageDiscountAction;20

# Configure bulk order discount rule
INSERT_UPDATE PriceRuleCondition;code[unique=true];priceRule(code);conditionDefinition(code);value
;BULK_CONDITION_001;BULK_ORDER_DISCOUNT;OrderTotalCondition;500

INSERT_UPDATE PriceRuleAction;code[unique=true];priceRule(code);actionDefinition(code);value
;BULK_ACTION_001;BULK_ORDER_DISCOUNT;PercentageDiscountAction;10

# Configure category promotion rule
INSERT_UPDATE PriceRuleCondition;code[unique=true];priceRule(code);conditionDefinition(code);value
;CATEGORY_CONDITION_001;CATEGORY_PROMOTION;ProductCategoryCondition;electronics

INSERT_UPDATE PriceRuleAction;code[unique=true];priceRule(code);actionDefinition(code);value
;CATEGORY_ACTION_001;CATEGORY_PROMOTION;PercentageDiscountAction;15

# Configure free shipping rule
INSERT_UPDATE PriceRuleCondition;code[unique=true];priceRule(code);conditionDefinition(code);value
;SHIPPING_CONDITION_001;FREE_SHIPPING_OVER_100;OrderTotalCondition;100

INSERT_UPDATE PriceRuleAction;code[unique=true];priceRule(code);actionDefinition(code);value
;SHIPPING_ACTION_001;FREE_SHIPPING_OVER_100;FreeShippingAction;true

tools.sapCommerceImpexLibrary.ui.sections.relatedSnippets

How to find SAP Commerce Impex snippets?

Access enterprise-grade SAP Commerce Impex snippet library with professional templates. Find solutions for common tasks, data imports, and system configuration. Features include categorized snippets, documentation, and best practices.

Functies

  • Comprehensive Impex library with 20+ prebuilt snippets
  • Snippet categories covering all major SAP Commerce areas
  • Advanced search and filtering capabilities
  • Snippet preview and parameter configuration
  • Risk assessment and difficulty ratings
  • SAP Commerce version compatibility
  • Module requirements validation
  • Copy to clipboard functionality
  • Favorites and usage history tracking
  • Enterprise-grade templates and examples

Hoe te gebruiken

  1. Browse snippets by category or use search to find specific functionality
  2. Preview snippet details including parameters and prerequisites
  3. Check SAP Commerce version compatibility and module requirements
  4. Configure snippet parameters for your specific environment
  5. Copy Impex code to your SAP Commerce HAC Import/Export tool
  6. Test in development environment before production use
  7. Save favorite snippets for quick access and reuse

Veelgestelde Vragen

What is SAP Commerce Impex?

Impex is SAP Commerce's data import/export framework that uses CSV-like syntax to create, update, and manage commerce data including products, customers, orders, and system configurations.

Are these Impex snippets safe for production?

All snippets include risk assessments and prerequisites. Always review carefully, test in development first, ensure proper backups, and validate parameters before production use.

Can I modify the snippets for my specific needs?

Yes, you can copy any snippet and modify it according to your requirements. The parameter system allows for easy customization of snippet behavior and values.

What SAP Commerce versions are supported?

Snippets support multiple SAP Commerce versions from 6.7 to 2211. Each snippet shows compatible versions and required modules for proper functionality.

How do I execute an Impex snippet?

Copy the snippet code, paste it into SAP Commerce HAC (Hybris Administration Console) Import/Export tool, configure parameters, and execute. Always test with dry-run first.

What are the different risk levels?

Risk levels indicate potential impact: Low (safe operations), Medium (moderate changes), High (significant impact), Critical (major system changes requiring careful planning).