I'm trying to write a routine that will count the unique number of clearing documents in a DSO.
Sample Data Set
The results I want to see in my query are:
# of Clear Documents (AUGBL): 1
# of Documents (BELNR): 3
Logic on the front end is not working as the AUGBL field will have null values but works for BELNR.