Quantcast
Channel: SCN : Discussion List - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 2686

Calling Remote enabled Function module in java using RFC Destination

$
0
0

Hi

 

We are on Portal 7.3 ehp1 sp9.

 

Steps followed are :

RFC Destination called “SAP_RFC” has been created as below :

Configuration -> Destinations -> RFC Destinations

 

Connection and Transport:

-------------------------------------

Load balancing :Yes

Provided : SystemID / MS Server / MS Server Service / Logon Group / Gateway Host / Gateway Service

SNC : Inactive

 

Logon Data:

------------------

Authentication : Current User (Assertion Ticket)

Language : EN

Client : XXX

 

Repository Connection:

-----------------------------------

Destination Name : This Destination

 

Specific Data:

----------------------

pooled Connection Mode : Yes

Max : 5

Size : 10

Max. wait time : 10,000

 

Ping Destination results : Successfully connected to System XXX as per user XXXXXXX.

 

JAVA Code as Follows:

JCoDestination destination = JCoDestinationManager.getDestination("SAP_RFC");

//destination.ping();

JCoRepository repository = destination.getRepository();

JCoFunction function = repository.getFunction("FM_NAME");

function.execute(destination);

 

Lines highlighted in RED color throwing an error as below :

{"ERROR":"Initialization of destination JCO_RFC failed: Incomplete logon data. on <SID> mshost <MS_HOST>/ com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Incomplete logon data. on SID mshost MS_HOST"}

 

And found that no COOKIE with the name “SAP_SESSIONID_<system>_<client>” was not found, I am afraid that “Assertion Ticket” was not created in above scenario.

 

To confirm SSO configuration working, i have followed below steps:

1) Created System Object pointing to R/3 and tests were successful for authentication type "SSOLOGONTICKET / ASSERTIONTICKET"

 

It's J2EE application, no references or any other additional configuration been made part from above.

 

Any help ?

 

Thanks


Viewing all articles
Browse latest Browse all 2686

Trending Articles



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