顯示Smartforms報表程式碼

TolyHuang發表於2007-11-01

  

[@more@]

form show_smartforms_report .
data: itab like mara,
data: fm_name type rs38l_fnam.
data: para1 type c lenght 20,
para2 type c lenght 20,
para3 type c lenght 20.

perform .

call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'Smartforms name' "Smartforms name
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.

para1 = '物料清單報表'.
para2 = 'XXX'.
para3 = 'XXXXXX'.

call function fm_name "要輸入到報表中的引數
exporting
p_para1 = para1
p_para2 = para2
p_para3 = para3
tables
itab = itab.

endform.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9437124/viewspace-980340/,如需轉載,請註明出處,否則將追究法律責任。

相關文章