Questions tagged as 'primaverabss'

2
answers

Errors related to "MasterTaskInfo" and "VariationMasterTask" when saving purchase document in V10 via API

When attempting to save a purchase document with the following code on a V10 DEMO database with an external application ... var documento = new CmpBE100.CmpBEDocumentoCompra(); documento.Tipodoc = "VGR"; documento.Serie...
asked by 26.07.2018 / 19:32
2
answers

___ ___ erkimt error in the data change in the existing document header ______ qstntxt ___

Good morning.

I have a function in VB to edit purchase documents.

Everything goes well but if you call %code% the header variables are changed, but when calling %code% always gives an error:

  

8169: Conversion failed when converting from a character string to   uniqueidentifier.

It gives the idea that the doccompra gets lost after %code% .

Thank you for your help

%pre%     
______ azszpr332118 ___

When calling the %code% method with the second parameter equal to 5, it means that we will change the data related to %code% , %code% , %code% , etc. When you change data related to %code% , the %code% method will change the %code% by suggesting the next number in the series. To work around the problem, you can re-assign the %code% after calling the %code% method.

Code:

%pre%

Another solution would be to call the %code% method with the second parameter equal to 2, so it only changes the entity's related data.

Code:

%pre%     
______ azszpr332130 ___

John

In the code you are running there are some improvements you can make, for example, as the property %code% is controlled by PRIMAVERA you do not have to do anything about it. The type of entity also does not have to be indicating, and by utlimo as Flavio Jardim said is to use parameter 2 because in reality it is only changing the entity and only this is that it has impact on other properties of the document. > %pre%

More information about the codes of this method.

%pre%     
___

Good morning. I have a function in VB to edit purchase documents. Everything goes well but if you call motor.Comercial.Compras.PreencheDadosRelacionados(doccompra) the header variables are changed, but when calling motor.Comercial...
asked by 25.09.2018 / 13:41
1
answer

Migration from ATP to STP

Does anyone have an example to register a process and an intervention in the technical services module? I'm trying to migrate a project from technical assists but I can not see Sub Regista() Dim teste As AtpBEProcesso Dim objPedido...
asked by 19.09.2018 / 13:34
1
answer

VBA Migration to C # - V10 - Error "System.IndexOutOfRangeException: 'Can not find table 0.'"

Good afternoon, I needed help to help overcome error:    System.IndexOutOfRangeException: 'Can not find table   0. '", when executing PSO.ExecSql.ExecutaXML (" update CabLiq setPag="" + PSO.Utils.FStr (this.DocumentoVenda.CamposUtil ["CDU_SBM...
asked by 10.09.2018 / 19:35
1
answer

Error opening V10 engine - Can not execute runtime binding on a null reference

I have an error in the last build when opening the platform something wrong or changed in the last build of V10? try { Empresa = "DEMOV10"; Instancia = "DEFAULT"; Utilizador = "Primavera"; Password = "Primavera"; TipoPlataf...
asked by 25.09.2018 / 13:55
1
answer

V10 - Sales Editor - BeforeRemoveLine

I have this little code to hit a sum in a CDU when a line is removed from the editor. However, when I have several rows and for example I remove the second line, the variable i always takes the value of the last line and hits the sum with...
asked by 19.10.2018 / 19:18
1
answer

Transformation of an FP into FA (Sales Documents)

Good night everyone, I'm trying to make the Transformation of Sales Documents, in the case a Pro-form in an Invoice, but it gives error because the origin does not have Warehouse in the Lines. How do I add the Warehouse I want? I have the...
asked by 30.11.2018 / 22:24
2
answers

What references do you need to have access to the existing methods in the clients file?

For V10 extensibility projects, in VS we have these references for access to Publisher methods: using Primavera.Extensibility.BusinessEntities.ExtensibilityService.EventArgs; using Primavera.Extensibility.Sales.Editors; And in order to acce...
asked by 08.10.2018 / 12:14
1
answer

How to create a stock document of type composition of article via engines? (V9)

What is intended is to create a stock composition document via engines, but specifying which are the components and not using the ones in the product datasheet. I am using the code below but the document is created, the composite article goes in...
asked by 14.08.2018 / 12:23
1
answer

Type mismatch error

Good afternoon, We are testing the "SearchObject" method on purchases and the following error message appears Using the interops gives the same error. This id is from a purchasing document. Has anyone had this error? How did you g...
asked by 25.09.2018 / 17:09