cancel
Showing results for 
Search instead for 
Did you mean: 

Hyper Link Creation

former_member205842
Participant
0 Kudos

Hi Experts,

                   I have a req that, i want to create a hyper link for my URL, i have to forward that hyper link to customer through mail, whne customer click on that hyper link it should open WD App. please help me in creating hyper link.

Example : Click Here to fill form.

like this i want to show in mail.

Regards

Syed

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Syed,

You can construct the URL using

Construct URL 

  CALL METHOD cl_wd_utilities=>construct_wd_url

    EXPORTING

      application_name = 'name of your application'

      in_parameters    = lt_parameters

      in_protocol      = 'HTTPS'

    IMPORTING

      out_absolute_url = lv_url

      out_protocol     = lv_protocol.

You can refer the below link for send mail

http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+-+Mail+with+link+to+outlook

former_member205842
Participant
0 Kudos

HI Ganti,

                Thanks for ur reply am able to get hyper link, but i have a problem  that my url is available in two variables am not getting how to concat and pass that url in hyperlink which is avail in variables ...

Regards

Syed

Former Member
0 Kudos

HI syed,

Concatenate your variables and values to the end of the URL like shown below

Suppose  url is https://HostName/sap/bc/webdynpro/ztest_comp?

Add var1 and var2 to the url

https://HostName/sap/bc/webdynpro/ztest_comp?IV_var1=var1_value&IV_var2=var2_value.....

Regards,
Ravikiran.K

former_member205842
Participant
0 Kudos

HI Ravi,

              Am able to  concat it but, after concating am passing that url in one w_flines-tdline variable its  a standard variable it having 130 character space, here am not getting completed url in hyper link.

Regards

Syed

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Syed,

Please go through the below link, we can break the hyper link into multiple parts using proper HTML format and can be store in a variable of type cfx_hyperlink.

http://scn.sap.com/docs/DOC-25633

Regards

Rajeshwari Ganti

former_member205842
Participant
0 Kudos

Hi Ganti,

               Thanks for ur reply its very helpful for me, now am able to get completed url in mail body but there is small correction i need to do.I have text body in my mail, am reading from SO10 using READ_TEXT fm, am getting my text in flines table  in that table i have to replace my hyperlink,  but my flines having length 133 char, please tell me how to place my hyper link in that body.