Skip to Content

How to move a from Fromwarehouse Binlocation to Towarehouse BinLocation using Stocktransfer?

Hi Experts,

How to move a Fromwarehouse Binlocation to TowareHouse Binlocation Using Stocktranfer Service?

Please anyone share me Example Source code for Bin location Changing for particular Serial number using Stocktransfer

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 18, 2017 at 01:24 PM

    Hi Manikandan, see the example below

                    StockTransfer st = (StockTransfer)oCompany.GetBusinessObject(BoObjectTypes.oStockTransfer);
    
    
                    st.FromWarehouse = "05";
                    st.ToWarehouse = "bin";
    
    
                    st.Lines.ItemCode = "A00001";
                    st.Lines.WarehouseCode = "bin";
                    st.Lines.FromWarehouseCode = "05";
                    st.Lines.Quantity = 2;
    
    
                    st.Lines.BinAllocations.BaseLineNumber = 0;
                    st.Lines.BinAllocations.BinActionType= BinActionTypeEnum.batFromWarehouse;
                    st.Lines.BinAllocations.BinAbsEntry = 1;
                    st.Lines.BinAllocations.Quantity = 2;
                    st.Lines.BinAllocations.Add();
    
    
                    st.Lines.BinAllocations.BaseLineNumber = 0;
                    st.Lines.BinAllocations.BinActionType = BinActionTypeEnum.batToWarehouse;
                    st.Lines.BinAllocations.BinAbsEntry = 74;
                    st.Lines.BinAllocations.Quantity = 2;
                    st.Lines.BinAllocations.Add();
    
    
                    int errCode = st.Add();
    
    Add comment
    10|10000 characters needed characters exceeded