Issue resolved. Tried to reprocess the failed idoc(idoc with error "check reselles's license") in the foreground and then starting the debugger when encountered that error. The error was message was caught in a customized piece of code.
Also it was transaction VM03(Table MARA and MGEF) where the material is maintained as hazardous.