Binary addition,subtraction and modulus...plz help urgent

plz help me on this query...
i need to pass two 512 bit number as string,then convert them to binary and
then perform binary addition,subtraction,modulus operations on those two numbers.finally convert result to integer.
i designed a code which doesnt work correct.it is:
* To change this template, choose Tools | Templates
* and open the template in the editor.
package bytearrayopeations;
import java.math.BigInteger;   
* @author sheetalb
public class binaryadding {
    public static void main(String[] args) {
        BigInteger a = new BigInteger("123456");
        BigInteger b = new BigInteger("5121");
        String bb1 = a.toString(2);
        String bb2 = b.toString(2);
        String ss1 = null;
        String ss2 = null;
        String result = "";
        String carry="0";
        System.out.println("first value=" +bb1);
        System.out.println("second value=" +bb2);
        int k=bb1.length();
        int h=bb2.length();
        System.out.println("length 1="+ k);
        System.out.println("length 2=" +h);
        int p=h-k;
        //System.out.println("difference=" +p);
        int q=k-h;
        //System.out.println("difference 2=" +q);
        if(h==k)
       else if(h>k)
            for(int i=0;i<p;i++)
                bb1="0"+bb1;
            System.out.println("new value of first=" +bb1);   
    else if(h<k)
        for(int i=0;i<q;i++)
            bb2="0"+bb2;
        System.out.println("new value of second=" +bb2);
        StringBuffer sb1=new StringBuffer(bb1);
     StringBuffer sb2=new StringBuffer(bb2);
        bb1=sb1.reverse().toString();
     bb2=sb2.reverse().toString();
        //System.out.println("rev. buffer1=" +bb1);
        //System.out.println("rev. buffer2=" +bb2);
        for(int i=0;i<bb1.length();i++)
            ss1=bb1.substring(i,i+1);
            ss2=bb2.substring(i,i+1);
          System.out.println("value1=" + ss1 + "    " + "value2=" + ss2);
          if (ss1.equals("0") && ss2.equals("0")) 
             if (carry.equals("0")) 
                 result+="0";
                    else
                        result+="1";
           else if (ss1.equals("1") && ss2.equals("1"))
            if (carry.equals("0")) 
                result+="0";
          carry="1";
          else
               result+="1";
               carry="1";
    else if (ss1.equals("0") && ss2.equals("1"))
                 if (carry.equals("0")) 
                     result+="1";
               carry="0";
                    else
                      result+="0";
                                carry="1";
           else if (ss1.equals("1") && ss2.equals("0"))
                 if (carry.equals("0")) 
                    result+="1";
                    carry="0";
               else
                            result+="0";
                            carry="1";
       System.out.println("sum=" +result + "         " + "carry" + carry);
                    result+=carry;
                    StringBuffer sb3=new StringBuffer(result);
                    result=sb3.reverse().toString();
                System.out.println("result is " +result); 
              System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
}plz provide me or email me if possible java coding for all three operations as soon.
[email protected]

One thread is enough. Continue here:[http://forums.sun.com/thread.jspa?threadID=5373720&messageID=10643157#10643157]

Similar Messages

  • Java program to perform binary addition,subtraction and modulus.

    i am a newbie to java and require ur urgent help plzzzz.
    i wanna perform binary addition,subtraction and modulus operation between two numbers of 512 bit without using java functions i.e by simple logics of control statements.i need to convert two 512 bit numbers passed as string into binary form, and then perform addition,subtraction and modulus operations on these two binary numbers and finally dipaly the result in decimal format.
    i think we may use full adder binary logic in this!!!
    please send me the java coding for these three operations as urgent as possible on my email.
    i would be highly obliged.
    thanks.
    sheetal.

    i have managed to make this code myself but i wanna learn the basics...so plz help me guyz...
    this is the code:
    package bytearrayopeations;
    import java.math.BigInteger;
    * @author sheetalb
    public class binaryadding {
    public static void main(String[] args) {
    BigInteger a = new BigInteger("123456");
    BigInteger b = new BigInteger("5121");
    String bb1 = a.toString(2);
    String bb2 = b.toString(2);
    String ss1 = null;
    String ss2 = null;
    String result = "";
    String carry="0";
    System.out.println("first value=" +bb1);
    System.out.println("second value=" +bb2);
    int k=bb1.length();
    int h=bb2.length();
    System.out.println("length 1="+ k);
    System.out.println("length 2=" +h);
    int p=h-k;
    //System.out.println("difference=" +p);
    int q=k-h;
    //System.out.println("difference 2=" +q);
    if(h==k)
    else if(h>k)
    for(int i=0;i<p;i++)
    bb1="0"+bb1;
    System.out.println("new value of first=" +bb1);   
    else if(h<k)
    for(int i=0;i<q;i++)
    bb2="0"+bb2;
    System.out.println("new value of second=" +bb2);
    StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
    bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
    //System.out.println("rev. buffer1=" +bb1);
    //System.out.println("rev. buffer2=" +bb2);
    for(int i=0;i<bb1.length();i++)
    ss1=bb1.substring(i,i+1);
    ss2=bb2.substring(i,i+1);
    System.out.println("value1=" + ss1 + " " + "value2=" + ss2);
    if (ss1.equals("0") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="0";
    else
    result+="1";
    else if (ss1.equals("1") && ss2.equals("1"))
    if (carry.equals("0"))
    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
    else if (ss1.equals("0") && ss2.equals("1"))
    if (carry.equals("0"))
         result+="1";
                   carry="0";
                        else
                        result+="0";
    carry="1";
    else if (ss1.equals("1") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="1";
    carry="0";
                   else
    result+="0";
    carry="1";
    System.out.println("sum=" result " " + "carry" + carry);
    result+=carry;
    StringBuffer sb3=new StringBuffer(result);
    result=sb3.reverse().toString();
    System.out.println("result is " +result); 
    System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    plz reply nw...

  • Binary addition,subtraction and modulo operations.

    Query:
    Take two 512 bit numbers passed as strings. don't use biginteger!
    convert them to binary without using parseInt or toString functions.! you may use char array and byte arrays.
    then add these two binary numbers using binary addition logic.
    display the result in decimal format back again.
    Is it possible to perform this operation like this!!if yes,then please tell how should i approach with my existing code.
    thanks.
    package bytearrayopeations;
    import java.math.BigInteger;   
    public class binaryadding {
        public static void main(String[] args) {
            BigInteger a = new BigInteger("123456");
            BigInteger b = new BigInteger("5121");
            String bb1 = a.toString(2);
            String bb2 = b.toString(2);
            String ss1 = null;
            String ss2 = null;
            String result = "";
            String carry="0";
            System.out.println("first value=" +bb1);
            System.out.println("second value=" +bb2);
            int k=bb1.length();
            int h=bb2.length();
            System.out.println("length 1="+ k);
            System.out.println("length 2=" +h);
            int p=h-k;
            //System.out.println("difference=" +p);
            int q=k-h;
            //System.out.println("difference 2=" +q);
            if(h==k)
           else if(h>k)
                for(int i=0;i<p;i++)
                    bb1="0"+bb1;
                System.out.println("new value of first=" +bb1);   
        else if(h<k)
            for(int i=0;i<q;i++)
                bb2="0"+bb2;
            System.out.println("new value of second=" +bb2);
            StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
            bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
            //System.out.println("rev. buffer1=" +bb1);
            //System.out.println("rev. buffer2=" +bb2);
            for(int i=0;i<bb1.length();i++)
                ss1=bb1.substring(i,i+1);
                ss2=bb2.substring(i,i+1);
              System.out.println("value1=" + ss1 + "    " + "value2=" + ss2);
              if (ss1.equals("0") && ss2.equals("0")) 
                 if (carry.equals("0")) 
                     result+="0";
                        else
                            result+="1";
               else if (ss1.equals("1") && ss2.equals("1"))
                if (carry.equals("0")) 
                    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
        else if (ss1.equals("0") && ss2.equals("1"))
                     if (carry.equals("0")) 
                         result+="1";
                   carry="0";
                        else
                          result+="0";
                                    carry="1";
               else if (ss1.equals("1") && ss2.equals("0"))
                     if (carry.equals("0")) 
                        result+="1";
                        carry=" 0";
                   else
                                result+="0";
                                carry="1";
           System.out.println("sum=" +result + "         " + "carry" + carry);
                        result+=carry;
                        StringBuffer sb3=new StringBuffer(result);
                        result=sb3.reverse().toString();
                    System.out.println("result is " +result); 
                  System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    }

    bansal.s, you have been warned. I am now blocking your account for a month.

  • About XML/XSL and Javascript : Plz Help Urgent

    Hai , I am developing one module which invloves XML database ,XSL and Javascript.
    In this I want to transform XML data to XHTML form using XSLT .,
    I have done this ,(using xsl templates ,In my form two radio buttons one dropdown box and two text boxes are there .).
    All the information which ever is displayed coming from XML .,
    But I want to validate this elements (which are in xslt ,ie checking text box is empty or not ..)
    Where I have to add script in XSL .,
    Plz give simple example on this ,
    I am sending this code ,plz have a look at this ,,
    XML -----+ ---XSLT---------------> XHTML(HTML) (where validation is required)*
    Hotels.xml
    ==============>
    <Services>
         <Service>
              <Hotels type="radio" title="Hotel" groupname="service" default="true"/>
              <HotelsFlights type="radio" title="Flight+Hotel" groupname="service"/>
         </Service>
         <Hotels>
              <Destination title_d="Destination :">          
                   <DestinationPlace type="OPTION" id="" title_d="Select Destination" value_d="Select Destination" defalut="true"/>
                   <DestinationPlace type="OPTION" id="" title_d="Aruba" value_d="Aruba" />
              </Destination>
              <HotelChoice title_hc="Hotels :">
                   <choice type="OPTION" id=" " title_h="AmsterDam Manor Beach" value_h="AmsterDam Manor Beach"/>
                   <choice type="OPTION" id=" " title_h="Wyndham Aruba Beach" value_h="Wyndham Aruba Beach"/>
              </HotelChoice>
              <Dates>
                   <CheckIn type="INPUT" title_dt="Check In :" id="chkin" name="chkin" size_dt="10" maxlength="10">mm/dd/yyyy</CheckIn>
                   <CheckOut type="INPUT" title_dt="Check Out :" name="chkout" size_dt="10" maxlength="10">mm/dd/yyyy</CheckOut>
              </Dates>
              <RoomNos title="No.of Rooms :">
                   <room type="OPTION" id="" titl="1" valu="1"/>
                   <room type="OPTION" id="" titl="1" valu="2"/>
                   <room type="OPTION" id="" titl="1" valu="3"/>
              </RoomNos>
              <Submit tile="Search :" type="submit" id="search" value="Search"/>
         </Hotels>
    </Services>
    Hotels.xsl-
    ------------->
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
         <html>
         <head>
         <script language="javascript">
         function RadioFunc()
              var result;
              alert(" Radio ");
              result +=document.write("<TABLE >");
              result +=document.write("<TR><TD>"+'Praveen'+"</TD></TR>");
              result +=document.write("</TABLE>");
              alert("Result "+result);
         function validateForm()
              alert("Before validating");
              var chkindate= document.getElementById(chkin).value;
              alert(chkindate);
         </script>
         </head>
         </html>
         <xsl:apply-templates/>
    <xsl:if test="@value_d='Select Destination'">
                        alert("Please Enter Destination");
              </xsl:if>
    </xsl:template>
    <xsl:template match="Services" >
         <form name="myform" action="two.jsp" method="get" >
              <table bgcolor="lightgreen" width="350" height="200" border="1" >
              <tr><td><xsl:apply-templates/></td></tr>
              </table>
         </form>
    </xsl:template>
    <xsl:template match="Service">
         <table border="0" align="center" valign="top"><tr>
         <xsl:for-each select="*">
              <td align="left"><xsl:value-of select="@title"/></td>
              <td align="center">
              <input type="{@type}" onClick="RadioFunc()">
                   <xsl:attribute name="Name">
                        <xsl:value-of select="@groupname"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
                   <xsl:if test="@default='true'">
                        <xsl:attribute name="checked"/>
                   </xsl:if>
              </input>
              </td>
         </xsl:for-each>
         </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/Destination">
    <xsl:value-of select="@title_d"/>
         <SELECT id="dest" name="dest">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_d"/>
              </xsl:element>
         </xsl:for-each>     
         </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/HotelChoice">
    <xsl:value-of select="@title_hc"/>
    <SELECT id="hcid" name="hcid">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_h"/>
              </xsl:element>
         </xsl:for-each>
    </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/Dates">
    <table><tr>
    <xsl:for-each select="*">
              <td>
                   <xsl:value-of select="@title_dt"/>
              </td>
              <td>
              <xsl:element name="{@type}" >
                   <xsl:attribute name="size">
                        <xsl:value-of select="@size_dt"/>
                   </xsl:attribute>
                   <xsl:attribute name="maxlength">
                        <xsl:value-of select="@maxlength"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="text()"/>
                   </xsl:attribute>
              </xsl:element>
              </td>
    </xsl:for-each>
    </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/RoomNos">
    <table align="center"><th>Travellers</th>
    <tr><td><xsl:value-of select="@title"/></td>
    <td><SELECT id="rooms" name="rooms">
              <xsl:for-each select="*">
                   <xsl:element name="{@type}">
                        <xsl:value-of select="@valu"/>
                   </xsl:element>
              </xsl:for-each>     
    </SELECT>
    </td></tr>
         </table>
    </xsl:template>
    <xsl:template match="Hotels/Submit">
         <table align="center" border="0" >
         <tr>
         <td align="center">
              <input type="{@type}" onclick="validateForm();">
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
              </input>
         </td>
         </tr>
         </table>
    </xsl:template>
    </xsl:stylesheet>
    ======================================================

    Hi
    This is not the forum for this type of question ...sorry. Try the XMLDB forum, XML DB
    Tim

  • Well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    If you set the phone to erase on 10 failed passcodes - then just keep typing and it will wipe itself. 
    Otherwise I believe you can set it to recovery mode and restore etc.. via iTunes...  There is no easy way as the passcode is designed to protect the phone exactly against what you are trying to do now...
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/
    Others may have some additional tips !
    Sorry for the probs you are having...
    Regs Neil

  • If any function like greatest or least for addition,subtraction and multi?

    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?

    Hi,
    794244 wrote:
    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?Do you mean something like
    FUNCTION_X (a, b, c, d, ...)that would return the sum of all those numbers?
    No, not that I know of. If there were, it would be harder to use than
    a + b + c + d + ...The first is a comma-delimited list of columns, with a function name and parentheses.
    The second is a +-sign delimited list, with nothing else needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sir i have iphone 4s i brought second hand and i dont no icloud id and password plz help me

    sir, i have apple iphone 4s i brought second hand and i dont no icloud id and password plz help me.
    <Personal Information Edited by Host>

    It's a bad idea to post your IMEI number and I've asked the Hosts to remove it.
    If the phone had been locked by the previous owner only he can unlock it, either by providing you with the passcode or by removing it from his list of devices.
    If you are unable to contact the previous owner and get him to do this then I'm afraid your phone cannot be unlocked and is useless; there is no way round this.

  • Did all the resets and still wifi connects and disconnects , plz help

    did all the resets and still wifi connects and disconnects , plz help

    I upgraded Apple TV late last week. Last weekend I rented a couple of movies from Apple TV. I watched one immediately, and was going to watch the other one the next day. On Sunday I opened up Apple TV to watch the film, and..... NOTHING THERE. I could see 'purchased movies', 'top movies', etc., at the top of the bar, but no mention of rentals. Even the film I'd watched (which obviously you can see for 48 hours) had disappeared into a black hole in Apple TV. I have been charged for these movie, and sent in a complaint.
    My airplay seemed to be fine, but.... last night, my computer was not seeing an Apple TV or showing an airplay sing, so I restarted and the Apple TV and airplay sign returned. If I chose to watch the film on the computer it started up immediately, if I chose airplay, I got the first image of the film and the loading sign going on and on (round and round) forever. The film never started. I restarted my Apple TV, the same. I restarted the computer, the same. I tried with various programmes and no go.
    iMore has the following suggestion. I am not sure if this will help. It sounds a PIA, but if I can't get airplay to work, I might try it: http://www.imore.com/how-restore-2nd-or-3rd-generation-apple-tv-back-factory-set tings-itunes

  • Hello  I upgraed my iphone to ios 7 but its dosent work like app stor dosent install any brogram or update programs and its slow and stuck plz help me

    Hello
    I upgraed my iphone to ios 7 but its dosent work like app stor dosent install any brogram or update programs and its slow and stuck plz help me

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

  • Ip to location ......plz help urgent

    Hi all,
    i need a code which finds out/tracks IP address of a machine and based on that it helps to find out which country it is.i mean based on specific IP ,i get to know country and on that basis Locale can be set.Ultimately when the page renders it shows that county language.
    Plz help me out to solve out this issue and its urgent.
    Any materials(tutorials,sample code) would be quite helpful for me.
    Thanks in advance.

    Hi Frank
    Thanks for ur reply.
    Yes its a web application but as i had described above i need to set locale/multilingual on the basis of users ip.ip will tell the location and after that locale can be set.
    Plz tell me desired sol.
    Thnks

  • Tabs in JSP- Plz help-Urgent

    I want to have 3 tabs say Tab1, tab2, tab3 in my page and based on which tab is clicked , I have to display the contents of a table.
    Ex: if Tab1 is clicked, i have to display contents of Table1 and tab2,table2 and so ...
    Plz help with how to link the click on the tab to calling of the JSP file which retrives and displays the data???....
    Its urgent ;plz help

    dnamiot ,
    I'm also looking for similar funcitonality.
    the URL mentioned in your reply is not free ware. you know, it is tough to convince management to buy a software for the project even it is $1.
    So if you know any taglibrary which is free ware , which generates maximum of 4 tabs and dynamic in nature, please let me know.
    Thanks in advance
    tekbond

  • Username and password- Need help urgently!

    Hi
    1) First of all, i have received an email stating that my account under Removed personal information to comply withCommunity GuidelinesandTerms and Conditions of Use.
    is being banned as there is multiple obsence post. I need to clarify that i have never used my account to post in BBM forum before. Even if i did, is when i need help urgently for my BBM application. Currently i am holding 4 bbms now. Have never came across this issue. Pls check and advise
    2) I urgently need to setup my email accounts. But this time round, when i logged in, they required for my email id and password. And yes my email id is Removed personal information to comply withCommunity GuidelinesandTerms and Conditions of Use. all the while for the past 4 years. I am unable to log in. I tried all kinds of password but unable to log into my mobile settings
    Verfiy Blackberry ID
    This application requires u to verify ur blackberry id to continue.
    blackberry ID username:
    Removed personal information to comply withCommunity GuidelinesandTerms and Conditions of Use.
    password:
    I went to the forget password option, unfortunately as i have never retrieved my password before, i am unable to remember the security question as i did not use it for the past 4 years.
    Pls advise.
    Urgent and thanks

    Hi,
    I have been trying this technique for the past 4 days. It doesnt work no matter how i change the password at the link that u gave me. Even though it's being reset accordingly, i am still unable to log in the password at my mobile. i am 100% sure that i have entered the correct password at my mobile. ( verify blackberry id) . I want to setup new email accounts under "setup" . Upon me clicking " email accounts", it prompt for the one key password. I have never faced this issue before. I am very very sure that my password is correct. Pls advise as i need to add email accounts. Other programs are working fine without any password required being prompt. ie. blackberry world
    This is very very urgent to be resolved. Pls help.

  • Error while trying to synchronize Audio and MIDI. plz help i cant hear anything

    plz help me i cant hear nothing and its says: Error while trying to synchronize Audio and MIDI.
    Sample Rate 38536 recognized.
    Check conflict between Logic Pro X and external device. ????????   PLZ HELP

    It means you are overtaxing the CPU, likely with just one (3rd party-)software instrument plugin. Ignore the word "external", in this context it often means "3rd party plugin".
    So what synth is it? Since you're Dutch, it's probably one of the trancy dancy synths, such as Albino, Diva, Sylenth or Massive... I could be wrong though...
    The best way to avoid this message is to Freeze the track with the guilty synner - however, a frozen track cannot be edited, so if that is a problem, you will have to make the synth itself run lighter, which can be achieved by turning of internal effects that are ON the synth itself, especially reverb.
    http://help.apple.com/logicpro/mac/10/#lgcpf1cbfd51

  • MM to FI plz Help Urgent

    Hi,
    I want to see Purchase order wise report. The report should show PO wise payment in FI.
    PO field is EBLEN and i am unable to find its link to BSIK or BSAK. The reason is that they are not maintaining EBELN in both these table. I tried on LIFNR but LIFNR is for Vendor only and the requirement is for EBELN means in PO.
    Please anyone help me out in this regard and also plz tell me any detail tables hierarchy of all modules.
    Thanks in advance too all the people and gurus.
    Usman Malik

    Hi,
    Check the table BSEG for PO.
    Regards,
    Sridevi
    <i>* Pls. assign points, if useful</i>

  • Sto scenario plz help urgent

    Under company code 7245 I m doing stock transfer from 7245 plant to 7246 plant
    supplying plant 7245 recieving plant 7246 ccode 7245
    n sales area in supplying plant is 7245-7a-7a
    now in this sales area ive created a customer 7246 to represent recieving plant
    on the oher side in 7246 ive created vendor 7245
    now in
    SPROMMPO-SET UP STOSHIPPING DATA
    for plant 7246 ive given cust num plant:7246 sales area 72457a7a
    and
    for plant 7245 ive kept cust num plant blank
    and sales area 72457a7a
    n shipping point det in 7246 cust mast shipping cond is 7a
    loading group in material is 7245 for plant 7245
    and for material in 7246 the lopading group is 7246
    the shipping pt det is as follows
    7a-724572457245(shipping cond-loading group-plant-shipping point)
    now when i m creating po in me21n
    i m getting warning message
    ship point 7245 not allowed for ship cond 7a loading group 7245 plant 7245
    its only a warning
    but it is picking up 7245 as shipping point
    now vl10g is also fine
    i m getting the delivery doc number
    n vl02n and migo is fine
    now
    my doubt is
    wat r the settings so that i can do both ways
    see with the above setting i m able to send stock frm 7245 plant to 7246
    but i m not able to configure stock transfer from 7246 to 7245
    mainly i wan settings @ SPROMMPO-SET UP STOSHIPPING DATA
    i ve created customer 7245 in 7246-7a-7a
    and vendor 7245 in purch org 7246
    cant be both settings be standard
    so that stock can be sent any ways
    because both plants belong to same ccode and stock can be ransfered both ways,is this scenario possible??/
    or sto is only one way ??
    plz clarify
    i ve already spent a lot of time on this plz help me out.
    anil
    Edited by: anil singh on Mar 12, 2008 5:37 PM

    Hi,
    Create the customer in the delivering Sales Area/Plant/CC and assign this customer to the recieving plant in the MM> purchasing> STO> Setup STO> Shipping data for plants.
    Assign the delivering plant's salea area also here. So you need to create a customer in 7245 and assigne it in 7246.
    Create the vendor in the purchase organisation of the receiving plant and assgin the delivering plant in the vendor master. Maintain the document types correctly and define whether you require one step or two step procedure.
    hope this will help.
    Prase

Maybe you are looking for

  • Adobe flash not working on internet explorer

    i have installed and re-installed over and over again, adobe flash seems to download fine, but doesn't work...works on google chrome, but hate google chrome...the funny thing is that i've had adobe flash all along on internet explorer, and one day it

  • Stop alt from shifting focus to the menu?

    Hi, Every time I press Alt the focus shifts to the menu bar, just as it does with other windows programs. This means I have to escape the menu every time I zoom, which is time consuming and extremely irritating. Does anyone know how to stop this beha

  • Resource Adaptor with eDirectory Server

    Hi All, I am facing probme at the time of resource adaptor configuration with eDirectory Server on SIM. Did any one tired this configuration Here's the error "Error while preparing to examine resource NDS_Server_Adapter:<br />com.waveset.util.WSAutho

  • Mac Mini shuts down without warning, doesn't want to re-boot again

    My mini is only 3 months old. I upgraded to 2 gigs of Ram when I got it (saved about a hundred bucks). It seems to be overheating and shutting down, problem is it happens all the time. When I try to restart it, I must wait until it is cold to the tou

  • Filter Values

    I have an excel file which has 5000 records with negative and postive signs...How do I show only nagative values in one column and positive values in the other column using excel function...