Hi all,
I searched something relevant to my issue but couldn't find any. Kindly let me know if anybody of you had come across this issue.
I have a smartform where I have a link like www.google.com. If I execute the smartform individually, it comes as www.google.com only. But when I use the FM CONVERT_OTF and attach the smartform to a service request, it comes as 'Click here'. Though it takes to the right url, user doesn't want this 'click here' to come. Instead they want the actual url. My code is as below,
"render form
CALL FUNCTION lv_fm_name
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
header = is_header
IMPORTING
job_output_info = ls_job_output_info
job_output_options = ls_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc NE 0.
" Exception
ENDIF.
"Convert OTF to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF' ##no_text
IMPORTING
bin_filesize = ev_pdf_stream_len
bin_file = ev_pdf_stream
TABLES
otf = ls_job_output_info-otfdata
lines = lt_dummy_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3.
IF sy-subrc NE 0. "PDF conversion failed
"Exception
ENDIF.
Thanks,
Faisal