Quantcast
Channel: SCN : All Content - SAP NetWeaver Application Server
Viewing all articles
Browse latest Browse all 2997

Facing Problem while creating Type B connection

$
0
0

We are trying to do Type B connection to SAP NW server. Initially Type A connection is working fine with the following destination name.

 

String destinationName = new String("SAP_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_CLIENT)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_USER)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_ASHOST)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_SYSNR)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_LANG)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_GWHOST));

 

JCoDestination dest = JCoDestinationManager.getDestination(destinationName);

 

Now we have to add like above for Type B connection

 

We tried the following

 

destinationName = new String("SAP_"+

  jcoProperties.getProperty(DestinationDataProvider.JCO_CLIENT)+"_"+

  jcoProperties.getProperty(DestinationDataProvider.JCO_USER)+"_"+

  jcoProperties.getProperty(DestinationDataProvider.JCO_MSHOST)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_R3NAME)+"_"+

  jcoProperties.getProperty(DestinationDataProvider.JCO_LANG)+"_"+

jcoProperties.getProperty(DestinationDataProvider.JCO_GROUP));

 

But it is giving the following error

 

  1. com.sap.conn.jco.JCoException: (101) RFC_ERROR_PROGRAM: Configuration of destination SAP_100_tivoli_sapgc2_gc2_en_space is incomplete: Parameter backend host ('ashost') is missing

 

.

.

.

Caused by: RfcException: [null]

    message: Parameter backend host ('ashost') is missing

    Return code: RFC_INVALID_PARAMETER(19)

    error group: 101

    key: RFC_ERROR_PROGRAM

 

at com.sap.conn.rfc.api.RfcOptions.checkParameters(RfcOptions.java:187)

 

The problem here is creating the destination name using values only. It is not <property,value> pair.

 

Shall I know the proper order for type b connection in the above thing?

 

Am I using any wrong sequece of parameters for Type B?


Or Any other solution for this problem?

 

Kindly need help on this


Viewing all articles
Browse latest Browse all 2997

Trending Articles



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