‎2006 Dec 21 5:19 AM
hi all,
I'm a beginner. Is it good hard-coding values in the export/import parameters that we use? if not, how can we avoid hard-coding the form names in the function modules used in script programs?
In smart forms, there is an automatic generation of function module using
SSF_FUNCTION_MODULE_NAME...is there anything similar happening with SAPscript?
Thanx in advance..
‎2006 Dec 21 12:43 PM
one way to avoid hardcoding of formname in function module is to select it from TNAPR table, use select singe to access formname
‎2006 Dec 21 12:49 PM
Yes, u have to avoid hard coding the form name. Get the form name from the table TNAPR and pass it. In sccript there is no other way like in smartfrom.
Thanks,
Alex.