Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

RFC and Odata Services

$
0
0

Hi,

 

I've a RFC with an interface like this

 

IMPORTING

    VALUE(SNR) TYPE  STRING
EXPORTING
    VALUE(SERVICELIST) TYPE  B1BKSERVTAB

 

the type B1BKSERVTAB is of type standard table.


depending on the SNR value the RFC return the table with several rows.

If SNR is not valid the RFC return an empty table.

 

My question is now can I use such an RFC for an ODATA Service?

 

here is my entity definition and the mapping.

Is there a way to pass the SNR to the RFC via the URL to get the complete entityset?

 

if I call

.../E2E_CHECK_SRV/BookingsSet('100')

I get no result because GetEntity is not implemented (don't know how to do the mapping to get the complete table)

and with .../E2E_CHECK_SRV/BookingsSet

I get nothing because the RFC do not know the SNR to fill the table.

 

Thanks in advance for any help

 

BR

Stefan

1.PNG

 

2.PNG

3.PNG


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>