Skip to Content
0
Former Member
Jul 18, 2005 at 09:36 PM

FM_NAME in Smrtform driver program

77 Views

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'

EXPORTING

FORMNAME = P_T_FNAME

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = FM_NAME

EXCEPTIONS

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.

ENDIF.

  • CALL THE FUNCTION MODULE NAME RETRIEVED ***

  • REPLACE THE FUNCTION MODULE NAME WITH A VARIABLE ???

  • "'1BCDWB/SF00000002'

CALL FUNCTION FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

ZPLMECFORMS = T_ZPLMECFORMS

AENR = T_AENR

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.