Loading...

Maximum and Minimum Function in ABAP

Maximum and Minimum Function in ABAP

The following program is used for representing (or) finding the minimum or maximum number in a given set of numbers, by using ABAP functions. The program (or) function is followed by two images. First one is the input we provide i.e. the function for finding the maximum and minimum in a given set of numbers. Second one is the answer (or) the output of the function.
Maximum and Minimum Function in ABAP

Program for finding maximum & minimum using ABAP:

data : max type i ,
         min type i.
* maximum 9 values can be passed
max = nmax( val1 = 10
                       val2 = 12
                         val3 = 14
                           val4 = 16
                             val5 = 18
                                val6 = 20
                                  val7 = 25
                                    val8 = 7
                                      val9 = 3  ).

min = nmin( val1 = 10
                      val2 = 12
                        val3 = 14
                          val4 = 16
                            val5 = 18
                              val6 = 20
                                val7 = 25
                                   val8 = 7
                                     val9 = 3  ).

WRITE : / 'Maximum :', max.
WRITE : / 'Minimum :', min.

Input:

Maximum and Minimum Function in ABAP

Output:


Maximum and Minimum Function in ABAP

virtualnuggets 1939665615674913718

Post a Comment

  1. Someone essentially lend a hand to make severely posts I would state. That is the very first time I frequented your website page and thus far? I surprised with the analysis you made to create this particular submit incredible. Fantastic job!
    Paper Publishing Sites
    Naas Rated Journals
    Language Translation Services
    Research Paper Writing Service
    Article Writing Services

    ReplyDelete
  2. How to find min,max and average using function module or subroutine

    ReplyDelete

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo