初步的错误记录

2020-09-09 10:50发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


Hola buenas tardes。

我的预科课程获得X资格证明文件,而"梅尔卡德拉商业"证书因法律原因而立即失去了法律顾问的指导 常见问题的解决方法是,在恢复正常生活的同时,也应考虑到在任何情况下都存在的问题。 Ledvo dias tratando de solucionar el problema pensando que seria un issuea de codigo,在附近的永久居民,al count se un trozo de codigo en el cual se realiza la creacion de la entrada de mercaderia。

如果(connection.Connect()== 0)
                 {
                     Console.WriteLine("已成功连接到" + connection.GetCompany()。CompanyName +"!");
                     SAPbobsCOM.Documents oPurchaseDeliveryNotes =(SAPbobsCOM.Documents)connection.GetCompany()。GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
                     oPurchaseDeliveryNotes.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes;
                     同时(mostrar.MoveNext())
                     {
                         Receipt.Clear();
                         poDetail PD =(poDetail)mostrar.Current;
                         Receipt.Add(PD._EXTERNRECEIPTKEY);
                         Receipt.Add(PD._TYPE);
                         ArrayList COC =新的ArrayList();
                         System.Collections.IEnumerator mostrador = nSAP.getOC(Receipt [0] .ToString())。GetEnumerator();
                         同时(mostrador.MoveNext())
                         {
                             COC.Clear();
                             cabeceraOC cabOC =(cabeceraOC)mostrador.Current;
                             COC.Add(cabOC._CardCode);
                             COC.Add(cabOC._U_OPEDIDO);
                             COC.Add(cabOC._DocEntry);


                             oPurchaseDeliveryNotes.CardCode = cabOC._CardCode;
                             oPurchaseDeliveryNotes.CardName = cabOC._CardName;
                            /////oPurchaseDeliveryNotes.DiscountPercent = Convert.ToDouble(cabec._DiscPrcnt);
                             oPurchaseDeliveryNotes.DocCurrency = cabOC._DocCur;
                             oPurchaseDeliveryNotes.DocDate = cabOC._DocDate;
                             oPurchaseDeliveryNotes.DocDueDate = cabOC._DocDueDate;
                             oPurchaseDeliveryNotes.DocRate = Convert.ToDouble(cabOC._DocRate.ToString());
                             oPurchaseDeliveryNotes.TaxDate = cabOC._TaxDate;
                            ////oPurchaseDeliveryNotes.DocTotal = Convert.ToDouble(cabec._DocTotal.ToString());
                             oPurchaseDeliveryNotes.SalesPersonCode = cabOC._SlpCode;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_NIMPORT")。Value = cabOC._U_NIMPORT;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_RETENIDO")。Value = cabOC._U_RETENIDO;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_OPEDIDO")。Value = cabOC._U_OPEDIDO;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_CLUCP")。Value = cabOC._U_CLUCP;
                             oPurchaseDeliveryNotes.Comments = cabOC._Comments;


                             var obtenerDetalleINT = nINT.obtenerDetalleINT(Receipt [0] .ToString());
                             ArrayList Veri = new ArrayList();
                             System.Collections.IEnumerator obtener = obtenerDetalleINT.GetEnumerator();
                             同时(obtener.MoveNext())
                             {
                                 Veri.Clear();
                                 AsnVerificado AV =(AsnVerificado)obtener.Current;
                                 Veri.Add(AV._QTY);
                                 Veri.Add(AV._SKU);
                                 ArrayList DOC = new ArrayList();
                                 var obtenerDetalleOC = nSAP.getOCDetalle(cabOC._DocEntry,AV._SKU);
                                 System.Collections.IEnumerator OBT = obtenerDetalleOC.GetEnumerator();
                                 而(OBT.MoveNext())
                                 {
                                     DOC.Clear();
                                     detalleOC detOC =(detalleOC)OBT.Current;
                                     DOC.Add(detOC._itemCode);
                                     DOC.Add(detOC._Price);
                                     String [] rat = cabOC._DocRate.Split(',');
                                     String [] dsct = detOC._DiscPrcnt.Split(',');




                                     oPurchaseDeliveryNotes.Lines.ItemCode = detOC._itemCode;
                                     oPurchaseDeliveryNotes.Lines.Currency = detOC._Currency;
                                    //oPurchaseDeliveryNotes.Lines.UnitPrice = Convert.ToDouble(DOC [1] .ToString());
                                     oPurchaseDeliveryNotes.Lines.DiscountPercent = Convert.ToDouble(dsct [0]);
                                     oPurchaseDeliveryNotes.Lines.Price = Convert.ToDouble(detOC._Price2.ToString());
                                     oPurchaseDeliveryNotes.Lines.Quantity = Convert.ToDouble(detOC._Quantity);
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_CODORIGINART")。Value = detOC._U_CODORIGINART;
                                     oPurchaseDeliveryNotes.Lines.Rate = Convert.ToDouble(cabOC._DocRate);
                                     oPurchaseDeliveryNotes.Lines.TaxCode = detOC._TaxCode;
                                     oPurchaseDeliveryNotes.Lines.WarehouseCode = detOC._WhsCode;
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_CBL")。Value = Convert.ToDouble(AV._QTY);
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_NEMBARQ")。Value = detOC._U_NEMBARQ;
                                     oPurchaseDeliveryNotes.Lines.Add();
                                 }
                             }
                             int AddDraftPurchaseDeliveryNotes = oPurchaseDeliveryNotes.Add();
                             如果(AddDraftPurchaseDeliveryNotes!= 0)
                             {
                                 Console.WriteLine(connection.GetCompany()。GetLastErrorDescription());
                             }
                             否则,如果(AddDraftPurchaseDeliveryNotes == 0)
                             {
                                 Console.WriteLine(" Documento creado exitosamente!");
                                 Console.WriteLine(" CREADO DRAFT PARA" + Receipt [0]);
                                 nINT.actualizarFLAG(Receipt [0] .ToString());
                                 nSAP.actualizarOPOR(Receipt [0] .ToString());
                             }
                             Console.WriteLine(" *** --------------------------------------- ***  ");
                         }
                     }
                 }
                 其他
                 {
                     Console.WriteLine(" Error" + connection.GetErrorCode()+":" + connection.GetErrorMessage());
                 }
                 connection.GetCompany()。Disconnect();
 

影像基础设施的即时咨询服务。

Desde ya muchas gracias。

Saludos

(25.9 kB)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


Hola buenas tardes。

我的预科课程获得X资格证明文件,而"梅尔卡德拉商业"证书因法律原因而立即失去了法律顾问的指导 常见问题的解决方法是,在恢复正常生活的同时,也应考虑到在任何情况下都存在的问题。 Ledvo dias tratando de solucionar el problema pensando que seria un issuea de codigo,在附近的永久居民,al count se un trozo de codigo en el cual se realiza la creacion de la entrada de mercaderia。

如果(connection.Connect()== 0)
                 {
                     Console.WriteLine("已成功连接到" + connection.GetCompany()。CompanyName +"!");
                     SAPbobsCOM.Documents oPurchaseDeliveryNotes =(SAPbobsCOM.Documents)connection.GetCompany()。GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
                     oPurchaseDeliveryNotes.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes;
                     同时(mostrar.MoveNext())
                     {
                         Receipt.Clear();
                         poDetail PD =(poDetail)mostrar.Current;
                         Receipt.Add(PD._EXTERNRECEIPTKEY);
                         Receipt.Add(PD._TYPE);
                         ArrayList COC =新的ArrayList();
                         System.Collections.IEnumerator mostrador = nSAP.getOC(Receipt [0] .ToString())。GetEnumerator();
                         同时(mostrador.MoveNext())
                         {
                             COC.Clear();
                             cabeceraOC cabOC =(cabeceraOC)mostrador.Current;
                             COC.Add(cabOC._CardCode);
                             COC.Add(cabOC._U_OPEDIDO);
                             COC.Add(cabOC._DocEntry);


                             oPurchaseDeliveryNotes.CardCode = cabOC._CardCode;
                             oPurchaseDeliveryNotes.CardName = cabOC._CardName;
                            /////oPurchaseDeliveryNotes.DiscountPercent = Convert.ToDouble(cabec._DiscPrcnt);
                             oPurchaseDeliveryNotes.DocCurrency = cabOC._DocCur;
                             oPurchaseDeliveryNotes.DocDate = cabOC._DocDate;
                             oPurchaseDeliveryNotes.DocDueDate = cabOC._DocDueDate;
                             oPurchaseDeliveryNotes.DocRate = Convert.ToDouble(cabOC._DocRate.ToString());
                             oPurchaseDeliveryNotes.TaxDate = cabOC._TaxDate;
                            ////oPurchaseDeliveryNotes.DocTotal = Convert.ToDouble(cabec._DocTotal.ToString());
                             oPurchaseDeliveryNotes.SalesPersonCode = cabOC._SlpCode;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_NIMPORT")。Value = cabOC._U_NIMPORT;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_RETENIDO")。Value = cabOC._U_RETENIDO;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_OPEDIDO")。Value = cabOC._U_OPEDIDO;
                             oPurchaseDeliveryNotes.UserFields.Fields.Item(" U_CLUCP")。Value = cabOC._U_CLUCP;
                             oPurchaseDeliveryNotes.Comments = cabOC._Comments;


                             var obtenerDetalleINT = nINT.obtenerDetalleINT(Receipt [0] .ToString());
                             ArrayList Veri = new ArrayList();
                             System.Collections.IEnumerator obtener = obtenerDetalleINT.GetEnumerator();
                             同时(obtener.MoveNext())
                             {
                                 Veri.Clear();
                                 AsnVerificado AV =(AsnVerificado)obtener.Current;
                                 Veri.Add(AV._QTY);
                                 Veri.Add(AV._SKU);
                                 ArrayList DOC = new ArrayList();
                                 var obtenerDetalleOC = nSAP.getOCDetalle(cabOC._DocEntry,AV._SKU);
                                 System.Collections.IEnumerator OBT = obtenerDetalleOC.GetEnumerator();
                                 而(OBT.MoveNext())
                                 {
                                     DOC.Clear();
                                     detalleOC detOC =(detalleOC)OBT.Current;
                                     DOC.Add(detOC._itemCode);
                                     DOC.Add(detOC._Price);
                                     String [] rat = cabOC._DocRate.Split(',');
                                     String [] dsct = detOC._DiscPrcnt.Split(',');




                                     oPurchaseDeliveryNotes.Lines.ItemCode = detOC._itemCode;
                                     oPurchaseDeliveryNotes.Lines.Currency = detOC._Currency;
                                    //oPurchaseDeliveryNotes.Lines.UnitPrice = Convert.ToDouble(DOC [1] .ToString());
                                     oPurchaseDeliveryNotes.Lines.DiscountPercent = Convert.ToDouble(dsct [0]);
                                     oPurchaseDeliveryNotes.Lines.Price = Convert.ToDouble(detOC._Price2.ToString());
                                     oPurchaseDeliveryNotes.Lines.Quantity = Convert.ToDouble(detOC._Quantity);
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_CODORIGINART")。Value = detOC._U_CODORIGINART;
                                     oPurchaseDeliveryNotes.Lines.Rate = Convert.ToDouble(cabOC._DocRate);
                                     oPurchaseDeliveryNotes.Lines.TaxCode = detOC._TaxCode;
                                     oPurchaseDeliveryNotes.Lines.WarehouseCode = detOC._WhsCode;
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_CBL")。Value = Convert.ToDouble(AV._QTY);
                                     oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item(" U_NEMBARQ")。Value = detOC._U_NEMBARQ;
                                     oPurchaseDeliveryNotes.Lines.Add();
                                 }
                             }
                             int AddDraftPurchaseDeliveryNotes = oPurchaseDeliveryNotes.Add();
                             如果(AddDraftPurchaseDeliveryNotes!= 0)
                             {
                                 Console.WriteLine(connection.GetCompany()。GetLastErrorDescription());
                             }
                             否则,如果(AddDraftPurchaseDeliveryNotes == 0)
                             {
                                 Console.WriteLine(" Documento creado exitosamente!");
                                 Console.WriteLine(" CREADO DRAFT PARA" + Receipt [0]);
                                 nINT.actualizarFLAG(Receipt [0] .ToString());
                                 nSAP.actualizarOPOR(Receipt [0] .ToString());
                             }
                             Console.WriteLine(" *** --------------------------------------- ***  ");
                         }
                     }
                 }
                 其他
                 {
                     Console.WriteLine(" Error" + connection.GetErrorCode()+":" + connection.GetErrorMessage());
                 }
                 connection.GetCompany()。Disconnect();
 

影像基础设施的即时咨询服务。

Desde ya muchas gracias。

Saludos

(25.9 kB)
付费偷看设置
发送
1条回答
Haoba3210
1楼-- · 2020-09-09 11:22

对你的理解如此。

一周热门 更多>