To find whether a number is divisible by another number.

Hi All,
          In ABAP how to find whether a number is divisible by another number?
Thank you in advance.
With Regard,
Sridhar

Hi
Welcome To SDN
Use MOD
e;g
2 MOD 3
if the result is equal  to zero the it is divisible by the second number
check this snippet
PARAMETERS :
  p_n1 TYPE i,
  p_n2 TYPE i.
DATA :
  w_temp TYPE i.
w_temp  = p_n1 MOD p_n2.
IF w_temp EQ 0.
  WRITE :
   / 'Divisible'.
ELSE.
  WRITE :
   /'Not divisble'.
ENDIF.
Regards
pavan

Similar Messages

  • From a table how do u find whether a material is used in another material B

    hi,
    From a table how do u find whether a material is used in another material BOM
    thanks in advance

    Yes as Velu mentioned you can get the details from STPO.
    Note that you have to use field IDNRK in table STPO to check if the material is used as a BOM Component.
    Regards
    Eswar

  • How to find whether an Invoice is been posted for a particular PO

    Hi,
    How to find whether an Invoice is been posted for a particular PO.
    I have a scenario where I fetch data into an internal table T_CDHDR(It has PO and other details). For each and every entry(PO) in that internal table I have to see whether an Invoice is been posted or not. They told to use <b>EKBE(Purchasing document history)</b> table. But, I don't know which field to check for and based on what conditions.
    Can someone help me with sample code or some valuable inputs.
    Thanks in advance.
    Regards,
    Paddu.

    HI,
    TABLE IS RIGHT.
    IN THAT TABLE FOR THE FIELD BEWTP CHECK WHETHER ENTRY IS "Q".
    Q STANDS FOR IR-L THAT MEANS INVOICE IS DONE.
    ON THE SELECTION SCREEN OF EKBE TABLE ENTER THE PO NUMBER.
    THEN CHECK WHETHER IT HAS ENTRY FOR BEWTP 'Q'.
    YOU CAN CROSS-CHECK THIS DATA FROM TABLE WITH THAT IN ACTUAL PO IN T.CODE - ME23N.
    ENTER PO NUMBER ,THEN IN ITEM DETAILS , IN HISTORY TAB SEE FOR THAT INVOICE NO.

  • Is there any way to find whether the private key is capable of 40 bits encr

    Is there any way to find whether the private key is capable of 40 bits encrypted or 128 bits encrypted.

    kanth_kanth wrote:
    Is there any way to find whether the private key is capable of 40 bits encrypted or 128 bits encrypted.Assuming an RSA private key, to get the number of bits extract the length of the 'modulus' in bytes and multiply by 8. How you extract the modulus depends on what format the private key has been stored in.

  • How to find whether MIRO is done for a PO

    Hi All,
    Is there any indicator attached to POs that indicates whether MIRO is done for that PO?
    I mean after PO creation in ME21N -> GR in MIGO -> Excise (if applicable) and -> MIRO... how to find whether MIRO is done for a particular PO?
    Helpful tips will be gratefully rewarded...
    Regards,
    Karthik

    See if an entry exist in EKBE for the PO Number and its items.
    The complete process though is, to find the GR Quantity for each PO Item and see if it matches with the PO Item quantity.
      SELECT EBELN
             EBELP
             MENGE
             LOEKZ
        FROM EKPO
        INTO TABLE LT_EKPO
       WHERE EBELN = P_EBELN.
      IF NOT LT_EKPO[] IS INITIAL.
        SELECT EBELN
               EBELP
               MENGE
               BEWTP
               GJAHR
               BELNR
               BUZEI
               SHKZG
          FROM EKBE
          INTO TABLE LT_EKBE
          FOR ALL ENTRIES IN LT_EKPO
         WHERE EBELN = LT_EKPO-EBELN
           AND EBELP = LT_EKPO-EBELP
           AND VGABE = '1'.
      ENDIF.
      LOOP AT LT_EKBE.
    * Change the sign of the quantity for debit
        IF LT_EKBE-SHKZG = C_SHKZG_H.
          LT_EKBE-MENGE = -1 * LT_EKBE-MENGE.
        ENDIF.
        MOVE-CORRESPONDING LT_EKBE TO LT_EKBE_SUM.
        COLLECT LT_EKBE_SUM INTO LT_EKBE_SUM.
        CLEAR LT_EKBE_SUM.
        ENDLOOP.
       loop at it_ekpo.
    ** For each line item, calculate the total GR Quanity
        READ TABLE LT_EKBE_SUM WITH KEY EBELN = LT_EKPO-EBELN
                                        EBELP = LT_AWKEY-EBELP.
        IF SY-SUBRC = 0.
    * If the PO Item Quantity is equal to GR Quantity
            IF LT_EKPO-MENGE <= LT_EKBE_SUM-MENGE.
    * The PO Item can be considered completed GRed
            ENDIF.
        ENDIF.
      ENDLOOP.

  • Finding whether int or String

    I have a string variable and I have to find whether the value of the variable is
    number or characters.
    How can I do it in java?
    I was thinking of casting the variable to integer and if true then the value
    is integer, if false then string. I think this is not a good way of doing it?
    any idea. thanks.

    This is what i did, and its not showing any error at the moment.
    Is the following right way to do it
    > if(somevariable.getClass().toString()).equals("java.lang.String")){
    }else{
    That's not the way to do it because your 'somevariable' is a String.
    Either check every character in that string for being a digit or not, or
    let the Integer class do the dirty work:try {
       int theValue= Integer.parseInt(somevariable);
       // yes, it succeeded, so it was an int ...
    catch (NumberFormatException nfe) {
       // nope, the string didn't represent an integer number
    }kind regards,
    Jos

  • Where can I find my registration number?

    I purchased iWork 09 on disks, not through the app store, shortly after it was issued. I've updated to version 5.2 (in Pages) and would like to get the most recent update; but I cannot find my original disks with the registration number.  Is there another way for me to find that number?
    thanks for any help,
    Jim

    I did get a number with the disc, but it has been more than three years and I've misplaced the disk. I'm sure I registered the software because I got the previous update. My question was whether I can find ithe registration number anywhere within the software or on the Apple website or wherever.  And yes you're right the current version of Pages is 4.2 .
    thanks,
    Jim

  • Where can I find my serial number

    I keep getting asked to activate a licence for Acrobat Pro XI that I already purchased and it asks me for a serial number that I do not know or have record of?  Very frustrating.  Normally I just click on a PDF and it launches and if I want to use Acrobat Pro XI I click on the icon in my doc.

    Hi peterh85975107,
    I checked your account to see if I could tell whether you had an Acrobat subscription or perpetual version, but I don't see any record of either using the email address that you use to post here in the forums.
    So, if you have a perpetual version (you bought Acrobat outright), then please see this document: Find your serial number quickly.
    If you have a subscription version, then no serial number is required, and you "activate" your software by logging in with the Adobe ID/email address and password that you used to sign up.
    If you're still having trouble, please Contact Customer Care.
    Best,
    Sara

  • I downloaded a trial that has now expired and I can't find a serial number to sign up. How can I find this?

    I downloaded a 30 day trial of illustrator for work that has now expired. I cannot find a serial number to change to a paid membership and do not have an email with one. Please advise?

    Sign out and Sign in to Creative Cloud app and then launch Illustrator and check.
    https://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Still face issue , ??
    Let me know whether you are using Windows computer or Mac?

  • Finding my license number

    How do I find the license of my Purchased, downloaded Bundle if I can't find where I wrote it down, and it is not showing on Adobe Account online?

    Hi Jim/(Anyone who lost their serial number),
       When you say you have purchased Download Order, you need to first confirm whether you have purchased the product via Adobe online OR from a reseller? Few resellers do provide download links too. If you have purchased the product on Adobe online then,
    1. Confirm the email address which you have used to place the Order. (You may have sometimes used your Old/different email address to place the Order)
    2. Confirm whether you have purchased a Retail version Or a Volume Licensing Orders.
    If you have purchased Retail version over adobe online,:
        a. Then login to adobe.com and navigate to "My Adobe" > "My Orders". You will see the Order dates. Click on the date on which you have placed the Order and there you will find the serial number as well as the Download link.
         b. If you have registered it under your Adobe account, then navigate to "My Adobe" > "My Products".
    If it is a Volume Licensing Order:
        a. Navigate to licensing.adobe.com, enter your credentials and click on "Licences" > Retrieve the serial number. Select the Deploy-to ID or End-User ID which is used to place the Order and click on Search. You should now see the serial numbers.
    Lastly, if you have purchased the Download Order from a Reseller, you usually might have their Login account. Login to their account and you may find the serial number. You can also contact the reseller from where you have purchased it.
    If these suggestions doesn't work, then contact Adobe Chat support/Phone who will help you on this. You may need to send the Proof of purchase if purchased from a Reseller..

  • Finding if a number is prime

    hello,
    Does anyone have codes snippets that can find if a number is a Prime or not?
    I'll be glad to have such code.
    Regards,
    Socx

    How fast does it run. There are many many faster ways to do this.....depending on the range of numbers you're working on....but here's a simple way to do it. This is more of a number theory question, not a java question.
    public static void main(String[] args)
            long number = 465464623;
            long result = isPrime( number );
            System.out.println( result != -1 ? "Is not prime....divisible by "
                + result : "PRIZIME" );
        private static long isPrime(long x)
            for ( int i = 2; i < Math.sqrt( x ); i++ )
                if ( x % i == 0 )
                    return i;
            return -1;
        }

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • Finding out Idoc number of the Invoice List

    Hi!
    how to find out Idoc numberr if I have number of Invoice List?
    For example, I have number of Invoice List for checking it in tcode VF22, but how to get Idoc number of the Invoice List in order to check it in WE02?
    Will reward,
    Mindaugas

    Hi,
         Use NAST with the invoice to get the latest record for that output type..
    use the table CMFP to get the IDOC number..The combination is
    NAST-CMFPNR = CMFP-NR..
    Then in the column CMFP-MSGV1 you can find the idoc number
    <b>Reward points</b>
    Regards

  • How do I find the serial number of my stolen macbook?

    I recently had stolen my macbook, macbook pro and iphone....and other than retrieving the MEID number of my Iphone, I did not have the serial numbers of the macbooks listed anywhere and I also bought these used online so I did not have a receipt with the serial number either.   I did not have an icloud, any retrieving software, nor itunes.  I did though bring them into the apple store after buying them and had them cleared for my own use and also listed them as devices on my apple account.  After discussing this matter with apple and checking my devices, it came to our attention that my device list had fell off my account due to the person who stole them had cleared them with apple, which automatically puts the macbook devices onto a new account.  Does anyone have any ideas?  I need the serial numbers for the police report.                                            

    How to find the serial number of your Apple hardware product

  • I'm locked out of my IPhone 3 and I cannot find the serial number

    This wouldn't be an issue if I could find the serial number. However, since this is an IPhone 3, I don't know if the serial code is on the outside of the device. I set my password, then when I tried it, it wouldn't let me in. I checked on the back of the device to find the serial number, however, it doesn't seem to be printed.
    It says: 'Designed by Apple in California. Assembled in China. Model Number: ***** FCC ID: ********* IC ID: ****-******'
    I do not know if the FCC ID or the IC ID is the serial number or not. I need the serial number to get service, and I need service to get the serial number. That's my issue.
    My computer, for whatever reason, also cannot download ITunes. Although I know there is a way to do 'recovery mode' with connecting the phone to ITunes, I'm having trouble doing that.

    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

Maybe you are looking for

  • How do I connect an existing Behance account to a new Adobe ID account ?

    Hello, I am an existing Behance account holder. I recently started a new job, where they give me access to a personal Macbook & Adobe cc account. I want to link my existing Behance profile to my new Adobe CC account. Is this even possible - If so how

  • How do I remove an itunes account from an i5

    I am in charge of setting up my companies phone.  I have connected several i devices to my computer and have ended up with several itunes profiles on my computer.  I recently transferred some files to a new i5 for someone.  I was never prompted to se

  • Ipod won't connect to windows or iTunes

    I got an iPod touch 5g, and it won't connect to the computer at all nor in iTunes, this happened to me after I updated iTunes, before it worked fine. Please help and tnx. I'm running windows 7.

  • White screen and black outlines for the icons!!!

    Please help, My daughters phone has been going wrong for a couple of wks. i have had error 507 messages and have had to force the reboot twice. But today its something new... all the icons and applications are now just a black outline on a white scre

  • VERTEX RFC server not available

    Hi we are using vertex on crm 6. we have ocnfigured vertex and when i m creating order, im getting error VERTEX RFC server not available.. in crmd_order tcode how to debug the vertex RFC calls? where can this error be raised. how to debug?? is there