on 05-15-2014 10:43 AM
please explain Model provider class and data provider class?
Hi,
both MPC and DPC get generated as runtime artifacts.
MPC - This is used to define model. you can use the method Define to create entity, properties etc using code based implementation. you rarely use MPC extension class.
DPC - used to code your CRUDQ methods as well as function import methods. you write all your logic in redefined methods of DPC extension class.
Refer Generated ABAP Classes and Service Registration - SAP NetWeaver Gateway - SAP Library for more information.
you can also refer my blog which will provide you clear idea on how to redefine various CRUDQ methods in DPC extension class.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi the updated Generated Classes for the Data Provider Classes - SAP NetWeaver Gateway - SAP Library link fyi
Hi,
Model Provider Class
Model Provider class registers the metadata used in a service, it is nothing but base class and model provider extension class is nothing but derived class. MPC is used to define model, you can use the method Define to create entity and properties.
Data Provider Class
Data provider class provides the methods to Data provider Extension class, so developer can implement the functionalities for database interaction. data provider class is base class for data provider extension class.
we will not write any logic inside MPC and DPC classes.
In DPC extension class , we will redefine the methods and implement the logic inside it.
Regards,
Tanuja.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.