cancel
Showing results for 
Search instead for 
Did you mean: 

Logic to write routine

Former Member
0 Kudos

Dear Experts,

Need your help too write routing below is my requirmment.

Condition TypeDescriptionAmount
ZTAGTag Price1,200
ZDIVNormal Discount-840
PR00Price360

Where  in ZDIV = PR00- ZTAG.

Please Note: When customer is putting ZTAG value and PR00 value then ZDIV condition with value should automaticaly update while creating order.

Kindly guid me with coding detail for the same.

Thanks & Regards,

Geeta Singh.

Conatct No:- +919820051350.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184080
Active Contributor
0 Kudos

Have you assigned any Sub totals for PR00 & ZTAG ? First, you need to create ZDIV as formula based condition type.  You can write a logic " Sub total of PR00 - Subtotal of ZTAG should be the value of ZDIV.

Hope this will help you.

Regards, Krishna.

Former Member
0 Kudos

Hi,

To add what Mr. Krishna said, Assign Subtotal 'D' to ZTAG, subtotal 'E' to PR00,

Step     Cn Typ                              From     To          Amount        Subtotal       Alt Cal Typ

10          ZTAG                                                              1200          D

20          PR00                                                                360           E

30                         Difference          10          20             840                                  12

40          ZDIV                                  30         30             -840                                 80

If ZDIV has to be populated automatically maintain a condition record with 100% for lets say Sales org acc seq.

Hope this will help.

Regards,

Sridhar.

Former Member
0 Kudos

Thanks Mr Sridhar. im very happy i applied your logic and it is successful ..

Thanks & Regards,

Geeta Singh.

One more query i have in same pricing procedure ...

Beloe is my Pricing procedure :

Condition TypeDescriptionAmountReference KE24
ZTAGTag Price1,200Tag Price
ZDIVNormal Discount-840Trade Discount
PR00Price360Revenue
RP00Repair Charges100Repair Charges
RDIVRepair Charges - Discounts-20Repair Chgs - Discount
ZNRAFree Goods-90Free Goods
Net Value 1350
ZHA0Additional Discount (%)-20Spl Offer Discount
ZHB0Volume Discount -50Material Discount
Gross Value 280
ZH01Freight Charge30DSC Frieght
ZH02Insurance Charge45DSC Insurance
ZH03Packing Charge30DSC Packing
ZH04Courier Cost25DSC Frieght
ZH05Miscellaneous Charges20DSC Misc Charges
Net Value 2430
MWSTOutput Tax30
Total460
VPRSInternal Price180Stock Value
Net Difference280
Gross Margin100
Gross Margin %36%

1:- ANet Difference: bove is my requirment where in NET difference is : Total(460) - VPRS (180) = 280, to get this    value i have created another condition type ZVRS (copy of VPRS) and maintained condition records as      -100%  (To get value of VPRS as Negative)  BUT THIS LOGIC IS NOT WORKING.

2:- Gross Margin: Gross Value (280) - VPRS (Internal price-180) = 100.Kindly provide the logic.

3:- Gross Margin % : Gross Margine/ Gross value .

Thanks & Regards,

Geeta Singh.

Contact number: +919820051350

Answers (0)