Posted on 2008-11-12 08:24:06-08 by hesc
Perl SAP::Rfc: how sets the export parameters correctly?
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
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.