Skip to Content
author's profile photo Former Member
Former Member

Hyperlink in smartforms

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 23, 2014 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.