Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get improt values in CALL function 'smartfomr name'?

Former Member
0 Kudos

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,

2 REPLIES 2

amit_khare
Active Contributor
0 Kudos

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.

0 Kudos

I tried but getting tab_otf_data-otfdata value and tab_otf_data-SPOOLID VALUE NULL ,

HOW TO GET THAT VALUE?

REGARDS,