Thanks for replying and sorry I've taken so long to answer.
I've tried using replace as above and it does remove the document types, but then the other part of the expression
if(Len(KNVP_ADD.PERNR_NAME) ->,'-',KNVP_ADD.PERNR_NAME) doesn't work now no entries are returned at all.
This is the expression I've tried to use it removes the document types, but doesn't show the entries correctly like the original expression did. The edit expression box shows expression OK and I've tried variations on the expression.
=Replace((OrderEntry.VBAK.AUART =-'ZCOM','ZRER','KA','KB'),if(Len(KNVP_ADD.PERNR_NAME) ->,'-', KNVP_ADD.PERNR_NAME))
What could be wrong with the expression I want to remove the documents while still having the second part working as it did originally.
Thanks in advance for your help