setConnection 

Purpose

Sets the com.sap.rfc.IRfcConnection object for this business object proxy.

Syntax

void setConnection(IRfcConnection connection);

Parameters

connection: the IRfcConnection object to be used for this business object proxy for communicating with its corresponding instance in R/3.