cancel
Showing results for 
Search instead for 
Did you mean: 

Property 'UgpEntry' of 'Item' is invalid error while using Service Layer

mucipilbuga
Participant
0 Kudos

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:)

View Entire Topic
mucipilbuga
Participant
0 Kudos

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:)