SAP Message QG155 - Another layout set is still open

Diagnosis
A new layout set should be opened, although an old layout set is stillactive.
The old layout set must first of all be closed with the function moduleCLOSE_FORM or END_FORM .

System Response
The program will terminate.

Procedure
The problem can only be rectified by a program change.