Maximum and minimum value..

Hi,
I want to print/output maximum and minimun value as range from one internal table.
How to print.
Example: for entries 1,2,3,5,6,8,9.
output : 01-09.

HI,
Use aggeriget function .
tables: ekko.
data: begin of itab occurs 0,
  ebeln like ekko-ebeln,
  matnr like ekpo-matnr,
  netpr like ekpo-netpr,
  end of itab.
data: v_cnt like sy-tabix.
select-options: s_ebeln for ekko-ebeln .
select ebeln from ekko into corresponding fields of table itab where ebeln in s_ebeln.
loop at itab.
  select count(*) into v_cnt from ekpo where ebeln = itab-ebeln.
  write:/1 itab-ebeln,15 v_cnt.
endloop.
Regards,
Nehru.s

Similar Messages

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • Getting maximum and minimum of all values in a result set

    Hi,
    I want to find the maximum and minimum of values of a column in answers. For example, suppose there are three columns x,y,z and 'x' has values 1,2,3. I want to display the result as:
    x y z max(x) min(x)
    1 y1 z1 3 1
    2 y2 z2 3 1
    3 y3 z3 3 1
    I tried to use the Max and Min functions. But the result is displayed as
    1 y1 z1 1 1
    2 y2 z2 2 2
    3 y3 z3 3 3
    Any help is greatly appreciated.
    Thanks,
    KK
    Edited by: 842704 on Aug 16, 2011 12:44 PM

    where did you give this max and min ?
    You need to type Max( column_name) in the formula of the column and dont choose the max function from the  dop down of the "Aggregation Rule"
    This should work...
    Thanks
    Ashish

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two looping to find the value of SPO2?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi rai,
    I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
    That being said:
    - Your inner while loops each run exactly twice. Replace them with FOR loops!
    - Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
    - You already calculate some Min/Max values. Ratio is just a division of two values…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi Rai,
    You should post this into the LabVIEW forum rather than Real-Time since this isn't a Real-Time application. Your post will see more replies in the LabVIEW forum. 
    As far as your question is concerned, you can write the max and min from the respective loops to a local variable to send the data out of the loops to a third loop or just do the calculation in one of the loops. This would be ideal if you're trying to do this while the loop is running. 
    -Jayk
    Applications Engineering
    National Instruments

  • SSRS Line graphs, change the axis maximum and minimum by month, and change data series from calendar year to financial year

    I am using SSRS and I cannot access SQL server to answer my problem, so the solution needs to be done via SSRS only.
    I am currently trying to graph some data. The problem is, the months on the X axis are aligned by calendar year. I need the first month to commence with July, with the last month on the axis to be June. This also means that the year series need to be changed
    from calendar year to Australian financial year.
    Screenshots are provided in the comments.

    Hi Northern,
    Per my understanding that you want to show the month in the x axis as the order of the financial year(7,8,9,10...4,5,6) and also display the year in the series group as the financial year, right?
    I have tested on my local environment and we can modify the query in the sql to get the financial year value based on the fields of Calendar year, details information below for your reference:
    1. Modify the query as below:
    SELECT
    Calendar_Date,CASE WHEN MONTH(Calendar_Date)>=7 THEN
    YEAR(Calendar_Date)+1
    ELSE YEAR(Calendar_Date) END AS Financial_Year,
    MONTH(Calendar_Date)as Financial_Month,
    Billing_Amount
    FROM TableName
    order BY
    Calendar_Date
    2. Add the "Billing_Aomount" in the Value area, "Financial_Month" in the Category group area and "Financial_Year" in the Series group area.
    3. Right click the  "Financial_Month" under the Category group to select the "Category group properties",click the sorting and add below expression in the Sort by to specify the order for the month in the x-axis:
    =switch(Fields!Financial_Month.Value="7",1,Fields!Financial_Month.Value="8",2,
    Fields!Financial_Month.Value="9",3,Fields!Financial_Month.Value="10",4,
    Fields!Financial_Month.Value="11",5,Fields!Financial_Month.Value="12",6,
    Fields!Financial_Month.Value="1",7,Fields!Financial_Month.Value="2",8,
    Fields!Financial_Month.Value="3",9,Fields!Financial_Month.Value="4",10,
    Fields!Financial_Month.Value="5",11,Fields!Financial_Month.Value="6",12)
    4. Preview you will get the sample chart display as below according to my sample data:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to get Max and Min value entered in a DOS console?

    Hi there? I wanted to get the Maximum and Minimum value that I entered in a console and displays it. This is using the java.lang.Math class and using it's method max and main. please help. thanks - new to java

    Sounds like you need very basic advice: Start with the tutorials: http://java.sun.com/docs/books/tutorial/index.html
    And if the algorithm is the problem:
    - Make two variables that hold the current maximum and minimum value
    - whenever a value is entered, compare it with the minimum, if it is smaller, set the minimum to that value
    - ditto with maximum
    at the end the two variables contain the maximum and minimum values.

  • Are you having success and getting value from "Month 13" in GL?

    We are looking at using month 13 in the JDE GL. Am interested in use cases of other customers where they have either:
    - tried out month 13 and got good value from it (if so what was the value)
    - have tried month 13 out and decided not to use it (why?)
    - have stayed away from the functionality (why)
    Thanks

    Thank you everyone for your 'tips' and 'advice'.
    I've managed to get the maximum and minimum value, using the same method, but into my very own while loop.
    I used the connection Y value and made the same connection as shown below.
    THANK YOU ALL!

  • Not able to calculate maximum DateTime and minimum DateTime in DataObject

    Hi,
    I tried using 'Max' and 'Min' function to get the maximum and minimum of a DateTime Field in the data Object but its throws me : BAM-01242:Invalid calculated coloumn.
    Can't we use 'Max' and 'Min' function on DateTime field in Data Object or Report in Calculated type?
    Thanks in Advance.
    Saba

    Hi Anju,
    Try this...
              <xsl:variable name="monthDiff">
                   <xsl:call-template name="monthDifference">
                        <xsl:with-param name="date1" select="/tns:StartDate"/>
                        <xsl:with-param name="date2" select="xp20:current-date()"/>
                   </xsl:call-template>
              </xsl:variable>
         <xsl:template name="monthDifference">
              <xsl:param name="date1"/>
              <xsl:param name="date2"/>
              <xsl:value-of select="(xsd:date($date1) - xsd:date($date2))"/>
         </xsl:template>Cheers,
    Vlad

  • SNR and RSSI Values.

    HI ,
    What is the  tha average ,minimum and maximum  values of  SNR(Signal to noice ratio ) and RSSI (Received Signal Strength Indicator ) in  cisco  access points   .
    And how it is depends on the client connectivity with the Access point.
    Thanks & Regards,
    Sinjish.K      

    I am not really sure what you asking here, but My guess is your trying to get a grasp on what SNR and RSSI
    values are how they relate to clients, and how they relate to connectivity. If this is the case read on. otherwise well ingore this post..
    SNR (Signal-to-Noise Ratio) is a ratio based value that evaluates your signal based on the noise being seen. So let's look at the components of the SNR and they see how to determine it.  SNR is comprised of 2 values and is measured as a positive value between 0db and 120db and the closer it is to 120db the better: Signal Value and Noise Value typically these are expressed in decibels (db).
         So we will look at the Signal (Also known as RSSI) first this value is measured in decibels from 0 (zero) to -120 (minus 120) now when looking at this value the closer to 0 (zero) the stronger the signal is which means it's better, typically voice networks require a -65db or better signal level while a data network needs -80db or better.  Normal range in a network would be -45db to -87db depending on power levels and design; since the Signal is affected by the APs transmit power & antenna aswell as the clients antenna (I'll explain this later.)
         Now to the Noise side of this equation, noise is any signal (interference) that is not WiFi traffic such as cordless phones, microwaves, radar, etc. This value is measured in decibels from 0 (zero) to -120 (minus 120) now when looking at this value the closer to -120 (minus 120) is better because that means there is little to no interference. Typical environments range between -90db and -98db.
         So to calculate your SNR value you add the Signal Value to the Noise Value and it generates (or should) a positive number that is expressed in decibels (db); for example lets say your Signal value is -55db and your Noise value is -95db.
                        -55db + -95db = 40db this means you have an SNR of 40, my general rule of thumb is that any SNR above 20 is good.
    RSSI (Recieved Signal Strength Indicator) is a more common name for the Signal value; meaning it is the strength that the device is hearing a specific device or signal.RSSI is most common used in bridge links where on client laptops they just call it Signal.
    As for your question about the maximum and minimum supported by cisco access points that is hard to answer because the antennas attached to the access points also factor into it. In general the Cisco APs have the following maximum transmit powers: 802.11a/n is 40mw or 14dbm, 802.11b is 100mw or 20dbm, 802.11g is 50mw or 17dbm; although in some cases countries and specific channels can alter these limits.
    The last three things I will kind of explain is the EIRP, Free Space Path Loss, and Client side.
    EIRP (Effective Isotropic Radiated Power) is the actual amount of signal leaving the antenna and is a value measured in db that is based on 3 things:Transmit Power (db), Cable Loss (db), & Antenna Gain (dbi). To determine EIRP follow this equation: - Cable Loss + Antenna Gain = EIRP. For example we have a Cisco 1242AG access points running at full power with a 6dbi antenna on the 802.11a radio and a 2.5dbi antenna on the 802.11bg radio.
    802.11a EIRP = 17db (40mw) - 0db + 6dbi = 23db = 200mw of actual output power
    802.11bg EIRP = 20db (100mw) - 0db + 2.5dbi = 22.5db = 150mw (approx) of actual output power
    based on the example above in theory if you were to measure it right at the antenna you could get an RSSI of -23 or -22.5 respectively.
    Free Space Path Loss is a measure of how much signal power you lose over a given distance typically you lose about 0.020 db per foot in an outdoor or wide open office; doors, walls, glass, and etc. affect this. This is why as you walk away from an AP your signal gets weaker.
    All this relates to the client because it determines the signal the client recieves, also keep in mind that when looking at the client you have to account for it's antenna as well.  much like the EIRP...  So if a client card has a 2 dbi antenna (although they are typically either 0dbi or 2.2dbi) that boosts the incoming signal. as shown here assuming the actual raw RSSI signal being seen is -68db (not the value displayed in the client window).
    Actual RSSI + Antenna Gain = Displayed RSSI
    -68db + 2db = -66db
    I hope all this helps with your question...
    Please rate useful posts.
    Thanks,
    Kayle

  • Finding Max and Min values

    Hi Gurus,
    I have a table with one column as data type NUMC of lenth 5.
    Now, I have to get the max value and minimum value from that column into two variables of same type.
    Could you please help me with the logic and code in ABAP.
    Thanks,
    Regards,
    aarthi

    select single MAX( <field> ) from table into <variable>.
    select single MIN( <field> ) from table into <variable>.
    Message was edited by:
            S B

  • Sales Order Blocking based on Minimum & Maximum Qty, Wt & Value.

    Hi Experts,
    I need to put a minimum and maximum (value, quantity and weight) set up in Sales Order based on the Customer.
    Based on the condition record I should be able to put the minimum and maximum quantity, order value and weight in condition record.
    If anybody try to enter less than the minimum and more than maximum system should automatically block the sales order.
    Is it possible ? If possible how can I create condition record for this.
    Christine

    For minimum order quantity you can maintain in the material master itself.  So whenever you enter the quantity less than the minimum order qty it throws the error and will save the order.
    Regarding the maxmum order quantity you have to write the userexit to control the max. quanity by specifying the max. qty in user exit.
    Reward points if it is helpful

  • Rounding value and Minimum lot size

    Hi all,
    Finish material is X and Raw material is Y.
    Bom- For Preparing Xu2019s 1 Qty, 1 Qty of Y is required 
    In Material Master of Y - Rounding value and minimum lot size is 10,
    Project needs 5Qty of X.
    When MD51 for Project execute u2026 PR of Y must be of 10 as per rounding value and minimum lot size, but it is creating PR of 5 qty.
    Above scenario working properly if I take MRP run with MD02 for material X for 10qty, after MRP PR of Y will be created for 10qty.
    With Regards,
    Ashish

    Dear,
    By default, the lot size works as lot-for-lot quantity in the make-to-order and project scenario.
    Go to OMI4 select your Lot size and define Lot Size: SOP  1 or 2Lot-for-lot with rounding. Better create new Lot size as ZX with these setting.
    If you always want lots to be created for the multiple of the rounding value, you must specify a minimum a multiple of the rounding value.
    Example: minimum lot size: 10 and rounding 10.
    Please try and come back.
    Regards,
    R.Brahmankar

  • COPA - Maximum number of value fileds and characteristics

    Does anybody know wich is the maximum number of value fields in COPA module . VVXXX
    I remember that in 4.6 it's something like 56.
    There's also a maximum, in the number of characterisitcs that you can use in COPA?
    Thanks in advanced
    Edited by: Xavi Herce Segu on Apr 7, 2010 11:51 AM

    Summary
    Symptom
    The technical limits for data structure of an operating concern could constrain further extension for large applications.
    The current limits are set as follows:
    50 characteristics
    120 value fields
    249 fields in table
    1948 bytes of table width
    Other terms
    data structure, KEA0, characteristics, value fields
    Reason and Prerequisites
    This was due to historical as well as performance reasons, because of database and system limitations in past.
    Solution
    As of basis 6.20 package 25 was extended the limit of database table length to 4030 characters. According that, the limits for CO-PA data structure are adapted as well.
    By applying of the attached source code correction the limits are extended as follows:
    50 characteristics
    200 value fields
    749 fields in table
    4030 bytes of table width
    Caution:
    The correction can be applied also in ERP release 4.70, but only under the condition, that basis release 6.20, support package 25 or higher is applied.
    Header Data

  • Travel Management-Receipt Maximum rates and Default values

    Hi
    I need some help on one of the issue we are facing in Travel Management. We are expected to Go-live very soon.
    We are unable to apply a very basic check of receipt maximum amount at
    the receipt entry in the portal for travel expenses. This functionality
    is very much provided by SAP in the backend configuration but it is not working in the backend also in our Development system.
    This is concerning the maximum and default amounts in
    View V_T706B2 are related to the IMG
    "Define Influence of Control Parameters: Receipt Maximum Rate"
    I have analysed the table entries but could not
    get the desired solution.
    In the meanwhile based on SAP note: 808437-Warning message when max
    rate is exceeded negative value, we looked into the code and found that
    the code for checking the maximumum amounts is "commented" in the
    lastest SP32 SAP HR version in the DEVELOPMENT system we are working
    on.
    I also looked into (SAP Note: 1114398---Country and Region when
    reading maximum amounts and defaults) and have found that the
    correction suggested in this note may already be applied as our D35
    System EA_HR patch level is already SAPK-60211INEAHR and Note
    correction in SAPK-60203INEAHR is of old level, hence we have not applied this correction.
    Furthermore I have checked and found that in our IDES system these checks
    for Maximum amounts and defaults are working fine. The IDES system is
    at level 0002 and highest support package is SAPKE60002.
    Many thanks in advance !
    Ritesh

    Hi Ritesh:
    We had a situation in which our expense types require both a warning message and request for additional information when the maximum is exceeded. We were told that ECC6.0 can handle only one action per expense type/amount. In our old system, R4.6C, it could handle multiple actions per amount for a receipt type.
    I am not sure if this is your issue - having multiple actions for a expense type/amount combination.
    We got around this by leaving one action at the expected amount and setting the other to 0.01 lower.
    Lisa

Maybe you are looking for

  • File sender channel - file name "null"

    Hi all, I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and popu

  • How can I bulk delete 50,000+ photos from Revel online?

    I have already deleted the photos in my catalog that were associated with my Revel online Carosel but they are still showing up on the Revel online Carosel via web or iPad. I can delete individual photos or by date through Revel online via the web or

  • Novell Client for Linux causes Excel/Crossover to lock on file open

    When using Microsoft Office with Crossover, if I access a mounted NetWare drive using Novell Client for Linux it causes the office Open dialog to lock. The same action with an NCPFS mount works ok. Of course I understand if having Office/Crossover wo

  • How to Disable cache completely

    Please suggest me a way to load changed values from Session and remove cache. I do not want to use cache. After making a change in a page, I want to load the changed page using session. I am able to see changes when I hit "Refresh" only. All the time

  • Very quick 64 Bit question..

    Hey All.. Just set up my lovely new iMac 27" i7 and am really enjoying it. However, a friend told me that when I open Safari, Mail etc there should be the little 64 icon on them to indicate that it's running in 64 bit - is this true? I copied my 'use