While writing smart form driver program I am first calling function,
"SSF_FUNCTION_MODULE_NAME" through pattern in se38.
<b>But when I try to call FM_NAME after it it says it does not exist.</b>
How do I call FM_NAME then ?
But many standard Smartform driver program has the following format:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
FORMNAME = P_T_FNAME
VARIANT = ' '
DIRECT_CALL = ' '
FM_NAME = FM_NAME
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL THE FUNCTION MODULE NAME RETRIEVED ***
REPLACE THE FUNCTION MODULE NAME WITH A VARIABLE ???
CALL FUNCTION FM_NAME
USER_SETTINGS = 'X'
ZPLMECFORMS = T_ZPLMECFORMS
AENR = T_AENR
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5