Method for producing a laminated pane having electrically controllable optical properties, wherein a) a functional element having electrically controllable optical properties is provided, comprising an active layer between a first carrier film and a second carrier film made of a second thermoplastic material, and the first carrier film and the second carrier film are directly fused together along at least one region of the lateral edge of the functional element , or are indirectly fused together via a thermoplastic connecting piece which consists of the second thermoplastic material, wherein the direct or indirect fusion of the first carrier film and the second carrier film takes place by means of laser radiation and the laser radiation is defocused on the functional element , with a beam profile diameter of from 0.5 mm to 5 mm, b) an outer pane , a first thermoplastic layer , the functional element , a second thermoplastic layer , and an inner pane are arranged on top of one another in this order, wherein the first thermoplastic layer and the second thermoplastic layer consist of a first thermoplastic material which differs from the second thermoplastic material and which contains a plasticiser, c) the outer pane and the inner pane are connected by lamination, wherein an intermediate layer having an embedded functional element is formed from the first thermoplastic layer and the second thermoplastic layer . a) a functional element having electrically controllable optical properties is provided, comprising an active layer between a first carrier film and a second carrier film made of a second thermoplastic material, and the first carrier film and the second carrier film are directly fused together along at least one region of the lateral edge of the functional element , or are indirectly fused together via a thermoplastic connecting piece which consists of the second thermoplastic material, wherein the direct or indirect fusion of the first carrier film and the second carrier film takes place by means of laser radiation and the laser radiation is defocused on the functional element , with a beam profile diameter of from 0.5 mm to 5 mm, the first carrier film and the second carrier film are directly fused together along at least one region of the lateral edge of the functional element , or are indirectly fused together via a thermoplastic connecting piece which consists of the second thermoplastic material, wherein the direct or indirect fusion of the first carrier film and the second carrier film takes place by means of laser radiation and the laser radiation is defocused on the functional element , with a beam profile diameter of from 0.5 mm to 5 mm, b) an outer pane , a first thermoplastic layer , the functional element , a second thermoplastic layer , and an inner pane are arranged on top of one another in this order, wherein the first thermoplastic layer and the second thermoplastic layer consist of a first thermoplastic material which differs from the second thermoplastic material and which contains a plasticiser, c) the outer pane and the inner pane are connected by lamination, wherein an intermediate layer having an embedded functional element is formed from the first thermoplastic layer and the second thermoplastic layer . <EOS>