on 07-17-2017 5:10 PM - last edited on 02-03-2024 8:37 PM by postmig_api_4
Hi everyone.
I'm using B1 9.1 PL13.
I'm trying to create a Inventory Counting document with Serial number by DIAPI.
The problem is. There is an item with no quantity available in B1. But I'm try to set quantity 1 in Inventory Counting document, with a Serial Number that already exist in B1.
But all the time i get an error saying "The item xxxx with serial number xxxx does not exist in waherehouse."
Anyone can help me?
hi all,
anyone have solution for this case ?
i am using SAP B1 9.3 PL4 HANA, and still can not update serial number that already exists.
please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eduardo,
I try to reproduce your scenario, and got the same situation. My sample code:
CompanyService oCS = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
InventoryCountingsService oICS = oCS.GetBusinessService(SAPbobsCOM.ServiceTypes.InventoryCountingsService);
InventoryCounting oIC = oICS.GetDataInterface(SAPbobsCOM.InventoryCountingsServiceDataInterfaces.icsInventoryCounting);
DateTime dt = DateTime.Now;
oIC.CountDate = DateTime.Now;
oIC.BranchID = 1;
InventoryCountingLines oICLS = oIC.InventoryCountingLines;
InventoryCountingLine oICL = oICLS.Add();
oICL.ItemCode = "AA1CP6410-A0106";
oICL.CountedQuantity = 1;
oICL.WarehouseCode = "001.01";
oICL.Counted = SAPbobsCOM.BoYesNoEnum.tYES;
InventoryCountingSerialNumber oICLserial = oICL.InventoryCountingSerialNumbers.Add();
//oICLserial.InternalSerialNumber = "Teste 1234";
oICLserial.SystemSerialNumber = 1;
//oICLserial.ManufacturerSerialNumber = "Teste 1234";
oICLserial.Quantity = 1;
SAPbobsCOM.InventoryCountingParams oICP = oICS.Add(oIC);
I saw that if I need to do the same action on SAP Business One Client I need to click on Create button on select serial numbers screen.
Maybe something missed on this functionality on SDK.
If you get no answers, I suggest you to try open a ticket on SAP support to discover if this is a bug or system design.
Hope it helps.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.