SAPRFC-Class: Get List of Users in SAP-System

array( "ASHOST"=>"yourhost" // application server ,"SYSNR"=>"00" // system number ,"CLIENT"=>"800" // client ,"USER"=>"youruser" // user ,"PASSWD"=>"yourpwd" // password ) ,"show_errors"=>false // let class printout errors ,"debug"=>false)) ; // detailed debugging information // Call-Function $result=$sap->callFunction("SO_USER_LIST_READ", array( array("IMPORT","USER_GENERIC_NAME","*"), array("TABLE","USER_DISPLAY_TAB",array()) )); // Call successfull? if ($sap->getStatus() == SAPRFC_OK) { // Yes, print out the Userlist ?>"; } ?>
SAP-NameUser-Nummer
", $user["SAPNAM"],"",$user["USRNO"],"
printStatus(); // or print your own error-message with the strings received from // $sap->getStatusText() or $sap->getStatusTextLong() } // Logoff/Close saprfc-connection LL/2001-08 $sap->logoff(); ?>