Skip to Content

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

Change the ItemCode in a document line

Hello Everybody

I'm looking for help. I try to change an ItemCode in a documentline that is for replacing it by a fake itemcode to let me ignore that line cause i can't remove it but wen i update the document i have an error number -10 concerning the VAT Group!!!

oDoc.lines.itemcode = "CANCELLED"




Help needed!

Best Regards

Former Member

Hi Sofiane,

Does the CANCELLED item exist?

Does it have a default VAT group?

Try doing exactly the same using the GUI, and it is supposed to give the same error. Try debugging this way.


Ibai Peñ

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