Post a Reply Start New Message

Weblog:    Perl and SAP Adventures, Part 3
Subject: Great article - love it
Date: 2009-07-01 13:23:52
From: Mingzuo Shen  Business Card


Thanks!
works as usual.


Use sxml_versions_get to get the names and versions.
That is left as an exercise for the reader!


use strict;
use warnings;
use sapnwrfc;
my $interface = shift;
SAPNW::Rfc->load_config; # load the connection parameters defined in sap.yml
my $rfc = SAPNW::Rfc->rfc_connect;
# SE37 display function module
my $rcb = $rfc->function_lookup("SXMI_VERSIONS_GET");
my $tsl = $rcb->create_function_call;
if (defined $interface && length($interface)> 0) {
$tsl->INTERFACE($interface);
}
$tsl->invoke;
print "SXMI interfaces and versions\n";
foreach my $row (@{$tsl->VERSIONS}) {
print $row->{'INTERFACE'}, ' ', $row->{'VERSION'}, "\n";
}
$rfc->disconnect();



perl sxmi_versions_get.perl
SXMI interfaces and versions
XBP 3.0
XMB 0.1
XOM 0.1
XAL 1.0



perl sxmi_versions_get.perl XMB
SXMI interfaces and versions
XMB 0.1


No Previous Message Previous Message Next Message No Next Message

Showing messages 1 through 1 of 1.

Titles Only Main Topics Oldest First
  • Great article - love it
    2009-07-02 07:58:43 David Hull Business Card [Reply]

    That's an excellent addition, thanks! I struggle sometimes with how much information to give in the article, since I don't want to make it 18 pages long. :)


    BTW, my list of interfaces and versions returned from an ECC 6.0 system is the same as yours, which doesn't include XMW, which I listed in the blog. Interesting that this doesn't get returned, but if you use SXMI_LOGON, it is a valid interface, and you can actually use any version number you wish with it. I'm not sure why that is, as I haven't tried to use this interface, and so haven't looked into it yet.


    Cheers,
    David.


Showing messages 1 through 1 of 1.

SAP, mySAP, mySAP.com, xApps, xApp, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product, service names, trademarks and registered trademarks mentioned are the trademarks of their respective owners.