Hi,
I have 1.38 version of SAP::RFC and able to call a rfc function which doen;t have any import parameters in SAP R/3 system and retrieve the values returned by that function.
But I am uanble to call a RFC function with IMPORT parameters.
my $rfc = new SAP::Rfc(
ASHOST => ‘Host’,
USER => ‘developer’,
PASSWD => ‘password’,
LANG => ‘EN’,
CLIENT => ‘800’,
SYSNR => ’00’,
TRACE => ‘0’ );
$rfc->is_connected();
my $iface = $rfc->discover (‘BAPI_COMPANYCODE_GETDETAIL’);
$iface->addParm(
TYPE => SAP::Iface->RFCIMPORT,
INTYPE => SAP::Iface->RFCTYPE_CHAR,
NAME => ‘COMPANYCODEID’,
DEFAULT => ‘1001’,
VALUE => ‘1001’,
DECIMALS => 0,
LEN => 4 );
my $data = $rfc->callrfc($iface);
It is retuning me error as “EFN020Company code does not exist”
The VALUE is blank but the DEFULT is having the value ‘1001’. Not sure how the value is disappering.
AM I setting the IMPORT parameter correctly for the ‘COMPANYCODEID’.
Please, Guide me in fixing this issue.