cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member440545
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member233854
Active Contributor
0 Kudos

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();
former_member440545
Participant
0 Kudos

Hi Sir,

Thanks For your Reply

former_member440545
Participant
0 Kudos

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

former_member233854
Active Contributor
0 Kudos

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

former_member440545
Participant
0 Kudos

Hi,

Thank you, now It's Working

Answers (0)