Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

helmut_schrder
Explorer
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Answer is pure assumption

Pls check this link, you may get a idea

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c98bea06-0b01-0010-78bd-8592433f...

Regards

Madhan D

1 REPLY 1

Former Member
0 Kudos

Answer is pure assumption

Pls check this link, you may get a idea

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c98bea06-0b01-0010-78bd-8592433f...

Regards

Madhan D