All differences between a function and a procedure.

What are All differences between a function and a procedure.

What are All differences between a function and a procedure.This is basic procedural programming fundamentals that you should learn at school.
A function is a procedure that returns a value (of the type defined in the function declaration) using the RETURN statement at the terminal point of the processing code.
That's the only difference.
In terms of SQL, procedures cannot be used within SQL and functions can, but only if the function does not contain any OUT or IN OUT parameters and the return type is of a supported SQL type.

Similar Messages

  • What is the difference between partner function and partner type

    Hi Gurus,
    What is the difference between partner function and partner type?
    Thanks,
    Paul

    Hi John,
    The partner types allow us to distinguish between different business partners such as customer, vendor, employee etc and the partner functions represent the functionality or role each partner plays within the business transaction.
    For example under the partner type Customer, you will find - Sold to party, Ship to party, Bill to party, Payer.
    The business partners that exist in the market place are represented with a partner type in the R/3 system. Examples of business partners are customer, vendor, employee and contact person.
    The following partner types are defined in the partner processing for the sales & distribution module –
    a.     AP – contact person (06)
    b.     KU – customer (07)
    c.     LI – vendor (08)
    d.     PE – employee/personnel (09)
    Assigning the partner functions in the SAP system determines the functions of particular partner in the sales process. One partner may take on several functions also.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • What are all difference between 11g Mediator and 10g Oracle service bus.

    hi all ,
    Apart from SCA concept , storing location
    is thr any other difference between 11g Mediator and 10g Oracle service bus ?
    thx in advance..

    11g introduces the SCA architecture for building the service infrastructure.
    SOA 11g uses:-
    1. Uses the weblogic Server and BEA Aqualogic Service Bus (ALSB) for the Oracle Service Bus.
    2. BPEL uses scalable DOM with reduced memory usage.
    3. New adapters and leverage for Java 2 Connector Architecture (J2CA)
    4. BAM finally ported from .Net to J2EE and is part of the service infrastructure
    5. Oracle Web Services Management built into SOA 11g service infrastructure
    6. New adapters and leverage for Java 2 Connector Architecture (J2CA). Tighter integration with E-Business Suite & large payload support.
    7. Business Rules in SOA 10g business rules are managed using the Rules Author & in SOA 11g business rules are managed using JDeveloper and SOA composer

  • Difference between dunning area and dunning procedure

    Hi,
    can anybody explain the exact differnce between dunning area and dunning procedure
    why we define both n how we use them
    what is the differnce between dunning by dunning area and dunning by dunning procedure
    i would be very much thankful if  can get the exact differnetation

    Dunning Areas are organizational units that you use to process the dunning program for example, by division, or sales organization.
    You use dunning areas if several organizational units are responsible for carrying out dunning within a company code. These organizational units are represented by dunning areas in the SAP System.
    You can have either One dunning procedure for One dunning area or several Dunning procedures per dunning area.
    Dunning procedure actually defines how business partners are dunned.
    The dunning program duns open items in customer and vendor accounts if the overdue items result in a debit balance. When you configure the dunning program, you can specify additional criteria for determining whether accounts or their open items are to be dunned.
    Hope it helps.
    Thanks,
    Nandita

  • Difference between Shipping function and install function in O2A

    Hi,
    I am asking this query from domain perspective than from technology. There are two functions in O2A namely install order and shipping function. Can anyone please explain the activities under these function.
    1. Engineer takes the equipment to customer premises: Is this install order of ship function?
    2. Is shipping function related to supply chain from vendor perspective and not customer perspective.
    Please let me know your views. Thanks

    According to me the logic might be Shipping and Install functions are mutually exclusive. So The scenario might be like this:-
    Shipping Function:-
    1. Some shipping company ships the equipment to the customer and that is tracked in CSP's system that customer has received the shipment.
    Install function:-
    2. Customer would have confirmed some appointment date in CAF form.
    3. Field Engineer will then goto the customer premises and then install the equipment.

  • Difference between Function and Stored Procedure

    Hi guys, i don't understand the exact difference between a function and a stored procedure. I did lot of google but still. Can somebody explain in simple words. Thanks.

    Hi,
    Here's an example of a user-defined function:
    CREATE OR REPLACE FUNCTION     factorial
    (      in_num       IN     PLS_INTEGER
    RETURN     PLS_INTEGER
    DETERMINISTIC
    IS
    BEGIN
         IF  in_num IS NULL
         THEN
              RETURN     NULL;
         ELSIF in_num <= 1
         THEN
              RETURN  1;
         ELSE
              RETURN  in_num * factorial (in_num - 1);
         END IF;
    END     factorial;
    SHOW ERRORSThis function retruns an integer. You can use the function (or, more properly, the integer that it returns) anywhere an integer expression is allowed.
    For example
    SELECT     ROWNUM
    ,     factorial (ROWNUM)     AS f
    ,     loc
    ,     SUBSTR ( loc
                , 1
                , factorial (ROWNUM)
                )          AS s
    FROM     scott.dept;Output:
    `   ROWNUM          F LOC           S
             1          1 NEW YORK      N
             2          2 DALLAS        DA
             3          6 CHICAGO       CHICAG
             4         24 BOSTON        BOSTON

  • Difference between config toll and visual admin

    HI all,
      Please let me know all Difference between config toll and visual admin.
    and Purpose and how to start.
    Thanks & Regards,
    satish k

    Hi Satish,
    SAP J2EE Engine 6.20 provides three basic tools for administration u2013
    Visual Administrator,
    Console Administrator, and
    Config Tool (both Visual and Console).
    There are some other tools namely DBTool, Library Tool, RMIC Tool, Shutdown Tool, and User Tool also used.
    First part
    Difference between config toll and visual admin:-Visual Administrator is a graphical user interface (GUI) that enables administration of the whole cluster, of the cluster nodes, and all modules running on them.On the other hand with the help of Config Tool you are able to add and configure SAP J2EE Engine 6.20 cluster elements.Again Config Tool can be used without a running SAP J2EE Engine 6.20. The only requirement is to have the server installed on the local machine.
    Visual Administrator is written in the Java programming language and can be run in any environment where a Java Virtual Machine is available.On the other hand Config Tool is XML-based, which enables third-party visualizations to be developed or integrated as part of a more complicated configuration system.
    Visual Administrator enables remote monitoring and management of the cluster, and for each cluster element, and enables the system administrator to monitor all managers and services working on each node in a single GUI & its online.cofig tool on the otherhand offline.
    Second part Purpose
    "Visual Administrator":-with the help of this tool you can able to login & logout from the server.It gives you all the details regarding different services running in your SAP server.As already mentioned that with the help of VA we enables administration of the whole cluster, of the cluster nodes, and all modules running on them.
    "Config Tool":-Config Tool enables you to run the server in remote debug mode.
    Again Config Tool enables you to add dispatcher and server nodes to the SAP J2EE Engine 6.20 Cluster.With the help of config tool we are enable to modification of service or manager module properties.
    Third part Start procedure
    "Visual Administrator" check the below link
    http://help.sap.com/saphelp_nw70/helpdata/EN/23/fa1f1e5f6841cf92c64dc19d79f290/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/e8/f48b33f9a3423c9e688dfa56330e79/frameset.htm
    For more Info
    http://docs.sun.com/app/docs/doc/819-0698/installconfig-53?a=view
    http://help.sap.com/saphelp_nwce10/helpdata/en/6f/258b2ef17d45a4afa45a00309a6a33/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/e8/f48b33f9a3423c9e688dfa56330e79/frameset.htm

  • Difference between abap object and function

    hi all,
    i read the book on abap object of the difference between abap object and classical abap.
    i know that there is only 1 instance of a specific function group but somehow i still not so clear why subsequent vehicle cannot use the same function. i also can use the do and loop to call the function? if cannot then why?
    hope can get the advice.
    thanks
    using function *********
    function-pool vehicle.
    data speed type i value 0.
    function accelerate.
    speed = speed + 1.
    endfunction.
    function show_speed.
    write speed.
    endfunction.
    report xx.
    start-of-selection.
    *vehicle 1
    call function 'accelerate'.
    call function 'accelerate'.
    call function 'show_speed'.
    *vehicle 2
    *vehicle 3
    *****abap object*******
    report xx.
    data: ov type ref to vehicle,
             ov_tab type table of ref to vehicle.
    start-of-selection.
    do 5 times.
    create object ov.
    append ov to ov_tab.
    enddo.
    loop at ov_tab into ov.
    do sy-tabix times.
    call method ov->accelerate.
    enddo.
    call method ov->show_speed.
    endloop.

    Hi
    Now try this:
    REPORT ZTEST_VEHICLEOO .
    PARAMETERS: P_CAR   TYPE I,
                P_READ  TYPE I.
    *       CLASS vehicle DEFINITION
    CLASS VEHICLE DEFINITION.
      PUBLIC SECTION.
        CLASS-DATA: MAX_SPEED   TYPE I,
                    MAX_VEHICLE TYPE I,
                    NR_VEHICLES TYPE I.
        CLASS-METHODS CLASS_CONSTRUCTOR.
        METHODS CONSTRUCTOR.
        METHODS ACCELERATE.
        METHODS SHOW_SPEED.
        METHODS GET_SPEED EXPORTING E_SPEED TYPE I.
      PRIVATE SECTION.
        DATA: SPEED      TYPE I,
              NR_VEHICLE TYPE I..
    ENDCLASS.
    *       CLASS vehicle IMPLEMENTATION
    CLASS VEHICLE IMPLEMENTATION.
      METHOD CLASS_CONSTRUCTOR.
        NR_VEHICLES = 0.
      ENDMETHOD.
      METHOD CONSTRUCTOR.
        NR_VEHICLES = NR_VEHICLES + 1.
        NR_VEHICLE  = NR_VEHICLES.
      ENDMETHOD.
      METHOD ACCELERATE.
        SPEED = SPEED + 1.
        IF MAX_SPEED < SPEED.
          MAX_SPEED   = SPEED.
          MAX_VEHICLE = NR_VEHICLE.
        ENDIF.
      ENDMETHOD.
      METHOD SHOW_SPEED.
        WRITE: / 'Speed of vehicle nr.', NR_VEHICLE, ':', SPEED.
      ENDMETHOD.
      METHOD GET_SPEED.
        E_SPEED = SPEED.
      ENDMETHOD.
    ENDCLASS.
    DATA: OV     TYPE REF TO VEHICLE,
          OV_TAB TYPE TABLE OF REF TO VEHICLE.
    DATA: V_TIMES TYPE I,
          FL_ACTION.
    DATA: V_SPEED TYPE I.
    START-OF-SELECTION.
      DO P_CAR TIMES.
        CREATE OBJECT OV.
        APPEND OV TO OV_TAB.
      ENDDO.
      LOOP AT OV_TAB INTO OV.
        IF FL_ACTION = SPACE.
          FL_ACTION = 'X'.
          V_TIMES = SY-TABIX * 2.
        ELSE.
          FL_ACTION = SPACE.
          V_TIMES = SY-TABIX - 2.
        ENDIF.
        DO V_TIMES TIMES.
          CALL METHOD OV->ACCELERATE.
        ENDDO.
        CALL METHOD OV->SHOW_SPEED.
      ENDLOOP.
      SKIP.
      WRITE: / 'Higher speed', VEHICLE=>MAX_SPEED, 'for vehicle nr.',
                VEHICLE=>MAX_VEHICLE.
      SKIP.
      READ TABLE OV_TAB INTO OV INDEX P_READ.
      IF SY-SUBRC <> 0.
        WRITE: 'No vehicle', P_READ.
      ELSE.
        CALL METHOD OV->GET_SPEED IMPORTING E_SPEED = V_SPEED.
        WRITE: 'Speed of vehicle', P_READ, V_SPEED.
      ENDIF.
    Try to repeat this using a function group and I think you'll undestand because it'll be very hard to do it.
    By only one function group how can u read the data of a certain vehicle?
    Yes you can create in the function group an internal table where u store the data of every car: in this way u use the internal table like it was an instance, but you should consider here the example is very simple. Here we have only the speed as characteristic, but really we can have many complex characteristics.
    Max

  • Hi All difference between abap and hr-abap urgent pls

    Hi All difference between abap and hr-abap urgent pls

    Hello,
    To add to the above points regarding infotypes
    Infotypes stand apart in  HR and manage a volume of data in HR domain..they are unique to HR module ranging from basic employee information to time management and finally the custom infotypes.....
    Payroll and other monetory activities related to an employee also form a vital part of the HR module....
    while considering Reports..in HR data is mainly with respect to infotypes and the concept of PAKEY...7 key fields which uniquely defines any record in an infotype is used..with Pernr(employee number),Begda(begindate) and Endda(enddate) form an integral part of the key..Based on the time constraints(1,2,3) of an infotype the keys are judged (to retrieve data from an infotype)
    In ABAP HR we also have lots of predefined function modules that can be used..eg:go to se37..put 'HR*' and press F4...
    finally to update an HR infotype record we use the function module hr operation rather than direct updates...also there are standard audit trail reports that monitors various activities such as insert/modify/delete operations on an hr infotype record...
    Pls revert back for clarity and reward if helpful
    Regards
    Byju

  • Key functional differences between SRM 7 and SRM 5

    Dear All,
    I urgently need to put togther a comparison document thst list key functional differences between SRM 7 and SRM 5.
    NB. i donot have access to service marketplace.
    sheena.roberts(AT)yahoo
    Thanks
    Edited by: Sheena Roberts on Jan 18, 2011 11:21 AM

    Hi Sheena,
                        Go to  difference between srm 5.0 and 7.0
    Regards
    Vishal Pd

  • What is the conceptual and functional difference between peripheral target and Enterprise peripheral target?

                       Dear All,
    what is the conceptual and functional difference between peripheral target and Enterprise peripheral target?

    Does anyone get a chance to see this ?

  • What is the difference between Open-Script and Oracle functional testing

    Hi All,
    Please help me in spotting out the difference between the Openscript and Oracle Functional Testing for Web Application.
    Does Oracle Functional Testing for Web Application have any special features when compared with Open-Script.
    Please help me out.
    Thanks in Advance,
    Nishanth Soundararajan.

    Nishanth
    OFT is the old version of OpenScript, which will no longer be part of ATS as per the next major realize 9.20.
    I would recommend to to spend any time looking at it.
    Regards
    Alex

  • What are the differences between ECC5.0 and 6.0 new GL functionality

    Hi Experts,
    What are the differences between ECC5.0 and 6.0 new GL functionality.
    If we want to implement IFRS, I think New GL functionality is very helpful, but why sap is recommending only for ECC6.0 new GL functionality, Eventhough this functionality is available in ECC5.0.
    Best Regards,
    Dharani

    Dear,
    ECC 5.0 vs. ECC 6.0/SAP ERP 6.0
    Functionality not available in the new G/L with mySAP ERP 2004 and ERP Central Component (ECC) 5.0:
    Transfer prices
    Statistical key figures
    Euro translation
    Audit Information System (AIS)
    Archiving
    Data retention tool
    Regards,
    Chintan Joshi.

  • What's the difference between "My Contacts" and "All Contacts"?

    What's the difference between "My Contacts" and "All Contacts"?
    I have no other account other then my iCloud account (from what I can tell), but "My Contacts" has a significantly smaller number of contacts then "All Contacts".
    What's the difference?

    Thanks for posting the screenshots, that's helpful.  I didn't realize that you were looking at your groups.
    "All Contacts" include (as the name implies) all of your contacts.  Below that are any contact groups that you may have defined.  These would normally be such things as "Work", "Personal", "Doctors", etc.; any groups that you find useful to define.  These contain subsets of the "All Contacts" group.
    At some point, perhaps inadvertently, you must have created a group called "My Contacts", or imported it to iCloud from your computer.  At the time this may have contained all of your contacts and would have had the same number of contacts as the "All Contacts" group.  Then over time you probably added 433 additional contacts that were never part of the original "My Contacts" group, resulting in an "All Contacts" group that contained 1465 contacts.
    If you don't have any use for the "My Contacts" group, you can delete it by clicking on it on the left sidebar, click the gear icon on the lower left and choose Delete.  If you're concerned about doing this, you can make a backup of this group first by selecting it on the left sidebar, clicking on a single contact within the group, pressing Control-A to select them all (they should all be highlighted), then clicking the gear icon and choosing Export vCard.  This will create a .vcf file that can later be imported back to iCloud if you ever need to (by clicking the gear icon again and choosing Import vCard).

  • What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    For one, their form factors are slightly different as the iPhone has a bit more squarish body whereas the iPod Touch has a tapered back to it. 
    The iPhone also has much better front and rear cameras. Exact details as to the difference in megapixels depends on whether or not you talking about the iPhone 4 or 4S.  If you would like to get more details, you can always view
    each models specs on Apple's online store.
    See here for a better explanation.
    http://en.wikipedia.org/wiki/IPod_Touch#Comparison_to_the_iPhone
    I'm sure others will chime in with other things as well.
    B-rock

Maybe you are looking for

  • Saving all action in  database

    Hi I have oracle database 11gR2 . I want to save all changes of all tables in database such as insert,update and delete values . I want to save them in a table . When i search for its solution ,find out that ORACLE AUDIT can not save data of changes

  • Urgent!!!! regarding report output

    i have a requirement such that, i need report without top of page..but headers needed to be in the printout in all pages.......pls gv ur suggestions. thanks

  • Nakisa Org unit's boss in the org chart

    Hi everyone, In the Nakisa Org Chart I'd like to place teh portrait of the leader of an org unit into the Org unit view box. I'm not talking about the positions I'm talking about the org units. My question is: Is this possible? I know that this is po

  • Black spot on camera pictures

    black spot appears on camera pics as well as front of screen. No dirt on eye in back of unit. Just a black speck on miidle right of screen. Thank you!

  • CV Artsmart not working with After Effects CC 2014

    I'm trying to do a simple Path Spread animation with CV Artsmart (Cineversity plugin) but when I open the animation in After Effect CC with Cineware the animation does not display, it works perfectly in Cinema 4d r15 ...is this a bug or known issue,