Difference between trunc and mod

hi,
what is the difference between trunc and mod operator
can any one explain
thanks in advance

If you are going to ask for the difference between every pair of unrelated functions we could be here for some time. What is the difference between UPPER and CEIL? etc
TRUNC and MOD are both clearly documented in the SQL Reference.

Similar Messages

  • Difference between the two modes ws_policy and sap_wsdl

    Dear All,
    what is the difference between the two modes ws_policy and sap_wsdl and how do we set them and where do we set them.
    do let me know the steps to be followed.
    Thanks & Regards
    Venugopal

    Venu,
    Please check this document from Bill where he has explained clearly:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f?overridelayout=true
    Regards,
    ---Satish

  • Specific differences between AP and bridge modes?

    I've RTFM'd everywhere but cannot find anything definitive regarding the differences between AP+client versus bridge+bridge modes.
    Presume you have a pair of AP1200's. First test case: One is in AP mode and the other is in WGB mode. Second test case: One is in root-bridge mode and the other is in non-root-bridge mode.
    In both cases traffic will pass bidirectionally from one Ethernet port to the other. What, then, are the technical differences between these two situations? Do the "bridges" place less load on the AP1200's CPU? Does AP-based operation yield more diagnostic data? What are the advantages and disadvantages of each mode?
    I can't find anything that digs into the details. Any help appreciated. Thanks!

    Thanks for your response. A few comments, and then a question:
    * Looks to the AP just like a standard client, so it interoperates with all APs
    What does? A 1200 in WGB mode? If so, then yes it looks like a standard client to the AP but Cisco explicitly states it will only associate with other Cisco AP's. It is not compatible with "all APs".
    If you mean a non-root-bridge looks like a standard client to an AP, that's true but the AP must be in "AP with wireless clients" mode which is not one of the test cases I was asking about.
    * No configuration required
    Of the WGB? Mine need configuration: SSID, encryption keys, etc. It's just like setting it up as an AP except for the mode you select.
    Of a (non-)root-bridge? Mine have needed configuration in that mode, too. Same as above.
    Not sure what you mean by "no configuration required".
    # Disadvantages:
    * Supports only a single wired client
    Nope, in WGB mode pre-1200 units supported up to eight wired devices. 1200's and later support up to 250 clients. Cisco docs are clear on this.
    In bridge mode I'm not aware of any wired client limits. The device is simply passing traffic between the two interfaces.
    * WGB itself is not manageable
    Not sure what you mean by "not managable".
    Back to my question: What is the difference between AP+client mode vs. root-bridge+non-root-bridge mode? Does the AP+client mode make more decisions about traffic routing or prioritization, while bridge-based operation is less "intelligent"? Something else?
    My tests show no discernable difference in throughput, even with multiple clients/nonroot bridges. When multiple users consume bandwidth simultaneously, it is shared among them just as you'd expect.
    So... what ARE the differences, as far as the decisions IOS is making, between the different modes?
    Thanks!

  • Difference between 3G and Dual Mode?

    When I go through cellular network options, I get 3 options as GSM, 3G and Dual Mode. What is the difference between the Dual Mode and 3G, and what exactly is this Dual Mode? When should I choose that over 3G?
    Solved!
    Go to Solution.

    Dual mode means that the phone will connect to either 2G (GSM) or 3G connections. It will try for a 3G connection if it's strong enough, otherwise, it will go to a 2G connection.
    The difference between 3G and dual mode, is in 3G mode, the phone will only try to connect to a 3G connection.
    In most cases, dual would be better. If you are in an area will really strong and constitent 3G, then it's probably better to be on 3G.

  • What is the difference between the lock mode SRX and X

    Hi,
    I can really not find more information abort the difference between the lock mode
    Share Row Exclusive (SRX) and Exclusive (X).
    regards,
    U8

    [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#sthref2099]http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#sthref2099
    Regards,
    Rob.

  • Whats the difference between full screen mode on iLife 09 and 11?

    I had a overview of iLife 11 in store at Apple yesterday, I like the ful screen mode of it. I have iLife 09 but never really used it much to be honest.
    I just fired it up, and it has a full screen mode on it I see, so whats the difference between '09 and '11 full screen version?
    Also I'm a little worried if my iMac would run it fine? Its a 2007 Alu Core 2 Duo 2Ghz, 2Gb RAM, so a little older
    cheers

    If viewing full screen is your primary interest with iPhoto then iPhoto 11 may not be for you. iPhoto 11 has new themes for books, cards and slideshows which are rather slick and offers 2 page spread layouts in the books. In all fairness, it has had its difficulties as you can easily tell by the posts but not by everyone.
    Bottom line: it all depends on what you primarily use iPhoto for. Excellent image management and organization or the frills, bells and whistles of its other features.
    Happy Holidays

  • Difference between passive and active data connection mode for  FTP

    Hi,
    Does any body have the idea of passive and active data connection mode for the transport protocol FTP.
    I have one server with FTP, I have to pick the data from this FTP to XI.
    What is the difference between active and passive data connection? Does XI supports both the connections?
    Thanks & Regards
    Katta Mohan Reddy

    Hi
    According to SAP Note - 821267
    Q: Does the File Adapter support active data connections when connecting to an FTP server?
    A: Up to and including SP14, the File Adapter exclusively uses passive data connections. Starting with SP15, active connections will be available.
    Difference between active and passive,
    You can definitely refer to the site mentioned by Suraj
    cheers
    Sameer

  • Difference between a Character mode and Bitmap mode reports

    What are the differences between a character mode and bitmap mode reports

    hi saikumar
    In Oracle Reports Designer, character mode, the
    APPLICATIONS STANDARDS REQUIRE the report to be designed in
    ONE FONT/ ONE CHARACTER SIZE. Character mode reports
    generate ASCII output. In ASCII you cannot dynamically
    change the font and character size. The standard is in
    effect so a report prints as identically as possible from
    both conventional and postscript printers....
    by
    stanma

  • What is the difference between LH and LX modules?

    I would like to know the difference between LX and LH SFP modules. Long Haul ( LH ) denotes longer distances while Long Wavelength ( LX ) denotes less energy which is obviously shorter distance. Why does Cisco use both LX and LH for certain SFP modules?
    Do they denote the capability of the module to work both for MM ( which will be Long wavelength ) and SM ( Long Haul ) fiber? Do correct me if i am wrong.
    What does it infer if a modules says like "Cisco 1000BASE-LX/LH SFP" ?

    What does it infer if a modules says like "Cisco 1000BASE-LX/LH SFP
    Generally a module is either made for single mode (More distance) / multimode (short distance). But this module can be used for both Single mode and Multimode.
    If used with SM fiber it can go upto 10Km
    It used with MM it can go upto 550meters (depend on what kind os MM fiber you have) You need a mode conditioning patch chord too with legacy MM i think OM1 and 2.
    Long Haul ( LH ) denotes longer distances while Long Wavelength ( LX ) denotes less energy which is obviously shorter distance. Why does Cisco use both LX and LH for certain SFP modules
    Read this link and dont worry about LX/LH (You will ge tthe distance mentiond above depending on the type of fibe ryou are using)
    http://en.wikipedia.org/wiki/Gigabit_Ethernet
    Before it was standardized 1000BASE-LX10 was essentially already in widespread use by many vendors as a proprietary extension called either 1000BASE-LX/LH or 1000BASE-LH

  • Difference between continue and Exit ........?

    Difference between continue and Exit ........

    See a small example CONTINUE below with some notes:-
    When Nothing to Do, CONTINUE: - In Oracle Database 11g PL/SQL has a new construct called CONTINUE, which is used in a loop. The statement moves the logic to the end of the loop and then to the beginning of the loop.
    Eg:
    begin
            for ctr in 1..100 loop
                    continue when mod(ctr,10) != 0;
                    dbms_output.put_line ('ctr='||ctr);
                      Continue Skip the executions of statements after this clause Like for numbers, those are not a multiple of 10. And comes to end loop then to start of loop          
            end loop;
    end;
    Here is the output:
    ctr=10
    ctr=20
    ctr=30
    ... and so on ...EXIT take you out of LOOP from current iteration and that will be last iteration.
    Thanks!

  • What is the differences between viewCriteria query modes?

    Hello all,
    recently we faced a performance issue in a production application. after tracing  we found  that the issue was caused by setting the query mode of the view criteria to in memory.
    bussiness case description:
    when creating a new record for table A, I want to populate one field depending on records in another table B, so I used model driven LOV.
    The problem was that new records were created for both tables in the same ADF train i.e. the data for both tables were not posted or committed yet.
    so by using a query based ViewObject + viewCriteria with query mode set to memory for viewCriteria I managed to populate the LOV with the correct data,
    in another page I will show database records for table A with LOV to show meaningful messages to users ,  but I can as well create new records for table A ,but the loading of this page is very slow.
    tracing:
    using alter session set sql_trace=true; I found that table B is fully scanned and all rows are fetched-180000+ record-.
    Problem description:
    from the trace file generated found that the query issued did not have a where clause.
    also found that the viewObject fetched the entire table into memory- 180000+ record,-  then searched them in memory.
    Solution:
    changing the query mode of the viewCriteria seems to solve the issue
    so in order to avoid such issues in the future ,I wanted to make sure I understand the differences between the query modes of view criteria and their impact on the performance and if there are any differences if the viewObject is based on an entity or a sql dml.
    this is what I know so far -please correct me if I am mistaken-:
    1)database: search the database appending the conditions of the viewCriteria to whatever the query is
    2)memory: search the rows that are already in the memory.
    3)both: search both database and memory.
    also, in case I updated one of the records in the memory but did not yet post or commit will the fetched rows have the updated values? and if these changes fails the condition from the viewCriteria , will the rows be shown?.

    The camera roll contains all the photos and videos taken on your device, as well as any saved on your device from the internet, emails, text messages, etc.  The photo library contains photos synced to your device from your computer.
    Only camera roll photos are synced using iCloud with photo stream.  And photo stream only syncs photos, not videos.

  • What's the security difference between WPA and WPA2 Personal?

    In order to get my G4 iMac (OS 10.4.11) onto my new AEBS(b/g/n) wi-fi network, I had to drop the network security down from WPA2 Personal to WPA/WPA2 Personal.
    What are the potential security risks in this mode? I know that WEP is no longer secure, so I'm concerned about WPA also being vulnerable.
    If there's a good online explanation of these security differences (not necessarily Apple-only), you just give me that link.
    Thanks

    Hi,
    Summary:
    1.WPA2 is the improved version of WPA
    2.WPA only supports TKIP encryption while WPA2 supports AES
    3.Theoretically, WPA2 is not hackable while WPA is
    4.WPA2 requires more processing power than WPA
    http://www.differencebetween.net/technology/difference-between-wpa-and-wpa2/

  • Differences between LSMW and BDC

    Hi All
    Please can you give me the few points about the differences between LSMW and BDC?
    Awaiting for your Responce
    Praveen

    Hai Check with the following document
    GOOD
    THERE IS THREE TYPE OF METHOD IN BDC
    BDC SESSION
    CALL TRANSACTION
    CALL DIALOG
    What is BDC or batch input
    The Batch Input is a SAP technic that allows automating the input in transactions. It lies on a BDC (Batch Data Commands) scenario.
    BDC functions:
    · BDC_OPEN_GROUP : Opens a session group
    · BDC_CLOSE_GROUP : Closes a session
    · BDC_INSERT : Insert a BDC scenario in the session
    · The ABAP statement "CALL TRANSACTION" is also called to run directly a transaction from its BDC table.
    It runs the program RSBDCSUB in order to launch automatically the session. The session management is done through the transaction code SM35.
    The object itself is maintanable through the transaction SE24.
    BDC methods:
    Method
    Description
    Parameters
    OPEN_SESSION
    Opens a session
    SUBRC (Return Code – 0 OK)
    SESSIONNAME (Session to be created)
    CLOSE_SESSION
    Closes a session
    None
    RESET_BDCDATA
    Resets the BDC Internal Table...
    None. Normally, for internal purpose…
    BDC_DYNPRO
    Handles a new screen
    PROGNAME (Name of the program)
    DYNPRONR (Screen Number)
    BDC_FIELD
    Puts a value on the screen
    FIELDNAME (Name of the field)
    FIELDVALUE (Value to be passed)
    CONSTRUCTOR
    Constructor - Initializes NO_DATA
    NODATA (No data character). The constructor is called automatically when the object is created.
    RUN_SESSION
    Launches a session with RSBDCBTC
    None
    CALL_TRANSACTION
    Calls a transaction with the current BDC Data
    MODE (Display Mode)
    UPDATE (Update Mode)
    TCODE (Transaction to be called)
    BDC_INSERT
    Inserts the BDC scenario in the session
    TCODE (Transaction to be called)
    BDC techniques used in programs:
    1) Building a BDC table and calling a transaction,
    2) Building a session and a set of BDC scenarios and keeping the session available in SM35,
    3) Building a session and lauching the transaction right after closing the session.
    BDC using Call Transaction
    BDC using Call transaction involves calling an SAP transaction in back ground from within the ABAP
    program. The process involves building an Internal BDC table containing the screen information needed to
    execute the required transaction and then passing this to the Call transaction command (See code example).
    The full procedure for creating a BDC program is as follows:
    What is the difference between batch input and call transaction in BDC?
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    BATINPUT/DIRECT INPUT
    A: Batch-inputs can not be used to fill the "delivery due list" screen because it is not a dynpro. This is a standard SAP report. A SAP report (check with "System -> Status") may be called using SUBMIT sentence with the appropriate options . It is preferred to call a report than create a Batch-input program.
    GO THROUGH THIS LINK
    http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm
    The LSM Workbench is an SAP R/3 based tool that supports the one-time or periodic transfer of data from non-SAP systems ("legacy systems") to SAP systems.
    The LSM Workbench helps you to organize your data migration project and guides you through the process by using a clear sequence of steps.
    The most common conversion rules are predefined. Reusable conversion rules assure consistent data conversion for different data objects.
    LSMW vs DX Workbench
    The LSM Workbench covers the following steps:
    Read the legacy data from one or several files (e.g. spreadsheet tables, sequential files).
    Convert the data from source format to target format.
    Import the data using standard interfaces (Batch Input, Direct Input, BAPI, IDoc).
    Experiences made in successful implementation projects have shown that using the LSM Workbench significantly contributes to accelerating data migration.
    SAP provides this tool along with documentation to customers and partners free of charge.
    Users of the LSM Workbench receive the usual support via SAP Net - R/3 Frontend (component BC-SRV-DX-LSM).
    Releases:
    Version 1.7.2 of the LSM Workbench ("LSMW 1.7.2") available
    Attention : LSMW 1.7.2 requires an SAP R/3 system with SAP R/3 4.0 or SAP R/3 4.5.
    Version 1.8.0 of the LSM Workbench (1.21mb) ("LSMW 1.8.0") available
    Attention : LSMW 1.8.0 requires an SAP R/3 system with SAP R/3 4.6.
    Version 3.0 of the LSM Workbench (1.89mb) ("LSMW 3.0") available for Web Application Server 6.10
    Attention : LSMW 3.0 requires a SAP WAS 6.10. Functionality of version 1.7.2 and 3.0 are identical !
    Version 4.0 of the LSM Workbench ("LSMW 4.0") integrated in Web Application Server 6.20
    Attention : LSMW 4.0 is an integrated part of SAP WAS 6.20.
    Thanks & regards
    Sreenivasulu P
    Message was edited by: Sreenivasulu Ponnadi

  • Difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST

    Can anyone tell me the difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST?  Both the macros are same difference is with underscore(_) and hiphen(-).  Both are working fine for the functionality without any difference.  Then why there are two macros for a single functionality?

    Just providing the links are considered as link farming ( which are against the rules of the forums ), the links would be removed for the following reasons:
    1) If a link is provided( not many ) , then you must point out the explanation in it
    2) If the links were easily searchable by the OP
    3) If the links just direct you to sap documentation
    4) If the reply consists only bunch of link references.
    I think the 3rd & 4th point made your post to be deleted.
    There are no links which states the differences between these two Macro's. Mod's are doing their right job, please join them and make this forum clean
    Kesav

  • Difference between poh and pov in module pool programming

    hi all,
                       pls tell me difference between poh and pov and how i check validation in screen

    Hi,
    POV gives you F4 help.
    like:
    You can call dialog modules in the POV event using the event keyword PROCESS ON VALUE-REQUEST.
    PROCESS ON VALUE-REQUEST.
      FIELD f MODULE mod.
    After the PROCESS ON VALUE-REQUEST statement, you can only use the MODULE statement together with the FIELD statement. When the user chooses F4 for a field f, the system calls the module mod belonging to the FIELD statement. If there is more than one FIELD statement for the same field f, only the first is executed. The module mod is defined in the ABAP program like a normal PAI module. However, the contents of the screen field f are not available, since it is not transported by the FIELD statement during the PROCESS ON HELP-REQUEST event. You can now program your own value lists in the module. However, this procedure is only recommended if it really is not possible to use a search help. Defining search helps is much easier than PROCESS ON VALUE-REQUEST, since the system takes over some of the standard operations, such as getting field contents from the screen. It also ensures that the F4 help has a uniform look and feel throughout the system. Furthermore, it means that you do not have to reassign input help to fields on each screen.
    Despite the introduction of search helps (and search help exits), there are still cases in which you need to use parts of the standard F4 functions directly. In this case, there are some standard function modules that you can use in the POV event. They support search helps, as well as all other kinds of input help, and are responsible for data transport between the screen and the input help. These alll  have the prefix F4IF_. The most important are:
    ·        F4IF_FIELD_VALUE_REQUEST
    Calls the input help of the ABAP Dictionary dynamically. You can pass the component names of a structure or database table of the ABAP Dictionary to the function module in the import parameters TABNAME and FIELDNAME. The function module starts the ABAP Dictionary input help for this component. All of the relevant screen fields are read. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the user’s selection is returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
    ·        F4IF_INT_TABLE_VALUE_REQUEST
    This function module displays a value list that you created in an ABAP program. The self-programmed value list is passed to the function module as the table parameter VALUE_TAB. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the user’s selection is returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
    There are also two function modules - DYNP_VALUES_READ and DYNP_VALUES_UPDATE - that can read the values of screen fields and return values to them during the POV event. For further information, refer to the relevant function module documentation.
    Input help in dialog modules
    REPORT demo_dynpro_f4_help_module.
    TYPES: BEGIN OF values,
             carrid TYPE spfli-carrid,
             connid TYPE spfli-connid,
           END OF values.
    DATA: carrier(3) TYPE c,
          connection(4) TYPE c.
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values,
          values_tab TYPE TABLE OF values.
    CALL SCREEN 100.
    MODULE init OUTPUT.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'CARRIER'.
      APPEND field_value TO dynpro_values.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE value_carrier INPUT.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname     = 'DEMOF4HELP'
                fieldname   = 'CARRIER1'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CARRIER'.
    ENDMODULE.
    MODULE value_connection INPUT.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
      SELECT  carrid connid
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF TABLE values_tab
        WHERE carrid = field_value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'CONNID'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CONNECTION'
                value_org   = 'S'
           TABLES
                value_tab   = values_tab.
    ENDMODULE.
    *POH gives you F1 documentation:*
    like:
    If data element supplement documentation is insufficient for your requirements, or you want to display help for program fields that you have not copied from the ABAP Dictionary, you can call dialog modules in the POH event:
    PROCESS ON HELP-REQUEST.
      FIELD  is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document:
    HELP_OBJECT_SHOW_FOR_FIELD
    This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
    HELP_OBJECT_SHOW
    Use this function module to display any SAPscript document. You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME. For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.
    For further information about how to create SAPscript documents, refer to the  Documentation of System Objects documentation.
    Field help on screens.
    REPORT DEMO_DYNPRO_F1_HELP.
    DATA:  TEXT(30),
           VAR(4),
           INT TYPE I,
           LINKS TYPE TABLE OF TLINE,
           FIELD3, FIELD4.
    TABLES DEMOF1HELP.
    TEXT = TEXT-001.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE F1_HELP_FIELD2 INPUT.
      INT = INT + 1.
      CASE INT.
        WHEN 1.
        VAR = '0100'.
        WHEN 2.
        VAR = '0200'.
        INT = 0.
      ENDCASE.
    ENDMODULE.
    MODULE F1_HELP_FIELD3 INPUT.
      CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
           EXPORTING
                DOKLANGU                      = SY-LANGU
                DOKTITLE                      = TEXT-002
                CALLED_FOR_TAB                = 'DEMOF1HELP'
                CALLED_FOR_FIELD              = 'FIELD1'.
    ENDMODULE.
    MODULE F1_HELP_FIELD4 INPUT.
      CALL FUNCTION 'HELP_OBJECT_SHOW'
           EXPORTING
                DOKCLASS                      = 'TX'
                DOKLANGU                      = SY-LANGU
                DOKNAME                       = 'DEMO_FOR_F1_HELP'
                DOKTITLE                      = TEXT-003
           TABLES
                LINKS                         = LINKS.
    ENDMODULE.
    Regards,
    Renjith Michael

Maybe you are looking for