Skip to Content
-1
Oct 12, 2020 at 02:57 PM

How to use user defined object in SAP B1 SDK?

66 Views

Hi all,

Actually I use below code in php which is fine

$oOrder=$mycomp->GetBusinessObject(22);

But now I want to connect to user defined object called OALW, I tried to replace 22 with OALW like below

$oOrder=$mycomp->GetBusinessObject("OALW");

but I'm getting the following error message Fatal error: Uncaught com_exception: Parameter 0: Type mismatch. in C:\xampp\htdocs\sap\allowance.php:23 Stack trace: #0 C:\xampp\htdocs\sap\allowance.php(23): com->GetBusinessObject('OALW')

How can I use user defined object in GetBusinessObject() in order to update its table?