‎2007 Feb 17 4:27 AM
hi .
while execute a smartforms, function code is created automatically. is that code wil be called in the some other program.. it is very difficult to remember also. is that anyother description there..
one way is environment -> function module (menu option)..
what is the another way to find a funtion code of the smartfotm...?
thnx.
Ashraf
‎2007 Feb 17 4:31 AM
Hi,
U can call the smartform in this way:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_formname
IMPORTING
fm_name = v_fmname.
CALL FUNCTION v_fmname
TABLES
i_htab = I_HTAB
i_itab = I_ITAB.
where v_formname is the smartform name u have created
v_fmname is the FM name associated with it.
once u get v_fmname from the FM SSF_FUNCTION_MODULE_NAME, then u can call that FM associated with smartform and pass the tables required by your smartform.
regards
Navneeth.K
‎2007 Feb 17 4:31 AM
Hi,
U can call the smartform in this way:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_formname
IMPORTING
fm_name = v_fmname.
CALL FUNCTION v_fmname
TABLES
i_htab = I_HTAB
i_itab = I_ITAB.
where v_formname is the smartform name u have created
v_fmname is the FM name associated with it.
once u get v_fmname from the FM SSF_FUNCTION_MODULE_NAME, then u can call that FM associated with smartform and pass the tables required by your smartform.
regards
Navneeth.K