Greatest of n numbers-any sandard SAP function

Normally u find the greatest of n number by using the <,> options . Are there any standard SAP function which will do it.

HI,
  Why not moving thse fields into an internal table for each record?
loop at itab.
clear v_num.
perform find_biggest using itab-field1 itab-field2 itab-fields changing v_num.
endloop.
form fin_biggest using .....
data: begin of  it_temp occurs 0,
           data type <type for any one of the fieldsoof itab>,
       end of it_temp.
it_temp-data = itab-field1.
append it_temp.
it_temp-data = itab-field2.
append it_temp.
it_temp-data = itab-field3.
append it_temp.
sort it_temp by data descending.
read table it_temp index 1.
v_num = it_temp-data.
endform.
REgards,
Ravi

Similar Messages

  • Module pool / Screen Prog is there any standard SAP functionality ?

    Hi I am creating a Module pool / Screen Prog. On this screen I have nearly 100 fileds , now I want to take print out of all the information shown on the screen for the same is there any standard SAP functionality ?
    Does SAP provides any standarar ready made functionality for the same. ?

    No, there is no standard functionality for this.  dynpros are not designed to "print out".  This is what list displays are for.  That said, you will need to write your logic to kick off  a list display with all of your field values there,  then the user can print.
    Regards,
    Rich Heilman

  • SAP Functional Module for authorization tables

    I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
    Thank you

    Hi Prabhu,
    Other than function modules with role, I had also tried to look for function modules with AuthObject*.
    Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
    I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
    Kindly advice.
    Thank you.

  • Sap Function module

    Hello
    May I know is there any existing SAP function module that can be used to read description of status for table VBUK-KOSTA,FKSTA,WBSTA etc .. (picking status, billing status).
    Points will be rewarded if answer is helpful. TQ
    Message was edited by:
            Hui Leng Yeoh

    hi,
    Refer to this related thread
    Purpose of STATUS_READ function module
    Regards,
    Santosh

  • Function to find the greatest of two numbers

    Hi All
    In the rtf template, is there any function to find the greatest between two numbers?
    Please help
    Thanks in Advance

    Just like SQL, use the GREATEST function. List of comparable SQL functions is shown on or about page 9-30 of user guide (depends on which version you have). Search on GREATEST and you'll find it.

  • Is there any built in function that prints numbers in words inXMLP

    Hi Team,
    This is regarding SR#3-7005716301 from Syntel Limited.
    Customer is asking Is there any built in function that prints numbers in words in an rtf teamplate using xml publisher?
    For example if the net amount is 100 dollars then it should print "ONE HUNDRED DOLLARS AND ZERO CENTS ONLY"
    Thanks in advance!
    Leo

    I do not know of any function available that lets you print the currency words (dollars, cents etc). Here is a link to a blog post that will allow you to print numbers in words.
    https://blogs.oracle.com/xmlpublisher/entry/numbers_to_words_update
    Thanks,
    Bipuser

  • Role of SAP Functional & Basis Consultant for any new authoirzation/user ID in Support Phase

    Dear Expert,
    Please let us know what is standard /best practice for below activities in SAP Support phase?
    Who will responsible for Authorization Matrix?
    Who will be first point of contact (Functional / Basis Consultant) to SAP user for any new authorization request?
    Who will do the testing & impact analysis of new authorization?
    If we provide any new SAP transaction code to the end user & user is facing authorization object issue then who will be first point of contact for user Functional / Basis Consultant?
    Also who will be fist point of contact (Functional / Basis Consultant) for new User ID creation request?
    In our current practice Functional consultant is dealing with end user. He is taking requirement of new Report/Transaction access request & doing analysis. Then he is taking approval from BPO & based on BPO approval Functional consultant is providing training to end user. When end user is accepted requested report requirement in standard report or transaction data process then Functional consultant is sending request to Basis consultant along with authorization parameters like Role, Organization parameters, type of activity (create/change/display/delete) etc.
    Our Basis consultant is not agreeing for this process & he want to directly deal with end user for all activities & he will take help of Functional consultant if required.
    Sorry friends this is not technical discussion but it is create big dispute between our internal support team regarding who will be first point of contact for any authorization related issue?
    Regards / Aviya.

    Dear Aviya Paul,
    1. Who will responsible for Authorization Matrix?
    Authorization Matrix that define "what position may have access to which authorization/ role" shall be developed by User (Management), with support from BASIS. User is the one who have the authority to decide, while BASIS should help User in understanding the technical knowledge of access authorization.
    2 to 5. BASIS.

  • Remote SAP function call from a plsql procedure

    Hi,
    How i can call a remote SAP function from a plsql procedure?
    Thnaks in advance:
    Bianca

    I don't see any relation to Oracle Forms in this question. Is there any? If so, can you specify what you want to do, and the version numbers of Forms and databases involved?
    And what does a call to a remote SAP procedure look like? Is it a DB procedure in an Oracle database? Then you can simply use a database link to the SAP database.

  • I think I finished installing Mountain Lion, and am at the "log in" page with my name and the Lion icon, but I cannot do any of the functions on screen. That is, I cannot log in, sleep, restart, or shut down. I am running it on an Early 2009 Macbook Pro

    I think I finished installing Mountain Lion, and am at the "log in" page with the Mountain Lion icon, but I cannot do any of the functions on screen. That is, I cannot log in, sleep, restart, or shut down. I am running it on an Early 2009 Macbook Pro, which is said to have the capabilities of running Mountain Lion.

    BrettGoudy wrote:
    ...Is there any way I can install a partition that runs snow leopard on my early 2011 MB pro with what I have (new SSD, New RAM, Current version Lion running, no external drive, lack of original snow leopard disks [I lost them ] and the general 10.6.3 snow leopard boot disks)...
    As the last post suggests, call Apple and order a replacement original disc for about $17.  They will ask you the model and serial numbers.
    Your retail version of Snow Leopard OS 10.6.3 will not work on that Mac as it requires a minimum of OS X 10.6.7 to boot and operate.
    Another alternative is to again borrow another Mac to install your retail Snow Leopard into an external HD or partition, upgrade it to 10.6.8 and then clone it back to a partition on your MBP.

  • Is there any BAPI or function module  to delete entries from a table (VBAK)

    Hi Everybody,
    this is my first thread in SDN...
    my problem follows...
    A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
    tables:
    VBAK     sales document: header data
    selection fields:
    VBAK-LIFSK      &#8800;     <BLANK>
    VBAK-ERNAM     =     userID used by e-Sales / IVE
              (EP-BATCH / EAI-BATCH)
    VBAK-ERDAT      <=     Current system Date
    VBAK-ERZET     <=     Current system Time - 20 minutes
    These orders should be deleted from SAP system.
    This report should be scheduled to run regularly every 10 minutes.
    my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
    best replies will be rewarded....
    regards
    Reddy

    Hi Vasanth ,
    thanks for your reply.
    i tried in the same manner what u mentioned.
    but how to pass only one parameter to the functionmodule..
    here in this case we have to pass only update flag as 'D'..
    i did the same it giving dump..
    An exception occurred that is explained in detail below.                          
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was      
      not caught and                                                                   
    therefore caused a runtime error.                                                 
    The reason for the exception is:                                                  
    The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:                                                                               
    In the function module interface, you can specify only                            
    fields of a specific type and length under "ORDER_HEADER_INX".                    
    Although the currently specified field                                            
    "INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.              
    my pgm :
    *& Report  YNEW_ORDER_DELETION
    REPORT  ynew_order_deletion.
    TABLES:vbak.
    PARAMETERS:
         p_lifsk LIKE vbak-lifsk DEFAULT '02'.
    SELECT-OPTIONS:
       s_lifsk FOR vbak-lifsk DEFAULT '10',
        s_ernam FOR vbak-ernam,
        s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
        s_erzet FOR sy-uzeit.
    *PARAMETERS:
    p_erzet LIKE sy-uzeit.
       s_erdat like vbak-erdat,
       s_erzet like vbak-erzet.
    DATA:
       BEGIN OF int_final OCCURS 0,
            w_vbeln TYPE vbak-vbeln,
       END OF int_final.
    DATA:
      int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA:
      wf_time TYPE sy-uzeit.
    INITIALIZATION.
      s_ernam-low = 'KULKARMA'.
      s_ernam-sign = 'I'.
      s_ernam-option = 'EQ'.
      APPEND s_ernam.
    s_ernam-low = 'EAI-BATCH'.
    s_ernam-sign = 'I'.
    s_ernam-option = 'EQ'.
    APPEND s_ernam.
    wf_time = sy-uzeit - 1200.
    p_erzet = sy-uzeit - 1200.
    p_erzet-low = wf_time.
    APPEND s_erzet.
      int_order_header_inx-updateflag = 'D'.
      APPEND int_order_header_inx.
    START-OF-SELECTION.
      SELECT vbeln FROM vbak
                       INTO TABLE int_final
                       WHERE lifsk EQ p_lifsk
                         AND ernam IN s_ernam
                         AND erdat IN s_erdat
                         AND erzet IN s_erzet.
      IF sy-subrc = 0.
        LOOP AT int_final.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument         = int_final-w_vbeln
      ORDER_HEADER_IN             =
        order_header_inx            = int_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
            TABLES
              return                      = int_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
        ENDLOOP.
        LOOP AT int_return.
          WRITE:/ int_return-type,
                  int_return-id,
                  int_return-number,
                  int_return-message.
        ENDLOOP.
      ENDIF.
    please help me ..its a very urgent issue to be solved...
    am waiting for ur reply...
    regards
    gangareddy

  • SAP ABAP or SAP Functional???

    Hi all,
    Im in SAP technical consultant since 16 months but i have observed that functional consultants have better prospects in career growth, im interested to switch to functional. Is this a right decision to switch to functional?
    If yes, which module should i be traind in and any registered institute in bangalore providing the same.
    And is it that only MBA candidates can go into functional?
    And what will be my job profile after 2 yrs?? will it be SAP technical or SAP functional or SAP technofunctional and for which profile shuld i apply for?
    Thanks in advance

    Hi,
    Both technical and functional has better career prospects. It depends on each person to which career path
    he likes to take. If you are good at technical you should continue in the same. It is always better to be in
    your strong area instead of moving to another area thinking of career prospects.
    And to move to become a functional consultant you should have domain experience. It is not like
    learning the technical things. You have to gain that through experience. With such a small experience of
    16 months, i would say you continue for some more time there and learn the functional side of the
    module that you are currently working on. If you move to the functionla side in same module, you
    will be more comfortable. But if you are moving to a totally different module, domain experience
    matters and the career prospects for you will be less with no domain experience.
    And there is nothing like an MBA can only do functional. It is the domain experience matters, not really the degree.
    And the profile after 2 years, you should decide which path to take. With the current profile , you will be a technical
    consultant.
    Regards,
    Leon

  • Documentation for SAP function modules??

    Hello,
    is there any documentation for the SAP function modules available?
    I need documentation for SJ01 (SAP Objects). If I try to view the documentation in SE80, I get the error message: "Document OJ_XXX(whatever I selected) is not available in language DE"
    Where can I get this documentation?
    Is there an overview+documentation available somewhere of all SAP functions which may be used for own programs? Or how do I know what's already available and how to use it?
    Thanks
    Steffi

    Hi,
    Go thru this links
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=449&h2=322&h1=303&h3=449
    http://www.erpgenie.com/abap/functions.htm
    Thanks
    Sunil

  • Is there any standard SAP report to see all active,inactive, retiree employ

    SAP experts
    Is there any standard SAP report where I can look all the employees whose employment specific status is 0 (terminated), 1(employee with the company but inactive), 2(retiree), 3(active).
    please help
    regards
    renu

    Hi Experts,
    I had a similar requirement and I used S_PH9_46000223 Report for my need as suggested.
    I observed one thing.
    "If I give Selection Date as "Today" then the entry date column is 00.00.0000"
    Can anyone clarify my doubt? it is happening in same way for other similar standard reports as well.
    Doubts
    1) Why this is happening
    2) Is it happening as it should? Whats the reason
    3) is there any functional/technical way to correct or modify
    Regards

  • Can any one send functional specs

    hai every body,
    My name is ravi. can any one send functional specs.. and what is functional specs. how it is useful
    Awaiting for response.
    Thank u.

    Hi Ravi,
    Functional specs is the high level designed document which is generally prepared by Functional consultant on the basis of the business requirements gathered from the client. It contains the flowchart etc for the process to be done by developer.
    It involves following persons:
    - Business Expert
    - Functional Consultant
    - Technical consultant
    - Developer
    Here is the template for functiona specs:
    http://www.upassoc.org/usability_resources/conference/2006/FunctionalSpecTemplate.doc
    Also this will help.
    http://sap-img.com/general/what-are-functional-specification-in-sap.htm
    /message/2334729#2334729 [original link is broken]
    Hope this helps.
    Regards
    Tushar
    P.S.Reward points for useful answer.

  • Remove a Function from SAP.Functions (opposite of .add)

    Hi,
    I have a function written in SAP which I call several times with new importparameters (called by VBA/Excel).  The output goes to a table.
    Although the functions clears the table, the table just keeps growing in the result.
    It seems like the data is kept, but I guess with every new call all the previous functions get called as well, so I need to unload the function every time (un-add it ), however I don't know how to do this (I didn't try obvious commands like REMOVE or so, as I guess it might reset also the connection).
    Can anyone help me with this ?
    Thanks,
    Alain
    In addition, some snippits:
        Set functionCtrl = CreateObject("SAP.Functions")
        Set sapConnection = functionCtrl.Connection
    (than login is done)
    The above is called only once, the next part several times with new matererialnumbers....
       Set theFunc = functionCtrl.Add("YRFC_MyFunc")
       theFunc.exports("Mat") = MatNr
       FuncResult = theFunc.Call
        If FuncResult = True Then
            For Each veld In theFunc.tables("TABUIT").Rows
                Cells(teller, 6) = veld("MFRNR")
                Cells(teller, 7) = veld("LIFNAME")
                Cells(teller, 8) = veld("HTNNR")
                Cells(teller, 9) = veld("MFRPN")
                Cells(teller, 10) = veld("MSTAE")
                teller = teller + 1
            Next
            Set theFunc = Nothing
        Else
                Cells(teller, 6) = "???"
        End If

    If I clear the table with 'free' i.s.o. 'clear', the problem doens't occur...(I had to change something else when I remembered that clear isn't always the best for Tables)
    However, now just for fun, if any knows if a function can be removed, please reply anyway

Maybe you are looking for

  • [SOLVED] After resume from suspend to RAM, system is slow / unstable

    Hello, I have come across some strangeness when trying to suspend my system.  The computer is a lenovo U350.  I have read a lot of threads on these subjects, but I never found one that quite matched the experiences I'm having, so I felt compelled to

  • Items not in session state when column link used and prevpage not submitted

    I have a report on page 2 (cemetery lot info) with a column link to page 3 (burial info). There is a process on page 3 that updates billing information using items from page 2, and billing code selected on page 3. The problem is, if the user does not

  • Bug 5088398 for JDK 1.5 in SOLARIS SPARC 10

    The above bug relates to a java.lang.instrument TCK test deadlock (test11). The bug was solved about a month ago (March, 2008). My question is when it is going to be integrated in solaris 10 patches or maybe there is already a patch for it. Thank you

  • Back ground programs running

    How do I actually close the apps after I am done using them. i have everything open in the back ground running and using up my battery.

  • How do I get Illustrator to measure from centerline?

    Would like to input measurements in transform palette of a rectangle, and have that rectangle be placed with out concern for stroke width. Just to be measured from centerline of stroke/path, ala FreeHand. Is there a pref for "measure from center" or