The reason that you do not have these service classes on your classpath is that you do not have the corresponding Maven artifact on your dependency tree.
You require the Maven dependency com.sap.cloud.sdk.s4hana:s4hana-api-odata-onpremise-2020
to access theses classes.
Please note that the Maven archetype scp-cf-spring
does reference by default Maven dependencies with the OData VDM for SAP S/4HANA Cloud.
When interested in using the OData VDM for SAP S/4HANA (On-Premise), the mentioned dependency must be added explicitly. This is explained in the SAP Cloud SDK documentation.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…