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. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    Restaurant in OMR
    Apartments in OMR
    Villas in OMR
    Resorts in OMR

    ReplyDelete

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo