SAP Message 0S040 - Function "Replace variables" not possible for this statement

0S040 : Function "Replace variables" not possible for this statement