Pls Help...VERY URGENT

Hi all,
I am unable to get a certain output from the code I have written: Below is the code.
public class project extends JApplet
     private JLabel promptLabel;
     private JTextField inputField,displayField;
     private JTextArea outputArea;
     public void init()
          Container container = getContentPane();
          String s1 = JOptionPane.showInputDialog("Enter a few alphabets");
          String.valueOf(s1);
          outputArea = new JTextArea();
          container.add(outputArea);
          outputArea.setText("The alphabets that you have entered are: "+s1);
I am suppose to get the output below:
The user will be prompted to enter a few alphabets.After the user clicks on 'OK' a java applet is suppose to popout with the alphabets the user has typed like in below. the user has to enter a message using the alphabets he gave(e.g abcd)
please enter a message using the alphabets entered:___________
a
b
c
d
I am unable to get the output.. I dunno how to go about getting the output above.. Another query, below is a Histogram class.
class Histogram
     int frequency[];
     String alphabet;
     Histogram(String alphabet)
          this.alphabet=alphabet;
          frequency=new int[alphabet.length()];
     void scan(String message)
          for(int i=0;i<message.length;i++)
               frequncy[alphabet.IndexOf(message.charAt(i))]++;
     void setfrequency(int frequency[])
          for(int i=0;i<alphabet.length;i++)
          this.frequency=frequency[i];
     double entropy()
          int total=0;
          double probablity;
          log2=Math.log(2.0);
          for(int i=0;i<alphabet.length;i++)
               total+=freguency[i];
If I want to get the frequency of each alphabet displayed in the applet, how do i go about implementing the setfrequency method in the java applet.. I hope some one can help me.. Pls it is very urgent.. Thanx

Hi Thanx, your code helped. I have got another question. How do i implement a method from another method class into the applet. say, i want to implemen set frequency from the below code into my applet you wrote above?
class Histogram
     int frequency[];
     String alphabet;
     Histogram(String alphabet)
          this.alphabet=alphabet;
          frequency=new int[alphabet.length()];
     void scan(String message)
          for(int i=0;i<message.length;i++)
               frequncy[alphabet.IndexOf(message.charAt(i))]++;
     void setfrequency(int frequency[])
          for(int i=0;i<alphabet.length;i++)
          this.frequency=frequency[i];
     double entropy()
          int total=0;
          double probablity;
          log2=Math.log(2.0);
          for(int i=0;i<alphabet.length;i++)
               total+=freguency[i];

Similar Messages

  • Sync Message Error. Pls help very urgent.

    Hi,
    When I ma sending sync messages in XI I am getting error
    <SAP:Code area="PERSIST">MSG_NOT_FOUND</SAP:Code>
    <SAP:P1>4871E583B6C24C3CE1000000AC140A3B</SAP:P1>
      <SAP:P2>PE_ADAPTER</SAP:P2>
    Pls help.

    Http sender  and Http Receiver so no adapter is used..

  • Pls help (very urgent)... hit exception on runtime...

    hi,
    hope my help can come in time...
    its pretty urgent as my final presentation is on this coming friday(singapore time)...
    i had coded a class where i can connect to the public UDDI. now i want to get the WSDL document location. but i could not get what i want. then, i used the Service class from the javax.xml.rpc where it has the getWSDLDocumentLocation() function.
    but when i implement it in my class, when i compile, it does not have any errors, but when i run it, it hit the following error:
    java.lang.ClassCastException: com.sun.xml.registry.uddi.infomodel.ServiceImpl
    at FYPJ.NaicsQuery.executeQuery(NaicsQuery.java:131)
    at FYPJ.FYPJ.jButton1ActionPerformed(FYPJ.java:409)
    at FYPJ.FYPJ.access$200(FYPJ.java:22)
    at FYPJ.FYPJ$3.actionPerformed(FYPJ.java:220)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    the following is my class for public UDDI connection:
    package FYPJ;
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class NaicsQuery
    private Connection m_conn;
    private int cntServices = 0;
    Vector servicesAva = new Vector();
    // empty constructor
    public NaicsQuery()
    public void makeConnection(String conn)
         Properties props = new Properties();
         props.setProperty("javax.xml.registry.queryManagerURL", conn);
         props.setProperty("javax.xml.registry.factoryClass",
    "com.sun.xml.registry.uddi.ConnectionFactoryImpl");
         try
    ConnectionFactory factory = ConnectionFactory.newInstance();
    factory.setProperties(props);
    this.m_conn = factory.createConnection();
    System.out.println("Connection to UDDI created");
         catch (Exception e)
    e.printStackTrace();
    if (this.m_conn != null)
              try
    this.m_conn.close();
              catch (Exception eb)
    public void executeQuery(String serviceName)
         RegistryService rs;
         BusinessQueryManager bqm;
         BusinessLifeCycleManager blcm;
    try
    // Get registry service & managers
    rs = m_conn.getRegistryService();
    bqm = rs.getBusinessQueryManager();
    blcm = rs.getBusinessLifeCycleManager();
    System.out.println("Got registry service, query manager, and life cycle manager.");
    Collection classifications = new ArrayList();
    classifications.add(serviceName);
    BulkResponse response = bqm.findOrganizations(null, classifications, null, null, null, null);
    Collection orgs = response.getCollection();
    // Display info about the organizations found
    Iterator orgIter = orgs.iterator();
    while(orgIter.hasNext())
    Organization org = (Organization)orgIter.next();
    System.out.println("Organization Name: " + org.getName().getValue());
    System.out.println("Organization Description: " + org.getDescription().getValue());
    System.out.println("Organization Key ID: " + org.getKey().getId());
    Collection links = org.getExternalLinks();
    if (links.size() > 0)
    ExternalLink link = (ExternalLink)links.iterator().next();
    System.out.println("URL to WSDL document: " + link.getExternalURI());
    // Display primary contact information
    User pc = org.getPrimaryContact();
    if(pc != null)
    PersonName pcName = pc.getPersonName();
    System.out.println("Contact name: " + pcName.getFullName());
    Collection phNums = pc.getTelephoneNumbers(null);
    Iterator phIter = phNums.iterator();
    while(phIter.hasNext())
    TelephoneNumber num = (TelephoneNumber)phIter.next();
    System.out.println("Phone number: " + num.getNumber());
    Collection eAddrs = pc.getEmailAddresses();
    Iterator eaIter = eAddrs.iterator();
    while(phIter.hasNext())
    System.out.println("Email Address: " + (EmailAddress)eaIter.next());
    // Display service and binding information
    Collection services = org.getServices();
    Iterator svcIter = services.iterator();
    while(svcIter.hasNext())
    Service svc = (Service)svcIter.next();
    System.out.println("Service name: " + svc.getName().getValue());
    System.out.println(" Service description: " + svc.getDescription().getValue());
    //Collection linkURL = svc.getExternalLinks();
    //System.out.println(" WSDL document: " + linkURL.toString());
    javax.xml.rpc.Service rpcSvc = (javax.xml.rpc.Service)svcIter.next();
    System.out.println(" WSDL location: " + rpcSvc.getWSDLDocumentLocation());
    cntServices ++;
    servicesAva.add((String)svc.getName().getValue() + " (" + org.getName().getValue() + ")");
    Collection serviceBindings = svc.getServiceBindings();
    Iterator sbIter = serviceBindings.iterator();
    while(sbIter.hasNext())
    ServiceBinding sb = (ServiceBinding)sbIter.next();
    System.out.println(" Binding description: " + sb.getDescription().getValue());
    System.out.println(" Access URI: " + sb.getAccessURI());
    Collection specLinks = sb.getSpecificationLinks();
    Iterator slIter = specLinks.iterator();
    while(slIter.hasNext())
    SpecificationLink spLink = (SpecificationLink)slIter.next();
    System.out.println(" Usage description: " + spLink.getUsageDescription());
    Collection useParam = spLink.getUsageParameters();
    Iterator useIter = useParam.iterator();
    while(useIter.hasNext())
    String usage = (String)useIter.next();
    System.out.println(" Usage Parameter: " + usage);
    System.out.println("-----------------------------------");
    System.out.println("*****************************************************************");
    catch(Throwable e)
    e.printStackTrace();
    finally
    // At end, close connection to registry
    if(m_conn != null)
    try
    this.m_conn.close();
    catch(JAXRException jaxre)
    public int getNumServices()
    return cntServices;
    public Vector getServicesAva()
    return servicesAva;
    ur help will be greatly appreciated...
    thanx in advance...
    - eric

    Eric ,
    You are trying to cast a javax.xml.registry.infomodel.Service to javax.xml.rpc.Service. This is not right
    This is causing the problem.
    There is an article on how to use the different Java Web services developer pack technologies using the example of the employee portal at
    http://developer.java.sun.com/developer/technicalArticles/WebServices/WSPack2/index.html
    That may give you an idea on how to go about doing it.
    Thanks,
    Bhakti
    hi,
    hope my help can come in time...
    its pretty urgent as my final presentation is on this
    coming friday(singapore time)...
    i had coded a class where i can connect to the public
    UDDI. now i want to get the WSDL document location.
    but i could not get what i want. then, i used the
    Service class from the javax.xml.rpc where it has the
    getWSDLDocumentLocation() function.
    but when i implement it in my class, when i compile,
    it does not have any errors, but when i run it, it hit
    the following error:
    java.lang.ClassCastException:
    com.sun.xml.registry.uddi.infomodel.ServiceImpl
    at
    at
    at
    t FYPJ.NaicsQuery.executeQuery(NaicsQuery.java:131)
    at
    at
    at FYPJ.FYPJ.jButton1ActionPerformed(FYPJ.java:409)
    at FYPJ.FYPJ.access$200(FYPJ.java:22)
    at FYPJ.FYPJ$3.actionPerformed(FYPJ.java:220)
    at
    at
    at
    t
    javax.swing.AbstractButton.fireActionPerformed(Abstract
    utton.java:1767)
    at
    at
    at
    t
    javax.swing.AbstractButton$ForwardActionEvents.actionPe
    formed(AbstractButton.java:1820)
    at
    at
    at
    t
    javax.swing.DefaultButtonModel.fireActionPerformed(Defa
    ltButtonModel.java:419)
    at
    at
    at
    t
    javax.swing.DefaultButtonModel.setPressed(DefaultButton
    odel.java:257)
    at
    at
    at
    t
    javax.swing.plaf.basic.BasicButtonListener.mouseRelease
    (BasicButtonListener.java:258)
    at
    at
    at
    t
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMult
    caster.java:227)
    at
    at
    at
    t
    java.awt.Component.processMouseEvent(Component.java:502
    at
    at
    at
    t
    java.awt.Component.processEvent(Component.java:4818)
    at
    at
    at
    t
    java.awt.Container.processEvent(Container.java:1380)
    at
    at
    at
    t
    java.awt.Component.dispatchEventImpl(Component.java:352
    at
    at
    at
    t
    java.awt.Container.dispatchEventImpl(Container.java:143
    at
    at
    at
    t
    java.awt.Component.dispatchEvent(Component.java:3367)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.retargetMouseEvent(Conta
    ner.java:3214)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.processMouseEvent(Contai
    er.java:2929)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.dispatchEvent(Container.
    ava:2859)
    at
    at
    at
    t
    java.awt.Container.dispatchEventImpl(Container.java:142
    at
    at
    at
    t java.awt.Window.dispatchEventImpl(Window.java:1566)
    at
    at
    at
    t
    java.awt.Component.dispatchEvent(Component.java:3367)
    at
    at
    at
    t
    java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(E
    entDispatchThread.java:190)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Eve
    tDispatchThread.java:144)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
    ead.java:138)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
    ead.java:130)
    at
    at
    at
    t
    java.awt.EventDispatchThread.run(EventDispatchThread.ja
    a:98)
    the following is my class for public UDDI connection:
    package FYPJ;
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class NaicsQuery
    private Connection m_conn;
    private int cntServices = 0;
    Vector servicesAva = new Vector();
    // empty constructor
    public NaicsQuery()
    public void makeConnection(String conn)
         Properties props = new Properties();
         props.setProperty("javax.xml.registry.queryManagerURL"
    conn);
    props.setProperty("javax.xml.registry.factoryClass",
    "com.sun.xml.registry.uddi.ConnectionFactoryImpl");
         try
    ConnectionFactory factory =
    y factory = ConnectionFactory.newInstance();
    factory.setProperties(props);
    this.m_conn = factory.createConnection();
    System.out.println("Connection to UDDI
    ion to UDDI created");
         catch (Exception e)
    e.printStackTrace();
    if (this.m_conn != null)
              try
    this.m_conn.close();
              catch (Exception eb)
    public void executeQuery(String serviceName)
         RegistryService rs;
         BusinessQueryManager bqm;
         BusinessLifeCycleManager blcm;
    try
    // Get registry service & managers
    rs = m_conn.getRegistryService();
    bqm = rs.getBusinessQueryManager();
    blcm = rs.getBusinessLifeCycleManager();
    System.out.println("Got registry service,
    ry service, query manager, and life cycle manager.");
    Collection classifications = new
    tions = new ArrayList();
    classifications.add(serviceName);
    BulkResponse response =
    response = bqm.findOrganizations(null,
    classifications, null, null, null, null);
    Collection orgs =
    tion orgs = response.getCollection();
    // Display info about the organizations
    ganizations found
    Iterator orgIter = orgs.iterator();
    while(orgIter.hasNext())
    Organization org =
    anization org = (Organization)orgIter.next();
    System.out.println("Organization Name:
    anization Name: " + org.getName().getValue());
    System.out.println("Organization
    n("Organization Description: " +
    org.getDescription().getValue());
    System.out.println("Organization Key
    rganization Key ID: " + org.getKey().getId());
    Collection links =
    lection links = org.getExternalLinks();
    if (links.size() > 0)
    ExternalLink link =
    ExternalLink link =
    (ExternalLink)links.iterator().next();
    System.out.println("URL to WSDL
    rintln("URL to WSDL document: " +
    link.getExternalURI());
    // Display primary contact
    primary contact information
    User pc = org.getPrimaryContact();
    if(pc != null)
    PersonName pcName =
    PersonName pcName = pc.getPersonName();
    System.out.println("Contact name:
    ntln("Contact name: " + pcName.getFullName());
    Collection phNums =
    Collection phNums = pc.getTelephoneNumbers(null);
    Iterator phIter =
    Iterator phIter = phNums.iterator();
    while(phIter.hasNext())
    TelephoneNumber num =
    TelephoneNumber num =
    = (TelephoneNumber)phIter.next();
    System.out.println("Phone
    stem.out.println("Phone number: " + num.getNumber());
    Collection eAddrs =
    Collection eAddrs = pc.getEmailAddresses();
    Iterator eaIter =
    Iterator eaIter = eAddrs.iterator();
    while(phIter.hasNext())
    System.out.println("Email
    stem.out.println("Email Address: " +
    (EmailAddress)eaIter.next());
    // Display service and binding
    ice and binding information
    Collection services =
    tion services = org.getServices();
    Iterator svcIter =
    rator svcIter = services.iterator();
    while(svcIter.hasNext())
    Service svc =
    Service svc = (Service)svcIter.next();
    System.out.println("Service name:
    ntln("Service name: " + svc.getName().getValue());
    System.out.println(" Service
    t.println(" Service description: " +
    svc.getDescription().getValue());
    //Collection linkURL =
    ollection linkURL = svc.getExternalLinks();
    //System.out.println(" WSDL
    .out.println(" WSDL document: " +
    linkURL.toString());
    javax.xml.rpc.Service rpcSvc =
    pc.Service rpcSvc =
    (javax.xml.rpc.Service)svcIter.next();
    System.out.println(" WSDL
    .out.println(" WSDL location: " +
    rpcSvc.getWSDLDocumentLocation());
    cntServices ++;
    servicesAva.add((String)svc.getName().getValue()
    lue() + " (" + org.getName().getValue() + ")");
    Collection serviceBindings =
    n serviceBindings = svc.getServiceBindings();
    Iterator sbIter =
    Iterator sbIter = serviceBindings.iterator();
    while(sbIter.hasNext())
    ServiceBinding sb =
    ServiceBinding sb =
    b = (ServiceBinding)sbIter.next();
    System.out.println(" Binding
    m.out.println(" Binding description: " +
    sb.getDescription().getValue());
    System.out.println(" Access
    em.out.println(" Access URI: " + sb.getAccessURI());
    Collection specLinks =
    Collection specLinks = sb.getSpecificationLinks();
    Iterator slIter =
    Iterator slIter = specLinks.iterator();
    while(slIter.hasNext())
    SpecificationLink spLink =
    SpecificationLink spLink =
    (SpecificationLink)slIter.next();
    System.out.println(" Usage
    System.out.println(" Usage description: " +
    spLink.getUsageDescription());
    Collection useParam =
    Collection useParam =
    ram = spLink.getUsageParameters();
    Iterator useIter =
    Iterator useIter = useParam.iterator();
    while(useIter.hasNext())
    String usage =
    String usage =
    String usage = (String)useIter.next();
    System.out.println("
    System.out.println(" Usage Parameter: " +
    meter: " + usage);
    System.out.println("----------------------------------
    System.out.println("**********************************
    catch(Throwable e)
    e.printStackTrace();
    finally
    // At end, close connection to registry
    if(m_conn != null)
    try
    this.m_conn.close();
    catch(JAXRException jaxre)
    public int getNumServices()
    return cntServices;
    public Vector getServicesAva()
    return servicesAva;
    ur help will be greatly appreciated...
    thanx in advance...
    - eric

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • Pls its very urgent - i dropped by iphone 3G and the display became very dim soon after and it still remains the same - pls advise what should be done to bring the display back to normal

    Pls its very urgent - i dropped by iphone 3G and the display became very dim soon after and it still remains the same - pls advise what should be done to bring the display back to normal

    sounds like you broke the display when you dropped it.  There's nothing we users here can do for you.
    Since the iPhone warranty does not cover accidental damage, you will have to pay to have your phone repaired or replaced.  You can bring it into Apple for an out of warranty exchange in the country of purchase, or you can find a 3rd party iPhone repair store in your area.

  • Error Pl help-Very urgent!

    Am getting the following error.Please help very urgent
    500 Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__quicklinks2ejspf.java":
    502. for (Enumeration e = prioLinkBean.getGlobalTop() ; e.hasMoreElements() ;)
    <---------->
    *** Error: "prioLinkBean" is either a misplaced package name or a non-existent entity.
    Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__quicklinks2ejspf.java":
    502. for (Enumeration e = prioLinkBean.getGlobalTop() ; e.hasMoreElements() ;)
    <---------->
    *** Error: "prioLinkBean" is either a misplaced package name or a non-existent entity.

    prioLinkBean.getGlobalTop();
    are u sure this method returns an Enumeration ???
    post ur code!
    [email protected]

  • Problem with Accessing Deployed Servlets Please help, very urgent.

    Inspite of going through lots of Docs. I am not able to access the JSP which is deployed using JDeveloper 3.2 in the browser? What should be the URL and where should I place the JSP and the related files in the Apache Server (Specific directory)?
    Please help, this is very Urgent.
    Could I get some sites where I can get detailed description of how to deploy and access Servlets and JSPS using JDeveloper 3.2 for OAS 9i?
    Thanks in advance,
    Regards,
    Kavita.
    null

    Hi Kativa,
    In answer to your first question: In most apache installs, you want to place all your JSPs under the Apache/htdocs directory. This htdocs directory becomes the root directory of your HTTP request, so, for example, to access the file
    Apache/htdocs/mydir/myJSP.jsp
    you'd point your browser to
    server:port/mydir/myJSP.jsp]http://server:port/mydir/myJSP.jsp
    As to your second question: Do you mean Oracle 9iAS? If so, look at this HOWTO: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
    JDeveloper 3.2 does not support deployment to OAS (the predecessor to iAS), but there was no OAS 9i.
    null

  • Badi's on vi01. Pls Its very urgent

    Hi Experts,
          I have given the requirement below I am not aware of badi's. Pls tell me the info about  Business event 1120P. And also post the coding for this functionality . Its very urgent
    Enhancement Summary
    Two user exits are needed to determine the correct G/L Account and Cost Center on Shipment Cost documents and post the Material Group on the Accounting document. BADI_SCD_ACCTG and Business Event 1120P can be used to accommodate the new functionality.
    Business Process
    Specific G/L Accounts and Cost Centers have to be determined to post on the Shipment Cost document. This is needed to provide accurate management reporting capabilities on shipments for Sales Order or Stock Transfer Order. A new custom table must be created which contains the following information: Distribution, Mode of Transport, Account, Cost Center Material group. Distribution is an identifier here if this shipment originated from an SO or STO.
    There are no screens involved in this enhancement.
    Components
    Table: ZTABLE1
    Field     Data Element     Type     Length     Description
    MANDT     MANDT     CLNT (key)     3     Client
    DISTRIBUTION     Z_DISTRIBUTION     CHAR (key)     1     Distribution
    MOT     ZZDEF_MOT     CHAR (key)     2     Mode of Transportation
    MATKL     MATKL     CHAR (key)     9     Material group
    SAKNR     SAKNR     CHAR     10     G/L Account Number
    KOSTL     KOSTL     CHAR     10     Cost Center
    This table gets updated manually by the FI team.
    Values for Distribution are:
    ‘1’  =  Primary Distribution to Refinery
    ‘2’ = Primary and Secondary– Excluding refinery
    All entries must be checked against SAP config and master tables
    User exit BADI BADI_SCD_ACCTG will be used to determine the correct G/L Account, Cost Center and Product Group based on Distribution and Mode of Transport. This BADI gets called only when a new Shipment Cost document get created.
    Once the BADI determined the new values it populates field c_vfkn-sakto with the G/L account, field c_vfkn-kostl with the Cost Center and exports the Product group to memory.
    There is no field on the Shipment Cost Document to store the Product group. Therefore another mechanism must be used to get the Product Group on the accounting document.
    Business Event 1120P can be used to import the Product group out of memory and put it on BSEG-MATNR. Structure BSEG_SUBST must be enhanced with field MATNR for this purpose.
    Function, Rules, Exits      Description of Functionality, Rules, Exits
    BADI_SCD_ACCTG     Business Add-In for Shipment Cost Account Assignment
    Business Framework     Business Event 1120P can be used to import the Product Group from memory and to populate field BSEG_SUBST-MATNR.
    This event gets called from different places. It needs to be ensured that it only populates the value when it was called from BADI_SCD_ACCTG.
    Custom Table     A look-up Table needs to be maintained for Distribution, Mode of Transport, G/L Account, Cost Center and Material Group
    Transaction code     To maintain the new table
    Append Structure     To enhance structure BSEG_SUBST with MATNR
          Business Add-In BADI_SCD_ACCTG can be used to determine the account assignments for a shipment cost item to set the G/L Account and Cost Center. All data needed to determine the new information gets provided in this BADI.
    Logic:
    •     Determine if STO or SO based on Document Category from internal table I_REFOBJ-VTRLP field VGTYP If is C then Distribution type is Sales Order (Primary and Secondary – Excluding Refinery – ‘2’ ) else we need to check the receiving plant. If the receiving plant (I_REFOBJ-VTRLK field WERKS) is a refinery the Distribution type is Primary (1) else it’s a (Primary and Secondary – Excluding Refinery – ‘2’ ). Refineries can be identified via Function Module Z_M_GET_PLANTCLASSIFICATION. The plant must be passed into Import Parameter IP_SAPPLANT and field INT_PLANTCHAR-ATNAM must be looked up with value SAPTYPE. If it exists and field ATWRT contains ‘RFY’, the plant is a refinery.
    •     Product Group can be determined from the Material master through Material group field MARA-MATKL.
    •     Mode of Transport will be passed in the BADI in VTRLK-OIC_MOT.
    •     Select single entry from table ZTABLE1based on Distribution, Mode of Transport and Material Group. If nothing gets selected, error message ‘No entry exists in table ZTABLE1for Distribution (distribution), MOT (MOT) & Mat. Group (material group)’ should be triggered.
    •     Move ZTABLE1-SAKNR  to c_vfkn-sakto and ZTABLE1-KOSTL to c_vfkn-kostl
    •     The Material group must be exported to memory in BADI_SCD_ACCTG
    •     The Material group must be imported from memory in Business Event BP1120P
    •     Free Memory in Business Event BP1120P
    This is VI01 – Creation of Freight Cost Item screen

    check the reply of ur Same Post .
    regards
    prabhu

  • LR from CC, but asking for Serial Number! Pls help! URGENT!!!

    I have LR and PS as part of my Photography Subscription to Adobe CC.
    I was having a problem with LR, so I downloaded a trial version from the site and installed.
    Now LR asks me for a Serial Number when I run the software. I don't have a Serial Number since this was part of the CC Subscription!
    How do I revert my LR back to the normal - running from CC.
    Pls help urgently! I have aclient deliverable tomorrow morning ...

    Thanks for the guidance.
    Uninstalling and re-installing thorugh CC was the plan that came to my mind as well. But I'm reluctant to go that path coz I'm thinking I will lose all my collections etc that I've created over a period of time once I uninstall the current LR. And therefore I'll lose the thread of edits I've made to my pictures, the selections etc. How can I avoid that loss?
    I have backed up my catalog though - I think I should be able to retrieve all those collection/selection information from that catalog?
    Another question.
    Broadband at home has been down for the last couple of days. So I'm not able to download the LR from CC on my desktop at home.
    Can I login to CC from another computer at a friends place, download LR and take it home on USB and install on my desktop? I could sign in to CC once my Internet is back and running.
    Is that an option?
    Thanks for all the help once again. Look forward to some more guidance pls.

  • SQL Query, please help very urgent

    I am a newbie is sql.
    I have two tables called test_master and test_detail.
    Both tables contains pos_id as common field.
    In test_detail got sub_id and to get the people under a given pos_id, I join with pos_id of test_master.
    In the where condition, when I give the pos_id, it's returning only
    the first level. How can I get the second level and get all the levels?
    Any help is highly appreciable.It's very urgent.
    Looking forward to hear from you.
    Thanks
    Newbie

    Ok, I am pasting the description of the master and detail in the order.
    Master
    EMPLOYEE_NO VARCHAR2(30)
    ORGANIZATION_ID NUMBER(15)
    ORGANIZATION_NAME VARCHAR2(240)
    POSITION_ID NUMBER(15)
    POSITION_NAME VARCHAR2(240)
    Detail
    POSITION_ID NUMBER(15)
    SUBORDINATE_ID NUMBER(15)
    ORGANIZATION_ID NUMBER(15)
    POSITION_NAME VARCHAR2(50)
    Here is the sql, I want to get all the subordinates under a given position_id of the master.
    Looking forward to hear from you.
    select a.employee_no,a.POSITION_ID,a.POSITION_NAME,a.EMPLOYEE_NAME,
    b.position_id,b.subordinate_id from portal_employee_master_test a,
    portal_structure_test b
    where a.POSITION_ID = b.POSITION_ID and a.POSITION_ID='xyz'
    and b.position_ID=a.POSITION_ID

  • MSI MS 7100 K8N Neo 4 Diamond need bios configuration help very urgent

    Hello every body i need very urgent help,
    i need help on above mainboard bios conf. i will attach two seperate hdd (120 GB sata II) and i will setup W2003 standart 32bit ed.
    if possible i won't use any raid configurations, but i need speed
    how should i conf. bios and which controller shouşd i use silicon or nvidia or how and wich has to be used.
    corecction about my configuration
    Mainboard   MSI MS 7100 K8N Neo 4 Diamond (NF4 SLI,GLAN,SATA)
    CPU      AMD Athlon 64 X2 3800+ (2.0GHz,1024K Cache,S939) BOX
    Ram      CORSAIR Value Select DDR400 1024MB Kit (2x512MB)
    Hdd      SAMSUNG 120GB 7200RPM 8MB SATAII     (2x120GB)
    Graphic Card         SAPPHIRE 256MB ATI Radeon X1600 PRO (PCI-E) AVIVO
    Case                      ENLIGHT 7247 400W

    Hello !!
    The Bios configuration depends on many factors.....but we do not know anything about your configuration. ( CPU, RAM, Powersupply.....)
    If you need HDD Speed, RAID 0 will be a good Option and you should consider it.
    Both Controllers, Silicon Image & nvidia, have the same speed. But i think you can not attach Optical drives to the Silicon Image Controller. ( if someone has other experiance please post )
    Good Luck
    Greetz MurdoK

  • Logic needed - pls help me urgent

    Hi
    p_werks , p_vstel, s_vbeln are my selection screen.
    I want to extract following fields into one internal table.
    How to extract the fields using inner join or outer join?
    LIKP  ---  vkorg,vstel, kunag, lfdat,wadat,lifnr
    LIPS  ---  vbeln,posnr,werks,matnr,lfimg,meins,
    VBKD ---  bstkd, posex_e  (vbkd -vbeln = lips-vgbel)
    sydatum, ernam,rundate, runtime.
    Pls help me

    hi,
    Select vkorg vstel  kunag lfdat wadat lifnr from likp into table t_likp where
    Vbeln = p_vbeln and werks = p_werks.
    If not t_likp [] is initial.
    Select vbeln posnr werks matnr lfimg meins into table t_lips fronm lips  for all entries in table t_likp where vbeln = t_likp-vbeln.
    Endif.
    If not t_lips [] not initial.
    Select bstkd  posex_e into table t_vbkd from vbkd for all entries in t_lips where vgbel = t_lips-vbeln.
    Endif.
    check with this code.
    Regards,
    Narasimha
    Edited by: narasimha marella on Jun 11, 2008 6:14 AM
    Edited by: narasimha marella on Jun 11, 2008 6:18 AM

  • Pls help me urgently

    recently i try to find a way to solve the problem that upload retrieve and download the audio file (BLOB or ordaudio) into oracle database 9i by pure ASP, unfortunatly i just implement the operation of text. is there anyone know how to solve the problem. thanks a lot!

    Hi,
    Everytg is attacehd fine...
    they are getting ouput..
    but the problem is in the output .my smartform output is not coming.
    they are getting some other forms output.
    the form that i developed and executed seprtly when they are putting that smartform there in the nace ...they are nort getting ouput..
    will there be problem in the routine.
    or driver progarm problem
    dribver poprogrtam is 'SAPFM06P'
    pLS HELP PLS

  • Http Scenario. Pls advice very urgent

    Hi All,
    My Scenario is
    a. HTTP sends data to XI Synchronously.
    b. XI opens Socket Connection in User Defined Function (UDF)
        of Message Mapping and gets response back from Socket
        in UDF. For Socket Connection request and response I will
        write java code in UDF
    c. XI needs to send back Socket response to HTTP as XI has
        received data from HTTP Synchronously.
    d. XI also needs to send back Socket response to File.
    How to make this approach in XI using BPM.
    Pls expain urgent
    Regards

    Hi Praveen,
    Steps in BPM I have done :
    1. One Rec step with Open S/A mode.
        Abstract Sync Message Interface for HTTP Request and
        HTTP Response.
    2. Transformation Step (Mapping in BPM)
        HTTP Request and Socket Response
    3. Fork Step -- Necessary Branch 2
    4. Branch 1st --
      a. Transformation Step(Mapping in BPM)
        Socket Response and HTTP Response
       b.One Send Step with Close S/A mode for HTTPResponse
          back
    5. Branch 2nd --
    a. Transformation Step (Mapping in BPM)
        Socket Response and File Response
    b. One Send Step for File Response back.
    Pls advice is it ok ?
    Regards

  • Hi Pls help top Urgent, Organisation Management

    HIAll,
    I am activating BC set created in 400 I am activating in 100 its giving error like this.
    Log Message is:
    S 02000238 in pl.version 01 does not exist -> activation not possible
    Pls respond,
    Thanks
    Veer

    Hi,
    The error is due to the position 02000238 not created in the Plan version in Current plan(01). To verify this check table HRP1000 in SE11 for the position 02000238 for plan version 01.
    Create a new position in plan version in Current plan(01) & try it.
    Hope this helps.
    Thanks,
    Sarika.

  • My recirculating pump in sub vi simulation link doesnt work in the second iteration .It opens for maybe half a second whereas i gave the time delay for 5 secs..plz help very urgent

    Hi,
         I have attached my simulation loop.In the model attached i hav eone main pump with constant rpm which drives the 5 smaller pumps and fills the tank at the same time.As soon as the tanks reach their 90% level,the valves of the five pumps close(SP1,SP2,SP3,Sp4,Sp5).After that the recirculating pumps opens for 5 secs of the first tank.As soon as the recirculation finishes,the drain valve(SV1) for tank 1 open and the volume goes to interim storage.This happens for all the remaining tanks.
    My simulation works the first time,but when the second time the loop starts,it skips the recirculation pump even though i gave a time delay for 5 secs.Plz help ..I have attached the simulation.
    Thanks,
    Rami
    Attachments:
    Spatial Logic_2_Final.vi ‏223 KB

    Rami,
    I suspect that you have a race condition. The widespread use of local variables frequently leads to race conditions. Your subVI (Spatial Logic Sub_2.vi was not included) so I cannot run the VI. You have no way of knowing whether the subVI or the inner case structure will execute first, because there is no data dependency between them.
    I think a shift register or a few and some dataflow thinking would allow you to eliminate the inner case structure, the local variables, and, probably, most of your problems.
    Some of the SPi are indicators and some are controls. How are they used?
    The last case of the inner loop retursn to Case 1. Would case 0 be better?
    As for the second time through issue, it may be related to the Elapsed time function Auto Reset. From the help file: "Resets the start time to the value in Present (s) when the Express VI reaches the Time Target (s)." If more than 5 seconds elapses between the first time you use this and the next, it will exit immediately on the subsequent calls.
    Lynn

Maybe you are looking for