Application Development and Automation 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: 

call function 'smartform name' - getting import parameter

Former Member
0 Kudos
256

call function 'smartform name' - getting import parameter null:

I HAVE DEFINE IMPORT PARAMETER AS UNDER BUT GETTING NULL VALUE WHILE DEBURGING,

WHY IT SHOWING NULL, AND HOW TO GET RELAVENT VALUE FROM TAHT?

        • CODE IS***************************

DATA:l_doc_output_info TYPE ssfcrespd, "#EC NEEDED

tab_otf_data TYPE ssfcrescl, "#EC NEEDED

l_job_output_options TYPE ssfcresop, "#EC NEEDED

CALL FUNCTION '/1BCDWB/SF00000110'

EXPORTING ....

IMPORTING

DOCUMENT_OUTPUT_INFO = l_doc_output_info

JOB_OUTPUT_INFO = tab_otf_data

JOB_OUTPUT_OPTIONS = l_job_output_options

TABLE .....

*************************

IF U CAN..

REGARDS,

1 REPLY 1

amit_khare
Active Contributor
0 Kudos
80

Actually, directly passing the SMRTFORM function module name dont fetch the value.

use this FM -

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