I'm in process of updating our company's library to archicad 20. Our "old" door objects had parameters for the finish layers on the wall on both sides of the door, obtained through a request (name_of_fill) line from the wall composite in the door parameter script. These parameters are then used for scheduling.
Since the name_of_fill request has been deprecated in AC20 this part of the object doesn't work anymore.
For simple walls I have the following code which does the job: