For ME51N
The Program name is SAPLMEGUI
and click on Function List and select display in Transaction SE41
So the following Function Code exits for various Collapse and Expand bits
METOGGOFF1 Collapse Header
METOGGOFF2 Collapse Overview
METOGGOFF3 Collapse Item
METOGGON1 Expand Header
METOGGON2 Expand Overview
METOGGON3 Expand Item
METROF Document Overview Off
METRON Document Overview On
Now when you open ME51N -- in the TCODE box you can just key in these codes to perform collapse and expand.
So in Personas if you have to do it just use CALL transaction and key in the code.
If you need to an item selection expansion screen and don't know if the user has it already or not, you can safely call this Function Code after you load the main transaction which is in this case is ME51N.
Give it a go. See if it helps. Image may be NSFW.
Clik here to view.
Regards,
Manu