If the presence of an opening would form a beam like strip above or below the opening, you are advised to create separate wall panels to each side of the opening and then model the strip between the panels with a connecting beam ('coupling beam').
This method can be demonstrated by considering the below example, consisting of a two story wall with a large opening at each level.
If the openings were to be created as a window and door the resulting model would be as shown:
However, by separating the wall into discrete panels and inserting coupling beams you obtain an alternative model as below:
Such an idealisation enables the panels either side of the openings to be designed for their respective forces and enables the strips between the openings to be designed as beams.
Of course, this approach will require some additional detailing, but that would have been the case anyway had the openings been added and subsequently ignored by the design.