cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway service without using BAPI ?

Former Member
0 Kudos

Hi experts ,

Can we create Gateway service with out using BAPI as a data source.

For example , i have to create a service which displays customer details by taking customer as a input . If i implement DPC_EXT class how can i write where statement in select query. Let me know if anybody have any idea reagarding this .

Thank you

Venkatesh.


Former Member

Hi,

You don't need BAPI for this. You can get the customer from the URL used in the service. Now you can redefine getentity set method for the service and there you can pass this customer to local variable. This local variable for customer you can use in WHERE for SELECT.

Regards,

Satish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thank you for your response

Here i find something useful

https://blogs.sap.com/2015/11/06/read-and-query-operations-using-dates-in-sap-gateway-services/

Thankyou

Answers (2)

Answers (2)

AshwinDutt
Active Contributor
0 Kudos

Hello Venkatesh,

You can also create service without using BAPI as a data source. You can write your custom code inside DPC_EXT class.

For GET operations based on your requirement you can implement methods GetEntity / Get EntitySet / Expand Entity / Expand EntitySet accordingly inside DPC_EXT class.

Regards,

Ashwin

Ryan-Crosby
Active Contributor
0 Kudos

Hi Venkatesh,

You can also use RFC enabled function calls as data sources - which you can of course tailor to your requirements even if that just means wrapping a BAPI to simplify the overall API.

Regards,

Ryan Crosby