Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

regarding stock transfer

hi ,

i am using sap b1 2005b pl 40.in sale order there is one function copy to . can it possible all item in sales order copy to stock transfer windows. like sales order copy to delivery or a/r invoice.any customization for the above.

Regards,

vishal

replied

Hi Vishal,

1.Get the sales order using GetByKey(): This will get you all the information of the sales order you want stored in a document object.

2.Create a new stock transfer object.

3.Now use the existing values in the sales order to set the values in your new stock transfer: You can just copy directly, for example:

oStockTransfer.Lines.Quantity = oSalesOrder.Lines.Quantity

This is not as direct an approach as Petrs but should provide a similar solution. As I said though, Business One will not see a link between the documents, you are just copying information.

If you are unsure how to do any of the above, you can always check the helpfile or some of the other posts on this forum. If you still run into any issues, you can post your code here and we can take a look at it.

Regards,

Niall

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question