URGENT:Field routine in standard DSO not working correctly.
The scenario is like this:
I have to calculate average inspection lot quantity.
Created a Generic DS and data flows to Write optimized DSO, from there to a standard DSO where i have written a field routine to calculate the average inspection lot based on LOSMENGE,MJAHR and MATNR fields, The average is to be calculated on based of MATNR, so i have kept MATNR as semantic field in Std DSO and i have key field as inspection lot number only, as it is unique for every record.
The problem is my DTP is not working. It is not failing, it is just sorting the records based on keys and nothing more.
I dont think its ABAP code issue.
Could you tell me if the approach i am following is correct, i.e reading the WDSO contents in field routine of std.DSO and calculating the average in it.