Skip to Content
0
Nov 11, 2008 at 04:14 PM

Perl SAP::Rfc: how sets the export parameters correctly?

23 Views

Hi,

we use SAP::RFC with Perl to read out some user details. We have a problem

of reading the export parameter structure "address".

Here is an example:

#!/usr/bin/perl

use strict;
use SAP::Rfc;
use Data::Dumper;

my $rfc = new SAP::Rfc(
            ASHOST => ... );

my $iface = $rfc->discover( "BAPI_USER_GET_DETAIL" );
my $user = "TEST";
$iface->USERNAME( $user );

my $lastname = $iface->ADDRESS->{'LASTNAME'};
print "lastname : $lastname\n";

$rfc->callrfc( $iface );

$rfc->close();

Nothing is saved in the field "lastname". Can anybody help us?

Thanks

Helmut