Skip to Content

How to display hyperlink under alias from smartforms

We have a requirement to display 100 char long urls under alias text as hyperlink, such that on clicking on the alias it is redirected to the url. We have gone through related links and but not getting the hyperlink displayed from smartforms.
We have followed below steps :

1)We have created text element "LOGIN" in smartforms and clicked on URL button to activate hyperlink
2)In the Calling program we have declared url with name "LOGIN" and passed to FM HR_RCF_SF_URL_PREPARE_CALLBACK

3)In the Calling program we have declared the output_options-urlcall = 'HR_RCF_SF_URL_CALLBACK'.
The smartform conversion data format is ASCII. Kindly assist <removed by moderator>.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 16, 2018 at 01:58 PM

    Hi Sayani,

    You can get a different title of the link by using a kind of user exit for the URL processing, which is described in Note 622718.

    You may create your own function module with the following interface: *" *" CHANGING *" REFERENCE(DATA) TYPE TTXCTOKEN *" Data: i_data type STXCTOKEN, (see the note 622718; TTXCTOKEN is an internal table of type STXCTOKEN)

    Now when you call the function module of the Smartform, you should fill the parameter OUTPUT_OPTIONS-URLCALL with the name of the new function module. As a result your function module is called, when the URL is processed by the Smartforms composer.

    Let's look at an example: Let's say you use the URL in your Smartform.

    Then the internal table 'data' is filled with the following contents, when the function module is called:


    1 ST 1 16

    2 LK 0 20

    ST Line with alias

    LK Line with link

    LINE index of line in the table

    LEN length on data in the row

    You can change the content of this structure in your function module. Long links must be split to different rows with maximum length 70.

    Each row must start with 4 spaces. E.g. if you change the table according to the PNG file


    For this example the following HTML tag is generated:">Link

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Hello Hedwig,

      Thank you for the answer.
      1)We have created the smartforms text element as below :


      2)We have created custom FM and function group by copying standard HRRCF00_CALLBACK and have inserted the below code in smartforms calling program. (here url is 42 chars long and in custom FM

      ZHR_RCF_SF_URL_CALLBACK we have kept max length as 70 chars) :

      ls_url-name = 'LOGIN'.
      ls_url-url = sf_tam_url.
      APPEND ls_url TO lt_url.
      PT_URL = lt_url.
      s_output_options-urlcall = 'ZHR_RCF_SF_URL_CALLBACK'.

      URL data :

      Row Code Line Len string

      1 ST 11 5 LOGIN

      2 LK 0 42 https://p2pdev.pok....

      The output still does not show the hyperlink under alias "LOGIN"
      Can u please suggest if any other change is needed apart from above steps.