I want to capture the remainder of a division operation

Hi,
I need to capture the remainder  of a division operation. Ex : 33/9  remainder is 6. I want to know the way to capture the remainder. Can any body help me out.
Regards,
Srinivas

Hi,
MOD : Integer remainder of the division of the left by the right operand
Syntax
[COMPUTE] result = [+|-] operand1
                   [{+|-|*|/|DIV|MOD|**} [+|-] operand2
                   [{+|-|*|/|DIV|MOD|**} [+|-] operand3
In an arithmetic expression, you can use arithmetic operators to link an operand operand1 with one or more operands operand2, operand3, and so on; parentheses are possible. Arithmetic expressions can only be used in the COMPUTE statement. Each arithmetic expression has a calculation type.
Arunima

Similar Messages

  • I would want to capture the reference of memory of a generic component ?

    I would want to capture the reference of memory of a generic component
    example1 ->{javax.swing.JScrollPane@678 }
    example2 ->{javax.swing.JTextField@577 }
    ecc..
    Thanks

    I would want to capture the reference of memory of a
    generic component
    example1 ->{javax.swing.JScrollPane@678 }
    example2 ->{javax.swing.JTextField@577 }
    ecc..
    Thanksuse an Objectit is the closest thing in the language to a memory reference
    all EventListeners have a getSource() method that yields an Object
    Furthermore anything allocated with new descends from Object
    For example, lets say you added the same ActionListener to 3 different buttons
    You could test which button triggered the action as follows
    Let e be the ActionEvent passed to the ActionPerformed method of an ActionListener
    if (e.getSource().equals(jButtonOne)){; // jButton1 actions
    } else if (e.getSource().equals(jButtonTwo)){;//jButton2 actions
    } else if (e.getSource().equals(jButtonThree)){;//jButton3 actions
    }The equals method of Object is the Java idiom for comparing memory references.

  • Want to capture the exception in webservice?..

    Hi,
    I have written a BAPI within the MAIN function module for Asset creation. Suppose if the asset is not created due to some invalid data i dont want to use the BAPIRET2 structure for Exception handling, but i want to capture on the MAIN function module EXCEPTIONS.
    Note: EvenIf the BAPI fails the sy-subrc is 0.
    Please suggest.
    Regards,
    Neslin.

    Hi Neslin,
    the following content may help you
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/107aeaf2-540f-2a10-4286-a03955f5274c
    if helpful reward points are appreciated

  • Want To Capture The File name Using the SQL Loader

    Hi,
    I Am loading The Data To Staging Table Using The SQL*developer, The File That need to be Loaded Will be One Of The Input To the SQL*Loader Concurrent Program.
    In One Of The Column Of My staging Table I want To Put The File name.
    Can We do the Same.
    thanks,
    Ankit

    Not unless you generate the loader controlfile dynamically.. try this.. pass file name as $1 first parameter. Use the below example and modify as per your requirement
    1) create table with following table structure
    create table temp_table (x varchar2(20),file_name varchar2(30));
    2) create data file - test.dat (contains only values for x)
    abc
    def
    geh
    ggg
    fff
    3) create a host file host file - test.sh with following content:
    echo "load data
    infile $1
    append
    into table temp_table
    fields terminated by ','
    (x,
    file_name constant "$1")" > test.ctl
    sqlldr <usr>/<pwd>control=test.ctl
    4) run the host file from unix prompt with data file name as parameter (ensure test.sh has execute permissions)
    test.sh test.dat
    Hope this helps
    Regards,
    Bhadri

  • Finding the remainder of a division

    Hi.
    I want to do a division in actionscript, say 49/2 and I want
    to return 2 variables - the integer that goes into 49 twice=24 and
    the remainder- 1. I also want this to return a remainder of 0 if
    there is no remainder.
    I'm just a little stuck on the code i'd use.
    Thanks in advance,
    Mac

    How about Number.toString(radix):
    var n:Number = 49;
    trace(n.toString(2));
    trace(n.toString(8));
    trace(n.toString(16));
    "mac monkey" <[email protected]> wrote in
    message
    news:e9ea08$ovc$[email protected]..
    > Yes I actually I was trying to convert a number to
    binary using that
    > method..the one found here:
    >
    >
    http://www.janeg.ca/scjp/oper/binhex.html
    >
    > However, I've since realised for what I'm doing hex
    would be more
    > suitable. I
    > was going to use 49/16 instead of 49/2..but you say that
    method is wrong?
    > any
    > help greatly appreciated.
    >
    > Ta,
    > mac
    >

  • [Framemaker9.0] The horizontal bar of division operator is too thick, how to make it thin?

    have no idea how to fix it...

    FM uses the DefaultFamily= font setting in the maker.ini (usually Times or TimesNewRoman) for most of the characters to build the equations.
    The divison line is nothing more than a series of hyphens (----) tightly tracked (-16.7%) to run them together. So you are at the mercy of the font designer for the thickness of the divisor line as FM interprets it.
    You can change the font specification in the equations using the Equation Fonts... (<esc> m f shortcut) to specify a character tag from the catalog.

  • Unable to capture the Idle time for BSP page

    Hi Experts,
    I want to capture the Idle time of my BSP page. If that is 5 mins then i have to display the pop up displaying the remaining time.
    Please let me know how to capture the IDLE TIME. not the time after the page is loaded.
    Any suggestion will be helpful.
    Aready checked in SDN but unable to get the solution so posting it.
    Thanks in advance.
    Sravanthi.V

    hi,
    After capturing the idle time iam giving the warning popup to user before 5mins of expiry.Now my requirement is if the user clicks on OK button of popup the page should get refresh. i.e.Idle time should of system should break and we have to get one more hour for expiry.
    Thanks in advance,
    Sravanthi.V

  • To capture the Mini-DV file through the 1394 firewire card from t

    hii there!
    first let mi make you understand what we people are doing ....
    We people want to capture the Mini-DV file directly through the 1394 firewire card from the sony camcorder in to the MPEG2
    format. Thent on the fly(i.e.during capturing into MPEG2) we also want to capture the metadata i.e (time,date etc. of the
    original shooting event) into some text file. Our MPEG2 format requirements are: 8mbps viedeo,freq-48KHz,16 bit sterio,384
    audio kbps, Deinterlace... we are using JavaMediaFramework-2.1.1e(Java Media Studio tool)..so we want to explore that tool
    much more coz rightnow it's not supporting MPEG2(only supporting MPEG1) and also not supporting 1394 cpture card ...we want
    the codec for converting DV-AVI to MPEG2 with date and time exctrated and much more explored details about JMf2.1.1 JavaMedia
    Studio to get more familiar.....
    for the above mentioned problem I am trying to add the mpeg2 codec inthe plugin of the jmf studio..and i have followed the
    steps ..
    Download the Codec from IBM
    Extracted jmf.jar
    Extracted codec.zip
    Added files from codec folder to jmf folder
    Made a jar out of it and name it jmf.jar
    Replaced that with current jmf.jar (kept a backup)
    Opened JMFRegistry and in "Plugins","Codec" and now unable to add " "
    this becoz i am not knowing the exact way of recopiling that newly created jar file and because of that that mpeg-2 codedc is
    not get added .....so i am looking forward for any help for the above mentioned problem!
    I would be gratefull on getting ur help coz it's such challenging and techy concept to explore...
    thanks..
    nilesh hardikar
    contact: [email protected]

    I understand your pain. See BUG ID 4640032: JMF does not support DSVD encoding
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640032
    Add your vote, maye Sun will hear!

  • Need to capture the excise for the excise tab missing item in GR

    Hi Masters
        Our users has done MIGO with one line item(for Material A) with excise item tab and other line item(fro MAterial B) without excise item tab(non availability of Chapter ID).
    They are able to capture excise in J1IEX for the first item only with the help of GR document.
    But they want to capture the excise for the second line item?
    When we process the same GR document in J1IEX once again it shows error that documeny has been already processed.
    How to resolve this?
    Regards
    Mohanraj.C

    Hi,
    If u have done only GR for Both materials then Cancel ur GR and Post it again.
    And if you have Done J1iex for first material then Cancel GR first then Cancel Excise Invoice.
    Now to cancel Excise Invoice follow the path as
    From the SAP Easy Access screen, choose Logistics ® Materials Management ® Inventory Management ® Goods Movement ® Goods Movement (MIGO).
    In the top line:
    Select Cancellation.
    Select Material document.
    Enter the number of the goods receipt that you want to cancel
    Choose .
    Flag all of the line items as OK.
    Save the reversal document.
    Reversing CENVAT Postings
    From the SAP Easy Access screen, choose Indirect Taxes ® Procurement ® Excise Invoice ® Incoming Excise Invoices ® Individual Processing ® Change/Display/Post/Cancel.
    In the top line:
    Select Post CENVAT.
    Select Vendor Excise Invoice.
    Enter the excise invoice number.
    Choose .
    Choose Simulate CENVAT.
    A dialog box appears, showing which postings the system will make to reverse the CENVAT.
    To close the dialog box, choose .
    Choose Post CENVAT.
    Canceling Excise Invoices
    From the SAP Easy Access screen, choose Indirect Taxes ® Procurement ® Excise Invoice ® Incoming Excise Invoices ® Individual Processing ® Change/Display/Post/Cancel.
    In the top line:
    Select Cancel.
    Select Vendor Excise Invoice.
    Enter the excise invoice number.
    Choose .
    Save the excise invoice
    if Not solved then please specify that is error by system.
    Regards,
    Pardeep malik

  • How to capture the cost on project of freely supplied components to vendors

    Dear Friend's,
    My client is sending some child components to their vendor's on free of cost basis to manufacture products like panels, tanks etc. for any particular Customer Project.
    Once these products gets manufacured by vendor,  they supply to client stores, from here my client is doing the delivery & billing to their customer's.
    Here my client's requirement is that they wanted to capture the cost of free supplied child componenets to vendors for any particular project.
    How i can capture this cost for any project..............Kindly give some input on this scenario to full fill the requirement.
    Thanks & Regards,
    Sandeep Theurkar

    Dear Sandeep
    How is the client "sending" the parts to the vendor?How are you maintaining the process of sending  these parts to the vendor?
    Are these parts maintained in the Organization's inventory?
    Thanks and Regards

  • How to capture the screen in AS3

    When I click on a button I want to capture the entire screen
    and make it available in the background of the new frame I
    display.How to do this?

    You can use BitmapData.draw(objectGoesHere) method to capture
    any display object as Bitmap.

  • How to capture the user activities in Project Server 2010

    Hi
    I want  to capture the user activities from Project Server 2010 like when a user has saved and published etc.
    Is there any possibility that we can get the user activities data from sql server.
    Please throw some light on the same.
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hi Geetha,
    As far as I know, there is no such information stored in Project Server DB.
    You can have this kind of information by project, such as the ProjectModifiedDate in the Reporting DB (MSP_EPMProject_userView). I also know that there is a PROJ_LAST_SAVED date in the Draft DB. But be aware that querying in the Draft DB is not supported
    by MS.
    Another way would be doing some custom code, storing in a separate DB each save and publish operation per user.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Using dbms_metadata.get_ddl to capture the alter table

    Hi there,
    I know you can capture table ddl using dbms_metadata.get_ddl. However, I want to capture all the changes after the table got created. If you created a table then add one or more columns. I just want to capture the change as the new columns added.
    Here's an example.
    Create table test (id number, name varchar2(20);
    then
    alter table test add (type varchar2(40);
    I want to capture the syntax "alter table test add (type varchar(40)". Is this possible?
    Thanks

    I dont belive you could easily use dbma_metadata to do this... but you can use a database or schema level trigger e.g. :
    create or replace trigger test.test_trigger
    AFTER ALTER
    ON DATABASE
    DECLARE
    sql_text ora_name_list_t;
    v_stmt VARCHAR2(2000);
    n number;
    BEGIN
    n := ora_sql_txt(sql_text);
    FOR i IN 1..n
    LOOP
    v_stmt := v_stmt || sql_text(i);
    END LOOP;
    INSERT INTO test.test_table2
    VALUES
    (v_stmt);
    END;
    This will capture all alter commands fired at the database... so you would then need to filter them using the System-Defined Event Attributes see
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#i1006211

  • To capture the passed time in a TimedTrigger UI Element

    Hi, I want to capture the passed time in a TimedTrigger UI Element. I need to capture the passed time from init the application to the execution of an action of a button.
    ¿How can i do it?
    Regards.

    Marcel,
    You do not TimedTrigger for this at all.
    1. Create private variable startTime of type long in custom coding section of view controller (bottom of view controller source between //@begin other .. //@end):
    private long startTime;
    2. In wdDoInit of view controller assign current time:
    startTime = System.currentTimeMillis();
    3. In action handler you may get time passed as following:
    timePassed = System.currentTimeMillis() - startTime;
    The result is in milliseconds, to get seconds divide it by 1000.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How to capture the value ?

    Hello Everyone,
    I am running a BDC program using call transaction , and I am updating some records in FB01 , then  for each record a number is generated  called document number ( bkpf - belnr ),
    I want to capture the number generated for each record i process ?
    if i process 10 different records at a time, then how to find which document number is generated for which record ?
    will be rewarded ??

    declare the internal table of type structure BDCMSGCOLL.
    Use this itab in call transaction.
    ex:
    call transaction.......messages into itab.
    if sy-subrc = 0.
    endif.
    In debugging mode check if itab contains any document number for the success full record. Generally it contains the number.

Maybe you are looking for

  • Spacing Problem. Can't get rid of it after paragraph break.

    I am creating an html email for Constant Contact and am limited to in-line span styles. I have not been able to eliminate spacing problem between paragraphs. It seems there is a default that is over-riding my padding settings. Any suggestions? <!DOCT

  • Hierarchy Activation dumps when itu0092s executed from Process Chain. u0096 BI 7.0

    Issue: CostElement Hierarchy sign reversal is updated manually using ABAP Program to update sign reversal, which updates H and J tables and activates the Hierarchy using func module RSHIER_HIER_CHECK_AND_ACTIVATE. It works fine when ABAP is executed

  • Uploading iWeb *****

    Ok here is the problem that keeps bugging me since day 1 with iWeb but now it seems to be permanent: Every time when I upload my pages it gives me an error. However when I check the page on the internet it all seems to be there and working fine. Prob

  • How to export a style?

    Hi. I'm using Portal 3.0.9 and am about to migrate a portal from a development environment to a live environment. I've seen the stuff on how to export pages, content areas, etc. but how do I export a content area style? TIA Brian

  • Mac will not load

    I recently acquired an old G4 and on booting up, was launched into the Darwin/BSD screen. Since I had no idea what the userid or password was, I followed the advice in this article; http://discussions.apple.com/message.jspa?messageID=1553062 Rebooted