Where to define an associated type in SAP function module?

The parameter that you are using seems to be a import type and it will require an associated type in order to be of any use.

You can define the table parameters for this. You can find them within the tables tab. Once you have defined them then you can use them for either export or import.

Hope it works for you!