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

Hyperlink in smartforms

Former Member
0 Kudos

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.

2 REPLIES 2

thangam_perumal
Contributor
0 Kudos

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

0 Kudos

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