T-code based iviews in HTML format
Hi,
Please do let me know how to dispaly the t-code based iviews in HTML format through portal.Actually we need to dispaly some ABAP reports through portal in SRM.Should the reports be first converted to HTML format.
Also,we need to create the PO field as hyperlink which should take the supplier to a particulatr PO as and when he clicks on it.Can this(hyperlink) be done in portal.
Thanks in Advance,
Manu
Hi Manu,
In order to display the iviews in HTML format you need to enable the ITS services from your SAP System first of all.
You can do so by following these steps:
Step 1.
1.Configure the Rz10 profile parameters for the host name and the port no.
2.Check that parameters appearing in the SE80 settings and ITS Server settings.
After activating ITS Services these steps more needs to be done to make them usable.
1. Go to SE80-Edit ITS Service SYSTEM-> Publish it completely.
2. Go to SE80-Edit ITS Service SHUFFLER-> Publish it completely.
3. Go to SE80-Edit ITS Service WEBGUI-> Publish it completely.
4. Go to SE38-Run the Program W3_PUBLISH_SERVICES and publish all the webservices.
From transaction SICF now you need to enable the services.
1.Go to sap/bc/gui activate the complete node.
2.Go to sap/bc/icf activate the complete node.
3.Go to sap/bc/ping activate the complete node.
4.Go to sap/public/bc activate the complete node.
Now give the ITS parameters in the system you created and create a SAP Transaction Iview. inside its property editor choose the option SAPGUI for HTML.
Hope I am able to answer your question.
Regards,
Atul Shrivastava
PS:Award points for helpful answer.
Similar Messages
-
Tcode based iviews in HTML format
Hi,
Please elt me knpw how to display the Tcode based iviews in HTML format.Please let me know.
Regards,
ManuHello Manu,
If you are integrating SAP transacations using SAP GUI for html may not adher to Portal look and feel.
Also, if you are using SAP GUI for windows may not help. You can use application parameters to hide some menus and icons of SAP transaction.
The best option could be SAP GUI for Java, but this confugration settings needs to be done at server level and each client machines.
Search for information with SAP Gui for java in sdn might help.
Try some settings in ITS theme generator may also help.
Regards,
Anil Kumar. -
Hi
When I try to open the jasper report on browser ,It displays
the report but not clear.The image does not display on the client.
below is my code ,please help me......
MY Code:
/*3 Preview in HTML format */
File imagedir=null;
JRHtmlExporter exp = new JRHtmlExporter();
StringBuffer sbuf = new StringBuffer();
exp.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
exp.setParameter(JRHtmlExporterParameter.OUTPUT_STRING_BUFFER, sbuf);
exp.setParameter(JRHtmlExporterParameter.IMAGES_DIR,imagedir);
exp.exportReport();
out.print(sbuf.toString());
Thanks
By satheshAlright there is a dedicated ImageServlet(provided in jasper reporting framework) which is used to Link Static image content along with your HTML report content.
and here is how you have to do it is ??
is by setting few parameters for JRExporter Object and making use of image servlet provided under jasper libraries.
ImageServlet configurations in web.xml:
<servlet>
<servlet-name>ImageServlet</servlet-name>
<servlet-class>
net.sf.jasperreports.j2ee.servlets.ImageServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ImageServlet</servlet-name>
<url-pattern>/imageServlet</url-pattern>
</servlet-mapping>Html Exporter code..
JRExporter exporter = null;
JasperPrint jasperPrint = null;
Connection conn = null;
String sourceFile = ReportService.getReportSourceFile(request);
Map map = ReportService.getParameterMap(sourceFile,request);
String contentType = ReportService.getContentType(sourceFile,request);
if(contentType.startsWith("text/html")){
PrintWriter printWriter = response.getWriter();
try{
/* Fetching Connection from a Connection Pool VIA a service*/
conn = DbUtils.getConnection();
/* Creating a JasperPrint Object*/
jasperPrint = JasperFillManager.fillReport(sourceFile,map,conn);
exporter = new JRHtmlExporter();
request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
/* printWriter here is a reference for response.getWriter() */
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,printWriter);
// gonna set url pattern given for Image servlet with a reponse parameter <url-pattern>/imageServlet</url-pattern>
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"imageServlet?image=");
response.setContentType(contentType);
/* Would write the HTML content to ServletStream Provided */
exporter.exportReport();
}catch(Exception exp){
exp.printStackTrace();
}finally{
try{
if(conn != null && !conn.isClosed())
conn.close();
}catch(Exception ep){
ep.printStackTrace();
}finally{
conn = null;
sourceFile = null;
map = null;
}For any other issues with report format and others try to go through my post.However, you might have to edit your customized settings in terms of image rendering problems or to some customized implementations.
http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
Hope that might help :)
REGARDS,
RaHuL -
KM Doc iView to display in HTML format
Dear KM friends
I created a KM Document iView to display a MS Excel file.
My requrirement is
1. I want to diplay that iView on click on HTMLB link
2. I want to display that MS Excel file in HTML format, just like a link in Search result.
plz reply me
Thanx in advance
LakshmikanthaHi,
You could call com.sap.km.cm.document iview with the RID of the document in order to display it's Excel content from the HTMLB Link:
Link nameLink = new Link(resourceName);
nameLink.setReference(docUri + resource.getRID());
where docUri is:
IURLGeneratorService urlService =
(IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
docUri = urlService.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).toString();
Hope this helps.
Romano
PS: about showing the HTML content of the Excel file - If I am right - I think that the HTML content of the Excel (PDF, DOC or other resources) is created on the TREX server and is available only when showing found indexed documents.
I've found the class, that manages this HTMLVersion, maybe you can have use of it (or just have a look):
<i>package: com.sapportals.wcm.control.search
class: HighlightedContentControl
method: renderHTMLVersion</i> -
I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.The Acrobat SDK might be a starting point.
From there, perhaps a plug-in (built with C+).
Perhaps with a licensed release of a PDF Library (this could be $$).
The viable and cost effective alternative is use the tried and true.
Authoring in an appropriate authoring application with appropriate tag management.
Example: Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
This way you place "Alternative Text" when mastering content in the authoring file.
Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
Regardless, here you have a sub-forum for discussions on Acrobat usage.
Consequently discussions on/of 3rd party software is rather out of scope eh.
Be well... -
Html code stored in text format, get back in html format
Hello All, I am not much in to Database, but for one of our BI Development, we need this. We have a column which stores the html input from a webpage in text format. for example: '
' is stored in DB as '<html>' '<' and '>' are codes for < and > symbols. so is there any way to get the values from the DB in the HTML format like < and >. there are many other characters, not just these 2. If someone can point to, if we have any predefined function if we can convert into HTML? Thanks a lot in Advance, Regards, KNI can't really tell from your description, but it sounds like you are doing it wrong and should do this: Oracle® XML DB Developer's Guide Contents
-
How to extract code from text box in html format
"I have a text box. When the form is submitted I need to extract the data in html format. i.e. a string type variable needds to hold all html tags alongwith[b] the data."
A textbox submitted in a form delivers a String. What's inside is no issue. If you want to process it further, pick the tool of your choice, like an HTML parser.
-
Need to send my spool in HTML format as Email attachment
Hi All,
Can anyone let me know how to send a HTML attachment in a mail.
I have a ALV Report, when i execute, my report should pick the ALV Report output from spool, and should send a mail with spool output as HTML attachment.
Please explain me how i need to do the above.
Regards
NandaHi Nanda,
You can use 2 reports for this.
In one report just display the ALV..
and in the second report submit this first report to memory and get it html format and then send it as an email.
Just check this code (instead of alv...this is a normal report that is sent as HTML attachment)
*--Tables
TABLES: VBRK.
TYPES DECLARATION *
TYPES: BEGIN OF TY_VBRK,
KUNAG TYPE KUNAG," Payer Id
END OF TY_VBRK,
*-- customer details
BEGIN OF TY_KNA1,
KUNNR TYPE KUNNR," Customer Id
NAME1 TYPE NAME1," Customer Name
ADRNR TYPE ADRNR," Address No
END OF TY_KNA1,
*-- Mailing details
BEGIN OF TY_ADDR,
ADDRNUMBER TYPE AD_ADDRNUM, " Address No
MAIL_ID TYPE AD_SMTPADR, " Email Address
END OF TY_ADDR,
*-- Log details
BEGIN OF TY_MSG,
STR1 TYPE AD_SMTPADR, " Email Address
STR2 TYPE KUNNR, " Payer Id
STR3 TYPE NAME1, " Payer Name
STR4 TYPE D, " Date
STR5 TYPE T, " Time
END OF TY_MSG.
I N T E R N A L T A B L E S *
DATA: RECEPIENTS TYPE TABLE OF AD_SMTPADR, "table for email id's
LISTOBJECT TYPE TABLE OF ABAPLIST, "table with displayed list
HTML TYPE TABLE OF W3HTML, "html container
RETURN TYPE TABLE_OF_STRINGS, "message table
IT_VBRK TYPE TABLE OF TY_VBRK, "Billing Details
IT_KNA1 TYPE TABLE OF TY_KNA1, "Customer Details
IT_ADDR TYPE TABLE OF TY_ADDR, "Mail id
IT_MSG TYPE TABLE OF TY_MSG. "Log Details
*-- Structure Declarations
DATA: WA_REC TYPE AD_SMTPADR,
WA_KNA1 TYPE TY_KNA1,
WA_ADDR TYPE TY_ADDR,
WA_MSG TYPE TY_MSG.
Declarations for Sending mail *
*-- To Create link and add recepients address
DATA: SEND_REQUEST TYPE REF TO CL_BCS.
*-- To Create HTML document
DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
*-- To Create Sender Id
DATA: SENDER_ID TYPE REF TO IF_SENDER_BCS.
*-- To Create recepient address
DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
*-- To Handle Exceptions
DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
*-- To check if the mail is sent to all recepients
DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
DATA: CONLENGTHS TYPE SO_OBJ_LEN . "To calculate length of the HTML file
V A R I A B L E S *
DATA: REPORT TYPE PROGRAMM, "Report name
SENDER TYPE AD_SMTPADR, "Sender Address
SUBJECT TYPE SO_OBJ_DES. "Subject
DATA: BCS_MESSAGE TYPE STRING ."String to store exceptions
DATA: V_KUNAG TYPE KUNAG. "Payer Id
DATA: V_MAIL TYPE AD_SMTPADR, "Mail Address
V_DATE TYPE ZZBCDATE. "To Validate Entered Date
S E L C T I O N - S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_ZZBCDA FOR VBRK-ZZBCDAT. "Billing Complete Date
PARAMETERS: P_MAILFT TYPE AD_SMTPADR, "Mail id
P_MAILSC TYPE AD_SMTPADR. "Mail id
SELECTION-SCREEN END OF BLOCK B1.
At Selection Screen *
AT SELECTION-SCREEN.
*-- Validate the dates entered
SELECT ZZBCDAT UP TO 1 ROWS
FROM VBRK
INTO V_DATE
WHERE ZZBCDAT IN S_ZZBCDA.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE E002 WITH 'Dates Not Found In The Given Range'(002).
ENDIF.
S T A R T - O F - S E L E C T I O N *
CONCATENATE SY-UNAME '@YAHOO.COM'(003) INTO SENDER.
*-- Populating the Subject Line
MOVE 'Invoice Due Date Details'(004) TO SUBJECT.
*-- Selecting the Payer Details Based on Input Dates
SELECT KUNAG
FROM VBRK
INTO TABLE IT_VBRK
WHERE ZZBCDAT IN S_ZZBCDA.
*-- Selecting the Address Number from Customer Master
SELECT KUNNR
NAME1
ADRNR
FROM KNA1
INTO TABLE IT_KNA1
FOR ALL ENTRIES IN IT_VBRK
WHERE KUNNR = IT_VBRK-KUNAG.
*-- Selecting the Mail Id's
SELECT ADDRNUMBER
SMTP_ADDR
FROM ADR6
INTO TABLE IT_ADDR
FOR ALL ENTRIES IN IT_KNA1
WHERE ADDRNUMBER = IT_KNA1-ADRNR.
*-- Getting all the selected mail Id's
RECEPIENTS = IT_ADDR[].
MOVE (your first report name) TO REPORT.
IF NOT RECEPIENTS[] IS INITIAL .
LOOP AT IT_KNA1 INTO WA_KNA1.
AT NEW KUNNR.
READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNA1-KUNNR
BINARY SEARCH.
REFRESH RECEPIENTS.
*-- Populating the Recepients Mail Id's for the Particular Kunnr
LOOP AT IT_ADDR INTO WA_ADDR WHERE ADDRNUMBER = WA_KNA1-ADRNR.
IF NOT WA_ADDR IS INITIAL.
TRANSLATE WA_ADDR-MAIL_ID TO UPPER CASE.
APPEND WA_ADDR-MAIL_ID TO RECEPIENTS.
ENDIF.
ENDLOOP.
*-- Appending the mail id's from the input fields when not initial
IF NOT P_MAILFT IS INITIAL.
TRANSLATE P_MAILFT TO UPPER CASE.
APPEND P_MAILFT TO RECEPIENTS.
ENDIF.
IF NOT P_MAILSC IS INITIAL.
TRANSLATE P_MAILSC TO UPPER CASE.
APPEND P_MAILSC TO RECEPIENTS.
ENDIF.
*-- Sending the Kunnr while Submitting the Report
V_KUNAG = WA_KNA1-KUNNR.
TRANSLATE REPORT TO UPPER CASE .
*--Submitting the Report Exporting the List to Memory
SUBMIT (REPORT) WITH S_ZZBCDA IN S_ZZBCDA
WITH P_KUNAG = V_KUNAG
EXPORTING LIST TO MEMORY AND RETURN.
CLEAR: LISTOBJECT , HTML .
REFRESH : LISTOBJECT, HTML .
*-- Calling the Fn Module to get the list from the Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT.
*-- Calling Fn Module to get the List in HTML Format
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
EXPORTING
REPORT_NAME = REPORT
TABLES
HTML = HTML
LISTOBJECT = LISTOBJECT.
*-- Getting the Size of the Html Document
DATA: V_LINES TYPE I.
DESCRIBE TABLE HTML LINES V_LINES.
CLEAR CONLENGTHS .
CONLENGTHS = V_LINES * 255.
TRY.
CLEAR SEND_REQUEST .
SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
CLEAR DOCUMENT .
*-- Creating the Document
DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = 'HTM'
I_TEXT = HTML
I_LENGTH = CONLENGTHS
I_SUBJECT = SUBJECT ).
*-- add document to send request
CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
CLEAR SENDER_ID .
*-- Creating the internet address for the sender id.
SENDER_ID = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( SENDER ).
CALL METHOD SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = SENDER_ID.
CLEAR WA_REC .
*-- Creating the Recepients address
LOOP AT RECEPIENTS INTO WA_REC .
CLEAR RECIPIENT .
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
WA_REC ).
add recipient with its respective attributes to send request
CALL METHOD SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = RECIPIENT
I_EXPRESS = 'X'.
ENDLOOP .
CALL METHOD SEND_REQUEST->SET_STATUS_ATTRIBUTES
EXPORTING
I_REQUESTED_STATUS = 'E'
I_STATUS_MAIL = 'E'.
CALL METHOD SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
*-- Sending the Document
CALL METHOD SEND_REQUEST->SEND(
EXPORTING
I_WITH_ERROR_SCREEN = 'X'
RECEIVING
RESULT = SENT_TO_ALL ).
IF SENT_TO_ALL = 'X'.
*-- Getting the details to display the Job Log
LOOP AT RECEPIENTS INTO V_MAIL.
WA_MSG-STR1 = V_MAIL.
WA_MSG-STR2 = WA_KNA1-KUNNR.
WA_MSG-STR3 = WA_KNA1-NAME1.
WA_MSG-STR4 = SY-DATUM.
WA_MSG-STR5 = SY-UZEIT.
APPEND WA_MSG TO IT_MSG.
ENDLOOP.
ELSE.
APPEND 'Mail not sent'(005) TO RETURN.
ENDIF.
COMMIT WORK.
CATCH CX_BCS INTO BCS_EXCEPTION.
BCS_MESSAGE = BCS_EXCEPTION->GET_TEXT( ).
APPEND BCS_MESSAGE TO RETURN .
EXIT.
ENDTRY.
ENDAT.
ENDLOOP.
ELSE .
APPEND 'Specify email address for sending'(006) TO RETURN .
ENDIF .
E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
*-- Displaying the Job Log
FORMAT COLOR 1 INTENSIFIED ON.
WRITE:/ SY-ULINE(121),
(40) 'Mail Sent to'(007),
SY-VLINE,
(12) 'Payer Id'(008),
SY-VLINE,
(35) 'Payer Name'(009),
SY-VLINE,
(10) 'Sent Date'(010),
SY-VLINE,
(10) 'Sent Time'(011),
SY-VLINE,
SY-ULINE(121).
LOOP AT IT_MSG INTO WA_MSG.
FORMAT COLOR 2 INTENSIFIED ON.
WRITE:/ SY-ULINE(121),
(40) WA_MSG-STR1,
SY-VLINE,
(12) WA_MSG-STR2,
SY-VLINE,
(35) WA_MSG-STR3,
SY-VLINE,
(10) WA_MSG-STR4 DD/MM/YYYY,
SY-VLINE,
(10) WA_MSG-STR5 USING EDIT MASK '__:__:__',
SY-VLINE,
SY-ULINE(121).
ENDLOOP. -
JSP tags; html formatting problem
Hi,
I've implemented a jsp custom action which supports several enclosed tags in like this:
<%@ taglib ..... prefix="myprefix" %>
<myprefix:myTag ... >
<myprefix:myNestedTag ... />
<myprefix:myNestedTag ... />
</myprefix:myTag>
I have three classes to manage this stuff:
* class MyTag
* class MyNestedTag
* class MyNestedTagParent (interface implemented by the MyTag tag handler) that contains following lines:
=======================================================
public int doEndTag() throws JspException {
Enumeration enum = tabs.elements(); // tabs is a vector of // parameters names and values
try {
HttpServletResponse res = (HttpServletResponse) pageContext.getResponse();
JspWriter out = pageContext.getOut();
out.println("SOME HTML DIRECTIVES"); // shows html formatted page OK
out.println("<%@ include file=\"page.jsp\"%>"); // shows <%@ include.......
out.println("<jsp:include page=\"page.jsp\" />"); // shows nothing
// "View Page Source" shows a correct code, if I do copy/paste into another jsp file and ask it in the browser window, all works as I wish!
=======================================================
The myTag action is supposed to form an html response and send it to the browser. As long as this action sends pure html response (only html tags) things go well, I get a page formatted depending on the myTag and myNestedTag parameters.
However, when I try to send a jsp directive, it is not processed but sent directly to the browser. Namely, I want to include the
<jsp:include page="page.jsp" flush="true" />
in the response and the browser ignores this directive as if it was an unknown HTML tag. If I send
<%@ include file="page.jsp" %>
I see this line as is, not processed.
I can't find a way to avoid this. And I can't find a way to avoid using INCLUDE because the part of the response has to be dynamically processed.
Does anyone have any idea? A way to avoid using JSP directives doesn't seem possible to me, because a part of the response must be generated dynamically with the JSP methods. Anyway, if you have ideas...
Thankfully,
Nathaniel.out.println("<%@ include file=\"page.jsp\"%>"); //The jsp page needs to be compiled by the app server, before you send the response back to the client. What this means is that you can't send your jsp page as a response before it's compiled, as you're trying to do. What you can try doing is using the response stream to redirect to the jsp page like this: response.sendRedirect("page.jsp");.
I can't find a way to avoid this. And I can't find a way to avoid >using INCLUDE because the part of the response has to be dynamically >processed.You can create the response dynamically, based on user inout etc. but processing it dynamically soen't make sense. You should process the request from the client, create the response and send the response back to the client.
Regards,
D. -
Service cannot be reached while sending a smart form in html format
Hello,
I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
Service cannot be reached
What has happened?
URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
Note
The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework Team
.SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
and here comes the email's body: bla,bla,bla... bla.
Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
Regards,
JaimeI just solved the problem by activating the service /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
Jaime -
How to export the report in HTML format for desktop application
Hi,
i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
i would like to know is there any API there which can export the report in HTML format.
i know it would be possible with web based application of JRC, but how can i do it in desktop application?There's no mechanism for static HTML pages that displays the report.
You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
Sincerely,
Ted Ueda -
How can I send email from an JSP page with HTML format either using jsp
hi,
I have an jsp page with online application form,after compleating the form if i select submit it will send all the compleated data to the mail id we mentioned in the form tag,for this i am using javascript,but instead of receiving the data in the format of strings,my client want to receive the data in the same format as he's filling in the jsp page(html format) through e-mail.any help would be appreciated.the fallowing is the code right now i am using for email application.
<code>
function send()
if(validatePersonalInfo(document.theform))
document.theform.submit()
location.href=location.reload()
function validatePersonalInfo(form)
var tmpStr ="";
if (form.Name.value == "") {
tmpStr = "Name";
document.all.dName.style.visibility="visible";
document.theform.Name.focus();
else{
document.all.dName.style.visibility="hidden";
if (form.SSN.value == "") {
tmpStr = tmpStr + ", Social Security Number";
document.all.dSSN.style.visibility="visible";
if(form.Name.value != "")
{document.theform.SSN.focus();}
else{
document.all.dSSN.style.visibility="hidden";
if (tmpStr == "") {
return true;
} else {
alert("Please Fill the Following Fields: " + tmpStr);
return false;
<FORM NAME="theform" METHOD="post"
ACTION="mailto:[email protected]?subject=Online Application Form for MinorityDealer." ENCTYPE="text/plain">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="10" NOF="LY">
<TH>
<P>
<FONT SIZE="3" FACE="Arial,Helvetica,Univers,Zurich BT">Online�Application</font></TH><BR>
</TABLE>
<table width="718" border="1" cellspacing="0" cellpadding="3" bgcolor="#CCCCFF" align="center">
<tr>
<td colspan="2"><font class="captionText">Name*�</font><br><input type="text" size="25" name="Name" class="bodyText">
<div id="dName" name="dName" style="position:absolute;visibility:hidden"><font color="red">Name is Mandatory*</font></div>
</td>
<td colspan="2"><font class="captionText">Social Security Number*�</font><br><input type="text" size="9" name="SSN" class="bodyText">
<div id="dSSN" name="dSSN" style="position:absolute;visibility:hidden"><font color="red">SSN is Mandatory*</font></div></td>
</tr>
<tr>
<td colspan="2"><font class="captionText">Total Personal Assets</font><br><input type="text" size="10" name="TotPersAss3" class="bodyText"></td>
<td colspan="2"><font class="captionText">Total Personal Liabilities & NetWorth</font><br><input type="text" size="10" name="TotPerLiab3" class="bodyText"></td>
</tr>
</tr>
</TABLE>
<IMG Valign="middle" name="imgSubmit" src="images/buttons/Submit.gif" width="66" height="29" border="0" alt="Submit">
</code>Can any one do some help to solve this problem.
Regards. -
How to send mails in HTML format from the send mail step of workflow?
Hi,
I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
But what I found out that the html tags are not renderd and as such the output is in plain text.
I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
My SCOT settings are all right.
Please let me know how it can be done.
Thanks,
Samrat.Samrat,
It can't be done, you have to use your own activity step.
What are these constraints that refrain you from doing that?
Rgds,
Patrick -
Impossible to send a mail with a message in HTML format
Hi
I try to send a message in HTML format. Here is the code :
public void sendMessage(String subject, String message, String to, String cc, String bcc) throws MessagingException {
MimeMessage mimeMessage = mailSender.createMimeMessage();
MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true, "UTF-8");
if(to!=null && !to.equals("")){
mimeMessageHelper.setTo(to);
if(cc!=null && !cc.equals("")){
mimeMessageHelper.setCc(cc);
if(bcc!=null && !bcc.equals("")){
mimeMessageHelper.setBcc(bcc);
mimeMessageHelper.setSubject(subject);
mimeMessageHelper.setText(message,true);
mimeMessageHelper.setFrom(from);
logger.info("host = "+mailSender.getHost());
logger.info("Port = "+mailSender.getPort());
//logger.info("UserName = "+mailSender.getUsername());
//logger.info("Password = "+mailSender.getPassword());
mailSender.send(mimeMessage);
}and the message is the following :
String message = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"+ "<htmlxmlns=\"http://www.w3.org/1999/xhtml\"><head><head/><body>"
+messageSource.getMessage("startpeople.messagetosend.part1", null, Locale.ENGLISH)+ user.getFirstName()+" "+ user.getLastName()+",\n"
+ messageSource.getMessage("startpeople.messagetosend.part2", null, Locale.ENGLISH)+"\n"
+ messageSource.getMessage("startpeople.messagetosend.part3", null, Locale.ENGLISH)+ newPassword+"\n"
+ messageSource.getMessage("startpeople.messagetosend.part4", null, Locale.ENGLISH)+"\n"
+ messageSource.getMessage("startpeople.messagetosend.part5", null, Locale.ENGLISH)+"\n"
+ messageSource.getMessage("startpeople.securim.homepage.internet.address", null, Locale.ENGLISH)+"</body></html>";according to what I found on internet, the method MimeMessageHelper.setText(message,true); specifies that the message is sent in HTML format ( second argument is boolean "true" saying it is a HTML message ).
But I don't get the message in HTML format. Anyone can help me ? thank you in advanceMimeMessageHelper appears to be a Spring Framework class; better to ask your
question in their support forum.
Of course, you don't need to use MimeMessageHelper to create a simple html message,
and in your case it doesn't seem to be making things any simpler. See the JavaMail FAQ
and the demo programs included with JavaMail for simple examples of how to create an
html message. -
Smartforms output in HTML format
Hi Experts,
I want to save my smartforms in HTML format.Is there any Standard programe is available for it.
Like as RSTXPDFT4 for converting output in PDF format.Hi,
Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf
Maybe you are looking for
-
Itunes 10.4 update does not work with devices - no itunes store - a bug???
Hi there, I have recently downloaded the new iTunes 10.4 and it now won't open the iTunes store or bring up any devices that I plug into the computer. This means I can not sync my iPad, my iPhone and chage any of my settings. Also, when I go to the i
-
Error during the time of Goods Issue
Dear, I facing a problem during the time of MIGO i.e. Goods Issue. Error Is :- Please enter relevant Profit center for Business area. Kindly help Thanks & regards Varun Bisaria
-
Best external back-up drive for MacBook Pro
I ordered a WD 2 TB My Passport external drive from Staples. In the meantime one of you answered this question with the problems they are having with their software if using Maverick OX. I am thinking of purchasing the LA Cie 2TB USB 3 Porsche Design
-
I constantly get error messages that Firefox can't find a particular site.
I experience random trouble connecting with web sites using Firefox. The error message received is typically "Sorry, we can't find "www.xxx.com". Please check the spelling of the web address." I have cleared the cache and cookies, as well as checked
-
In iTunes my iPhone shows 3.5 gigs of "other". How do i see what it is?
In iTunes my iPhone shows 3.5 gigs of "other". How do I see what is in the folder?