JSF datatable pagination - showing page wise total.
Hi All,
i am ok with normal pagiation. but i have a requirement to show total count of a column page wise in the footer and also total count of th column at the datatable bottom.i can able to get total count but how can we show page wise total count in the footer of datatable. please help me in this
Regards,
A.
So you want something likedouble subTotalPrice = 0.0d;
for (int i = dataTable.getFirst(); i < dataTable.getFirst() + dataTable.getRows() && i < dataList.size(); i++) {
DataItem dataItem = dataList.get(i);
double dataItemPrice = dataItem.getPrice();
subTotalPrice += dataItemPrice;
return subTotalPrice;?
Similar Messages
-
XML Publisher - Page Wise Total
We are facing problem in incorporating ‘Page Wise Total’ in Invoice Report - Invoices print at format CAP_ETA for Germany. It an XML Report and its output appear in PDF format. As per the new requirement sent by L1 team, we are required to make changes in RTF, to show ‘Page Wise Total’.
We have worked on this enhancement but unable to display ‘Page Wise Total’. We are able to display Sum Total of all the records appeared in three different blocks of records for that particular page at the end of the footer of Page, but not yet able to SUM UP total of these three Sum Total of three different blocks on that particular page.
For e.g. First page of my XML Report display three different Block of data as shown below with Subtotal of 38,600.00, 4,453.47 for 1st and 2nd Block respectively, but 3rd block records appeared partially on the first page and remaining appeared on the next page. So My Report should display ‘Page Wise Total’ or ‘Amount Forward’ as 52853.47, which sholud be carried forward to next page as ‘Amount Forward’ - 52853.47. The next page/second page will dispaly the remaing line records of the 3rd block and Subtotal( Please see attachment New_Layout_Invoice_TUM_English.doc)
Name Description Unit Quantity Price Amount in Euro
Rösner Fees Day 17.00 1,400.00 23,800.00
Schreiber, Clemens Fees Day 2.00 1,400.00 2,800.00
Slegers, Arnd Fees Day 4.00 1,400.00 5,500.00
Weiler, Andreas Fees Day 4.00 1,400.00 6,400.00
Subtotal: 27.00 38,600.00
Römer, Michael Expenses 2,253.79
Schreiber, Clemens Expenses 157.69
Slegers, Arnd Expenses 519.78
Weiler, Andreas Expenses 1,522.21
Subtotal: 4,453.47
Rösner, Michael Travel expenses 2,400.00
Schreiber, Clemens Travel expenses 2,000.00
Siegers, Arndt Travel expenses 1,800.00
Weiler, Andreas Travel expenses 2,000.00
Marek, Gruchala Travel expenses 1,600.00
Amount forward 52853.47
As mentioned above we are able to show independently three different Page Wise Total of each of these blocks by using syntax:
<?add-page-total:block1amount;’L_AMOUNT’?>, this syntax is used to sum up all the line records appeared in a block for a particular page and
<?show-page-total: block1amount;’#####.##0,000’;’ ###.##0,000)’?> is used to display the Sum Total calculated by above syntax.
But we are not able to further sum up all these Page Wise Total of different blocks.
Please find attached copy of RTF file from Production (V18_CAR253E1), copy of RTF (V18_CAR253E1_TEST Where we are testing these new changes) and .out XML output file.
I need help on this issue
Thanks & Regards,
Praveen S Negi
[email protected]
91-09930799325Hi Praveen,
You got the solution for page total in Invoice Report in XML publisher report.
Can you pls help regarding the same, i want to display total amount in the invoice report.
Thanks in advance,
Sunny -
Page wise total for multiple pages in xml template
Hi all,
I need to display page wise total for multiple pages in xml layout.I have tried with add-page-total and show-page-total tags but it is not working in my case.Anyone please provide me a solution to this. Thanks in Advance..It is urgent issue..
Thanks
SwapnaThis issue has been resolved.
We had a call to the method "makeOutputFlat(true)" before the call to "FormProcessor.process()" that was corrupting the PDF template file.Once we took that off , the PDF is now printing multiple pages. -
Urgent:page wise total in smartforms
hi,all
How to do page wise total in smartforms ?
use table in smartforms for summary in pagebreak
ex. page1
10 (line 1)
20 (line 2)
30 (line 3)
total 100
page 2
40 (line 1)
50 (line 2)
total 50
Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
Total in page 2 inccorrect = line2 (in page2) .
please help me guys to solve this problem..r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
first create a variable in Global difinations-->global data tab.(ex v_tot)
then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
then in theTABLE>footer>inset a line display the variable(total u r using).here
after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
lem me know if u have any clarifications.
u can calculate as the above way for all the 6 fields.
please Avoid postin duplicate threads -
Dear All
i develop a tabular report in oracle reports 6i with grand total at last page,,
after that i want total of every page show at the end of every page , and at the end of report show grand total of the report as it shown
how can i break the total of every page wise ,, i change from the "Reset at" Page , but it show only last page with last page total , not every page total on every page
please help as soon as possibleHi,
I think you have to create one moe summary column for this purpose provide the source of same column of Grand Total in place of reset at report end choose reset at page .
And place this summary column at page layout, will solve your problem.
Shishu Paul -
How to display page wise totals in Smartforms
hi,
I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page.
in first page 5 items i have to display the total amount in first page and same like second page also please help me.
regardsHi,
Create two global data variables called pag_total & currentpage and initialize currentpage as 1.
if currentpage <> sfsy-page.
pag_total = 0.
pag_total = pag_total + column value(which values u want to add).
currentpage = sfsy-page.
else.
pag_total = pag_total + column value(which values u want to add).
endif.
Write these lines in main area table row of that particular column cell and store the SFSY-page value also in a global variable(currentpage).
Then write the pag_total variable in the footer.
Thanks,
Venkat -
Regarding smartform page wise total.
hi
guru's
i am having doubt on smartform
i want to caluclate sum of qunatities in pagewise
Regards
AnandHello Anand ,
Really good Question.
As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window like......
In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
I haven't done this yet , quite sure it will help you.
Regards
Swati namdeo -
GRR3 report is not showing cost centers monthly wise totals
Hi,
we are having cost center report for full year company code currency report which was working in R3 system. after upgrade it is not showing monthly wise total currency values but when drill down it to actual line item level it is showing all totals. can anybody hlep me to identy issue.
Thanks,Dear Venu
Check any other standard summarisation report and see whether they are giving data or not. If not you need to implement note 1817039 to fetch summarisation data. But before that I suggest once again you do data collection upto the period and try running your report.If no success then read the note and apply it.
Regards
Rajneesh Saxena -
DataTable pagination and Javascript
Hi,
I have a DataTable that has two pages. The user can enter an employee ID and i have to populate all the other fields for that row.
Each row has a expenses field. I have to calculate the total for all the rows when a user enters certain amount in that field (remember, the DataTable has 2 pages), using Javascript.
I can use valueChangeListener and calculate the total in the backend. but that's not an option as there are 3 such fields for each row.
For some reason, the script doesn't work in the second page.
Can someone tell me how to achieve the calculation using javascript for all the rows in 2 pages?
ThanksTry keeping the pagination details (i.e. which page to display) in request scope with a default to page 1. Make sure all requests from the page to "itself" includes the pagination details. When a request comes from another page, the default will be used.
-
Report problem (Paginations show record count, report blank)
I am using a custom report template to show data in detail form and allowing users to use the pagination to move from record to record. I have the maximum rows returned as 1.
The problem is in a very specific set of circumstances if the query returns only two results the report shows nothing. The pagination show two records (using search engine pagination style) but nothing (with the exception of the top and bottom pagination bars) is displayed until the user clicks on one of the linked numbers.
Has anyone had similar problems, does anyone have any idea how to correct this problem?
Thanks in advance.
GaryCheck any branches to this page to see that they have "reset pagination for this page" checked. I had a problem with pagination where the user could specify query criteria and the branch back to the page was not resetting the pagination.
Just a thought,
Mike -
Page level total in a mulipage matrix report
hi!
I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
Regards
simer
The Oracle Reports Team
http://otn.oracle.com/Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
Thanks & Regards
Eamon -
JSF dataTables - Problem during retrieving data from bean
Hi, Below is the Stack Trace got on displaying data using JSF datatables.
This error occurs somtimes and is not very frequent.We are using jboss seam, jboss-4.0.5.GA server and Hibernate.
Anyone knows about this problem and how it can be resolved?
Thanks in advance
javax.faces.el.EvaluationException: Cannot get value for expression '#{loc.companyName}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:508)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:433)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:98)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
at org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:54)
at org.apache.jsp.menu_jsp._jspx_meth_h_panelGrid_0(menu_jsp.java:225)
at org.apache.jsp.menu_jsp._jspx_meth_f_subview_0(menu_jsp.java:118)
at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at org.apache.jsp.finish_005fregistration_jsp._jspx_meth_h_form_0(finish_005fregistration_jsp.java:263)
at org.apache.jsp.finish_005fregistration_jsp._jspx_meth_f_view_0(finish_005fregistration_jsp.java:139)
at org.apache.jsp.finish_005fregistration_jsp._jspService(finish_005fregistration_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.kmedia.filter.RequestFilter.doFilter(RequestFilter.java:184)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.jboss.seam.jsf.SeamApplication11.getPropertyResolver(SeamApplication11.java:197)
at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.commons.el.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:154)
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
... 70 more
10:23:55 Servlet.service() for servlet jsp threw exception
Also check the JSF page, Backing bean, and VO
JSF page
<h:dataTable value="#{finishedRegistrationBean.list}" var = "loc" >
<h:column>
<f:facet name="header">
<h:outputText value="#{displaymessages.registrationDate}" />
</f:facet>
<span class="bodylighttext"> <h:outputText value="#{loc.registrDate}" /> </span>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{displaymessages.companyName}" />
</f:facet>
<span class="bodylighttext"> <h:outputText
value="#{loc.companyName}" /> </span>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{displaymessages.Address}" />
</f:facet>
<span class="bodylighttext"> <h:outputText
value="#{loc.address}" /> </span>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{displaymessages.Action}" />
</f:facet>
<h:commandLink target="_blank"
action="#{finishedRegistrationBean.viewFinishedRegistrationPage(loc)}">
<h:graphicImage value="images/view_icon.gif"
alt="#{displaymessages.info_tooltip_view}"
width="17" height="17" style="border:0" />
</h:commandLink>
</h:column>
</h:dataTable>
Backing bean
@Name("finishedRegistrationBean")
public class FinishedRegistrationBean {
@In
private User user;
@In
private FacesMessages facesMessages;
private List<FinishedRegistrationVO> list;
public FinishedRegistrationBean() throws KMException {
filterFinishedRegistration();
public void filterFinishedRegistration() throws KMException
list = new ArrayList<FinishedRegistrationVO>();
finished_list = userDAO.searchFinishedRegistrationDetails(country_code,uniqueID, companyName, user.getUserName());
public void setList(List<FinishedRegistrationVO> list) {
this.list = list;
public List<FinishedRegistrationVO> getList() {
return list;
FinishedRegistrationVO
public class FinishedRegistrationVO {
private String uniqId;
private String companyName;
private Date registrDate;
private String address;
public String getCompanyName() {
return companyName;
public void setCompanyName(String companyName) {
this.companyName = companyName;
public String getAddress() {
return address;
public void setAddress(String address) {
this.address = address;
public String getUniqId() {
return uniqId;
public void setUniqId(String uniqId) {
this.uniqId = uniqId;
public Date getRegistrDate() {
return registrDate;
public void setRegistrDate(Date registrDate) {
this.registrDate = registrDate;
}Could you please post your
-HBM
-faces-config.xml -
Can I put two h:dataTable in one page?
I find that if I put two dataTables in the same page, something goes wrong.
Any solution to this?
Thanks in advance.userManagement.jsp:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSF 'userManagement.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<f:view>
<f:loadBundle basename="edu.fudan.glee.view.bundle.MessageBundle" var="bundle"/>
<%@ include file="header.jsp" %>
<%@ include file="demandHistory.jsp" %>
<%@ include file="rootCatalogLink.jsp" %>
<p> </p>
<TABLE border="1" width="400px">
<TR>
<TD>
<h:outputLink value="/Glee/userManagement_favorite.faces" rendered="true" id="favoriteLink">
<h:outputText value="#{bundle.favoriteLink}"></h:outputText>
</h:outputLink>
</TD>
<TD><h:outputLink value="/Glee/userManagement_personal.faces" rendered="true" id="personalLink">
<h:outputText value="#{bundle.personalLink}"></h:outputText>
</h:outputLink>
</TD>
<TD><h:outputLink value="/Glee/userManagement_comment.faces" rendered="true" id="commentLink">
<h:outputText value="#{bundle.commentLink}"></h:outputText>
</h:outputLink>
</TD>
</TR>
</TABLE>
<%@ include file="footer.jsp" %>
</f:view>
</body>
</html>demandHistory.jsp:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:subview id="demandHistorySubView">
<h:form id="demandHistoryForm" rendered="true">
<h:dataTable id="demandHistoryTable" var="video" value="#{UserBean.demandHistory}" border="1">
<h:column>
<f:facet name="header">Recent</f:facet>
<h:commandLink action="videoDetail">
<h:outputText value="#{video.chineseName}"/>
<f:param name="videoId" value="#{video.id}"/>
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>
</f:subview>rootCatalogLink.jsp:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:subview id="rootCatalogLinkView">
<h:form id="rootCatalogLinkForm">
<h:dataTable id="rootCatalogTable" var="videoType" value="#{VideoListBean.rootCatalog}" border="1">
<h:column>
<f:facet name="header">Video Catalog</f:facet>
<h:commandLink action="rootCatalog">
<h:outputText value="#{videoType.name}"/>
<f:param name="videoTypeId" value="#{videoType.id}"/>
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>
</f:subview>The problem is dataTable in rootCatalogLink.jsp doesn't work.The commandLink in rootCatalogLink.jsp doesn't work. When I click the hyperLink, no action performed.
If the change the include sequence to:
<%@ include file="rootCatalogLink.jsp" %>
<%@ include file="demandHistory.jsp" %>
well, the commandLink in demandHistory.jsp doesn't.
What's the problem?
Thank you
Message was edited by:
zhlmmc
Message was edited by:
zhlmmc -
hi experts,
i made an alv,which shows o/p like this:
truckno(likp-traid)| dono(likpvbeln)|party nm(kna1-name1)|skucode(lips-arktx)| qty(lips-lfimg)
wb03-7809 | 80000345 | msaha | frooti_pet | 40,000 cs
wb03-7809 | 80000346 | msaha | frooti_ tetra | 20,000 cs
wb03-7809 | 80000345 | msaha | appy1 ltr | 60,000 cs,
but client requirement is that,
they need item wise total ie say, frooti_pet is assigned against dono(80000345), bt this item can also be assigned against another do say(80000389) with sum qty in it.
they want total sum of a particular skucode(item) means frooti_pet(item wise) , that may be assigned in diff dono , but duff dono may be assigned in same truck
o/p will show,
like
truck no| skucode| total(partycular item wise).
how to do it?
thnx in advance.Declare the fields in the internal table in the below order.
dono(likpvbeln)|
skucode(lips-arktx)|
truckno(likp-traid)|
party nm(kna1-name1)|
qty(lips-lfimg)
Above the loop sort the internal table as follows.
Sort itab by dono skucode.
Loop at itab.
at end of skucode.
sum.
here move the Quantity to another variable.
endat.
endloop.
Edited by: Poorna Chandrasekhar on Jan 23, 2009 12:07 PM -
Hi,
I want to call action method on the click on the row of the datatable. I can not use java script according to my project. How cai implement this.
Please give me a sample example or pointer.
- RameshHi,
I have same problem as Ramesh.
(I want to call action method on the click on the row of the datatable, not on the specific one or more columns of datatable)
On BalusC page and similar JSF materials, I have found only that commandLink is part of some column, so,
is it possible to whole row be commandLink, so that is no matter where user clicks?
Thank you veru much in advance for some basic example,
regards,
vb
Maybe you are looking for
-
I"m trying to sync my new Apple 5 to my home computer(Apple). It has playlists I want to sync to my phone. When I plug in the usb plug into the computer and open up Itunes a dialog box tells me that my Apple 5 phone needs to download a 10.7 version o
-
Does the iPhone 4S problem of reducing the signal quality? ("capture of death")
Does the iPhone 4S problem of reducing the signal quality? ("capture of death")
-
Is it possible to access the GAL off of an Exchange server, with out using Entourage and third party applications like Address X which download the whole GAL to my address book. I am in a corp with 20K plus users and I don't want to download it to my
-
Does Strobe support HTML5 playback?
Hi. Does Strobe provide a way to do HTML5 video playback using the video tag or does it require the Flash plugin? We're looking for a way to support browsers and devices that need Flash and also HTML5 video. Thanks.
-
Minimum stock level per warehouse and MRP
Hello experts We have tested minimum stock level per warehouse and try to use it for the MRP but it seems that the MRP uses for a specific warehouse the consolidated minimum level For example WSE 1 minimum stock level 10 WSE 2 minimum stock level 5 M