cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms

former_member212002
Active Contributor
0 Kudos

Hello Experts,

I have created a smartform with name zform_1 and code for the same looks something like this,

REPORT ZFORM_1.

 
DATA FNAM TYPE rs38l_fnam.
DATA : DATE LIKE  SY-DATUM VALUE 'SY-DATUM',
       TCODE LIKE SY-TCODE VALUE 'SY-TCODE'.
 
 CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
   EXPORTING
     FORMNAME                 = 'ZFORM_1'
*    VARIANT                  = ' '
*    DIRECT_CALL              = ' '
*  IMPORTING
    FM_NAME                  = FNAM
  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.

Now my problem is when i try to call the fm 'fnam' it says it is not available.when i replaced 'fnam' with system generated function module then i got a runtime error say the parameter 'fm_name' is not defined.

what can i do to solve this problem.Any kind of help or suggestion will be appreciated.

Regards

Abhinab

<MOVED BY MODERATOR TO THE CORRECT FORUM>

<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>

Edited by: Alvaro Tejada Galindo on Dec 23, 2008 10:13 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Abhinab,

Just uncomment the line IMPORTING

It will work fine.

Regards,

Nitin.

former_member212002
Active Contributor
0 Kudos

Thanks Nitin.

A silly mistake caused a lot of problem.

Regards

Abhinab Mishra

Former Member
0 Kudos

hi

remove the quotes in the form name and try FORMNAME = 'ZFORM_1'

Former Member
0 Kudos

hi,

please follow the following steps.

1. Goto SMARTFORMS transaction and give the form name and press execute button.

2. SE37 window will be dipslayed with FM name EX: /1BCDWB/SF00000109

3. Copy the Fm name and Go to the report when you want to call the smartfrom and Using Patters(Ctrl+F6) button call the FM by pasting the copied name.

4. now replace the FM /1BCDWB/SF00000109 with FNAM.