IBM Support

Using "Discount" ChargeCategory at line level YFS10346 Invalid Charge Category

Troubleshooting


Problem

Using "Discount" ChargeCategory at line level YFS10346 Invalid Charge Category

Symptom

PART: API 3.2 SUN Platform
COMPONENT: createOrder
OS: All - All
DATABASE: Oracle - 8.1.7
WEB SERVER: WebLogic - 6.1 SP1
WEB BROWSER: Internet Explorer - 5.5 sp2

When atttempting to apply line-level discounts in createOrder XML by using a LineCharge element with ChargeCategory="Discount". does not work -- always getting error YFS10346, "Invalid Charge Category and Charge Name Combination".

We are using the exact same ChargeCategory and ChargeName values in header-level discounts (HeaderCharge element) successfully.

Cause

Resolving The Problem

Line level discounts are not supported. Workaround is to create a new charge type and pass a negative amount against it.
At header level discount charge type may be used.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI48608

Product Synonym

[<p><b>]Fact[</b><p>];

Document Information

Modified date:
16 June 2018

UID

swg21548581