Hyperlink for a text
Dear Experts,
I have written an ABAP program to send an email on Outlook. I want to add some text in this email which will be hyperlinked to one URL. This text will be added as a text symbol in the progarm.
Can anybody please suggest how to create hyperlink for a text in ABAP program?
Regards,
Mugdha
Hi Mughdha,
put your hyperlink between: <http://h:/temp/word 1.doc>
server\share\location\file 1.doc
shows the hyperlink only upto file
<
server\share\location\file 1.doc>
shows the whole thing as a hyperlink.
For more on creating hyperlinks:
Refer the following link:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/c3/d023410f6fb167e10000000a155106/frameset.htm
Hoep this will help you...
Similar Messages
-
Is there any function module for converting text to hyperlink?
Hello all,
I am designing an application in BSP wherein the user can enter hypertext values for some
of the data enteries in the database table. Is there any function module available for converting
text into hypertext. Eg. if the user enters 'www.mypersonalwp.com' then it should convert this
text value into a hyperlink.
Thanks in advance.
Gurmahima.Hi,
Refer the given below link
http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm
Hope it helps you
Thanks
Arun Kayal -
How to provide hyperlink for a particular field in ALV
Hi,
How to provide hyperlink for a particular field in alv report.
Regards,
Ramu.Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
wa_field-hotspot = 'X'.
REPORT ztest_alv.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
vbeln TYPE likp-vbeln,
END OF it_likp.
DATA: layout TYPE slis_layout_alv.
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_likp
EXCEPTIONS
program_error = 1.
*& Form user_Command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'VL' FIELD selfield-value.
CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_Command -
Hyperlink for a row content (Not for a filed/column)
Hello Friends,
I need to insert hyperlink for particular row value. I have code for adding hyperlink for a field that is column.
Newspaper
language
epaper
xxxxx
xxx
[email protected]
yyyyy
yyy
[email protected]
zzzzz
zzz
[email protected]
for each row I must have different link. i.e. for xxx newspaper I must have a link [email protected] associated with that and when I click on that it should take me to that link in browser.
Is there any field(like col-text and col-pos) in the table lvc_t_fcat so that I can add the link here.
Please share any idea for this requirement.
Thanks in advance.see the link attached with the previous replay.
DATA:
BEGIN OF t_itab OCCURS 0. "Output data
INCLUDE STRUCTURE sflight.
DATA carrid_handle TYPE int4. "Corresponding link id from t_hype_link(this field for 'carrid')
DATA END OF t_itab.
Registering field CARRID_HANDLE with 'CARRID' in fieldcatlog.
fs_fcat-fieldname = 'CARRID'.
fs_fcat-web_field = 'CARRID_HANDLE'.
fs_hype_link-handle = '1' . "link id
fs_hype_link-href = 'http://www.google.com' .
APPEND fs_hype_link TO t_hype_link.
LOOP AT t_itab .
IF t_itab-carrid = 'AA'.
t_itab-carrid_handle = '1' . "assigning link for each row
ENDIF.
MODIFY t_itab.
ENDLOOP. -
Create hyperlink for reply to in mail body while sending email.
Hi All,
We have a requirement where we need to create an hyperlink for reply to in the mail body.
We have implemented entire functionality using CL_BCS classes and everything is working fine.
Only problem we have is when we give document type as HTM instead of RAW then entire formatting of mail body gets disturbed although we get the hyperlink.
Is there any way where we can send the mail in html format using CL_BCS,CL_DOCUMENT_BCS ?
KR Jaideep,Hi ,
Please find the code below I am using to make the hyperlink. Do I need to fill the entire mail body using HTML Tags ? If yes, then I guess it will increase the complexity of program as the mail content will vary from one mail to another depending upon whether different invoice documents have text maintained in them.
lwa_text = '<html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '<body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = text-012.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
CONCATENATE '<a href="mailto:'
lv_receiver
'">'
lv_receiver
'</a>'
INTO lwa_text.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
TRY.
CALL METHOD cl_document_bcs=>create_from_text
EXPORTING
i_text = li_text
i_documenttype = 'HTM'
i_subject = 'Test for hyperlink'
i_importance = '1'
i_sensitivity = 'P'
RECEIVING
result = lref_document_bcs.
CATCH cx_document_bcs .
ENDTRY. -
Cannot create a hyperlink in a text caption
The Captivate 7 User Guide says:
"Select the phrase or word you want to hyperlink. You can hyperlink text in text captions or drawing objects.
2. Click in the Format accordion of the Property Inspector and specify one of the options in the Link To list. For the description of the
options"
In the Format accordion, there is no "Link To list."
There is a set of images beside Insert, one of which represents "Insert Hyperlink." However, when you have text selected in a text caption, that icon is disabled--grayed out and unclickable. It is also disabled when you single click the text-caption object and then open the Property Inspector. The "Insert Hyperlink" icon is only enabled when you open the Property Inspector for the text caption by double-clicking the text-caption object, with no text selected--however, when you then click the "Insert Hyperlink" icon, it tells you that you must select text. Catch-22.
Does anyone know how to create a hyperlink on some text?
Also: Does that first sentence quoted from the Captivate 7 UG mean that you can in theory create a hyperlink with a drawing object? I can't see how.
Thank you,
JeffYes, Lieve, I can see how entering a Shape into the equation would get me the possibility of a hyperlink. I'm not sure I know how to use the Success action you are describing, though. Do you mean that upon successfully clicking the TEB, Show the Shape (which is set as a button, and on sucessfully clicking the button the URL is opened?) If I am right, using this approach would always require the learner to open the url, whether they got the TEB correct or not.
The workaround that I came up with was to place a click box on top of my failure caption location, and set it to open the url I wanted them to copy and paste into the TEB. (Caption reads: "Please click here to open the URL and then copy and paste it into the field above." In this case, only a failure to enter the correct information would yield the requirement to click through to the correct URL.
Thanks to both Lieve and Rod!
Michele -
Hyperlinks for Nigel's page work in iWeb but not in Safari. Why?
In iWeb, the hyperlinks for my NIGEL page all work. They work to and from the main U.B.R.O.L. page. They work to and from the other few people in the U.B.R.O.L. group.
However, these very same hyperlinks for Nigel do NOT work.
What should I do? I am careful with clearing cache.
Lorna in Southern CaliforniaWell, happily, I figured this one out all by myself. The hyperlinks were not working because I had placed them in the Navbar. I had placed them in the Navbar because I had opted to not have those three pages in the Navbar and also I opted to not even show the Navbar on those three pages.
Well, I discovered by many trials and errors that putting hyperlinked boxes in the Navbar, even when nothing else is there, is a bad idea worth losing.
When I lowered the hyperlinks into the regular text field, the hyperlinks worked both on my desktop and in Safari.
Of course, that left me with a bare Navbar to contend with so I decided to put the Navbar back in, but without showing those three pages for Nigel, Helen, or Vali.
Lorna in Southern California -
Creating a hyperlink for a subtopic within a topic.
Hello,
I hope that this question does not confuse anyone but here it is! I have created a topic in Robohelp 8 with various sub-topics that describe the topic.
My desire is to create hyperlinks for the sub-topics after the intro to the sub-topics listed under the Topic. This would eliminate the user from having to scoll down the topic page to find the applicable sub-topics to review.
Does anyone know how to do this, Robohelp only shows hyperlinks to web addresses, email, FTP, and files?
For example: I would like to show the below sub-topics with hyperlinks to the sub-topics under the topic (Using Search).
Using Advanced Search
Using Exact Search
Additional Search Methods
Using Search
Using Advanced Search
Using Exact Search
Additional Search Methods.
Thanks
WendyHi Wendy
What you would need to do using Jennifer's approach would be to insert a list as she has shown at the top of the page and link explicitly to the bookmark farther down the page. Sure, the users won't see the bookmarks. You would need to repeat the text just before the content.
RoboHelp 8 introduces a feature you may wish to use. It is called a "Mini-TOC Placeholder". So you would create these sections and assign a Heading Level to the first line of each section. Then insert the Mini-TOC at the top of the page. This will do a similar thing by presenting links pointing to content farther down the page. Functionally, it will look and behave identically to what Jennifer proposed, but will be much simpler to create because you don't have to type the text used for the links and you don't have to create the bookmarks and you don't have to establish the links. The placeholder handles all that for you.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
How to add a hyperlink in the text caption?
Hi,
I am using Captivate 5. Anybody knows how to insert a hyperlink in a text caption? For example, the texts in the text caption are "See Adobe Captivate Forum for details." How to create a hyperlink for "Adobe Captivate Forum" which leads to the forum website?
Thanks,
HelenThere is no tru hyperlink object in Captivate as such.
You can use a button or a click box to provide users with an interactive object that when clicked will call a URL or document.
However, this doesn't really give you a mouse rollover effect the way users are accustomed to seeing in normal web hyperlinks.
If you really want to add a piece of on screen hyperlinked text (with rollover effect) to a Captivate project, the closest you'll come to it is this widget: http://www.infosemantics.com.au/hyperlink -
Assign already-existing hyperlink to new text
i know this should be ridiculously easy but i can't figure it out.
i have an indesign document with several hyperlinks that are used repeatedly. i'm trying to assign one of these already-existing hyperlinks to text, but when i select the text and click on the hyperlink in the hyperlinks panel, it doesn't stick to the text.
i have the option of creating a new hyperlink for every instance, but isn't there a way to assign a hyperlink i've already created to the text i've selected?
thanks in advance for any help.>
Justin wrote:
> Hi,
>
> Please use tcode: OX18 to assign the plant to company code.
>
> You may follow my below printscreen for example.
> http://rukawaw-tb.blogspot.com/2010/08/assign-plant-to-company-code.html
>
> Thanks.
I guess it is clear how to do it technically, the big question here is: can you really do it if the plant was already used and had done business
Does SAP issue a warning/error if you do it for a plant that had already business?
I have not the option to test this case, but I guess SAP would allow this customizing step, as SAP expects that consultants are thinking before acting.
I personally think that you create inconsistencies.
if a plant A that is assigned to company A has inventory then this inventory is owned by company A., if you just change the assignment, then I dont believe that SAP will do all financial postings in background to get the inventory values from company A to company B. -
Can anyone help with advise on how to add a hyperlink to text
in Captivate 4. The hyperlinks from PowerPoint seem, to work, but I
can't see a way to add a hyperlink in the text field to an external
website.Hi
Ok I was trying to record it, not working
Make sure that you've copied or saved the pdf files are in the web site folder first
1 insert text,
2 with this text, create a fake link, blue and underline
3 click on Click box in the tools box
4 resize the click box over the fake link, I only keep the hint Type hint here (I deleted the 2 others) and I type Click on the link, in French Cliquez sur le lien
5 click box is still selected, then in the left menu select Action tab
6 In drop-down menu On success select Open url or file
7 Click to browse, click on file or type the url
8 Click on the drop down menu (arrow), click and select New so that way it will opens in a New browser window.
When you export in swf
You will have, at the end of the exportation, to copy paste manually the files in the web folder where is the swf file.
Now we have a new problem. I didn't have this problem with all the projects published, but it happened once. Also, once on the server, the link would not open for that reason, see this blog. Still working on it.
http://sorcererstone.wordpress.com/2009/06/19/when-captivate-links-don t/
sophie
Date: Mon, 6 Sep 2010 19:21:40 -0600
From: [email protected]
To: [email protected]
Subject: Adding hyperlinks to CP4 text
Can someone provide me to the steps of adding hyperlinks
to CP4?
> -
Finding hyperlinks in dynamic text?
Im retrieving tweets, so i have dynamic text, but i the tweets occasionally contain hyperlinks. I know you can find the hyperlinks in text. But every technique i have tried has failed, i think its because there searching through an array and then converting that to a string, but im baffled and my mind is hurting :S
Well heres my code:
function userTimelineResult(e:TwitterEvent):void
for (var i in e.data)
twitterStatus = e.data[i];
trace("user tweets",twitterStatus.text);
var t:TextField = new TextField();// create a new text field
t.htmlText = twitterStatus.text
t.textColor = 0x000000;// set the text color
t.multiline = true;// allow it to be multiline
t.wordWrap = true;// allow it to have a word wrap
t.autoSize = "left";// set the autosize to left
t.width = 300;// give it a width of 300,
t.height = 30;// height values
t.x = 650 - 300;// x value
t.y = neextY;
neextY += t.height + 10;
addChild(t);I take it you are using Flash as the methods have no type descriptors.
function userTimelineResult(e:TwitterEvent):void{
for (var i in e.data){
twitterStatus = e.data[i];
trace("user tweets",twitterStatus.text);
var t:TextField = new TextField();// create a new text field
t.htmlText = twitterStatus.text
if(hasHyperlinks(twitterStatus.text)){
//do something here if it has hyperlinks
//code
}else{
//text only
t.textColor = 0x000000;// set the text color
t.multiline = true;// allow it to be multiline
t.wordWrap = true;// allow it to have a word wrap
t.autoSize = "left";// set the autosize to left
t.width = 300;// give it a width of 300,
t.height = 30;// height values
t.x = 650 - 300;// x value
t.y = neextY;
neextY += t.height + 10;
addChild(t);
function hasHyperlinks(text:String):Boolean{
return (text.indexOf('<a') >= 0 && text.indexOf('</a>') >= 0); -
Problems with hyperlinks in dynamic text
Hi,
I have a dynamic textbox on the 3rd level of a flash movie. The textbox has some hyperlinks for which I used this AS2 code as a test:
textbox.html = true;
textbox.htmlText = "<a href=' http://www.adobe.com' target='_blank'>Adobe</a>";
When I test the scene it works well on all levels apart from the root level. When I test the whole movie, the link does not respond. On rollover the mouse converts into a text cursor, and I have to click several times, until randomly a hand comes up and the link opens. I don't understand why on all sublevels (in the movieclips), the link works perfectly (on rollover mouse becomes hand and click loads URL int browser), but not on the root level. Btw, I placed the movie with the textbox on top, so there is no layer above that in the root timeline. Please help!!!
Thanks.Thanks for your response dalcde. However, in my dynamic textbox I have a list with more than 50 different items with different links, and using the HTML tag seems more convenient.
I experimented a bit and found out what causes the problem:
The parent movie clip of the movie clip with the textbox has a mirrored reflection attached to it, for which I use this code:
import flash.display.*;//importing the bitmap class
var bmd:BitmapData = new BitmapData(860, 330);//definition of a variable for the target bitmap and assigning values
link_ref.attachBitmap(bmd, 1);//attaches target bitmap to movie clip (reflection)
link_ref.setMask(link_mask);//sets mask over movie clip (reflection)
this.onEnterFrame = function()
bmd.draw(link_contents);
When I switch that off, the link works fine when testing the movie. This is a bit weired cause when I test the scene with the reflection (2nd level after root) the link works fine. The problem only occurs when I test the movie (level 1). Anyways, switching off the reflection is obviously not an option as all the sites on my website have reflections. Is there a workaround to this? I was never aware that the bitmap class could interfere with hyperlinks.
Thanks. -
TextArea with formatted Text, Hyperlinks, and clickable Text with SWING?
Hi again,
Ok if I decide to use Swing, is there any TextArea which supports Formatted Text Hyperlinks AND clickable Text wich calls a callback routine??? I think formatted Text and Hyperlinks are possible with JTextArea and the RTF editorKit, but clickable text, in order to controll the program in some way???
Could anyone help me?
GreetsTry the JEditorPane class.See the intro exapmle at the top of
[url=http://java.sun.com/j2se/1.4.2/docs/api/javax/swin
/JEditorPane.html] this page.That seems to be the solution! Can I use the JTextPane, too? Does a DefaultStyledEditorKit support Hyperlinks and Hyperlinklisteners, too?
In order to realize callback functions I have to insert a HTML-Anchor with the Attribute as the Parameter for my method. Then my HyperlinkListener catches the HyperlinkEvent and the hyperlinkUpdate method reminds the parameter!
Is that right?
Thank you very much!
Greets -
Help. I'm trying to create a DTP for 0INDUSTRY texts
I'm trying to create a DTP for 0INDUSTRY (texts), but when I assign the DataSource (0INDUSTRY_TEXT), it shows me the next error message: "Target 0industry (type IOBJ) is not active".
Of course I've checked 0industry and it is already active!
I have the same issue with several characteristics.
Do somebody knows what can I do?Hi,
Try comin out of rsa1 transaction and then going back in...else login and logoff. Its generally happens that the changes dont get reflected and it then shows that error.
assign points if helpful
Regards.
Maybe you are looking for
-
How To Install Multiple OBIEE Instances On One Linux Machine
Hi, OS: Red Hat ES 5.2 OBIEE : 10.1.3.4 We one development server(Linux) where one OBIEE 10.1.3.4 was installed with os user as 'ora1a' (Deployed on Oracle Application Server 10.1.3.4) and now I have installed OBIEE 10.1.3.4 on same Linux Server with
-
Logout does not work in OIM after enabling OAM SSO
We have installed a webgate to protect xlWebApp in OIM. Once the SSO is enabled, the logout does not work in the OIM user interface. How to solve this issue? Metalink has a solution where we need to add document.location="http://host:port/access/obli
-
Why is the linked image scale percentage being rounded off in Illustrator CC?
-
Any standard reports specific to Limit POs
Hi MM gurus, Can any body give the list of Standard reports available in MM specific to Limit POs I have know some reports "ME2N, ME2L, ME2M, ME2C and ME2K" apart from this reports are there any reports Specific to Limit POs? So that we can get the d
-
Apache Tomcat error report when trying to link to websites from Talk Talk webmail
Using Talk Talk webmail, can't access web links from there, but get error report. Status 404. Apache Tomcat 5.5.27.