Hi experts,
1.
If i take for example the GW datamodel '/IWCNT/OM_EMPLOYEE_0001_UC', it has 2 operations : CREATESUCCESSORINTERNALDATA and CREATESUCCESSORPERSONALDATA.
How i can get the source code of those operations ?
2.
The consumtion model /IWCNT/SG_EMPLOYEE_0001 has for example the EmployeeCollection : some body can tell me where i can find the code of get details of an employee?
Thanks
1) You can see all the classes that will be executed for these operation in method register_mapping_specialists in class /iwcnt/cl_emp_eprq_root. It looks like its doing either 4 or 6 BOP's depending on the function.
2) Consumption Model /IWCNT/SG_EMPLOYEE_0001 has 7 data models assigned to it, one of them being model /IWCNT/OM_EMPLOYEE_0001_UC, this model is assigned to /IWCNT/CL_EMP_DPRQ_ROOT since you are asking about a query, you look for the get_entityset method. The mo_ attribute is resolved by the same register_mapping_specialists method from the previous answer. But the simple answer is it is calling BAPI_EMPLOYEE_GETDATA from the class /IWCNT/CL_EMP_BOPRQ_ROOT_D method /IWFND/IF_MGW_BEC_BOP~EXECUTE.
Hope I didn't confuse you more.
Regards,
Wayne
Thanks for your answers. Is the method of making BOP'S the best manier to implement the o data ? of is it something of sp02?
do you have some tutorial (step by step) how to implement the odata channel with this method .?
Thanks
Hi Moo,
The best is sort of a relevant term, all depends on which implementation plan you employ and for what reason.
The how-to guides are very helpful with step-by-step instructions. Have you checked them out?
http://scn.sap.com/docs/DOC-27405
Regards,
Wayne