Skip to Content
avatar image
Former Member

Partial Warehouse transfer SDK Sap B1

Dear Experts,

I experience an issue when performing partial warehouse transfer based on a warehouse transfer request .

sample code is as follows :

                SAPbobsCOM.StockTransfer st = globals.oCompany.GetBusinessObject(BoObjectTypes.oStockTransfer);
                st.Lines.ItemCode = "AME17090EC";
                st.Lines.FromWarehouseCode = "45";
                st.Lines.WarehouseCode = "10";
                st.Lines.Quantity = 1;
                st.Lines.BaseEntry = 5247;
                st.Lines.BaseType = InvBaseDocTypeEnum.InventoryTransferRequest;
                st.Lines.BaseLine = 0;
                st.Lines.Add();
                st.Lines.ItemCode = "AME17111IP";
                st.Lines.FromWarehouseCode = "45";
                st.Lines.WarehouseCode = "10";
                st.Lines.Quantity = 1;
                st.Lines.BaseEntry = 5247;
                st.Lines.BaseType = InvBaseDocTypeEnum.InventoryTransferRequest;
                st.Lines.BaseLine = 1;


                globals.lRetCode = st.Add();

When running in debug the above I get no error / run time exception .

only the following in the output

The program '[45956] whTest.vshost.exe' has exited with code -1073740791  (0xc0000409).

we're currently using SBO 9.0 PL 13

Any advice is much appreciated.

Thank you .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers