Professional Documents
Culture Documents
Class12 13 UI5
Class12 13 UI5
--------------------------------------------------------------------------
C:\Windows\System32\drivers\etc
Note : For Testing gateway services , our server should be enabled with below
pattern
HOSTNAME.DOMAINNAME.EXTENSION
-------- ---------- ---------
________________________________________________________________________________
Create ZBAP_FLIGHT_PROJECT
save it in package
Click NEXT
Click on Continue
_________________________________________________________
NOTE : PROPERTIES are known As FIELDs of "ENTITY TYPE"
__________________________________________________________
save
save
___________________________________________________________________________________
___________
CREATE 1
DELETE 1
UPDATE 1
GETENTITY 1
GETENTITYSET N
____________________________________________________
Now
MAintain MAPPING FOR INPUT and OUTPUT with BAPI_FLIGHT_GETLIST
________________________________________________________________________
expand service implementation,
expand FLIGHTSET
right click GETENTITYSET option
chose Airlineid , and drag drop Airline Field from BAPI ( INPUT )
save
________________
check syntax errors;
_____________________
click continue
save
_______________________
click on Continue
__________________________________________________________
NOTE : You can activate / deactivate /delete the service
__________________________________________________________
TESTING Procedure :
-----------------------
To get the Technical details of service , Mainly "Complete URL of THAT Service"
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/?$format=xml
and execute
______________________________________________________________
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet
and Execute
______________________________________________________________
To fetch records based on INput option
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet?$filter=Airlineid eq 'DL'
and execute ;
______________________________________________________________
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet/$count
and execute
_____________________________________________________________
To display few columns :
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet?$select=Airline,Price
and execute
__________________________________________________________________________
To get records in JSON format :
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet?$format=json
and execute
____________________________________________________________________
/sap/opu/odata/sap/ZBAPI_FLIGHTS_PROJECT3_SRV/FlightSet?$top=2
and Execute
_________________________________________________________________
NOTE :
For TEsting Purpose :
we can also use the REST CLIENT Editor from MOZILLA FIRE FOX :
__________________________________________________________________
REST Client is alternative for GATEWAY client
__________________________________________________________________