Work at a business and look for problems within it that aren’t being solved. This can be inefficient processes that could be solved with software or replacing vendors you’re unhappy about with a better solution.
You won’t be able to find a B2B problem from the outside. You need to be inside and observe. If you pay attention you’ll find a ton of business ideas.