We are getting the subject error on a couple of Macbooks that enrolled recently when the user is trying to install the app from Self Service it gives the error "Pending - STATUS_REASON_NO_LICENSES"
I checked the VPP for that application is available but the user can not install it.
Please advise any solution or how to troubleshoot it?
Agree with @m_schilling that you first need to make sure your VPP account with Apple Business (or School) Manager is properly connected to Jamf by downloading from ABM/ASM then uploading to Jamf a new VPP token for that VPP account (in Jamf: Settings >> Global Management >> Volume Purchasing). Even if it is not set to expire soon, re-applying the token may solve the issue you are seeing. At any rate, it is definitely the first step to rule out that the VPP "handshake" is not the issue.