Catch if there is a warning at purchase order's accounting distribution view

Hi All,

I have to catch if there is a warning at purchase order’s accounting distribution view. I looked up and couldn’t find out how can programmatically run accounting distribution view’s class and catch up if there’s any warning…