How to Mask URL in Smart forms
Hi,
i wanted to mask the URL in my smartform so that it is concise and readable, like suppose url is like this http://www.myurl.com/pages/abcd&attr=19093 i wanted to create text which is something like click here on clicking click here it should take me to the desired page which the above mentioned URL ( http://www.myurl.com/pages/abcd&attr=19093 ) actually navigates.
How can i achieve this Smart forms??
Please suggest
Edited by: kranthi kumar on Oct 29, 2010 12:56 PM
Edited by: kranthi kumar on Oct 29, 2010 12:59 PM
Hi Aidan,
Thanks for your answer, Just got an alternative solution, when i got XSF output from smartform function Module, the same XSF output (me->sf_job_output-xmloutput-trfresult-content) i used in below method to convert to string.
CALL METHOD cl_hrrcf_cs_sf=>convert_xsf_html_to_txtstring
EXPORTING
content = me->sf_job_output-xmloutput-trfresult-content
IMPORTING
html_string = me->doc_properties-output_c
html_tab = me->doc_properties-output_c_tab.
later i realised that URLs in the smartform has got corresponding HTML code as below in the (me->doc_properties-output_c_tab).
<a href="https://www.google.com">
<span>
https://www.google.com
</span>
</a>
when i changed the link in the debugger https://www.google.com which was inside
<span> </span>
to "Click Me", the output was as i expected in the E-Mail which showed me Click Me and when i click that it took me to google web site.
so i decided that i would change this table(me->doc_properties-output_c_tab.) for every URL in code, though it did not seem like right solution, as suggested in this forum there is no straight solution for this, i have no other option.
Please comment.
Thanks,
Kranthi.
Edited by: kranthi kumar on Oct 29, 2010 9:43 PM
Edited by: kranthi kumar on Oct 29, 2010 9:44 PM
Similar Messages
-
Linking a PDF document to URL in Smart forms
Hi All,
Please anyone let me know how i can link a PDF document to a link in the smart form output.
I'm outputting Purchase order details on a smartform and I'm supposed to give an URL link for the user to click on it for Terms and Conditions.
Please note that I'm not using interactive forms in web dynpros nor developing with BSP.
I simply developed a smart form in SRM system and I'm able to display an URL but don't know how to link a PDF to that link.
Please some one let me know your ideas how i can attach a PDF to an URL in smart form.
Thanks in Advance,
SowjanyaHi,
Follow the below blog and it is very useful achiving your requirement.
in the blog:
in the below point,
Code to send the email
Following code will transform the html content into displayable format and send email to all the recipients. Note: This form also handles the images (static) defined in the smartform, as well as the images defined with html IMG tag (eg: URL link to image on the network).
you have to convert your pDF output into displayable format. then add that link to your smartform.
Thanks,
Sree.
Edited by: t sree on Nov 4, 2008 11:30 AM -
How to print bullet in smart form
Hi Experts,
I have a requirement in smart form where different points of texts should come under a bullet.
Can you please tell me how to print bullet in smart form.
Note : I have to use Standard text
Thanks in advance
Bikashi
good
We can create bullets in smartforms.
For this change the editor to text editor and then
goto insert->characters->SAP Symbols and select the
symbol you want.
This may help your requirement.
You cannot see the bullets in print preview, it'll
appear only on a hard copy.
reward point if helpful.
thanks
mrutyun^ -
How to Generate a complex smart form for the Sales Order different pages h
How to Generate a complex smart form for the Sales Order different pages has different page Layouts explain me?
in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar. -
How to create barcode in Smart Forms with MS Word as Editor?
Hi,
I created a character format for a barcode in a smart style.
The problem is that I do not know how to assign it to the text in Smart Form because the Editor is MS Word and not the normal Editor.
Any suggestion or idea.
Thanks & best regards
ViktoriaHi and thanks for the fast reply,
I have created a smartstyle and also a characterformat for the barcode. This is not the problem.
I call the layout via HRFORMS. The Form Builder for Smart Forms is called and the Editor for the text nodes is preset and is the MS Word editor. This cannot be changed. I tried different things also in the settings. The normal text editor cannot be called.
I choose and enter the field that I want to convert into the barcode &wa_barcode&. I do not work with standard texts (SO10). The text field is a normal text node in Smart Forms. The character format that applies converts the number in the variable field into the barcode.
In the MS word editor I have only formats that are in the office environment (arial, ...) I do not see the formats that I created in smartstyle also when I assign it in the output options of the text node.
So maybe I have to work like this for now. Swich between HRFORMS and SMARTFORMS when working with barcodes. In the Smart Forms transaction it is the normal editor where I can see the paragraph/ character formats from smartstyle.
Thanks and best regards
Viktoria -
How to Printe Graphics in Smart-Forms
Guys,
Need your help
Is it possible to print graph in smart form???
If yes, if you have any document, please pass it to me
DhirajHi Ram,
Go through this hope u can understand.
How to Upload graphics (IMAGE) to your Sapscript?
Command in your Sapscript
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
Reward points if help ful.
http://www.sap-img.com/ts001.htm
Sorry i think for Scripts ..
better to go for above post . it definetly works
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
How to show image in Smart Form dynamically , Image is stored on local PC
Hi All,
I have a requirement where user can attach any image to PM Order in T-code IW33. Now this image gets stored on user`s local PC.
After this user will generate a report which is a Smart form, On this Smartform i have to show that attached image.
So that image will contain Order Id and attached image.
How this can be achieved.
Regards,
AbhishekActually this Image(Image of Signature ) will be coming from Mobile device and then it will be stored as an attachment for an PM Order.
So there will not be any manual interuption and therefore no one will be storing this in se78. But this image gets stored in local PC. And now i have to get this image on my Smartform.
Any idea how to do it?
Regards,
Abhishek -
SMART FORM: HOW TO IMPORT STYLES IN SMART FORM
Hi Experts,
im working in verion 6.0 . how to import styles in my smart form.
in 6.0 im not finding the label styles were we import the styles. so plz experts help me in this.
plz show me the path step by step.
Thnaks & regards
Sunita.Hi Arpit,
Thnx for ur early reply .here in 6.0 i cant find the styles option .yeah in 4.6 or 4.7 we find in the output options.but in 6.0 im unable to find so plz help me.
Thnaks & regards
Sunita -
How to Print Vertically in Smart Forms
I need to print data in vertical format into columns in smart forms. Can any one give me the solution.
Hi Sreedhar,
In Smartforms, if you need to print vertical text, only possible way (That i know) is, Create a Bitmap image of the text and rotate the same to 90 deg and then use that image in your smartform....
If you can use adobe forms, you can rotate the text to any angle that you want....this is one of the main advantage of adobe forms.
Best Regards,
Ram. -
How to create table in smart form
hi all,
i want to create table in to main window of smartform.
i am trying it but it gives me line type error.
plz give me detailed procedure for creating table in smartforms.
thanks in advance.
regds.
Vinodcheck the below links :::
Standard programs for Smartforms
Re: standard forms
To learn
SmartForms : some links
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
http://www.sap-img.com/smartforms/smart-001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sap-img.com/smartforms/smart-002.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm -
How to use Read_text in Smart Forms for printing Header Texts
Dear ALL,
I want to print Header Texts in SmartForms, For that
I am using T/Code VL02N .. and choosed Header ..
got this details... from Text Header.
Text Name :0080000441
Language :EN
Text ID :Z002
Text Object :VBBK.
So in Smart forms Under Template i have created a text and Program Code .
Inside that I have used this below code .
CALL FUNCTION 'READ_TEXT'
EXPORTING
*CLIENT= SY-MANDT
ID = 'Z002'
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = 'VBBK'
TABLES
LINES = IT_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF SY-SUBRC 0.
CLEAR IT_TLINE.
ENDIF.
Kindly suggest me, Where to declare the variables and loops for using this Read_Text Syntax in Smartforms .
Response to this will be highly appreciated........
Regards ,
Vinoth.hi
good
please check this code
CONSTANTS:
*For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
text_id like thead-tdid value 'MATK',
text_obj like thead-tdobject value 'AUFK '.
data tlines like tline occurs 0 with header line.
data tdname like thead-tdname.
data tdheader like thead.
if not it_proj-ltxsp is initial.
refresh tlines.
tdname = sy-mandt.
tdname+3 = it_proj-rsnum.
tdname+13 = it_proj-rspos.
tdname+17 = it_proj-rsart.
call function 'READ_TEXT'
exporting
id = text_id
language = it_proj-ltxsp
name = tdname
object = text_obj
importing
header = tdheader
tables
lines = tlines.
exceptions
not_found = 01.
thanks
mrutyun^ -
How to define variable for smart form in coding
hi all,
i have to create a variable for smart form which is i already created in smart form but facing some sort of difficulties.
for example:
DATA: formname TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)
DATA: formname TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)
DATA: formname TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)
CASE in_mseg-bwart.
WHEN '101' or '105' or '321'.
formname = 'FORM_RECEIPT'.
WHEN '122' or '124'.
formname = 'FORM_RETURN_VENDOR'.
WHEN '201' or '261'.
formname = 'FORM_GOODS_RESERVATION'.
ENDCASE.
So this the logic im using but it gave me error like:
Type ZCCCL_GOODS_RECEIPT is unknown.
Kindly tell me if this coding is wrong than what should i use.
Thanks.Declare variable name for smartform as
Formname type TDSFNAME in import tab. -
How to Keep Boxes in Smart forms
Hi All,
Can anybody help me in keeping the Boxes in Smart forms.
Thanks in Advance
Arun KumarHi Arun,
Plz be more clear. If you are referring to the frames for the windows, then you need to check the checkbox marked 'Lines With' in <b>Box and Shading</b> under <b>Output Options</b> tab of the window.
Also, this will be visible only if any text is written inside the window.
Regards,
Raj -
How to use Rstxt in smart forms
hi
how to use Rstxt in smart formsHi Ram,
Go through this hope u can understand.
How to Upload graphics (IMAGE) to your Sapscript?
Command in your Sapscript
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
Reward points if help ful.
http://www.sap-img.com/ts001.htm
Sorry i think for Scripts ..
better to go for above post . it definetly works
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
How to insert logo in smart forms
how to insert logo in smart forms
Hi Ram,
Go through this hope u can understand.
How to Upload graphics (IMAGE) to your Sapscript?
Command in your Sapscript
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
Reward points if help ful.
http://www.sap-img.com/ts001.htm
Sorry i think for Scripts ..
better to go for above post . it definetly works
Thanks
Naveen khan
Message was edited by:
Pattan Naveen
Maybe you are looking for
-
How can I get home sharing to work on my mac mini for multiple users? It says it is working, but it never shows up in the left hand column.
-
Missing images in the Dreamweaver UI! How did that happen?
I tried reinstalling the app, and there are still missing images in the UI...
-
please can any body help me in my project how to send query to search engine and get the answer back?
-
XL Reporter = Error! Unable to get document! Type: 1
Hi, I've a message error from XL Reporter. After upgrade B1 2004.A from PL9 to PL24 and then PL31 each time that I start add-on I see this error message: http://img420.imageshack.us/img420/5664/one6se.jpg Anyone can help me ? Thank you for attention.
-
scenario SAP -> PI -> MII -> Legacy system folder PI to MII using webservice MII to Legacy system folder using FTP Requirement: Send messages to legacy system from MII in order MII have received from PI system. And Need Message Monitoring which comes