Application Development 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: 

FM_NAME in Smrtform driver program

Former Member
0 Kudos

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

.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check few things,

1. data: fm_name type rs38l_fnam. is there in your program.

2. Check the actuial FM name in smartform and compare that by putting a break-point at 'SSF_FUNCTION_MODULE_NAME' and verify that it is returning a FM name and that is the same as what you saw in smartforms.

If they all go through , probably it should work. If it it does not then please write back.

Regards

0 Kudos

Hi Tushar,

If my posting helped you , Please award some points to encourage us.

Regards