cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Service Layer InventoryGenExit doesn't change WarehouseCode

bcenturion
Discoverer
0 Kudos
122

Hi guys,

I am encountering an issue when trying to create an InventoryGenExits object using the Service Layer. Even though I specify a different warehouse in the WhareHouseCode field of the DocumentLines, the system defaults to the primary warehouse instead of updating to the one I provided.

Specifically, I am trying to make the goods issue point to warehouse 02, while the default warehouse is 01. However, despite specifying 02 in the request, the created goods issue still ends up pointing to 01.

 

{
 "JournalMemo": "Salida de mercancia",
 "DocDate": "2025-02-06",
 "DocumentLines": [
  {
   "LineNum": "1",
   "ItemCode": "C-ITEM-123",
   "ItemDescription": "ITEM NAME",
   "Quantity": "1",
   "VendorNum": "6666",
   "WhareHouseCode": "02",
  }
 ],
}

 

Has anyone else faced a similar issue? Is there a specific setting, field, or configuration I should check to ensure the WhareHouseCode in the lines is respected?

Thank you in advance for any guidance you can provide.

View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi bcenturion,

It seems that you are using an incorrect property name. It should be WarehouseCode.

Kindly correct it in your request.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

bcenturion
Discoverer
0 Kudos
That solved the issue perfectly, I really appreciate your help. Thank you very much!