1

While integrating invoices into SAP in my Java application on Windows, I am having the following error "R6025 - Pure virtual function call". However, my application runs on multiple clients in a single version and I have no problems with any of the clients, just this specific one!

During testing with the application in the client environment, I noticed that the error always happens when using the "add" to add the first line in the invoice.

invoiceV1.getLines().add(); // The error happens here!
System.out.println("THIS LINE NOT APPEARS ON CMD");
invoiceV1.getLines().setCurrentLine(lineNum);

............ SETTING LINE VALUES ..........

lineNum++;
Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48

1 Answers1

1

As far as i know, you don't need to set the .add() on the first line. Try to put an if just to check if it is the first line or not.

If that doesn't work, you could consider an enviroment error? Or some instalattion problem?

GuiPab
  • 455
  • 2
  • 7
  • 18
  • I just tried your suggestion, tried to carry out the following changes: if (lineNum> 0) {       invoiceV1.getLines (). add ();       invoiceV1.getLines (). setCurrentLine (lineNum); } ........................... AND ........................... if (lineNum> 0) {       invoiceV1.getLines (). add (); } invoiceV1.getLines (). setCurrentLine (lineNum); – Vitor G. Delgallo Jun 05 '19 at 19:04
  • That was also it, but there were some flaws in the client environment! – Vitor G. Delgallo Jun 05 '19 at 19:30