Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Under which protocol an RFC is running?

Former Member
0 Kudos

In the ABAP stack of SAP Web AS an RFC could be called in different ways. eg:

- by the same system (CALL FUNCTION...)

- by an external system ( CALL FUNCTION .. DEST sid)

- as a web service (SOAP)

- and probably others ...

Which is the more official way to determine the running protocol at runtime?

Querying SY-CPROG it is possible to understand the environmnet (SAPMHTTP, SAPMSSY1) but maybe you know a better way.

Sergio

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sergio,

Nice question.

1. if we are not able to find out the solution

and if that rfc is Y/Z

then it would be better to

pass one ADDITIONAL parameter

specifiying the source(wherhere SOAP or RFC).

I know it does not solve ur query.

Just the last resort.

regards,

amit m.

6 REPLIES 6

abdul_hakim
Active Contributor
0 Kudos

Hi,

The protocol is TCP/IP.

Regards,

Abdul

0 Kudos

Obviously. With protocol I mean: RFC, SOAP, ...

0 Kudos

I think the RFC will use the port of SAP: 32xx where xx is the install number.

maybe if you use an unix server you will find the port like in linux : netstat -apn

Rgd

Frédéric

0 Kudos

Thanks Frédéric. I have an RFC (ABAP Function) that should operate differently if called via RFC han via SOAP.

Former Member
0 Kudos

Hi Sergio,

Nice question.

1. if we are not able to find out the solution

and if that rfc is Y/Z

then it would be better to

pass one ADDITIONAL parameter

specifiying the source(wherhere SOAP or RFC).

I know it does not solve ur query.

Just the last resort.

regards,

amit m.

0 Kudos

Thanks Amit. We'll see if others have some ideas.