07-23-2014 11:25 AM
Hi,
I will have to see the weblink in the printpreview of the smartforms. I will explain it here.
I have developed a smartforms wherein I have inserted a url link named as TEST. Then in the Application driver program I have coded as below to get the URL link displayed in the Printpreview of the smartforms. But I could not see the URL link in the printpreview. I am not sure where I missed out.Your suggestion is most appreciated.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST'
IMPORTING
fm_name = lv_function_module_name
EXCEPTIONS
no_form = 1
no_function_module = 2
others = 3.
ls_url-name = 'TEST'.
ls_url-url = 'https://www.google.co.in/'.
APPEND ls_url TO lt_url.
* clear buffer for callback functionality
CALL FUNCTION 'HR_RCF_SF_URL_REFRESH_GT'.
CALL FUNCTION 'HR_RCF_SF_URL_PREPARE_CALLBACK'
TABLES
pt_url = lt_url.
ls_output_options_sf-urlcall = 'HR_RCF_SF_URL_CALLBACK'.
CALL FUNCTION lv_function_module_name
EXPORTING
OUTPUT_OPTIONS = ls_output_options_sf
USER_SETTINGS = space "'X'
IMPORTING
DOCUMENT_OUTPUT_INFO = st_document_output_info
JOB_OUTPUT_INFO = st_job_output_info
JOB_OUTPUT_OPTIONS = st_job_output_options
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
07-23-2014 11:45 AM
Hi Siva Ram,
Actually you have appending url to it_url but i dont know where you mentioning in print preview.. inside the smartforms you have to create the text elements inside the table or loop . after creating text elements we need to mentioned the field . then only link will appear in preview..
Regards,
Thangam.P
07-23-2014 12:36 PM
Hi Thangam,
Thanks for the prompt response.Inside the smartforms , I have created a text element( TEST ) wherein I incorporated the link. I could see the same text element getting printed in printpreview but not with the URL. I wanted to have that text element getting printed with the URL.
Regards,
Siva