Professional Documents
Culture Documents
___________________________
Note :
io_tech_request_context->get_keys( ) ----->capture the INput value of the Key
Field
io_data_provider->read_entry_data( ) ----->capture the INPUT RECORD
________________________________________________________________________________
______________
NOte :
For Workarea
-> ____MPC=>TS_<ENTITYTYPENAME>
ZSA_USERS
continue
select Required FIELDs and continue
chose
save
check syntax errors.
generate runtime objects ( MPC, MPC EXT, DPC , DPC EXT etc... are autogenera
ted )
________________________________________________________________________________
______
NOTE : According ENTITY TYPE FIELDs,
the TABLE STRUCTURE and TABLE TYPE are generated inside Model PRovider
cLASS
________________________________________________________________________________
_______
).
and implement the code for fetching the record based on INPUT KEY FIELD value
_______________________________________________________________________________
data : lt_keys
TYPE /IWBEP/T_MGW_TECH_PAIRS.
data : ls_key
TYPE /IWBEP/S_MGW_TECH_PAIR.
data : lv_email TYPE char20.
data : ls_user
TYPE ZCL_ZDBPROJECT_MPC=>TS_USER.
lt_keys =
IO_TECH_REQUEST_CONTEXT->get_keys( ).
= ls_key-VALUE.
________________________________________________________________________________
__________
Activate the class :
_______________________________
Goto service maintainence :
Click on Register,
select MAINTAIN,.
/sap/opu/odata/sap/ZDBPROJECT_SRV/USERSet('VIJAY@OASIS.COM')
Note : here service will execute GET_ENTITY method, if that method is impleme
nted,
then it display output record based on INPUT
______________________________________________________________________________
case 2:
/sap/opu/odata/sap/ZDBPROJECT_SRV/USERSet
Note : here service will execute GET_ENTITYSET method, if that method is not im
plemented,
then it display error.
_______________________________________________________________________
CAse 3:
Use RESPONSE as REQUEST.,
and provide NEW RECORD values
for EX : HARI@OASIS.COM
HARI
KIRAN
VIJAYWADA, AP
chose POST METHOD
____________________________________________________________________________
NOTE :
STATUS CODE = 200 with OK
---> FOR FETCHING data successfully
STATUS CODE = 201 with CREATED ---> FOR INSERTING data successfully.
_____________________________________________________________________________