While recording BDC, If you want to set default table control visible rows size, Then we need to pass CTU_PARAMS-DEFSIZE = 'X' in call transaction method like below.
This blog is going to give some good sample code to understand the SAP ABAP.