我想做个SMART FORM
我用事务代码SMARTFORMS进去设置好了FORM,然后再程序中调用该FORM,程序如下:
REPORT YTEST90.
data fm_name type rs381_fnam .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME '
EXPORTING
FORMNAME = 'ytest20 '
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
exit.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
call function fm_name
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF
为什么它会提示这样的错误呢?
如下: The type "RS381_FNAM " is unknown.
望各位高手能给予我一些指示,谢谢!
------解决方案--------------------------------------------------------
把这行data fm_name type rs381_fnam .去掉,加上INCLUDE rle_delnote_data_declare.
------解决方案--------------------------------------------------------
如果你是照著書上的出錯,我估計你把rs381_fnam輸錯了.應該是38L