Is there a function Module to call a logical Database via function module or classes?
In my case I would need PNPCE, so it is the HCM Module.
Is there a function Module to call a logical Database via function module or classes?
In my case I would need PNPCE, so it is the HCM Module.
LDBs are not obsolete, at least for HCM. They are a fast, object-oriented, way to access HR data and are an advantage, not a disadvantage. SAP have changed CDS views so now the earlier latest and greatest CDS stuff is now not supported. The HCM LDBs still work with an ECC on premises system. There are real business and technical reasons why your customers are requiring HR LDBs, e.g., consistency of selection screens, built-in authorizations, different selection screen or customer specific selection screens (HR report classes) to name just a few. Your customers are not just being luddites and unless new to SAP know their own systems better than we do.
BTW, you can call screens from function modules, but not yet from methods (at least on my SAP release).
You can use the function module LDB_PROCESS.
Here the SAP documentation.
But remember, LDB are obsolete.