Skip to Content
0

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

Sep 18, 2017 at 08:53 AM

95

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Danilo Kasparian Sep 18, 2017 at 01:24 PM
0

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();
Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Sir,

Thanks For your Reply

0
Former Member

Hi sir,

Actually ,the above scenerio is working When I give From warehouse,from bin location, To warehouse and to bin location.

but my scenerion I am only giving the From warehouse, From Bin location and to warehouse not have a any bin location .It is only warehouse. So How to I change the Above coding to my recuirement.

Note: I am giving only From warehouse , From binlocation and To warehouse not have any binloaction. only Item moves to warehouse only

0

Hi,

I believe as long your warehouse is not bin managed you just remove the "ToWarehouse" bin block and it should be fine.

I didn`t test though

0
Former Member

Hi,

Thank you, now It's Working

0