on 2018 Nov 04 3:33 PM
hello everyone
I'm using the oStockTransfer object and in some cases I need to update the CodeBars field. When I try to find it, it does not appear in the sdk, so I can not update it.
I understand that this field is automatically filled with the bar code field that the product has in the oitm table but in some cases in the xml that I read to go up to sap it has diffe
Any idea how to update this fied?
Below part of the code.
for (int i = 0; i < oInventoryTransferRequest.Lines.Count; i++)
{
if (i != 0) StockTransfer.Lines.Add();
StockTransfer.Lines.SetCurrentLine(i);
oInventoryTransferRequest.Lines.SetCurrentLine(i);
StockTransfer.Lines.ItemCode = oInventoryTransferRequest.Lines.ItemCode;
string[] cantidad = oInventoryTransferRequest.Lines.Quantity.ToString().Split(delimiterChars);
StockTransfer.Lines.Quantity = Convert.ToDouble(cantidad[0]);
StockTransfer.Lines.WarehouseCode = oInventoryTransferRequest.Lines.WarehouseCode;
StockTransfer.Lines.ProjectCode = oInventoryTransferRequest.Lines.ProjectCode;
StockTransfer.Lines.UserFields.Fields.Item("U_Comentariosl").Value = oInventoryTransferRequest.Lines.UserFields.Fields.Item("U_Comentariosl").Value;
StockTransfer.Lines.DiscountPercent = 0;
StockTransfer.Lines.UnitPrice = oInventoryTransferRequest.Lines.Price;
StockTransfer.Lines.UserFields.Fields.Item("U_VuCadena").Value = oInventoryTransferRequest.Lines.UserFields.Fields.Item("U_VuCadena").Value;
StockTransfer.Lines.UserFields.Fields.Item("U_VIcoCadena").Value = oInventoryTransferRequest.Lines.UserFields.Fields.Item("U_VIcoCadena").Value;
sqlAdapter.cerrarConexion();
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Johan.
We
had originally thought about that, but the company informs me that this
code is not exactly the same, because those inventory transfers requests are sent by customers through EDI (Electronic Data
Interchange), we only read the information from the xml.
Any other idea Johan?.
Thank you.
Alvaro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
8 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.