02-08-2024 2:21 PM - edited 02-08-2024 3:32 PM
Hi,
I want to use Service Layer in SAP B1 with PHP. It looks good.
But when I want to add Item with below paremeters I got error ""Property 'UgpEntry' of 'Item' is invalid.
My POST paremeter is:
$data = array(
"ItemCode" => "$gelenStokKod",
"ItemName" => "$gelenStokAd",
"ItmsGrpCod" => $gelenGrupKod,
"UgpEntry" => $gelenStokBirim
);
By the way the real Jason is:
Property 'ItmsGrpCod' of 'Item' is invalid
{"ItemCode":"test04","ItemName":"test04","ItmsGrpCod":"220","UgpEntry":"11","ItemType":"I"}
And I am sure there is 220 ItmsGrpCod in OITB and there is 11 UgpEntry in OUGP table.
And I did not understand where this error come from?
Which Item parameters can I use with Post Item?
Regards,
Mucip:)
Hi,
I found solution. I have been using SQL field name. But in service layer I should use SDK names.
I used below jason and now it's OK...
{"ItemCode":"test07",
"ItemName":"test07",
"ItemsGroupCode":"220",
"UoMGroupEntry":"11",
"ItemType":"I"}
Regards,
Mucip:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.