03-10-2007 4:09 AM
i am calling smartform with fucntion module but i am getting 3 import parameter value null(i wnat regarding spool info, etc. from it) ,
i have already defined that 3 import parameters as llike in function module assosiated type.
where i am wrong , what should i have to do,
regards,
03-10-2007 4:15 AM
I thin k you are calling function module directly - use this ,
Use FM SSF_FUNCTION_MODULE_NAME to find Smartform's FM.
formname = 'ZSMRTFORM'.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = formname
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
exit.
endif.
then pass the value in
CALL FUNCTION fm_name
EXPORTING ....
IMPORTING
DOCUMENT_OUTPUT_INFO = l_doc_output_info
JOB_OUTPUT_INFO = tab_otf_data
JOB_OUTPUT_OPTIONS = l_job_output_options
TABLE .....
Regards,
Amit
Reward all helpful replies.
03-10-2007 9:59 AM
I tried but getting tab_otf_data-otfdata value and tab_otf_data-SPOOLID VALUE NULL ,
HOW TO GET THAT VALUE?
REGARDS,