Hi Alexander,
Have you tried with the function if-then to change the name according your requisite. You only need to construct the condition with the two characteristics that you have, check this example http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60a68214-fd83-2c10-b8af-c78c3705765f?QuickLink=index&…
Regards.