This queue is for tickets about the SAP-Rfc CPAN distribution.

Report information
The Basics
Id:
6960
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
reo [...] gedas.de
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
1.32
Fixed in:
(no value)



Subject: SAP::Iface returns confusing values
Hello, I was writing a test script which should connect to a SAP system, call the function "TF_FSYS_SINGLE" and print out the path and the sizes of different directories on the file system (it's a SAP standard function). Therefore I used Perl 5.8.3 built for i586-linux-thread-multi and the SAP-Rfc package 1.32. The R/3 Release is 4.6C. The output in the SAP system is OK, but on my linux machine I got wrong directory sizes (often neg. or very big integers). Maybe it's my fault... I'm not sure, but I hope you could help me. Thank you very much. With kind regards, Osman Redzepi The test script: #!/usr/bin/perl use strict; use SAP::Rfc; my $rfc = new SAP::Rfc ( ASHOST => 'e...', USER => 'Z...', PASSWD => 'k...', LANG => 'DE', CLIENT => '900', SYSNR => '09', TRACE => '1' ); my $iface = $rfc->discover("GET_FSYS_SINGLE"); if (defined $iface) { $rfc->callrfc($iface); foreach my $row ( $iface->tab('TF_FSYS_SINGLE')->hashRows() ) { my $fsn = $row->{'FSYSNAME'}; my $cap = $row->{'CAPACITY'}; my $fre = $row->{'FREE'}; print "> $fsn | $cap | $fre < \n"; } } else { print "Error: " . $rfc->error() . "\n"; } $rfc->close(); This is the output, how it looks like on my console:
Show quoted text
> /stand | -1979711488 | 1258291200 < > / | 268500992 | 1879048192 < > /home | -1610416128 | -1811808256 < > /opt | 1883045888 | -399245312 < > /tmp | 268566528 | -687800320 < > /usr | 393216 | 771883008 < > /var | 268632064 | -654311424 < > /var/adm/crash | 1074266112 | 973406208 < > /var/adm/sw | 268566528 | -989855744 < > /usr/sap/SID | -2147287040 | 1174601728 < > /opt/Tivoli | -2147418112 | 604045312 < > /opt/Tivoli/TSM | -2147418112 | 1711341568 <
... and this is the output on my SAP-Gui (there are just more fields): -------------------------------------------------------------------------------- |TYPE |SUBTY|SERIA|FSYSNAME |CAPACITY |FREE | -------------------------------------------------------------------------------| | 107 | 1 | 0 |/stand | 138 | 75 | | 107 | 1 | 1 |/ | 272 | 112 | | 107 | 1 | 2 |/home | 928 | 660 | | 107 | 1 | 3 |/opt | 15.728 | 13.544 | | 107 | 1 | 4 |/tmp | 528 | 470 | | 107 | 1 | 5 |/usr | 1.536 | 558 | | 107 | 1 | 6 |/var | 784 | 218 | | 107 | 1 | 7 |/var/adm/crash | 2.112 | 1.338 | | 107 | 1 | 8 |/var/adm/sw | 528 | 197 | | 107 | 1 | 9 |/usr/sap/SID | 896 | 838 | | 107 | 1 | 10 |/opt/Tivoli | 384 | 292 | | 107 | 1 | 11 |/opt/Tivoli/TSM | 384 | 358 |
Hi Osman, There are long standing issues that I have had with Endian-ism of systems that SAP::Rfc works with/on. This is mainly due to the fact that I have never had access to all the flavours of UNIX that SAP runs on in order to test and work through the problems. Your client side is running on Linux, but what are the details of the SAP R/3 server? Perhaps you could set TRACE => 1 in the $rfc = new SAP::Rfc() and provide me with the *.trc files so that I can see what your setup is? Cheers, Piers Harding. [guest - Wed Jul 14 13:02:23 2004]:
Show quoted text
> Hello, > > I was writing a test script which should connect to a SAP system, > call the function "TF_FSYS_SINGLE" and print out the path and the > sizes of different directories on the file system (it's a SAP standard > function). > > Therefore I used Perl 5.8.3 built for i586-linux-thread-multi and the > SAP-Rfc package 1.32. The R/3 Release is 4.6C. > > The output in the SAP system is OK, but on my linux machine I got > wrong directory sizes (often neg. or very big integers). > Maybe it's my fault... I'm not sure, but I hope you could help me. > > Thank you very much. > > With kind regards, > Osman Redzepi > > The test script: > > #!/usr/bin/perl > > use strict; > use SAP::Rfc; > > my $rfc = new SAP::Rfc ( > ASHOST => 'e...', > USER => 'Z...', > PASSWD => 'k...', > LANG => 'DE', > CLIENT => '900', > SYSNR => '09', > TRACE => '1' ); > my $iface = $rfc->discover("GET_FSYS_SINGLE"); > if (defined $iface) { > $rfc->callrfc($iface); > foreach my $row ( $iface->tab('TF_FSYS_SINGLE')->hashRows() ) { > my $fsn = $row->{'FSYSNAME'}; > my $cap = $row->{'CAPACITY'}; > my $fre = $row->{'FREE'}; > > print "> $fsn | $cap | $fre < \n"; > } > } else { > print "Error: " . $rfc->error() . "\n"; > } > $rfc->close(); > > This is the output, how it looks like on my console:
> > /stand | -1979711488 | 1258291200 < > > / | 268500992 | 1879048192 < > > /home | -1610416128 | -1811808256 < > > /opt | 1883045888 | -399245312 < > > /tmp | 268566528 | -687800320 < > > /usr | 393216 | 771883008 < > > /var | 268632064 | -654311424 < > > /var/adm/crash | 1074266112 | 973406208 < > > /var/adm/sw | 268566528 | -989855744 < > > /usr/sap/SID | -2147287040 | 1174601728 < > > /opt/Tivoli | -2147418112 | 604045312 < > > /opt/Tivoli/TSM | -2147418112 | 1711341568 <
> > ... and this is the output on my SAP-Gui (there are just more fields): >
--------------------------------------------------------------------------------
Show quoted text
> |TYPE |SUBTY|SERIA|FSYSNAME |CAPACITY > |FREE | >
-------------------------------------------------------------------------------|
Show quoted text
> | 107 | 1 | 0 |/stand | 138 | > 75 | > | 107 | 1 | 1 |/ | 272 | > 112 | > | 107 | 1 | 2 |/home | 928 | > 660 | > | 107 | 1 | 3 |/opt | 15.728 | > 13.544 | > | 107 | 1 | 4 |/tmp | 528 | > 470 | > | 107 | 1 | 5 |/usr | 1.536 | > 558 | > | 107 | 1 | 6 |/var | 784 | > 218 | > | 107 | 1 | 7 |/var/adm/crash | 2.112 | > 1.338 | > | 107 | 1 | 8 |/var/adm/sw | 528 | > 197 | > | 107 | 1 | 9 |/usr/sap/SID | 896 | > 838 | > | 107 | 1 | 10 |/opt/Tivoli | 384 | > 292 | > | 107 | 1 | 11 |/opt/Tivoli/TSM | 384 | > 358 |
From: reo@gedas.de
Hello Piers, thank you very much for the fast reply... I will provide you with the necessery information. Well this SAP instance runs on a HP 9000/Rp 4440 (RISC technology). The OS version is HP-UX B.11.11 U 9000/800. I wrote a short test program in C which tells me that's a BIG ENDIAN machine! A copy of the trace file is attached too. I had to overwrite some entries (DNS-Entry, IP-Adresses, User name) 'cause I don't want to get in trouble with my boss... ;) Thanks and bye, Osman [PIERS - Thu Jul 15 02:55:50 2004]:
Show quoted text
> Hi Osman, > > There are long standing issues that I have had with Endian-ism of > systems that SAP::Rfc works with/on. This is mainly due to the fact > that I have never had access to all the flavours of UNIX that SAP
runs
Show quoted text
> on in order to test and work through the problems. > > Your client side is running on Linux, but what are the details of the > SAP R/3 server? Perhaps you could set TRACE => 1 in the $rfc = new > SAP::Rfc() and provide me with the *.trc files so that I can see what > your setup is? > > Cheers, > > Piers Harding. >

Message body is not shown because it is too large.

Date: Thu, 15 Jul 2004 14:20:08 +0100
From: Piers Harding <piers@ompa.net>
To: Guest via RT <bug-SAP-Rfc@rt.cpan.org>
Subject: Re: [cpan #6960] SAP::Iface returns confusing values
RT-Send-Cc:
Hi Osman, I have created a release candidate for this problem, but I will not be able to test if completely for a few days. If you are in a hurry, you can test the attached. Cheers, Piers Harding. On Thu, Jul 15, 2004 at 06:28:52AM -0400, Guest via RT wrote:
Show quoted text
> > This message about SAP-Rfc was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=6960 > > > Hello Piers, > > thank you very much for the fast reply... I will provide you with the > necessery information. > Well this SAP instance runs on a HP 9000/Rp 4440 (RISC technology). > The OS version is HP-UX B.11.11 U 9000/800. > I wrote a short test program in C which tells me that's a BIG ENDIAN > machine! > > A copy of the trace file is attached too. I had to overwrite some > entries (DNS-Entry, IP-Adresses, User name) 'cause I don't want to > get in trouble with my boss... ;) > > Thanks and bye, > Osman > > [PIERS - Thu Jul 15 02:55:50 2004]: >
> > Hi Osman, > > > > There are long standing issues that I have had with Endian-ism of > > systems that SAP::Rfc works with/on. This is mainly due to the fact > > that I have never had access to all the flavours of UNIX that SAP
> runs
> > on in order to test and work through the problems. > > > > Your client side is running on Linux, but what are the details of the > > SAP R/3 server? Perhaps you could set TRACE => 1 in the $rfc = new > > SAP::Rfc() and provide me with the *.trc files so that I can see what > > your setup is? > > > > Cheers, > > > > Piers Harding. > >
-- http://www.piersharding.com http://search.cpan.org/~piers/

Message body not shown because it is not plain text.



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.