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
  2. Great information. the information provided is of great use as i got to learn new things. If you are looking for real time training in SAP ABAP, kindly contact sieve software
    Sieve software offers real time training by industry experts with live projects and placement support.
    SAP ABAP TRAINING IN HYDERABAD

    ReplyDelete
  3. 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
  4. BIG DATA Technologies provides you with a state of the art software which combines modern GPU technology (Graphic Processing Units) with the best practices in today’s Big Data platforms, providing up to 100x faster insights from data.
    Bigdata Training in Chennai OMR

    ReplyDelete
  5. All the latest updates from the Python Automationminds team. Python Automationminds lets you program in Python, in your browser. No need to install any software, just start coding straight away. There's a fully-functional web-based console and a programmer's text-editor
    Phyton training in Chennai

    ReplyDelete

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo