Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Business One PHP access

Hi,

I'm trying to access SBO with PHP

Connecting to the company object is working fine

But the next step (getbusinessobject) is not working

Does anybody have tips ?

This is the current code :

<?php

echo "SBO PHP TEST<br>";

$vCmp=new COM("SAPbobsCOM.company") or die ("No connection");

$vCmp->server = "(local)";

$vCmp->CompanyDB = "sbodemo_dutch";

$vCmp->username = "manager";

$vCmp->password = "manager";

//$vCmp->language = "ln_English";

//$vCmp->UseTrusted = True;

$lRetCode = $vCmp->Connect;

echo $vCmp->CompanyName;

echo '<br>';

$vItem = $vCmp->GetBusinessObject(oItems);

$RetVal = $vItem->GetByKey("A1010");

echo '$vItem->Itemname';

echo '<br><br>Ready';

?>

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question