In ALV o/p, how to display no. of documents & avg. no. of days ?

Hi All,
I am displaying the Document numbers ( belnr ) and its details like year , days etc...
Now what I need to do is
in my ALV output ,
1).  at the end of belnr column, I need to display the number of documents are there in that column
and
2). under the days coulmn( below at the end ) I need to print the average number of days in the column.
Thanks.
Regards,

Hi All,
I am displaying the Document numbers ( belnr ) and its details like year , days etc...
Now what I need to do is
in my ALV output ,
1). at the end of belnr column, I need to display the number of documents are there in that column
and
2). under the days coulmn( below at the end ) I need to print the average number of days in the column.
How can I do this ?????
YOUR HELP WILL BE HIGHLY APPRECIATED...
Thanks.
Regards,

Similar Messages

  • How to Display MAX, MIN and AVG in  ALV

    Hello Friends,
    Can some one help me with MAX, MIN and AVG  in ALV..
    I am displaying a screen with ALV..  it displays 3 columns..
    below every column i have done .. summatation with the help of
    FIELDCATALOG-DO_SUM = 'X'.
    is there any way in which i can find out MAX, MIN and AVG of each column ?
    Thanking you in Anticipation.
    Best Regards,
    Jitesh P

    NO at the bottom of the screen ..
    Just below the summation.
    column 1            column2               column3
    10                         20                      30
    11                         21                      30
    12                         22                      30
    Sum            33                         63                      90
    Max             12                        22                       30
    min              10                     20                         30
    AVG              11                    21                         30

  • How to display a pdf document in an ADF Task Flow?

    I have a requirement where I need to display a pdf doc in RHS task flow, upon a linked clicked on LHS task flow. Passing the pdf doc name is what I know already. All I need to know is, how to display the pdf doc in a task flow.
    Remember, I don't want to display this as a "POP-UP".
    Appreciate help on this!
    Edited by: Yousuf Baig on Mar 9, 2013 9:01 PM

    try like this...
    <af:panelSplitter id="ps1" orientation="horizontal"
    <f:facet name="first">
    <f:facet name="second">
    <af:panelHeader
    <af:region....(have a fragment and use fileDownloadActionListener)
    </af:panelHeader>
    </f:facet>
    </af:panelSplitter>

  • How to display all reversal document ?

    Dear all,
    When reversal document with negative posting, the balance is return 0. So, how can i display all the reversal documents for reporting ?
    Thank you very much,
    Sylvecast.

    Sylvecast,
    You may have to elaborate a little more on what you are trying to accomplish. Let me add what I can based on my experience. When a document is posted in a GL account for instance, the balance and activity on the acccount can be seen and displayed by using FS10N or FBL3N respectively. If documents are reversed (posting opposite entries) the original balance will return to zero but even though the balance is zero, the activity of both the original and the reversal documents can still be displayed using FS10N (and double clicking the period to see the activity) or FBL3N.
    Or, are you asking for a way to display all revesal documents created?

  • How to display Sales Order Document No into Invoice  ALD document

    Hi everyone
    I need to know how to bring in the sales order number into a UDF on a sales invoice which i will then pull into the invoice document using ALD.The client creates a sales order and copys into a delivery and THEN copys into an Invoice therefore it loses the original base number
    SBO only displays the delivery number into the invoice and the sales number in the delivery - it will not take the sales order all the way into the invoice.
    I can see that it brings it into the remarks field but this also brings in text, which i dont want displaying in ALD document.
    can anyone help either with a formatted search or if you know how i can strip out the text from the remarks field.
    any suggestions will be much appreciated
    Thanks

    You can use the next query:
    Select o.DocNum
    From DLN1 d
    Join ORDR o On o.DocEntry=d.BaseEntry and d.Linenum=0
    Where d.DocEntry=$(INV1.BaseEntry)
    (You should replace the ')' with '']' and the '(' with  '[')
    But this is usable only when the user derives the invoice from one delivery and the delivery from one order.

  • How to display a PDF document in popup window

    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

    Use should the ShowProperty servlet in a link or javascript, e.g.:
    <a href="/mywebapp/ShowProperty/path/to/pdf/node
    target="someOtherWindow">pdf</a>
    pdf
    Or, with dyamic node retrieveal (from search or contentSelector,
    assuming node is the pdf Node):
    <a href="/mywebapp/ShowProperty<cm:getProperty node='<%=node%>'
       name='cm_path' conversionType='url'/>
    target="someOtherWindow">pdf</a>
    <a href="javascript:window.open(
       '/mywebapp/ShowProperty<cm:getProperty node=<%=node%">"
    name="cm_path" conversionType="url"/>',
    'SomeOtherWindow',
    'height=400,width=400,scrollbars=auto,resizeable=yes');return false;">
    pdf</a>
    Greg
    Sanjay Datta wrote:
    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

  • How can display word 2007 document file as a read only on web browser

    hi,
    i want to display word 2007 document file as a read only that means non editable file. At present i am displaying word file by using response object. please help me.
    Thanks,
    Raj

    Hi dear,
    Try with the sample code which has given in below link....
    http://forums.devshed.com/java-help-9/need-help-reading-word-document-with-jsp-20316.html
    ---Vidya
    Message was edited by:
    ragas

  • How to display the values in JSpinner in format  day:HH:mm

    Hi All,
    I want to know how can I display the values inside a JSpinner in the format day:HH:mm. Here the value of 'day' can be anything say from 0 to 365 and HH stand for hour and mm stands for minutes.
    I tried to implement it using
    mSpinner.setEditor(new JSpinner.DateEditor(mSpinner, "DD:HH:mm"));
    but here the values of day was not proper. Please let me know if there is any standard format or how can I configure my own editor.
    Thanks,
    Rohit.

    Hi,
    It worked well for 112 as 112 comes under April month.. i.e. it will work properly for the range 91 to 120 as the current month is April and if we start counting from january 01 then for April month , the number of day will fall under range 91 to 120.
    See, it will allow you to change the values beyond the limit (i.e. less than 91 or more than 120) but the real problem is that I used this spinner in the table and when I will try to save the value of spinner , then if the value of day in beyond the limit 91 to 120 then it will automatically changing in the range between 91 to 120.
    I tried to use format DD:HH:mm ...... do I need to use any other format..
    Hi All,
    I want to know how can I display the values inside
    de a JSpinner in the format day:HH:mm. Here thevalue
    of 'day' can be anything say from 0 to 365 and HH
    stand for hour and mm stands for minutes.
    I tried to implement it using
    mSpinner.setEditor(newJSpinner.DateEditor(mSpinner,
    , "DD:HH:mm"));
    but here the values of day was not proper. Define "not proper". I just tried it and it displayed
    day 112 for today which seems correct.

  • How to display a word document in LiveCycle

    Hi guys,
    I want to create a dynamic pdf form by using LiveCycle Designer ES. In one part of my pdf form I want to display the content from another Word Document. That means this content will automatically update as long as I change the content in Word Document. How can I do that? Or Can LiveCycle do that? Thanks!
    Hui

    Word is not a valid data source. You can connect to ODBC connections or web services. if you want to create one of those to return the doc then so be it ....but you cannot connect to Word directly.
    Paul

  • How to display an SAP document on the web (ECC 6.0)

    Hello all,
      currently upgrading from 46C to ECC60 and we are having trouble with one of our current processes. 
    We currently have a custom RFC that creates spool files and turns them into a PDF stream via CONVERT_OTFSPOOLJOB_2_PDF.  The RFC is called from one of our web applications that then displays the document via PDF on the web.
    We are having trouble using this same process in ECC 6.0 so I'm wondering if there is a different approach to do this in ECC 6.0.
    History of what has been done so far.
    1) since we are now on a UNICODE system the PDF stream sent via the RFC call was displaying chinese characters instead of "%PDF" etc (2hex char vs 4hex char). We attempted to fix this by using the method cl_abap_conv_in_ce=>create to convert each line of the PDF stream.
    2) After inserting the method some of the documents started working but others are getting a parsing error.
    We are looking to see if anyone knows of a more standard approach to getting the same thing done.

    We have experienced the same problem since we upgraded to ECC 6 and unicode last week.  The suggested code worked but there was a step missing in the example that I would like to share.
    The spool output was table TLINE which is 134 characters.  Once you convert to non-unicode you actually have to put the results in a 268 char table.  When you read it in .NET and convert it to a binary array before passing it to Acrobat for viewing you have to make sure that you pad each record with spaces up to 268 charactes.  This was key!
    Here is the code from our RFC after calling the CONVERT_OTFSPOOLJOB_2_PDF with a spool id:
    data: PDF STRUCTURE  ZC268_STRUCT occurs 0 with header line.
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
      exporting
        src_spoolid                    = f_rqident
      tables
        pdf                            = pdf.
    data:     rf_conv type ref to cl_abap_conv_in_ce.
    rf_conv = cl_abap_conv_in_ce=>create( encoding = 'NON-UNICODE' ).
    data: fta_data type table of zc268_struct with header line.
    data: f_str    type string.
    field-symbols: <f_src> type x.
    loop at pdf assigning <f_src> casting.
         call method rf_conv->convert(
          exporting input = <f_src>
          importing data  = f_str ).
          fta_data        = f_str.
          append            fta_data.
          clear             fta_data.
    endloop.
    The data in fta_data can be passed to .NET
    I hope that helps.
    Hussam

  • How to display a word document in KM as html format

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option called "HTML Version" to show this word document in html.
    Thanks
    Rudradev.

    Hi E. van der Palen ,
    I did it using TREX API
    Thanks & Regards
    Rudra

  • How to display a KM document iView as ESS link

    Hi Experts,
    In my project we have already implemented ESS. As per a new requirement, I have stored a page in KM. I have created KM Document iView. In the project we are already having standard link for ESS --> Personal Information --> Personal Data. Right now this is pointing to a standard iView. I would like to call KM document iView when the user clicks on ESS --> Personal Information --> Personal Data. How we can do so? I tried changing the spro setting in following way
    1) I have created iView. The PCD location is as below:
    pcd:portal_content/com.aa.all.folder.sabic/com.aa.ep.folder.enterprise_portal/com.aa.portal.folder.iviews/com.aa.portal.folder.singapore_ess/com.sabic.portal.iview.aa.coming_soon
    2) In the spro, I selected resource. I create a new resource called ZESS_SERV_COMING_SOON_SG
    3) I set URL of Resource Object as
    ROLES://portal_content/com.aa.all.folder.sabic/com.aa.ep.folder.enterprise_portal/com.aa.portal.folder.iviews/com.aa.portal.folder.singapore_ess/com.sabic.portal.iview.aa.coming_soon
    4) In the spro, I selected the node 'Define Services' for standard link ESS --> Personal Information --> Personal Data. Here I changed the service type to 'Call a Portal Page (PCD)'. I also changed Linked Resource to ZESS_SERV_COMING_SOON_SG.
    5) I logged off and again logged into Portal. However, I can not see the link altogether for ESS --> Personal Information --> Personal Data.
    6) Please let me know what is wrong with my method.
    Please help.
    Regards,
    Gaurav

    Hi All,
    Thanks for the help. The issue got resolved. I am writing the solution here for the benefit of SDN users
    1) Create iView
    2) Create Page
    3) Attach page in the Role
    4) Go to newly created resource. URL of PCD page should be filled up with the value. ROLE://.... path of page in the role.
    Regards,
    Gary

  • How to display large text document (2-3 pages) without using the webpage widget?

    Hello all,
    We are designing this online course and our project leader asked us to try to include the course materials/contents within the Captivate file as much contents as we can. However, we have several "big" text-based files to display, such as syllabus, standards, project templates, etc.
    I know that the webpage widget created by Jim Leichliter can "embed" web pages and PDF files into Captivate. However, as mentioned before, our project leader wants everything to reside within Captivate. That means that I can't use the web page widget to "quoate" an external PDF file.
    I also tried the extended Text Entry Area widget, but couldn't get it work. I would really appreciate it if someone could help me with this.
    Thank you very much.

    Would it be possible to create a table that had one row for every week? If so you could do something like this:
    DESC ALL_WEEKS
    NAME Null? Type
    WEEKENDING DATE
    SELECT A.CUST,
    B.WEEKENDING,
    SUBSTR(MAX(TO_CHAR(A.WEEKENDING,'YYYYMMDD')||A.STATUS),9,1)
    FROM YOUR_TABLE A,
    ALL_WEEKS B
    WHERE B.WEEKENDING <= A.WEEKENDING
    GROUP BY A.CUST,
    B.WEEKENDING;

  • Doubt in Smartforms - how to display multiple  sale document no. in s

    Hi guru's,
            I need sample code like print program and Smartform download  for multiple 'Vbeln' sale order document no.
    Please help me
    Rewards for helpful sample code.
    Regards,
    Rajiv Christopher.

    You can use the next query:
    Select o.DocNum
    From DLN1 d
    Join ORDR o On o.DocEntry=d.BaseEntry and d.Linenum=0
    Where d.DocEntry=$(INV1.BaseEntry)
    (You should replace the ')' with '']' and the '(' with  '[')
    But this is usable only when the user derives the invoice from one delivery and the delivery from one order.

  • How to display html document returned by utl_http package (POST method)

    I am using oracle forms 10g, data base version is 10g.
    I have written a database procedure that calls utl_http package POST method and request returns an html document. How do display this html document from oracle form?
    Thank you
    Hema

    Here you have...
    A Full Web Browser Java Bean - Oracle Forms PJCs/Java Beans
    http://forms.pjc.bean.over-blog.com/article-26251949.html

Maybe you are looking for

  • Outputting an int variable in an applet?

    Hey all i will keep this short, i am modifying an applet for a university project and am trying to output an integer variable to screen, i tried using g.drawString but i apparently can only use it to output "text in the double quotes" and if i try pu

  • Payment by bank transfer

    I don't recommend to buy more credits by bank transfer because I have made 2 times of 10 euros up to now I don't receive any credits.

  • Setting JFrame Color

    Hi everyone I have a problem setting JFrame background color and the Foreground color. Here is part of my code where I have the problem. import java.io.*; import java.awt.*; import java.awt.event.*; import java.text.*; public class userInfo extends F

  • Multiple message threads for single contact

    A friend of mine happens to send iMessages from two accounts and it creates two message threads in Messages for me. Is there a way to somehow show one thread covering single account, even though it has multiple "physical" sources? Thanks.

  • BP Master Data

    Hi, What are the standard master data fields for BP the segment builder? I am aware that they are already listed there, but which are the ones that are actually the standard ones?