cancel
Showing results for 
Search instead for 
Did you mean: 

VC Subitems Price Calculation

Former Member
0 Kudos

Dear All, Could you please assist on this scenario to determine variant price (VA00) for sub-items based on qty.

currently system calculate price (VA00) based on header material total sales order qty = 10 PC. This material has 2 sub-items with respective qty 3PC and 7PC.

System should calculate price based on sub-items qty - 3 Pc & 7 Pc (not 10 PC) . Current procedure code as below.

$Self.Price = 'Comp1' If Price = 'Comp1',

$Self.Price = 'Comp2' If Price = 'Comp2'.

Regards

Neha

Accepted Solutions (0)

Answers (2)

Answers (2)

Ritz
Active Contributor
0 Kudos

Neha P,

Does your sub items are also configurable materials?

please share more deatils of VC structure you have, how sub items are getting selected and what setings you maintained for pricing for header as well as sub items.

Thanks

Ritesh

Former Member
0 Kudos

Dear All, Could you please assist on this scenario to determine variant price (VA00) for sub-items based on qty. currently system calculate price (VA00) based on header material total sales order qty = 10 PC. This material has 2 sub-items with respective qty 3PC and 7PC. System should calculate price based on sub-items qty - 3 Pc & 7 Pc (not 10 PC) . Current procedure code as below. $Self.Price = 'Comp1' If Price = 'Comp1', $Self.Price = 'Comp2' If Price = 'Comp2'. Regards Neha

ravi_kumar204
Active Participant
0 Kudos

Hi Neha,

Pricing Factors will be useful for your scenario.

Check the below links.

Pricing Factors - Variant Configuration (LO-VC) - SAP Library

Try with below sample code.


$SET_PRICING_FACTOR ($SELF, PRICE, 'COMP1', 0.3)


$SET_PRICING_FACTOR ($SELF, PRICE, 'COMP2', 0.7)


Check and update.

ravi_kumar204
Active Participant
0 Kudos

Hi Neha,

Is your issue is resolved? please update.