Is Java Random Generator good?

I need to do a simulation for a research project which requires more than 10,000 random numbers that follow normal distribution. I am wondering if Java is good enough. Will it recycle data as EXCEL generator does? Please...anyone help?

I don't know about the true randomness of the
numbers, but Random's nextGaussian always uses a mean
of 0.0 and a std dev of 1.0, so if that's not what
you need, then you'll probably need a third party
library anyway.Or, change it himself:
http://en.wikipedia.org/wiki/Normal_distribution
From the "Standardizing normal random variables" section of that:
If "Z" is a standard normal variable (as nextGaussian gives), then to get a variable X with mean M and standard deviation s, use:
X = s Z + M
X =  (s * rand.nextGaussian()) +  M(I changed the variables Wiki used (mu->M and sigma->s) because I don't know the HTML codes for them.)

Similar Messages

  • How to use the random generator in java

    hey peeps, this is the class in which i am trying to implement the random generator in;
    public class Matchlist
        private studentdetails sd = new studentdetails();
        /** matchList StringBuilder stores the match list in progress */
        private StringBuilder matchList = new StringBuilder();
        private int loop = 0;
        private int matches = 0;
        public Matchlist()
            sd.createstudentdetails();
        /** Method to create the actual match list, returns the list as a string */
        public String CreateMatch()
            int g;
            int y;
                for (g = 0; g < 4; g++)//g = game
                    for (y = 17; y > -1; y--)//y = green house
                        /** Check to see if the game is empty */
                        if (sd.getgh(y).getGame(g).equalsIgnoreCase(""))
                            for (int x = 0; x < 18; x++) //x = yellow house
                                if (sd.getyh(x).getGame(g).equalsIgnoreCase(""))
                                    if (sd.getgh(y).getC_lass() != sd.getyh(x).getC_lass())
                                        /** Check to see if the person has played the other person */
                                        if (sd.getgh(y).checkPlayed(sd.getyh(x).getName()) == false)
                                            /** Set the game to the name of the opponent played */
                                            sd.getyh(x).changeGame(g, sd.getgh(y).getName());
                                            sd.getgh(y).changeGame(g, sd.getyh(x).getName());
                                            /** Build the match list step by step using append with \n at the end to create a new line */
                                            matchList.append(sd.getyh(x).getName() + " vs " + sd.getgh(y).getName() + "\n");
                                            matches++;
                                            break;
                /** Convert the stringbuilder into an actual string, then return it */
                String completeMatchList = matchList.toString();
                System.out.println(matches);
                for (int i = 0; i <18; i++)
                    sd.getyh(i).getEmptyMatches();
                    sd.getgh(i).getEmptyMatches();
                return completeMatchList;
        }what i dont understand is how to implement it to pick my matches at random using the http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html java tutorials from here
    regards

    How to use Random ?
    First you open API then you read it, then you use it.
    You mention you try to use it but i just see a horrible nested for for for if if if loop.
    Restructure code and question and maybe it makes more sense.
    Edited by: pgeuens on 10-mrt-2008 22:58

  • Period of Java's random generator

    Hi.
    I am trying to find out how long period the java generator has. I havent been able to find this info anywhere, even though I searched paper indexes, google, java.sun etc.
    It looks like the random generator uses 2^48 for modulus. And I read somewhere that the multiplier is 0x5DEECE66DL, but this info is unsure. I don't know the increment factor either. With this info it would be possible to calculate the period, if it is not given.
    I would appreciate any information about this.
    Espen Sigvartsen
    [email protected]

    Have you checked out the source code for Random? It shows some of values you mention. Below is a snp of the source code. You should check it out it may provide some of the anwsers you are looking for...
        static final long serialVersionUID = 3905348978240129619L;
        private final static long multiplier = 0x5DEECE66DL;
        private final static long addend = 0xBL;
        private final static long mask = (1L << 48) - 1;
        synchronized public void setSeed(long seed) {
            this.seed = (seed ^ multiplier) & mask;
          haveNextNextGaussian = false;
        synchronized protected int next(int bits) {
            long nextseed = (seed * multiplier + addend) & mask;
            seed = nextseed;
            return (int)(nextseed >>> (48 - bits));

  • IMessage interface Comp Controller (JAVA file) generated incompletely

    Hi Experts,
    I am doing a web dynpro java component, it has two views A & B (Comp view)
    I have rebuild the DC but not yet deployed it so no class files yet
    When i checked on the java code of my component controller it implements the IMessage interface, the corresponding package is imported, yet i can not call any values saying "<VALUE> can not be resolved"
    when i checked on the /wdp folder the java file for the IMessage<CompControllerName> does not contain the values, which explains the case above saying value can not be resolved.
    My question is why was this java file generated incompletely (without the values)?
    As i understand this java file is automatically generated by the WD code generator.
    Do i need to define the values manually in the file (by editing it),  or do i specify it graphically?
    Below SHOULD be the complete code generated::
    // This file has been generated by the Web Dynpro Code Generator
    // DON'T MODIFY!!! CHANGES WILL BE LOST WHENEVER THE FILE GETS GENERATED AGAIN
    // $JL-GENERATED-SOURCE$
    package com.ides.soa.cmp.ssc.ui.goodsmovementcomp.wdp;
    * This interface encapsulates all texts / messages for this component.
    * The message constants of type IWDMessage can be used in
    * conjunction with the IWDMessageManager.reportMessage method.
    * All constants can be used in conjunction with IWDTextAccessor.
    @SuppressWarnings("all")
    public interface IMessageGoodsMovementComp {
       * ErrorMessage <code>"Enter a valid {0} to proceed."</code> using
       * key "INVALID_INPUT".
      public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage INVALID__INPUT = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "INVALID_INPUT", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
       * ErrorMessage <code>"Invalid input for goods movement"</code> using
       * key "MISSING_GOODS_INPUT".
      public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage MISSING__GOODS__INPUT = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "MISSING_GOODS_INPUT", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
       * ErrorMessage <code>"The response from the service {0} is null"</code> using
       * key "NULL_RESPONSE".
      public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage NULL__RESPONSE = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "NULL_RESPONSE", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
    I am trying to consume a webservice in wd java
    Thanks in advance

    What you will do in your controller is get a reference to the AM via the pageContext object.
    Like this:
    OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
    Use the am ref to call methods in the am.
    Kristofer Cruz

  • Writing a class using random generator in bluej

    Hello
    Im trying to write a class for a deck of cards. Im using a random generator but I dont know how to write the instance variable.
    I have to make 4 suits heart, club, spade, dimonds. and 13 for face value. I know how to random generate numbers. Like if I were making a slot machine to give me 3 numbers in a rage from 0-10. Thats just numbers. How do I random generate values of 1-13 and have it output a random suit? Also how do I make it say if its a jack king or queen? Do I need a constructor or how would I make the card with the face value of 13 suit heart and the card be a queen.
    before jumping down my throat about this being a homework assignment...yes it is but this step Im seeking help on there is no example for this type of generating.
    Thanks for any help
    Rewind

    Well, this is far from bullet-proof, but I think gets the basic idea across. This does sampling with replacement; if you wanted to do something like shuffle a deck of cards you'll need a smarter approach than this.
    import java.util.*;
    public class RandomCards {
      public static void main(String[] args) {
        Suit suit=new Suit();
        for (int i=0; i < 10; i++) {
          System.out.println(suit.nextSuit());
      private static class Suit {
        public static final String HEART="Heart";
        public static final String DIAMOND="Diamond";
        public static final String SPADE="Spade";
        public static final String CLUB="Club";
        private final String[] SUITS={ HEART, DIAMOND, SPADE, CLUB };
        private Gen suitGen=new Gen(0,3);
        public String nextSuit() {
          return SUITS[suitGen.nextInt()];
      private static class Gen {
        private int floor,ceiling;
        private Random rand;
        public Gen(int floor, int ceiling) {
          this.floor=floor;
          this.ceiling=ceiling;
          rand=new Random();
        public int nextInt() {
          return rand.nextInt(ceiling-floor)+floor;

  • Implementing the random generator

    Hello, i have posrted this question in the forum yesterday, and didnt get a reply, so i am reposting, hope i havent violated any of the forum rules? If i have can a mod tell me, delete it and ill try and find my old post
    The problem i am having is trying to implement thwe random generator in to my code, it hasnt been done correctly as its not printing out a list of matches based on the conditons, can someone tell me what is wrong? thanks
    import java.util.Random;
    public class Matchlist
        private studentdetails sd = new studentdetails();
        /** matchList StringBuilder stores the match list in progress */
        private StringBuilder matchList = new StringBuilder();
        private Random studentPicker = new Random();
        private int loop = 0;
        private int matches = 0;
        public Matchlist()
            sd.createstudentdetails();
        /** Method to create the actual match list, returns the list as a string */
        public String CreateMatch()
            int game;
            int yellowStudent = 0;
            int currentGame = 0;
            int matchAttempt = 0;
            while (matches < 70)
                makeMatches:
                for (game = 0; game < 4; game++)//g = game
                    for (int greenStudent = 0; greenStudent < 17; greenStudent++)
                        while (sd.getgh(greenStudent).getGame(game).equalsIgnoreCase(""))
                            matchAttempt++;
                            if (matchAttempt > 800)
                                sd = new studentdetails();
                                game = 0;
                                matches = 0;
                                break makeMatches;
                            yellowStudent = studentPicker.nextInt(17);
                            if (sd.getyh(yellowStudent).getGame(game).equalsIgnoreCase(""))
                                if (sd.getgh(greenStudent).getC_lass() != sd.getyh(yellowStudent).getC_lass())
                                    /** Check to see if the person has played the other person */
                                    if (sd.getgh(greenStudent).checkPlayed(sd.getyh(yellowStudent).getName()) == false)
                                        /** Set the game to the name of the opponent played */
                                        sd.getyh(yellowStudent).changeGame(game, sd.getgh(greenStudent).getName());
                                        sd.getgh(greenStudent).changeGame(game, sd.getyh(yellowStudent).getName());
                                        /** Build the match list step by step using append with \n at the end to create a new line */
                                        matchList.append(sd.getyh(yellowStudent).getName() + " vs " + sd.getgh(greenStudent).getName() + "\n");
                                        matches++;
                                        currentGame++;
                                        if (currentGame == 18)
                                            currentGame = 0;
                                            break;
            /** Convert the stringbuilder into an actual string, then return it */
            String completeMatchList = matchList.toString();
            System.out.println(matches);
            for (int i = 0; i < 18; i++)
                sd.getyh(i).getEmptyMatches();
                sd.getgh(i).getEmptyMatches();
            return completeMatchList;
        }

    Where is it occuring? What are the values of the variabels at that point? We can't even run your code to find out because it could be in the studentdetails class which you haven't posted. I suggest you use an IDE to set breakpoints and step through it in a debugger which will allow you to examine the state of the program a any given point and identify where the NPE is coming from.
    For Netbeans
    http://www.netbeans.org/kb/55/using-netbeans/debug.html
    For Eclipse
    http://pages.cs.wisc.edu/~cs302/resources/EclipseDebugTutorial/

  • Trying to build a random generator

    Hi, I am quite new to java and was wondering how do I complete building this program.
    The objective of the program is to randomly generate 100 2 digit odd integer values.
    I can generate the values but I don't know how to sieve only 100 odd integers.
    I am also supposed to find the maximum, minimum and average of all the numbers generated. I can find the average but can't seem to find maximum and minimum.
    I also need to point out the location of the maximum and minimum which I do not have a clue on how to do.
    Lastly, my program is suppose to loop when keyed in 'y' or 'Y'. I think I have done that.
    My codes are as below
    import java.io.*;
    class Question2
         public static void main (String args []) throws IOException
              BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
              Question2 theClass = new Question2();
              String strValue = "";
              int value = 0;
              int random [] = new int [100];
              int l= random.length;
              int max=0, min=0;
              int sum = 0;
              do {
              System.out.print("Enter 'Y' to Start / Begin ");
              strValue = stdin.readLine();
              if (strValue.equalsIgnoreCase("Y")){
              for(int i = 0; i<l ; i++)
                   if (i%10==0)
                        System.out.println("");
                   random[i] = randomNumber(value);//recall method to generate numbers
                   System.out.print(random[i] + " ");
                   int maximum = random;
                   max = findMaximum(maximum);//recall method for maximum
                   int minimum = random[i];
                   min = findMinimum(minimum);//recall method for minimum
                   sum = sum + random[i];
              else
              break;
              int average=0;
              average = findAverage(sum);//recall method for average
              System.out.println("\nThe average is " + average);
              System.out.println("The Maximum Number is " + max);
              System.out.println("The Minimum Number is " + min);
         }while (strValue.equalsIgnoreCase("Y"));     
              //random number generator
         public static int randomNumber (int value)
              int choose=0;
              choose = 10 + (int)(Math.random()*89);
              return choose;
         //maximum number generator
         public static int findMaximum(int maximum)
              int maxi = 0;
              if (maximum>maxi)
              maxi=maximum;
              return maxi;
         //average generator
         public static int findAverage (int sum)
              int avg = 0;
              avg = sum/100;
              return avg;
    //minimum generator
         public static int findMinimum(int minimum)
              int mini = 0;
              if (minimum<mini)
              mini = minimum;
              return mini;
    Thank you.

    Yes, but it guarantees that the process will be
    complete after 100 iterations. The discarding
    strategy will be completed in 200 iterations, on
    average, and there is no guarantee that once in a
    while, it will not take 1000 iterations.Pshaw. It's not that expensive to generate a new
    number. Heck, Random.nextInt(int) numbers are
    generated by throwing away numbers. There's a chance
    that it will never return.
    And if you are worried about that, I've got a server
    to sell you.
    ~CheersI myself (almost) always prefer clarity over performance. In this case,
    I think 2 * n + 1 produces both. You may say that I overdo it, for such
    a simple exercise. This I don't dispute. By the way, the way nextInt() is
    implemented is irrelevant, don't we like encapsulation anymore?

  • Randomly Generated Pixels

    Hi!
    I want to create a script that creates random (or near random) values for every single pixel of a document, similar to the "Add Noise..." filter, but with more control, such as "only b/w", "only grey", "all RGB" and "all RGB with alpha" and maybe even control over the probability distribution. Any idea how this could be tackled? Selecting every single pixel and applying a random color seems like something that would take a script hours...
    Why do I need this?
    I've started creating some filters in Pixel Bender (http://en.wikipedia.org/wiki/Adobe_Pixel_Bender). Since Pixel Bender doesn't really have any random generator (and workarounds are limited) I'm planning on passing on the random numbers through random pixel values. I'm well aware that this can only be used for filters in which Pixel Bender creates images from scratch, but that's the plan.
    Thanks!

    Understanding the details of the Add Noise filter is probably beyond the scope of just a short post.  Here is an approach to start learning what it does.
    - Take a 50% gray level and make it a Smart Object.
    -  Open up the historgram panel (should show a spike right at 50%)
    - Apply noise filter to Smart Object in monochrome building up from small percentages in small increments
    - You will notice that for this option above, you end up with a uniform probability function over the entire tonality spread at 50% applied for uniform distribution.
    There are a variety of ways to manipulate this function, through various blends.
    Please note a couple things
    1) I am using CS5 and though not documented anywhere that I have seen, the Noise Filter does work different than in CS4.  In CS4, if you run the same noise filter twice on two identical objects, my experience is that you get the identical bit for bit result ( a random pattern yet not independent of the next run of the filter).  Manipulating Probability Density Functions (PDFs) per my previous post requires that each run of the Noise Filter starts with a different "seed" so that the result is independent of the previous run.  CS5 does this where succesive runs will create an independent noise result.
    2) PS does not equally randomize R, G, and B.  There are ways to get around this yet wanted to give you a heads up.
    3) There are other ways to generate quick random patterns outside of PS and bring them in (using scripts).   You would need to understand the format of the Photoshop Raw file.  This type of file contains bytes with just the image pixel data.  These types of files are easy to create and then load into PS. From a script (or even faster call a Python script) create this file and then load it into PS as a Photoshop Raw format file and use as an overlay.  There is not question that this is faster than trying to manipulate individual PS pixesl through a script.
    4) Please not the under Color Settings there is an option called Dither.  If this is set, there are  times where PS adds nosie into the image (I leave mine turned off).  If is used in a number of places in PS other than what the documentation implies (more than just when moving between 8 bit color spaces)
    Good luck if you are going after making a plug-in.  I have never invested in that learning curve.  Good luck.

  • Random generator for given distribution function

    I need to write a random generator, not for normal distribution only but for any distribution function.
    That function can be a black-box distribution function, or that can be a table [ x | f(x) ].
    For those not familiar with this term, distribution function is f(x) that returns the posibility of that the radmon number is lesser than x. f(-inf) = 0, f(+inf) = 1, x > y => f(x) >= f(y).

    I don't have my stats text books with me, but Google is your friend! :-)
    This looks like what we coverd in stats class:
    http://www.mathworks.com/access/helpdesk/help/toolbox/stats/prob_di7.shtml
    >
    Inversion
    The inversion method works due to a fundamental theorem that relates the uniform distribution to other continuous distributions.
    If F is a continuous distribution with inverse F^-1, and U is a uniform random number, then F^-1(U) has distribution F.
    So, you can generate a random number from a distribution by applying the inverse function for that distribution to a uniform random number. Unfortunately, this approach is usually not the most efficient.
    How do you get a random number from a uniform distribution? Easy: with java.util.Random, or some other java math package (I like http://hoschek.home.cern.ch/hoschek/colt/index.htm).
    The first link details some other methods, as will most stats text books.

  • Random generator question

    I can't understand how to use Random generator when it requires minimum number and maxium number.
    import java.util.Random;
    public class Random
    public static void main(String[]args)
    Random generator = new Random();
    int num1;
    num1 = generator.nextInt(15) + 20;
    System.out.println("From 20 to 34: " +num1);
    num1 = generator.nextInt(20)-10;
    System.out.println("From -10 to 9: " +num1);
    }Can someone explain to me how the first Random generator is from 20 to 34 and the second Random genertor is rom -10 to 9?
    Edited by: CloneMe on May 31, 2009 1:06 PM

    CloneMe wrote:
    num1 = generator.nextInt(15) + 20;
    java.util.Random's nextInt() method generates a pseudo-random integer value that falls within 0 and the value supplied as the argument but not including that value.

  • Random generator

    Peeps, to the following match list how do i implent the random generator so that each match is picked at random but still checks the following conditions? help is desperatley needed, i tried using the guide
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html
    but to no avail - im REALLY stuck, thanks
    public class Matchlist
        private studentdetails sd = new studentdetails();
        /** matchList StringBuilder stores the match list in progress */
        private StringBuilder matchList = new StringBuilder();
        private int loop = 0;
        private int matches = 0;
        public Matchlist()
            sd.createstudentdetails();
        /** Method to create the actual match list, returns the list as a string */
        public String CreateMatch()
            int g;
            int y;
                for (g = 0; g < 4; g++)//g = game
                    for (y = 17; y > -1; y--)//y = green house
                        /** Check to see if the game is empty */
                        if (sd.getgh(y).getGame(g).equalsIgnoreCase(""))
                            for (int x = 0; x < 18; x++) //x = yellow house
                                if (sd.getyh(x).getGame(g).equalsIgnoreCase(""))
                                    if (sd.getgh(y).getC_lass() != sd.getyh(x).getC_lass())
                                        /** Check to see if the person has played the other person */
                                        if (sd.getgh(y).checkPlayed(sd.getyh(x).getName()) == false)
                                            /** Set the game to the name of the opponent played */
                                            sd.getyh(x).changeGame(g, sd.getgh(y).getName());
                                            sd.getgh(y).changeGame(g, sd.getyh(x).getName());
                                            /** Build the match list step by step using append with \n at the end to create a new line */
                                            matchList.append(sd.getyh(x).getName() + " vs " + sd.getgh(y).getName() + "\n");
                                            matches++;
                                            break;
                /** Convert the stringbuilder into an actual string, then return it */
                String completeMatchList = matchList.toString();
                System.out.println(matches);
                for (int i = 0; i <18; i++)
                    sd.getyh(i).getEmptyMatches();
                    sd.getgh(i).getEmptyMatches();
                return completeMatchList;
        }

    jermaindefoe wrote:
    lol, ok then, the code above is a match list generator that works on a set of conditions, the conditions dont need to be mentioned at the moment as that part of the code works, what does need to be mentioned though is the fact that in another class there is a student list, 2 lots of groups with 18 students each. what i want is to implement the random generator on my code so that players are picked at random and then the conditons are checked, if a match isnt found then another is picked randomly
    i just dont no how, i really would like some help if poss?Are you allowed to use java.util.Random?

  • The Java Random class

    Hi, everyone
    I have a question about the Random class
    The following class can choose number randomly. But sometimes it chooses a number for more than once. How do I make it choose the numbers randomly but have no repetition. Thank you very much!
    import java.util.*;
    public class CodeTest
      public static void main(String[]args)
       System.out.println("random number");
       CodeTest x = new CodeTest();
       x.randomNum();
        public void randomNum()
            Random generator = new Random();
            for (int i = 0; i < 10; i++)
                int randomNumber = generator.nextInt(10);
                System.out.println (randomNumber);
    }And what if I have 15 numbers and I just want to pick out ten of them randomly, again, no repetition.
    Thank you very much!
    Edited by: Terry001 on Apr 21, 2008 7:51 PM

    Can you give me some codes to demonstrate how to shuffle the Array[],please? And if I want to store the possible numbers in ArrayList, is there any difference?
    Thank you!
    Edited by: Terry001 on Apr 21, 2008 8:36 PM

  • How to create a new user in IDM 8.1 with random generated password?

    Hi, i want create a new user using a modified tabbed user fom that cannot ask for password and confirm password to the administrator but randomly generate a new password (only when the form is opened in user creation) according to password policy and display it on the form.
    I think it is possible because Reset User Password Form does it, but i don't know how put this kind og logic in an other form.
    thanks
    Marco

    If you want to generate a users password randomly then you could take a look at the com.waveset.provision.PasswordGenerator class inside the Identity Mgr REF kit. Here's an example:
    <Rule name='generateRandomPassword'>
           <Comments>generate a random password</Comments>
           <RuleArgument name='accountId' value='Configurator'>
             <Comments>accountId of the user</Comments>
             <String>Configurator</String>
           </RuleArgument>
           <RunAsUser>
             <ObjectRef type='User' id='#ID#Configurator' name='Configurator'/>
           </RunAsUser>
           <block trace='true'>
             <defvar name='session'>
               <or>
                 <ref>context</ref>
                 <ref>display.session</ref>
               </or>
             </defvar>
             <defvar name='wsuser'>
               <invoke name='getObject' class='com.waveset.ui.FormUtil'>
                 <ref>session</ref>
                 <s>User</s>
                 <ref>accountId</ref>
               </invoke>
             </defvar>
              <defvar name='pwgenerator'>
               <new class='com.waveset.provision.PasswordGenerator'>
                 <ref>session</ref>
               </new>
             </defvar>
             <invoke name='generatePassword'>
               <ref>pwgenerator</ref>
               <ref>wsuser</ref>
             </invoke>
           </block>
        </Rule> You'll want to take the password.password field and inside the Default event handler check to see if waveset.id is null, if it is then call the Rule above.
    HTH,
    Paul

  • BAPI_GOODSMVT_CREATE to generate Goods Receipts

    Hello Experts,
    Can some one help me with a sample abap program making use of the BAPI function BAPI_GOODSMVT_CREATE to generate Goods Receipts for Purchase Order for relevant data stored in an internal table .
    what are the fields of the internal table i will need to populate and from which tables am i to fetch the relavent data.
    Awaiting some help .
    Thanks,

    Hi,
      Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    Regards
    Kiran Sure

  • Generate Goods Receipt from PO IDoc

    Hi Gurus
    Please find my following requirement:
    1. Legacy system generates data. Using PORDCR idoc we create Purchase orders in SAP.
    2. After creating this PO, we need to generate Goods Receipts based on the data in the created IDoc.
    To create PO we have IDOC PORDCR. This IDOC just creates the PO but please tell me how to generate GRs from this PO.
    Do I need to enhance this IDOC function Module? Or, is there any IDOC already available to create GRs as well?
    Please throw some light on this.
    Please help.
    Thanks in advance.
    Skysen.

    Hi
    Did you try to delete the user ? Did you get any error message?
    Note 1148837 - SRM user cannot be deleted
    When trying to delete an SRM user the system will check if there are still
    related SRM documents in the system. If there are active documents in the
    system the deletion is not possible. This is the correct system behaviour.
    But even if all related SRM documents are archived the deletion is
    sometimes not possible, because there are residual entries in table
    CRMD_PARTNER linked to this user.
    More Terms
    User crmd_partner residual entries deletion active document
    Cause and Prerequisites
    Solution
    The attached report PARTNER_SET_DELETE will display in simulation mode all
    residual entries in table crmd_partner with invalid item or header links
    and in non simulation mode it will delete the corresponding crmd_partner
    entries.
    Header Data
    Release Status: Released for Customer
    Released on: 10.03.2008 11:54:37
    Priority: Correction with low priority
    Category: Help for error analysis
    Main Component SRM-EBP-PD Procurement Document Methods
    Additional Components:
    SRM-EBP-ADM-USR SRM User Administration
    Valid Releases
    Software Component Release From
    Release
    To Release and Following
    SRM_SERVER 500 500 500
    SRM_SERVER 550 550 550
    Support Packages
    Support Packages Release Package Name
    SRM_SERVER 500 SAPKIBKS14
    SRM_SERVER 550 SAPKIBKT12
    Correction Instructions
    Ref note 550071 too..
    regards
    Muthu

Maybe you are looking for

  • How do I get my songs from Itunes match onto a new pc

    I have just downloaded itunes on a new PC and I want to match all my songs. I have Itunes match and icloud how can i get them onto the new device? Thanks Menna 84

  • Transferring all data from a mac to another

    I'm purchasing a new macbook soon, and i wish to move all of my current data on my macbook to the new one. Is it as simple as copying to an external, then moving it into the new macbook, or is there some weird complex process required?

  • ISE 1.1.3 en Cisco IOS SCEP

    Hi, I'm running Cisco ISE 1.1.3.124 and a Cisco IOS 2811 (c2800nm-spservicesk9-mz.150-1.M2.bin) which I configured the be a SCEP server. PKI Authentication and enrollment of a Cisco switch with this SCEP server is running well but BYOD clients enroll

  • Template allocation based on activity consumed by receiver object.

    Dear all, We want to allocate overhead from CTR/ActType to production orders, network activities and sales orders based on the amount of some other activity that has been booked on these receivers. When trying to create a template I cannot find the f

  • Export PDF copy/paste problem

    When We export PDF from pages document, text can be copied from PDF file like "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec condimentum congue bibendum." (screenshot: http://bit.ly/qqecp1) How can we change this and make people copy