Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem while calling smartform in webdynpro

Hi Experts,

I am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen

I m following the following steps for calling smartform in webdynrpo.

I am calling the smartform by

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZSMARTFORM_NAME'

importing

fm_name = fname

exceptions

no_form = 1

no_function_module = 2

others = 3

if sy-subrc 0.

  • Error MESSAGE

endif.

call function fname

exporting

control_parameters = lv_control_parameters

output_options = lv_output_options

user_settings = space

pernr = stru_input1-zpernr

reinr = stru_input1-zreinr

pdvrs = stru_input1-zpdvrs

importing

job_output_info = lv_ssf_output

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.

But it is not passing otfdata and it is returning 1 in sy-subrc.

Please help me to solve this issue.

Former Member
Not what you were looking for? View more on this topic or Ask a question