Hi Friends,
Could any one help in calculating:
Discount value:
sum of discounts used in standard price procedure
structure Z_INV_HEAD component KWERT, condition values ZTPR, ZTR1, ZCM5, ZEDI, ZDMG
Using the below logic:
Calculate sum of all discounts used in billing document
and write this sum into invoice layout.
All possible discount condition values which are used in our price procedures are at the moment ZTPR, ZTR1, ZCM5, ZEDI, ZDMG.
Take values from billing document header assigned to discount condition types: structure is KOMV, search by field KSCHL (which is condition type - find all condition types which are used in our concrete billing document from the ones above), find related values in fields KWERT and calculate sum of retrieved values.
Help me with some coding..... Thanks to all