Function cannot be called in this context

SOLVED

Hello everyone Slight smile

I built a generic screen "ZTRANSPORTCO" for a customer. The screen is used in multiple windows.

The problem is when I try to "Jump to" another window which also has a tab with the generic screen "ZTRANSPORTCO" I get the following error:

When I remove the generic mask from the tabs in the window of the customer the error no longer occurs.

I know it would be possible to just copy the mask and use this mask with the same specific script in the customer window. But this way we have to maintain two masks.

Would it be possible to open the tab in the customer window with another alias? So that I can use the same mask for both windows without duplicating?

Has anybody an idea for a possible solution without duplicating the generic mask?

Thank you in advance.

Kind regards