cancel
Showing results for 
Search instead for 
Did you mean: 

message: Parameter backend host ('ashost') is missing Return code: RFC_INVALID_PARAMETER(19) error group: 101

Former Member
0 Kudos

Hi Techies,

I'm Trying to send a iDoc and while doing so i'm facing following error sometimes and not always:

The process is as follows:

- We create a connection with R3 system using the connection parameters

- Create a Destination

we are using

     //ibSystem Object contains all the R3 connection parameters.

     // DestinationDataProvider with HashMap and setting the required properties:    

     Properties properties = new Properties();
     properties.setProperty(DestinationDataProvider.JCO_ASHOST, ibSystem.getHost());
     properties.setProperty(DestinationDataProvider.JCO_SYSNR, ibSystem.getSystemNumber());
     properties.setProperty(DestinationDataProvider.JCO_CLIENT, ibSystem.getClient());
     properties.setProperty(DestinationDataProvider.JCO_USER, ibSystem.getUser());
     properties.setProperty(DestinationDataProvider.JCO_PASSWD, ibSystem.getPassword());
     properties.setProperty(DestinationDataProvider.JCO_LANG, ibSystem.getLanguage());
     properties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY,ibSystem.getPoolCapacity());
     properties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT,ibSystem .getPeakLimit());
     properties.setProperty(DestinationDataProvider.JCO_DEST,destinationName);

     .....

     JCoDestination destination = JCoDestinationManager.getDestination(destinationName);

     JCoRepository repository = destination.getRepository();

     IDocRepository iDocRepository = JCoIDoc.getIDocRepository(destination);

     IDocFactory iDocFactory = JCoIDoc.getIDocFactory();
     IDocDocument iDocDocument = iDocFactory.createIDocDocument(iDocRepository,iDocType, iDocExtension);

     String transactionID = destination.createTID();

     // prepare idoc to send

     // Using IDOCTYPE_READ_COMPLETE read idoc metadata and prepare idoc segmentwise.

     JCoIDoc.send(iDocDocument, IDocFactory.IDOC_VERSION_DEFAULT,destination, transactionID);

Observations:

Not able to reproduce this in test environment but happening sometimes in production Env. when we restart the application.

FY! : We are using JCO 3.0.9 : (7/19/2012)

com.sap.conn.jco.JCoException: (101) RFC_ERROR_PROGRAM: Configuration of destination <Destination_Name> is incomplete: Parameter backend host ('ashost') is missing
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1373)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:736)
at com.sap.conn.jco.rt.RepositoryConnection.connect(RepositoryConnection.java:52)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:107)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:316)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:290)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:914)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:31)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:970)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:33)

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)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1340)


Is this problem faced by anyone or is there any fix from JCo side for this kind of problem.

Thanks for the help in advance as it is critical and in production.

Regards,

Yogesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Yogesh,

please note that 3.0.9 is pretty outdated. On Friday, patch level 12 of JCo 3.0 has been released. Hence, I'd suggest that you switch to 3.0.12, before continuing with anything. Also check, whether your IDocLibrary verison is up to date.

However, it's very unlikely that your issue is resolved by that. From the code snippit it looks fine, however, it is not recognizable, whether ibSystem.getHost()) is really returning a non-empty string. If this is not the case, the ashost property is missing in the connection data and a connection cannot be established.

Best regards,

Markus