on 12-23-2008 12:33 PM
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
Hi Abhinab,
Just uncomment the line IMPORTING
It will work fine.
Regards,
Nitin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
remove the quotes in the form name and try FORMNAME = 'ZFORM_1'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.