Hi Mahesh,
Use FM write_form for call in the text elements in window.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ELEMENT'
WINDOW = 'MAIN'.
In the line editor of SAP Script, specify the table field arguments enclosed by '&' symbol as follows:
/E ELEMENT
&TABNAME-ELEMENT&
Save -> Activate.
Hope this helps.
Regards,
Naveen