Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

avoiding hard coding the form names in the script

Former Member
0 Likes
376

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..

2 REPLIES 2
Read only

Former Member
0 Likes
340

one way to avoid hardcoding of formname in function module is to select it from TNAPR table, use select singe to access formname

Read only

0 Likes
340

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.