Plz help in submit statement
Hi all
i have a transaction MD4C which shows some missing material numbers .
now i ill have to create a report which shows some selected part of data from MD4C.
means if md4c is showing 16 rows i ill have to show only 5 rows based on my selection criteria.
Please guide me how to do it .
wat i am thinking
can i use statement submit to execute that program and i want to
ask 1 thing
like in MD4C i have an internal table in which i have all the data
can i use submit statement to bring that internal table to my program .
plz guide me how to do it ..
Thanx in advance .
Hi,
first find and analyse the report program executing while executing the Tcode MD4C.
you can directly call that standard report program from your z-program using below statement.
Follow the below steps.
Call the below FM to prepare selection table
W_REPORTID = SY-REPID.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = W_REPORTID
TABLES
SELECTION_TABLE = W_SEL_TAB.
Call the standard program
SUBMIT 'Standard program name' EXPORTING LIST TO MEMORY WITH SELECTION-TABLE W_SEL_TAB AND RETURN.
use the below function module to get the contents from memory
Use the function module to get the data from memory.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = I_LIST.
then use the below function module to convert the downloaded data
Use the function module to convert raw data to asci format
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
LISTASCI = I_INITIAL
LISTOBJECT = I_LIST
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3.
IF SY-SUBRC NE '0'. "#EC *
MESSAGE E056."Unable to convert data.
ENDIF.
now I_INITIAL will contains the standard report data; now you can analyse this internal table and you can do the coding towards your requirement.
Reward if useful.
Thanks,
Sreeram.
Similar Messages
-
Plz help. How disable caching SQLJ statement on WebLogic server 10.3?
Plz help.
How disable caching statement by SQLJ on WebLogic server?
what the actual problem:
1. create or replace view vtest as select object_name from dba_objects where rownum<200
2. test.sqlj
#sql dx testIterator = {
select object_name from vtest
int cnt=0;
while( testIterator.next() ){
cnt++;
System.out.println("Count: "+cnt);
3. Restart WebLogic and deploy project
4. Run test on server, in log file
"*Count: 199*"
5. create or replace view vtest as select object_name from dba_objects where rownum<10
6. Run test on server, in log file
"*Count: 199*"
7. Restart WebLogic
8. Run test on server, in log file
"*Count: 9*"Hi bud,
Have you tried using WLST for what you are trying to achieve?
Please take a look at the following links:
http://docs.oracle.com/cd/E11035_01/wls100/config_scripting/domains.html
http://docs.oracle.com/cd/E13222_01/wls/docs91/config_scripting/domains.html
http://docs.oracle.com/cd/E13179_01/common/docs21/interm/config.html
Hope this helps.
Thanks,
Cris -
Submit statement help - URGENT!!
Hi..
pls help me with this..
requirement is like this..
I am calling a report from another one. Say the calling report is first and the called is second. I am calling using submit statement.
populated data in an internal table in second report.
Returned to the first report and called third report and filled an internal table and came back to first report.
Is there anyway that I can get those two ITABS at a time in the first report. Because i got to compare them.
Pls suggest .. Thanks a lot!@!Hi,
Check this example..
*Send the internal table memory from the second report.
EXPORT ITAB2 TO MEMORY ID 'REPORT2'.
*Get the values from the second report.
IMPORT ITAB2 FROM MEMORY ID 'REPORT2'.
*Send the internal table memory from the third report.
EXPORT ITAB3 TO MEMORY ID 'REPORT3'.
*Get the values from the third report.
IMPORT ITAB3 FROM MEMORY ID 'REPORT3'.
Compare the internal table.
IF ITAB2[] = ITAB3[].
ENDIF.
Thanks,
Naren
Message was edited by: Narendran Muthukumaran -
Plz help to solve this error in out.println statement
Hi All,
I am pretty new to weblogic8.1.I am Getting a error if i try to concatenate a object to the string in out.println
statement.
For your kind reference progam and error pattern is enclosed.
public class Test extends HttpServlet
PrintWriter out;
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
out=res.getWriter();
String aaa="Google";
out.println("Hai"+aaa);
ERROR IS:
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at Test.doGet(Test.java:15)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
If i use the statement like;
out.println("Hai");
out.println(aaa); ...It works fine
Plz, help me out there.Thanks All.
PrithMy guess is this is a classpath issue. Read weblogic's documentation on how to install the software thoroghly, then re-install it. Double check that JAVA_HOME is set properly, and that you are using a fairly recent Sun Java VM, versus an old MS Java VM...
-
My friend has an Iphone 5s which states 'Assembled in Korea' at the back? Is it genuine? Plz help ! thanks
Thanks Razmee209 for your reply. He bought it in India. I was wondering does apple make devices which are Assembled or Made in Korea?
-
Urgent plz help me......plz
Am very nem to jsp.
am doing my final year project in jsp.
I want to retreive value in the textbox depending on the selectino made in the dropdown.
in the dropdown menu i retrieve employee id frm backend. n in the textbox i shuld get employee name depending on the selection made in the dropdown list. that is data in the textbox shuld change depending on the selectin made in dropdown.
here is my code which i tired but in the textbox the value is alwys remaning the last record value n it is not changing depending on slectino made in dropdwon list
<%@ page import="java.util.*" %>
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<HTML>
FAQ
Category choice
<FORM ACTION="selection.jsp" METHOD="POST">
<%
String nameselection = null;%>
<SELECT NAME="Category" id= Category >
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbc:odbc:man","scott","tiger");
Statement statement = conn.createStatement();
ResultSet rs = statement.executeQuery("SELECT DISTinCT empid FROM employee" );%>
<OPTION VALUE='nochoice'>Please choose a category</OPTION>";
<%while(rs.next()) {
nameselection = rs.getString("empid");%>
<OPTION value ="optcategory"><%out.println(nameselection);%>
</OPTION>
<% } %>
</SELECT>
Question selection
<%
String password = null;%>
<%ResultSet m1 = statement.executeQuery("SELECT * FROM employee WHERE empid = ( '" + nameselection + "')");
String mm1;
while(m1.next()){%>
<input type =text name=mm value="<%= m1.getString(2) %>">
<%}%>
</FORM>
</HTML>
plz help me....
am very new to it.
Thanx in advancehi manisha
good try & sorry for late reply
To say the truth i'm too new to jsp
i'll give u my code see it for reference.. if u have any doubts in that pls don't forget to ask me
function display()
var index=document.form1.drug.value;
document.form1.hid.value=index;
form1.submit();
function refresh()
var indexOfcombobox = document.form1.drughid.value;
sel = document.form1.drug;
for (i=0; i<sel.options.length; i++) {
if (sel.options.text ==indexOfcombobox ) {
sel.selectedIndex = i;
<form name="form1" method="post" action="">
<body onload="refresh() ">
<select name="drug" id="drug" value="hid" onChange="display()">
<option value="" selected> </option>
<%
while(rs.next())
%>
<OPTION VALUE="<%=rs.getString("DrugName")%>"><%=rs.getString("DrugName") %></OPTION>
<%
%>
</select>
<input type="hidden" name="hid">
</div></td>
</tr>
<tr>
<td>NDC code #</td>
<td>
<%
//query for selecting the values from the database
String sql1 = "SELECT ProductCode,DrugName,Dosageform from ProductMaster where DrugName='"+request.getParameter("hid")+"' ";
rs=stm.executeQuery(sql1);
%>
<% while (rs.next())
String val1=rs.getString("ProductCode");
String val2=rs.getString("DrugName");
String val3=rs.getString("Dosageform");
out.println (val1 +"</td>");
out.println ("<input type=hidden name=ndc value='" + val1 + "'>");
out.println ("<input type=hidden name=drughid value='" + val2 + "'>");
out.println("<td>Dosageform : "+val3);
}Regards
kalai -
Plz help me from the error - "org.apache.jasper.jasperException"
I am getting error with this code ,plz help me out ,i wanna correct this urgently
I've set the Environment variables JAVA_HOME and
CATALINA_HOME and here is my coding and error report
hello.html
<head><title>Database</title></head>
<body>
<form method="get" action="add.jsp">
<pre>
<center>Enter ur Name :<input type="text" name="nam" >
<br><input type="submit" value=" Add ">
</center></pre>
</form>
</body>
</html>
add.jsp
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>JSP</title></head>
<%! String name;
Connection con=null;
Statement st=null;
%>
<body>
<% name=request.getParameter("nam");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//I have created a User DSN sjp
con = DriverManager.getConnection("jdbc:odbc:sjp");
st = con.createStatement();
st.executeUpdate("insert into detail values('"+name+"')");
catch(Exception e)
con.close();
st.close();
%>
<h1> Name Added</h1>
</body>
</html>
Error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NullPointerException at org.apache.jsp.add_jsp._jspService(add_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31hi,
when i use the code
if(st != null)st.close();
if(con != null ) con.close();
that works good ,the old error has been corrected.
but it's now throwing an SQLException[b] "datasource name not found and default driver not specified" why this occurs and also can u give me the explanation for the old error????
I am sure that i have created an user DSN, i am 100% sure about it .even though there is an error.
Deepak.
Deepak.C -
Code for radio button is not working plz help
checkboxes are working fine but when i put radio code submit button does nothing
plz help
thanks in advance
<%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
<jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="javascript" >
function cmdOnSelect()
var deptcode=document.DepartmentPage.cmdSelect.value;
DepartmentPage.method="post";
DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
DepartmentPage.submit();
function validate()
var user_etime = document.DepartmentPage.etime.value;
var etime_length = document.DepartmentPage.etime.value.length;
var user_edate = document.DepartmentPage.edate.value;
var edate_length = document.DepartmentPage.edate.value.length;
var user_calltype = document.DepartmentPage.calltype.value;
var calltype_length = document.DepartmentPage.calltype.value.length;
var user_callstatus = document.DepartmentPage.callstatus.value;
var callstatus_length = document.DepartmentPage.callstatus.value.length;
if( edate_length==0 )
alert("Please enter the call date");
return false;
else if( calltype_length==0 )
alert("Please enter the call type");
return false;
else if( callstatus_length==0 )
alert("Please enter the call status");
return false;
else if( etime_length==0 )
alert("Please enter the call timing");
return false;
else if(etime_length!=0 && etime_length!=4)
alert("Entered timing is invalid");
return false;
else if (etime_length!=0)
for (var i = 0; i < etime_length; i++)
valid_characters = new RegExp ("[0-9]", "g");
var part_user_etime = user_etime.charAt (i);
if (!valid_characters.test (part_user_etime))
alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
return false;
valid_characters = null;
return true;
else
return true;
function cmdOnClick()
if (validate())
DepartmentPage.method="post";
DepartmentPage.action="/anaghan/CallSheet?flag=call";
DepartmentPage.submit()
</script>
<script language="javascript" src="calendar1.js">
</script>
</head>
<body>
<%
String uname=(String)session.getAttribute("employeeName");
if(uname==null)
response.sendRedirect("/Error.jsp?login=Login Session Problem");
%>
<%
String date1="";
String date2="";
%>
<%!
ResultSet rs=null;
Connection con =null;
String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
String tableStr="jdbc:odbc:Anaghan";
%>
<%
String companycode=request.getParameter("cmdSelect");
HttpSession hs = request.getSession();
hs.setAttribute("companycode",companycode);
System.out.println("CALLLLL="+companycode);
%>
<%
String flag="";
String deptcode="";
String commissioningdate="";
String closuredate="";
%>
<%
String a2="";String a1="";
%>
<form name="DepartmentPage" >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
<TR>
<TD align=CENTER>
<h2> CALL DATA SHEET </h2>
</TD>
</TR>
<TR>
<div>
<FONT face="Arial " color=#000000 size=2>
<TD valign="top">
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<tr>
<TD align=RIGHT>Select Company - </TD>
<td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
<OPTION SELECTED></OPTION>
<%
deptcode=request.getParameter("cmdSelect");
response.setContentType("text/html");
ResultSet rs = obj.onSelect();
while(rs.next())
String tempName=rs.getString(2);
%>
<OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
<%}%>
</SELECT></td>
</TR>
</TD>
</TABLE>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Contact Person</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
<%!
ResultSet result=null;
%>
<%
response.setContentType("text/html");
try{
Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
Statement stmt=con.createStatement();
result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
while(result.next())
%>
<tr>
<OL><td align ="center"><%=result.getString(9) %></td>
<td align ="center"><%=result.getString(10) %></td>
<td align ="center"><%=result.getString(11) %></td>
<td align ="center"><%=result.getString(12) %></td>
<td align ="center"><%=result.getString(13) %></td></OL>
<tr>
<OL><td align ="center"><%=result.getString(14) %></td>
<td align ="center"><%=result.getString(15) %></td>
<td align ="center"><%=result.getString(16) %></td>
<td align ="center"><%=result.getString(17) %></td>
<td align ="center"><%=result.getString(18) %></td></OL>
<%}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Call History</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
<%!
ResultSet result1=null;
%>
<%
response.setContentType("text/html");
try{
result1=obj.onSelectCallHistory(deptcode);
while(result1.next())
%>
<tr>
<OL><td align ="center"><%=result1.getString(3) %></td>
<td align ="center"><%=result1.getString(4) %></td>
<td align ="center"><%=result1.getString(6) %></td>
<td align ="center"><%=result1.getString(7) %></td>
<td align ="center"><%=result1.getString(9) %></td>
<td align ="center"><%=result1.getString(8) %></td>
</OL>
<%}}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<TR>
<TD></TD>
</TR>
<TR></TR>
<TR>
<TD align=RIGHT>
Type of Call - </TD>
<td>
<input type = radio name=calltype value=personal/>personal
<input type = radio name=calltype value=email/>Email</td>
<!-- <TD><SELECT name="calltype" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "personal"> Personal </OPTION>
<OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
<OPTION id= "s" value= "email"> E-mail </OPTION>
<OPTION id= "s" value= "meeting"> Meeting </OPTION>
</SELECT>
</TD>-->
</TR>
<TR>
<TD align=RIGHT>
Status of Call - </TD>
<TD>
<SELECT name="callstatus" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "cold"> Cold </OPTION>
<OPTION id= "s" value= "warm"> Warm </OPTION>
<OPTION id= "s" value= "hot"> Hot </OPTION>
<OPTION id= "s" value= "closed"> Connection Executed </OPTION>
<OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
<OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
<OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
<OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT>Date - </TD>
<TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR>
<TD align=RIGHT>
Time - </TD>
<TD><input type="text" size="4" name="etime" maxlength="4"></TD>
</TR>
<TR>
<TD align=RIGHT>
</TD>
<TD>(Write timing in 0000 - 2400 in this format only)</TD>
</TR>
<TR><TD align=CENTER> INFRASTRUCTURE DETAILS
</TD></TR>
<TR></TR>
<TR>
<TD align=RIGHT bgcolor=#00CCFF>
<font color="#CC6600" size=4>Details of service </font></TD>
<TD></TD>
</TR>
<TR>
<TD align=RIGHT>
Circuit Specification - </TD>
<TD><SELECT name="servicetype" size="1" >
<OPTION SELECTED>---Services---</OPTION>
<OPTION id= "s" value= "IPLC"> IPLC </OPTION>
<OPTION id= "s" value= "VPN"> VPN </OPTION>
<OPTION id= "s" value= "ILL"> ILL </OPTION>
<OPTION id= "s" value= "VoIP"> VoIP </OPTION>
<OPTION id= "s" value= "ISDN"> ISDN </OPTION>
<OPTION id= "s" value= "IDC"> IDC </OPTION>
<OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
<OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT vAlign=TOP>
Feedback Details - </TD>
<TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
</TR>
<TR>
<TD align=RIGHT>Next Visit Scheduled - </TD>
<TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR></TR>
<TR>
<TD></TD>
<TD>
<input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
<input type="reset" name="reset" value="RESET" >
</TD>
</TR>
</FONT>
</div>
</TD>
</TR>
</TABLE>
</TD>
<TD vAlign=TOP bgcolor=#FFFFFF>
</TD>
</TR></TABLE>
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
</script>
<script language="javascript">
document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
</script>
<BR><BR>
<jsp:include page="index-end.jsp"/>
</body>
</html>If the reset doesn't work, you have to force iPad into Recovery Mode
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary. -
Plz help using ms access as database,i want to create a login page in java
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Login extends JFrame
//Component Declarations
JLabel jlb1,jlb2;
JTextField jtf1;
JPasswordField jpf1;
JButton jb1,jb2;
//Constructor
Login()
//frame settings
setTitle("Login Dialog");
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
setBounds(d.width/2-175,d.height/2-100,350,200);
gbc.insets=new Insets(7,7,7,7);
//adding components
jlb1=new JLabel("User ID");
gbc.gridx=0;
gbc.gridy=0;
add(jlb1,gbc);
jlb2=new JLabel("Password");
gbc.gridx=0;
gbc.gridy=1;
add(jlb2,gbc);
jtf1=new JTextField(10);
gbc.gridx=1;
gbc.gridy=0;
add(jtf1,gbc);
jpf1=new JPasswordField(10);
gbc.gridx=1;
gbc.gridy=1;
add(jpf1,gbc);
jb1=new JButton("Login");
gbc.gridx=0;
gbc.gridy=2;
add(jb1,gbc);
jb1.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
Connection conn=null;
Statement stmt=null;
boolean found=false;
try
Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
String dataSourceName = "Inventory";
String dbURL = "jdbc:odbc:" + dataSourceName;
conn=DriverManager.getConnection(dbURL, "","");
stmt=conn.createStatement();
ResultSet rst=stmt.executeQuery("Select * from User");
System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
while(rst.next())
System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
found=true;
rst.close();
dispose();
MainWindow mw= new MainWindow(); /*created min window object created to be opend after login but not working*/
break;
rst.close();
stmt.close();
conn.close();
catch(ClassNotFoundException e){System.out.print(e);}
catch(Exception e){System.out.print(e);}
if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
JOptionPane.showMessageDialog(null,"Invalid username or password",
"Error Message",JOptionPane.ERROR_MESSAGE);
jb2=new JButton("Clear");
gbc.gridx=1;
gbc.gridy=2;
add(jb2,gbc);
jb2.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
jtf1.setText("");
jpf1.setText("");
jtf1.requestFocus();
setSize(350,200);
setVisible(true);
jtf1.requestFocus();
public static void main(String args[])
Login l=new Login();
Edited by: 795772 on Sep 19, 2010 4:44 AM795772 wrote:
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
<snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
Two bits of advice:
1) Make sure you ask questions in a forum related to your problem.
2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language. -
Plz. help,table does not show value for one field
hi all,
i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
plz. help ASAP.
the code is as under
<HTML>
<HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
<BODY bgcolor = "yellow">
<%@ page import = "java.sql.*" %>
<%! // declaring variables
String s = "";
java.sql.ResultSet rs=null,rs1=null,rs2=null;
java.sql.Connection con;
java.sql.Statement stmt,stmt1;
String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
%>
Following are the pending complaints ..
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
<TR>
<TD> ComplainD </TD>
<TD> ComplainId </TD>
<TD> ProbHeader </TD>
<!--
<TD> ProblemDescription </TD>
<TD> Problem Comments </TD>
-->
</TR>
<%
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
//java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
s = "select * from Complains";
java.sql.ResultSet rs = stmt.executeQuery(s);
while(rs.next())
//getting data from database
empId = rs.getString("EmpId"); // out.print(" " + empId);
compid = rs.getString("ComplainId");
// out.print(" " + compid);
calltype = rs.getString("CallType");
// out.print(" " + calltype);
a = rs.getString("Complaindate"); //problem with this field
out.print(a); // prints value
%>
<TR>
<TD> <%=compid %> </TD>
<TD> <%=calltype %> </TD>
<TD <%=a %> </TD>
</TR>
<%
}//while loop
%>
</TABLE>
<%
}//try
catch(Exception ep)
out.println(ep);
System.exit(1);
%>
</BODY>
</HTML>
value in database is as follows :-
Complaindate
5/18/2003 1:30:27 PM
5/18/2003 7:32:43 PM
5/18/2003 7:34:02 PM
5/18/2003 7:49:19 PM
5/18/2003 7:50:27 PM
5/18/2003 10:49:42 PM
5/18/2003 10:58:24 PM
thanking u ,plz ask if any further clarificationsHi
I am seeing nothing wrong with ur code..
what about "view source" result.....plz check with that...
whether u r getting all the trs and tds...
revert back on this Issue..
Mars Amutha -
How to skip the alv list when submit a report by SUBMIT statement?
Dear Experts,
I have to submit a report(RMVKON00) for a special request in my add-on program, I use the following statment:
SUBMIT RMVKON00
AND RETURN EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = ABAPLIST_TAB
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_ASCI'
* EXPORTING
* LIST_INDEX = -1
* WITH_LINE_BREAK = ' '
TABLES
LISTASCI = LISTASCI_TAB[]
LISTOBJECT = ABAPLIST_TAB
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3
But it still display the alv list , and I must click button 'BACK' ,then it return my add on program.
I hope to skip the alv list (does not display the alv list ) .
Would you like to help me?
Thanks and Best Regards,
Colin.
Edited by: Colin on Jan 8, 2010 10:09 AMHi Colin,
I dont think you would be able to skip the ALV output using SUBMIT. However try changing the value of sy-lsind after the submit statement.
SUBMIT RMVKON00
AND RETURN EXPORTING LIST TO MEMORY.
sy-lsind = sy-lsind - 1.
If that doesnt work then try using JOB_START JOB_SUBMIT, JOB_CLOSE...
Thanks,
Best regards,
Prashant -
Experts plz help its very urgent
hi expert
plz help- me
previously i was getting dump in this statement
TRANSFER v_tab TO p_file.
FYI:
here v_tab is a table which hav som records
and p_file contains the path of a file like c:\new\ggg.txt
DATA: v_tab TYPE STANDARD TABLE OF t_line WITH HEADER LINE,
TYPES: BEGIN OF t_line,
pspid(9) TYPE c,
tab1 TYPE x,
post1 TYPE proj-post1,
tab2 TYPE x,
vernr TYPE prps-vernr,
tab3 TYPE x,
END OF t_line.
DUMP I WAS GETTIN :
For the statement
"TRANSFER f TO ..."
only character-type data objects are supported at the argument position
"f".
In this case. the operand "f" has the non-character-type "T_LINE". The
current program is a Unicode program. In the Unicode context, the type
'X' or structures containing not only character-type components are
regarded as non-character-type.
to avoid this dump i used feild symbol
assign V_TAB to <IN> casting.
p_file = <in>.
unassign <IN>.
nw there is no dump
but problem is p_file contains the contents of v_tab not the file path .
plz help me its very urgent
thanx in advanceHey, no probs,
after your initial declaration, do this.
TYPES: BEGIN OF n_line,
pspid(9) TYPE c,
tab1(15) TYPE c, "check the length you want
post1 TYPE proj-post1,
tab2(15) TYPE c, "check the length you want
vernr TYPE prps-vernr,
tab3(15) TYPE c, "check the length you want
END OF t_line.
DATA: n_tab TYPE STANDARD TABLE OF n_line WITH HEADER LINE.
now after you fetch data into v_tab,
move it to n_tab.
using a loop at v_tab and move corresponding fields to n_tab's work area
append to n_tab.
once you have populated n_tab and are ready to TRANSFER.
OPEN your file using
open dataset <file> for output in text mode encoding default.
now
loop at n_tab.
TRANSFER n_tab to p_file.
endloop.
CLOSE DATASET. -
Plz help me out bapi message (urgent)
hi
i need help. i m passing values in bapi n taking message from table in bapi to print in out put.
requirment is..
a) Pass the following parameters:
NUMBER = NETWORK
Tables: I_COMPONENTS_CHANGE
COMPONENT = IT_COMP-COMPONENT
BATCH = P_CHARG
Tables: I_COMPONENTS_CHANGE_UPDATE
COMPONENT = IT_COMP-COMPONENT
BATCH = X
b) The components that failed update are provided in table, E_MESSAGE_TABLE. If MESSAGE_TYPE = E, get EXTERNAL_OBJECT_ID and MESSAGE_TEXT. Remove spaces from EXTERNAL_OBJECT_ID and then match against IT_COMP-COMPONENT to get MATERIAL, PLANT and NETWORK and write MATERIAL, PLANT and NETWORK and MESSAGE_TEXT to the job log.
so for that i m doing coding like (this is part of my program)
LOOP AT i_temp_comp.
CLEAR : i_comp_change,i_comp_upd,i_e_msg.
REFRESH : i_comp_change,i_comp_upd,i_e_msg.
LOOP AT i_comp WHERE network = i_temp_comp-network.
l_number = i_comp-network.
i_comp_change-component = i_comp-component.
i_comp_change-batch = p_charg.
APPEND i_comp_change.
i_comp_upd-component = i_comp-component.
i_comp_upd-batch = c_x.
APPEND i_comp_upd.
ENDLOOP.
CALL FUNCTION 'BAPI_NETWORK_COMP_CHANGE'
EXPORTING
number = l_number
TABLES
i_components_change = i_comp_change
i_components_change_update = i_comp_upd
e_message_table = i_e_msg.
IF NOT i_e_msg[] IS INITIAL.
LOOP AT i_e_msg.
IF i_e_msg-message_type = c_e.
READ TABLE i_comp WITH KEY network = l_number
component = i_e_msg-external_object_id. "#EC *
IF sy-subrc IS INITIAL.
i_output-material = i_comp-material.
i_output-plant = i_comp-plant.
i_output-network = i_comp-network.
i_output-message = i_e_msg-message_text.
APPEND i_output.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
ENDLOOP.
problem is it is not showing message in i_output.
so no data is printing.
plz help me outThere are several IFs in your code here.
IF NOT i_e_msg[] IS INITIAL.
LOOP AT i_e_msg.
IF i_e_msg-message_type = c_e.
READ TABLE i_comp WITH KEY network = l_number
component = i_e_msg-external_object_id. "#EC *
IF sy-subrc IS INITIAL.
i_output-material = i_comp-material.
i_output-plant = i_comp-plant.
i_output-network = i_comp-network.
i_output-message = i_e_msg-message_text.
APPEND i_output.
ENDIF.
ENDIF.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
It can be any IF failure. Check in debugging and see how this "i_e_msg" internal table is filled. May be the return table is giving the component number in external format and you have it in internal format or vice-versa in the READ statement "component = i_e_msg-external_object_id". -
Problem in submit statement ?
hi friends..
i have one report program (for eg zpgm1) from that i call another program (for eg zpgm2) by using submit statement.
in zpgm1 i have only one radio button
in zpgn2 i have one parameter with obligatory.
the issue is
while executing from zpgm1 it will call the zpgm2 but it show error message like "parameter is required field" because its an mandatory field.
i don't want that message while submit ..
can you plz..
thanx in advancetry this if it works.
in the zpgm2 , instead of making the parameter as OBLIGATORY , do a validation on that field
eg
<b>instead of this</b>
parameters : p_matnr like mara-matnr <b>obligatory</b>.
<b>use this</b>
parameters : p_matnr like mara-matnr.
at selection-screen.
if p_matnr is initial.
message e001(ZE) with 'Matnr is mandatory field'.
endif. -
Submit statement in ABAP program
Hi All,
I am using two submit statements in my program for two different reports. When i run the program i get the output screens of the two reports at the ouptut. Is there any way i can hide the user seeing the output screens of the two programs and display only the output screen of my program. If you have any clues please post it.
Thanks & Regards,
Rahul RathiYou can call executable programs from other ABAP programs using the following statement:
SUBMIT <rep>|(<field>) [AND RETURN] [<options>].
You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program. If the system cannot find the specified executable program when trying to execute the SUBMIT statement, a runtime error occurs.
If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program.
If you use AND RETURN, the system stores the data of the calling executable program and returns to the calling after processing the called program. The system resumes executing the calling program at the statement following the call.
The SUBMIT statement has a set of additions <options> for passing data to the called program and specifying various other processing options. Some of them are described in the following sections:
Have a look at below link. It will help you.
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm
Best Regards,
Vibha
*Please mark all the helpful answers
Maybe you are looking for
-
Editing raw photos in CS4 and returning to a specific event in Iphoto '09
I wish to edit raw photos in CS4. I have set CS4 as my preferred editor in preferences. When I am finished editing in CS4, I wish to to return the edited photo to the same event from which it came. How do I do this without saving the photo to the des
-
R/3 Transaction Iviews vs Imported ABAP Roles on Portal
Hi, In one of our requirement, Business needs to set up such that client should be able to have web based access to R/3 Transaction through Portal. We can achieve that by creating system in portal and create Transaction iview with required T-code of
-
Scanner class and Ready to Program
Hi I have only been programming for about 3 years. I have always used Ready to Program as my environment and I rly like it. I used to always used the BufferedReader to read in inputs from the keyboard. now I am in university and we always use the Sca
-
Hi, _**While creating P10 ,P20 entries through IT201.I am getting dump.** Please let me know the error. Runtime Errors IMPORT_FORMAT_ERROR Except. CX_SY_IMPORT_FORMAT_ERROR Date and Time 08.06.2011 09:21:16 Short text
-
I have developed a standalone program, then i execute from the ABAP editor, but the report cannot execute properly, and shown a error message "No name free for internal report copy. Save the report first". After i save the report, the message still a