thankS,
i had pasted Cost based code no worrries.
so next code lines will be about item mapping with area
LS_AREA_TO_ITEM_MAP-ITEM_GUID = LR_ITEM->ITEM_GUID.
APPEND LS_AREA_TO_ITEM_MAP TO RT_ITEM_TO_AREA_MAP.
so as per you after this code system will take care about Product category based approval , the way cost base working. System will create the Sum of product category for decision set which is needed in WI subject line.
e.g Line 1 -laptop-10 AUD line2--laptop 13 AUD line3-Desktop--5 AUD.
so output will be two decisionsets one for laptop value-23 AUD and another for Desktop value 5Aud.
Along with this, Offline approval mail will send the content have those product category line items for which Product category this decision set has been created.
so different agent will get different mail with diferent content and diff amount. if different user assigned to SC different product category.
I am working on this rom quite long time and number of times checked , this will not work.
i have implemeted , the way you suggesting but is not the solution.