Reg:New GL

Hi All,
When I am trying add Assign Scenarios and Customer Fields to Ledgers for Non Ledging Ledger updating the Profit Center Scenrio is not showing, but it is showing for Leading Ledger
what could be the reason for it showing for Leading Ledger it is not showing for Non Leading Ledger
Regards
Srinu

Hi,
If those are not appearing for non leading ledger, you can assign with "New entries" button.
These 6 scenarios are standard and you can create your own scenario.
Rgds
Murali

Similar Messages

  • Reg.New field creation in Consumption posting area

    Dear Experts
    We want to create new one filed in the below refered path.
    SPRO->Material Management->Purchasing->Account Assignment category. in the below screen
    Consumption posting filed - New field to be added.
    How to create the above. Pls advise
    Thanks
    Rajakumar.K

    Hi,
    u can discuss with ABAP er for creation of new field in that existing screen means u can go for the enhancement as per ur requirement.
    otherwise, u can use the existing 17 types of account assignment categories that are provided by std. SAP. u can use the following any one of consumption posting area.
    A Asset
    V Consumption
    E Accounting via sales order
    U Unknown
    P Accounting via project
    or u can check any possibility to define any new consumption posting indicator.

  • Reg : New GL Line Items

    Hi,
    We are implementing new GL and I did find out some information on the new GL Vs Classical GL.
    New GL :
    Total table : FAGLFLEXT
    Line Item table : FAGLFLEXA
    Clasical GL :
    Total Table : GLT0
    Lie Item Table : BSEG
    I have a question based on the above information.For new GL, SAP Has given 0FI_GL_10 datasource for getting Totals table ie FAGLFLEXT but no data source for line items.
    But we have a datasource for Classical GL Line items ie 0FI_GL_4.My question is , having implemented new GL, can I use 0FI_GL_10 for getting the totals data and 0FI_GL_4 for line items ?
    Will the line items data coming from 0FI_GL_4 be the same as the line item data in FAGLFLEXA ?
    Instead of creating a generic datasource based on FAGLFLEXA,what if I use 0FI_GL_4 for line items ?
    Will there be any issues in the future ? Anyone,went thru the above assumption.if so, Please explain the Pros & Cons ...
    Regards,
    Kumar

    Hi Roberto,
    I spoke with functional folks in my project and i got the following information.
    1.As per the talk, line item details are coming to both FAGLFLEXA and BSEG.
    2.There are couple of fields like XREF1,XREF2,XREF3,ZUONR, ACTIVITY TYPE etc fields are populated only in BSEG not in FAGLFLEXA.They also say, BSEG has all the entries that are posted in FAGLFLEXA.
    As per the discussion, functional folks prefer BSEG than FAGLFLEXA. I am assuming 0FI_GL_4 would pick up all the line item data from BSEG and I am not sure if there are any problems while reconciling with the totals table FAGLFLEXT to that of BSEG (using 0FI_GL_4) ?
    Regards,
    Kumar

  • Reg : New G/L Migration

    Dear Gurus,
                    Please advice the Procedure for Getting the Access key for New G/L Migration from 4.6c to ECC 6.0.
    Is it compulsory to hire SAP New G/L Migration Back office service for Implementing New G/L Migration?
    Thanks in Advance,
    Nambi.N

    In SAP config and SAP help you can found information. There are 2 SAP courses one for new general ledger and one for integration in to an existing SAP system.
    If you need extra support is dependend of your situation and what you want to do with new G/L..
    When you implement new G/L I advice to to activate the extension EA-FIN to
    When you activate new G/L, you can still update paralel the old G/L tabels!

  • Reg: New to SAP

    Dear All,
    First, I introduce myself.
    I am Navaneeth, from Mechanical Engineering background.
    I shifted into IT industry and I have 7+ years of experience in Web development technologies like Microsoft and LAMP.
    Now I am planning move my career with SAP. I am completely new to SAP.
    I have few queries, please clarify it.
    1. Is the right time to move SAP from my career background?
    2. How is the future Market trend for SAP related jobs?
    3. Which one will be the best area for me to enter in to the SAP? (Technical or Functional or both)
    4. What are modules will have the more value and less population?
    5. Will ABAP is suitable for me?
    6. Should I need to do a training/certification?
    7. Should I start my SAP career as a fresher or can I use my existing experience?
    8. How can I plan my career with SAP?
    Please help me to move on forward.
    Thanks & regards,
    Navaneeth.

    Hi,
    to 1 & 2: SAP is the best in the IT market for companies. It is a good idea to work with it, since the IT branch was not affected by with world crisis in 2009 and 2009; additionally, withing the IT, SAP consultants are the best paid.
    to 3: you should start programming with ABAP considering that you´re technichal. It´ll be a good start for a newbie.
    to 4: difficult to know. Some are not very used; therefore there are not many consultants.
    to 5: like 3
    to 6: traning yes, certification no. Read my answer to a similar [post here|;.
    to 7: you´ll be a newbie and your experience will play a minimal role, if any. You´ll start a new life, professionally speaking, so companies will consider you in the first step as a trainee.

  • Reg:New GL Concept

    Hi Gurus,
    What is the Difference Between Leading Ledger and Non-Leading Ledger conecpt in New Gl concept.
    regards
    JK

    Hi
    Leading Ledger & Non Leading Ledger the difference can be summarized as
    1. Different Fiscal year can be mapped ( Suppose you need a reporting in two Fiscal year like Jan-Dec & Apr-Mar, we can have on leading ledger (Jan-Dec) & on NonLeading ledger (Apr-Mar). It means when I am posting in Dec-07 on Leading ledger the period will be 12 (Jan-Dec) & in Nonleading ledger the period would be 9 (Apr-Mar). So that We can take Balance sheet for two seperate fiscal year Jan-Dec & APr-Mar.
    2. Apart from above we can have different currency also.
    In short prallel ledger (non leading ledger) had replace Special Purpose Ledger.
    Thanks
    Colin Thomas

  • Reg,  New Implementation Documentation

    Hello,
    Will you pl, help me in getting complete documentation (Std / Template)for all stages of ASAP methodology, for a new module. If you provide at least URL, it will be of great help.

    Hi
    You can download a complete ASAP methodology for EP project (includes all phases, design, scenario,project /test management templates etc) from here
    https://websmp101.sap-ag.de/~sapidb/011000358700004874282004E
    Cheers
    Jawahar Govindaraj
    Ps: reward pts

  • Reg New General Ledger

    Hi Experts,
    Please provide me some info about New General Ledger.
    1) What are the major differences between General Ledger and New General Ledger?
    2) What happen to General ledger reports (BI Content Reports) when we implement New General Ledger? Are new General Ledger reports (BI Content Reports) will replace old BI content reports? Are any changes required to existing ones?
    3) Which plugin in ECC?
    Thanks in advance.
    Rgds,
    Ram

    Hi
    BW Release 3.1 makes consistent data extraction in the delta method possible for line items in General Ledger Accounting (FI-GL), and selected subsidiary ledgers (Accounts Receivable FI-AR and Accounts Payable FI-AP) and tax reporting. The extraction procedure delivered with BW Release 2.0B, based on DataSources 0FI_AR_3 and 0FI_AP_3 , can be replaced. This is described in note 0410797.
    1) What are the major differences between General Ledger and New General Ledger?
    The new delta enabled GL Accounts for group reporting like 0fi_gl/ap/ar/tx_4 . New Asset Accounting Turn over ratios for better reporting capability.
    2) What happen to General ledger reports (BI Content Reports) when we implement New General Ledger?
    Are new General Ledger reports (BI Content Reports) will replace old BI content reports? Are any changes required to existing ones?
    the Old reports are existing like that only. Some of them need changes
    3) Which plugin in ECC?
    ECC 6.0 -- http://help.sap.com/saphelp_nw70/helpdata/EN/e8/747140723d990ae10000000a155106/frameset.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    Hope it helps

  • Reg:new request creation for alredy created request

    hai,
    one program is created under more than one request number , Now i want to create one request number for all those modification.
    all requests are released.
    is it poosible to create new request for all released request.
    regards,
    Chaitanya

    hi,
    once if you save any changes under one request it will automatically take all modifications of program under new request, no questions of wethe that request save all changes or not.
    or create new copy program and save this new program under new request - in this way u can make all changes under one request.
    Rewards if is useful
    Regards,
    Vijay

  • DRM doubt reg New version creation

    While updating changes to a current version, we create a copy of the existing version, save it with a version-<number> and rename the changed version as version-<final>
    Recently, during such an operation, we created the copy and renamed it as version-<final>
    but we are now unable to see it.
    We refreshed DRM and also checked the backend database.
    There is no trace of version-<final>.
    Neither it is detached nor saved state.
    when we try to create the copy again, it gives us an error stating the version already exists.
    It is imperative for us to stick to the naming convention.
    What could possibly be the reason for such an occurance ?
    we are using Oracle DRM Fusion edition 11.1.1.2.01.

    Even we used to face the same issue and it is with all the latest versions.
    Try these:
    1. Increase the Tablespace
    2. If tablespace does not work then only workaround then to follow this - Create version, open any of the hierararchy and go back to the main window and save the version. Please note that while saving the version any of the hierarchy should already be open.
    Let me know if it works.
    Thanks,
    RK

  • Why am I receiving Null pointer Exception Error.

    why am I receiving Null pointer Exception Error.
    Hi I am developing a code for login screen. There is no syntex error as such ut I am receving the aove mentioned error. Can some one please help me ??
    ------------ Main.java------------------
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Main implements ActionListener
    Frame mainf;
    MenuBar mb;
    MenuItem List,admitform,inquiry,exit,helpn;
    Menu newm,update,help;
    Inquiry iq;
    Admit ad;
    // HosHelp hp;
    Howuse hu;
    Register reg;
    Main()
    mainf=new Frame(" Engg College V/S Mumbai University ");
         mb=new MenuBar();
         newm=new Menu(" New ");
         update=new Menu(" Update ");
         help=new Menu(" Help ");
         List=new MenuItem("List");
         admitform=new MenuItem("Admit");
         inquiry=new MenuItem("Inquiry");
         exit=new MenuItem("Exit");
         helpn=new MenuItem("How to Use?");
    newm.add(List);
                   newm.add(admitform);
    newm.add(inquiry);
                   newm.add(exit);
         help.add(helpn);
              mb.add(newm);
              mb.add(update);
              mb.add(help);
    mainf.setMenuBar(mb);
                   exit.addActionListener(this);
                   List.addActionListener(this);
         inquiry.addActionListener(this);
         admitform.addActionListener(this);
    helpn.addActionListener(this);
         mainf.setSize(400,300);
         mainf.setVisible(true);
    public void actionPerformed(ActionEvent ae)
    if (ae.getSource()==List)
              reg=new Register();
         if(ae.getSource()==inquiry)
         iq=new Inquiry();
    if(ae.getSource()==admitform)
         ad=new Admit();
              if(ae.getSource()==helpn)
              hu=new Howuse();
              if(ae.getSource()==exit)
         mainf.setVisible(false);
    public static void main(String args[])
              new Main();
    -------------Register.java---------------------------
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Register implements ActionListener//,ItemListener
    Label id,name,login,pass,repass;
    Button ok,newu,cancel,check;
    Button vok,iok,lok,mok,sok; //buttons for dialog boxes
    TextField idf,namef,loginf,passf,repassf;
    Dialog valid,invlog,less,mismat,acucreat;
    Frame regis;
    Checkbox admin,limit;
    CheckboxGroup type;
    DBconnect db;
    Register()
         db=new DBconnect();
    regis=new Frame("Registeration Form");
              type=new CheckboxGroup();
              admin=new Checkbox("Administrator",type,true);
              limit=new Checkbox("Limited",type,false);
              id=new Label("ID :");
    name=new Label("Name :");
         login=new Label("Login :");
         pass=new Label("Password :");
         repass=new Label("Retype :");
    idf =new TextField(20); idf.setEnabled(false);
         namef=new TextField(30); namef.setEnabled(false);
    loginf=new TextField(30); loginf.setEnabled(false);
         passf=new TextField(30); passf.setEnabled(false);
         repassf=new TextField(30); repassf.setEnabled(false);
    ok=new Button("OK"); ok.setEnabled(false);
         newu=new Button("NEW");
    cancel=new Button("Cancel");
         check=new Button("Check Login"); check.setEnabled(false);
    vok=new Button("OK");
         iok=new Button("OK");
              lok=new Button("OK");
              mok=new Button("OK");
              sok=new Button("OK");
    valid=new Dialog(regis,"Login name is valid !");
         invlog=new Dialog(regis,"Login name already exist!");
         less=new Dialog(regis,"Password is less than six characters !");
    mismat=new Dialog(regis,"password & retyped are not matching !");
    acucreat=new Dialog(regis,"You have registered successfully !");
         regis.setLayout(null);
    //     regis.setBackground(Color.orange);
    valid.setLayout(new FlowLayout());
         invlog.setLayout(new FlowLayout());
         less.setLayout(new FlowLayout());
         mismat.setLayout(new FlowLayout());
    acucreat.setLayout(new FlowLayout());
    id.setBounds(35,50,80,25); //(left,top,width,hight)
    idf.setBounds(125,50,40,25);
    name.setBounds(35,85,70,25);
    namef.setBounds(125,85,150,25);
    login.setBounds(35,120,80,25);
    loginf.setBounds(125,120,80,25);
    check.setBounds(215,120,85,25);
         pass.setBounds(35,155,80,25);
    passf.setBounds(125,155,80,25);
    repass.setBounds(35,190,80,25);
    repassf.setBounds(125,190,80,25);
    admin.setBounds(35,225,100,25);
    limit.setBounds(145,225,100,25);
              ok.setBounds(45,265,70,25);
         newu.setBounds(135,265,70,25);
    cancel.setBounds(225,265,70,25);
         passf.setEchoChar('*');
    repassf.setEchoChar('*');
         regis.add(id);
         regis.add(idf);
    regis.add(name);
         regis.add(namef);
         regis.add(login);
         regis.add(loginf);
         regis.add(check);
    regis.add(pass);
         regis.add(passf);
    regis.add(repass);
         regis.add(repassf);
         regis.add(ok);
         regis.add(newu);
         regis.add(cancel);
    regis.add(admin);
         regis.add(limit);
    valid.add(vok);
         invlog.add(iok);     
         less.add(lok);
         mismat.add(mok);
    acucreat.add(sok);
    ok.addActionListener(this);
         newu.addActionListener(this);
    check.addActionListener(this);
    cancel.addActionListener(this);
         // limit.addItemListener(this);
         //admin.addItemListener(this);
              vok.addActionListener(this);
              iok.addActionListener(this);
         lok.addActionListener(this);
         mok.addActionListener(this);
         sok.addActionListener(this);
    regis.setLocation(250,150);
    regis.setSize(310,300);
    regis.setVisible(true);
         public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==check)
              try{
                   String s2=loginf.getText();
    ResultSet rs=db.s.executeQuery("select* from List");
                        while(rs.next())
                   if(s2.equals(rs.getString(2).trim()))
    //                    invlog.setBackground(Color.orange);
                             invlog.setLocation(250,150);
                             invlog.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                        invlog.setVisible(true);
                             break;
                        else
                        //     valid.setBackground(Color.orange);
                             valid.setLocation(250,150);
                             valid.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                   valid.setVisible(true);
                        }catch(Exception e)
                   e.printStackTrace();
    if(ae.getSource()==newu)
         try{
              ResultSet rs=db.s.executeQuery("select max(ID) from List");
         while(rs.next())
    String s1=rs.getString(1).trim();
                   int i=Integer.parseInt(s1);
    i++;
                   String s2=""+i;
    idf.setText(s2);
                   newu.setEnabled(false);
                   namef.setText(""); namef.setEnabled(true);
              loginf.setText(""); loginf.setEnabled(true);
              passf.setText(""); passf.setEnabled(true);
              repassf.setText(""); repassf.setEnabled(true);
              ok.setEnabled(true);
                   check.setEnabled(true);
                   }catch(Exception e)
              e.printStackTrace();
         if(ae.getSource()==ok)
              try
              String s1=idf.getText();
              String s2=loginf.getText();
              String s3=passf.getText();
         String s4=repassf.getText();
         int x=Integer.parseInt(s1);
         int t;
         if(type.getSelectedCheckbox()==admin)
              t=1;
              else
              t=0;
    ResultSet rs=db.s1.executeQuery("select* from List");
                   while(rs.next())
                   if(s2.equals(rs.getString(2).trim()))
                        invlog.setBackground(Color.orange);
                        invlog.setLocation(250,150);
                        invlog.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                        invlog.setVisible(true);
                        break;
                   else
                        if (s3.length()<6)
                        less.setBackground(Color.orange);
                             less.setLocation(250,150);
                             less.setSize(300,100);
                   ok.setEnabled(false);
                        cancel.setEnabled(false);
                        check.setEnabled(false);
                        less.setVisible(true);
    else if(!(s3.equals(s4)))
                        mismat.setBackground(Color.orange);
                        mismat.setLocation(250,150);
                        mismat.setSize(300,100);
                        ok.setEnabled(false);
                        cancel.setEnabled(false);
                        check.setEnabled(false);
                        mismat.setVisible(true);
                        else
    db.s1.execute("insert into User values("+x+",'"+s2+"','"+s3+"',"+t+")");
                        acucreat.setBackground(Color.orange);
                        acucreat.setLocation(250,150);
                        acucreat.setSize(300,100);
                        regis.setVisible(false);
                        acucreat.setVisible(true);
                   }//else
              }//while
                   } //try
              catch(Exception e1)
              // e1.printStackTrace();
              if (ae.getSource()==cancel)
              regis.setVisible(false);
              if (ae.getSource()==vok)
              ok.setEnabled(true);
                   cancel.setEnabled(true);
    check.setEnabled(true);
                   valid.setVisible(false);
              if (ae.getSource()==iok)
              ok.setEnabled(true);
                   cancel.setEnabled(true);
    check.setEnabled(true);
                   invlog.setVisible(false);
              if (ae.getSource()==lok)
              less.setVisible(false);
                   cancel.setEnabled(true);
    ok.setEnabled(true);
    check.setEnabled(true);
              if (ae.getSource()==mok)
              mismat.setVisible(false);
                   cancel.setEnabled(true);
    ok.setEnabled(true);
    check.setEnabled(true);
    if (ae.getSource()==sok)
              acucreat.setVisible(false);
              ok.setEnabled(false);
                   newu.setEnabled(true);
                   regis.setVisible(true);
         public static void main(String args[])
         new Register();
    -----------DBConnect.java------------------------------------
    import java.sql.*;
    public class DBconnect
    Statement s,s1;
    Connection c;
    public DBconnect()
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              c=DriverManager.getConnection("jdbc:odbc:Sonal");
              s=c.createStatement();
    s1=c.createStatement();
         catch(Exception e)
         e.printStackTrace();
    ----------Login.java----------------
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Login implements ActionListener
    Frame log;
    Label login,pass;
    TextField loginf,passf;
    Button ok,cancel;
    Dialog invalid;
    Button iok;
    Register reg;
    DBconnect db;
    Main m;
    Login()
    db=new DBconnect();
         log=new Frame();
         log.setLocation(250,210);
         login=new Label("Login :");
    pass=new Label("Password :");
         loginf=new TextField(20);
         passf=new TextField(20);
         passf.setEchoChar('*');
         ok=new Button("OK");
         // newu=new Button("New User");
         cancel=new Button("CANCEL");
         iok=new Button(" OK ");
    invalid=new Dialog(log,"Invalid User!");
    //log.setBackground(Color.cyan);
    //log.setForeground(Color.black);
         log.setLayout(null);
         // iok.setBackground(Color.gray);
         invalid.setLayout(new FlowLayout());
         login.setBounds(35,50,70,25); //(left,top,width,hight)
         loginf.setBounds(105,50,100,25);
         pass.setBounds(35,85,70,25);
         passf.setBounds(105,85,70,25);
         ok.setBounds(55,130,70,25);
    // newu.setBounds(85,120,80,25);
    cancel.setBounds(145,130,70,25);
    log.add(login);
    log.add(loginf);
    log.add(pass);
    log.add(passf);
    log.add(ok);
    // log.add(newu);
    log.add(cancel);
         invalid.add(iok);//,BorderLayout.CENTER);
    ok.addActionListener(this);
    // newu.addActionListener(this);
    cancel.addActionListener(this);
         iok.addActionListener(this);
    log.setSize(300,170);
    log.setVisible(true);
    public void actionPerformed(ActionEvent a)
    if(a.getSource()==ok)
         try{
              String l=loginf.getText();
              String p=passf.getText();
              ResultSet rs=db.s.executeQuery("select * from List");
              while(rs.next())
              if(l.equals(rs.getString(2).trim())&& p.equals(rs.getString(3).trim()))
                        String tp=rs.getString(4).trim();
                             int tp1=Integer.parseInt(tp);
    log.setVisible(false);
    if(tp1==1)
                             m=new Main();
                        // m.List.setEnabled(true);
                             else
                             m=new Main();
                             m.List.setEnabled(false);
                        break;
    else
                   invalid.setBackground(Color.orange);
                   invalid.setSize(300,100);
                   invalid.setLocation(250,210);
                   cancel.setEnabled(false);
              ok.setEnabled(false);
                   invalid.setVisible(true);
                   }catch(Exception e1)
                   e1.printStackTrace();
         if (a.getSource()==cancel)
         log.setVisible(false);
         if (a.getSource()==iok)
         invalid.setVisible(false);
         loginf.setText("");
         passf.setText("");
         cancel.setEnabled(true);
    ok.setEnabled(true);
         public static void main(String[] args)
         new Login();
    -------------inquiry.java---------------------------------
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.Date;
    import java.text.*;
    import java.sql.*;
    public class Inquiry implements ActionListener
    Frame inqry;
    Label name,addr;
    TextField namef,addrf;
    Button ok,cancel,dok;
    Dialog invalid;
    Frame result; //Result of the inquiry....
    Label lrname,lraddr,lward,lrdate,lcdate;
    TextField rname,raddr,ward,rdate,cdate;
    Date d;
    DateFormat df;
    Button rok,rcancel;
    Dialog success;
    Button rdok;
    DBconnect db;
    Inquiry()
              db=new DBconnect();
              inqry=new Frame("Inquiry Form");
              inqry.setLayout(null);
    inqry.setBackground(Color.cyan);
              name=new Label(" NAME ");
              addr=new Label("ADDRESS");
              namef=new TextField(20);
              addrf=new TextField(20);
              ok=new Button("OK");
              cancel=new Button("CANCEL");
              dok=new Button("OK");
              invalid=new Dialog(inqry,"Invalid Name or Address !");
              invalid.setSize(300,100);
         invalid.setLocation(300,180);
              invalid.setBackground(Color.orange);
              invalid.setLayout(new FlowLayout());
    result=new Frame(" INQUIRY RESULT "); //Result Window......
    result.setLayout(null);
    result.setBackground(Color.cyan);
    lcdate=new Label(" DATE ");
         lrname=new Label(" NAME ");
    lraddr=new Label(" ADDRESS ");
         lward=new Label(" WARD ");
         lrdate=new Label(" ADMIT-DATE ");
    cdate=new TextField(10);
         rname=new TextField(20);
    rname.setEnabled(false);
         raddr=new TextField(20);
         raddr.setEnabled(false);
         ward=new TextField(20);
         ward.setEnabled(false);
         rdate=new TextField(10);
         rdate.setEnabled(false);
         cdate=new TextField(20);
         d=new Date();
         df=DateFormat.getDateInstance(DateFormat.MEDIUM,Locale.KOREA);
         cdate.setText(df.format(d));
         cdate.setEnabled(false);
    rok=new Button(" OK ");
         rcancel=new Button("CANCEL");
              name.setBounds(40,50,50,25);
    namef.setBounds(120,50,130,25);
    addr.setBounds(40,100,60,25);
    addrf.setBounds(120,100,80,25);
    ok.setBounds(60,145,70,25);
              cancel.setBounds(140,145,70,25);
              lcdate.setBounds(200,50,60,25); //Result Window......
    cdate.setBounds(270,50,80,25);      
    lrname.setBounds(35,85,70,25);
    rname.setBounds(140,85,180,25);
    lraddr.setBounds(35,120,80,25);
         raddr.setBounds(140,120,100,25);
    lward.setBounds(35,155,80,25);
    ward.setBounds(140,155,100,25);
    lrdate.setBounds(30,190,80,25);
    rdate.setBounds(140,190,80,25);
    rok.setBounds(70,240,70,25);
    rcancel.setBounds(170,240,70,25);
              inqry.add(name);
              inqry.add(namef);
              inqry.add(addr);
              inqry.add(addrf);
              inqry.add(ok);
              inqry.add(cancel);
    invalid.add(dok);
         result.add(lcdate); //Result Window......
         result.add(cdate);
              result.add(lrname);
              result.add(rname);
              result.add(lraddr);
              result.add(raddr);
              result.add(lward);
              result.add(ward);
              result.add(lrdate);
              result.add(rdate);
              result.add(rok);
              result.add(rcancel);
         ok.addActionListener(this);
         cancel.addActionListener(this);
         dok.addActionListener(this);
    rok.addActionListener(this); //Result Window......
         rcancel.addActionListener(this);
         inqry.setSize(280,180);
         inqry.setLocation(300,180);
         inqry.setVisible(true);
              result.setSize(400,280); //Result Window......
         result.setLocation(200,150);
         result.setVisible(false);
              public void actionPerformed(ActionEvent ae)
                   if(ae.getSource()==ok)
                   try
                             String nm=namef.getText();
                             String ad=addrf.getText();
                             inqry.setVisible(false);
                             ResultSet rs=db.s.executeQuery("select * from Billinformation");
                             while(rs.next())
                                  String nm1=rs.getString(2).trim();
                                  String ad1=rs.getString(3).trim();
                                  int k=0;
                                  if((nm1.equals(nm))&&(ad1.equals(ad)))
                             String adm=rs.getString(5).trim();
                             String wr=rs.getString(6).trim();
                             String bd=rs.getString(8).trim();
                                  String wrb=wr+"-"+bd;
    result.setVisible(true);
                                  rname.setText(nm1);
                             raddr.setText(ad1);
                             ward.setText(wrb);
                             rdate.setText(adm);
    k=1;
                                  break;
                                  }//if
                             else if(k==1)
                             invalid.setVisible(true);
                             }//while
    }//try
                             catch(Exception e)
                             e.printStackTrace();
                        } //getsource ==ok
                   if(ae.getSource()==cancel)
    inqry.setVisible(false);
                        if(ae.getSource()==rok) //Result Window......
                        namef.setText("");
                             addrf.setText("");
                             result.setVisible(false);
                        inqry.setVisible(true);
    if(ae.getSource()==rcancel)
    result.setVisible(false);
                        if(ae.getSource()==dok)
                        namef.setText("");
                             addrf.setText("");
                             invalid.setVisible(false);
                             inqry.setVisible(true);
         public static void main(String args[])
              new Inquiry();
    PLease Help me !!
    I need this urgently.

    can you explain what your program tries to do... and
    at where it went wrong..Sir,
    We are trying to make an project where we can make a person register in our data base & after which he/she can search for other user.
    The logged in user can modify his/her own data but can view other ppl's data.
    We are in a phase of registering the user & that's where we are stuck. The problem is that after the login screen when we hit register (OK- button) the data are not getting entered in the data base.
    Can u please help me??
    I am using "jdk1.3' - studnet's edition.
    I am waiting for your reply.
    Thanks in advance & yr interest.

  • WebService java.lang.NullPointerException

    help me please. the java.lang.NullPointerException happens when i try to set a string in to the array reg
    i don't know if the problem is because the array dimencion is 1.
    i don't think so but im with that problem for many time. and maybe is just simple but i don't see it.
    mOc.setMENSAJE_ID(" ");
    mOc.setVERSION(ver);
    mOc.setESTAMPA_PETICION(new java.util.Date());
    com.ing.mx.seguros.autos.sisamovil.ws.coninfSISAMovil.PETICION_SECC peticion = new com.ing.mx.seguros.autos.sisamovil.ws.coninfSISAMovil.PETICION_SECC();
    CONSULTA_APOYO_REG[] reg=new CONSULTA_APOYO_REG[1];
    reg[0].setSINIESTRO_ING(siniestro);
    CONSULTA_APOYOS apoyo = new CONSULTA_APOYOS();
    apoyo.setCONSULTA_APOYO_REG(reg);
    peticion.setCONSULTA_APOYOS(apoyo);
    entrada.setPETICION_SECC(peticion);
    entrada.setMENSAJE_SECC(mOc);
    code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Krishna,
    Please have a look at these..
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    /thread/34142 [original link is broken]
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio
    Error while Testing SOAP Adapter In XI
    cheers,
    Prashanth

  • Get specific Strings from File

    Good morning to every one.
    I 've got a text file which contains a customer number and an order number, coded as we see in the picture below:
    I am trying to develop a tool in Visual Studio, which it reads the file line-by-line and fills a listbox, with the order_number and the customer number. From the file above, I know that the order number are the digits on the first 'column' after the leading-zeros,
    until '/', and the customer number are the digits without zeros in the 'third' column before 'CUSTOMER_NUMBER'. My form looks like:
    The problem is, that the number of before the fields in file, are not equal in every line.
    So, my question is how I can retrieve the 'order number' and 'customer number' from the text file and copy the results to list box, after clicking on 'Get Strings' button, like:
    359962656   2238914
    359562804   2238914
    etc...
    I attach my code here:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    namespace ReadStringFileApp
    public partial class frmMain : Form
    public frmMain()
    InitializeComponent();
    OpenFileDialog openfile = new OpenFileDialog();
    //openfiledialog to pickup filename
    private void btnFindFile_Click(object sender, EventArgs e)
    openfile.Filter = "Text|*.txt";
    if (openfile.ShowDialog() == DialogResult.OK)
    lbxResults.Items.Clear();
    txtFilepath.Text = openfile.FileName.ToString();
    //get strings from file
    private void btnGetStrings_Click(object sender, EventArgs e)
    //check if there is a file path on textbox
    if (txtFilepath.Text == "")
    MessageBox.Show("No File Select. Please select a file", "Error File Name", MessageBoxButtons.OK, MessageBoxIcon.Error);
    btnFindFile.Focus();
    return;
    //create list for all lines inside file
    List<string> lines = new List<string>();
    string line;
    using (StreamReader r = new StreamReader(@txtFilepath.Text))
    while ((line = r.ReadLine()) != null)
    string ordernum;//string for order number
    string customer;//string for customer number
    //line = ordernum + "\t" + customer; //concatenate results to fill the list box
    lbxResults.Items.Add(line);
    r.Close(); //close file
    private void btnExportToFIle_Click(object sender, EventArgs e)
    //check if listbox is empty
    if (lbxResults.Items.Count == 0)
    MessageBox.Show("Result List is empty! Choose a file to proceed.", "Error Result List", MessageBoxButtons.OK, MessageBoxIcon.Error);
    btnGetStrings.Focus();
    return;
    //read listbox contents and parse to a list object
    List<string> list = new List<string>();
    foreach (String i in lbxResults.Items)
    list.Add(i);
    //Create a file in c: with results
    File.WriteAllLines(@"C:\export-test.txt", list, Encoding.Default);
    MessageBox.Show("File export completed!", "File Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Thank you in advanced

    @ Joel Engineer
    and@
    Val10
    I combined your responses and I get my results correctly. I attached the code I rewrite for further use:
    private void btnGetStrings_Click(object sender, EventArgs e)
    //check if there is a file path on textbox
    if (txtFilepath.Text == "")
    MessageBox.Show("No File Select. Please select a file", "Error File Name", MessageBoxButtons.OK, MessageBoxIcon.Error);
    btnFindFile.Focus();
    return;
    //create list for all lines inside file
    List<string> lines = new List<string>();
    string line;
    using (StreamReader r = new StreamReader(@txtFilepath.Text))
    while ((line = r.ReadLine()) != null)
    string order_customer;
    Regex reg = new Regex("0*");
    //set an string array, to split the file in columns positions, defining the characters
    string[] daneio = line.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
    //get order number from the first column
    var ordernum_zeros = reg.Match(daneio[0]).Value;
    daneio[0] = daneio[0].Replace(ordernum_zeros, String.Empty);
    daneio[0] = daneio[0].Substring(0, daneio[0].IndexOf("/"));
    //get customer column, without zeros
    var customer_zeros = reg.Match(daneio[5]).Value;
    daneio[2] = daneio[2].Replace(customer_zeros, String.Empty);
    daneio[2] = daneio[2].Substring(0, daneio[5].IndexOf("CUSTOMER_NUMBER"));
    //combine the result in listbox
    order_customer = daneio[0] + "\t" + daneio[2];
    lbxResults.Items.Add(order_customer);
    r.Close(); //close file
    Thank you for your help!

  • JSF Custom Validator Problem

    Please help,
    I have written a handful of custom validators and I'm having a small problem with them. For some reason the validator will not display there message in a <h:message> tag. They do however display in a <h:messages> tag as long as the globalOnly attribute is set to false. I'm guessing this is being caused by the fact that the validators are not being registered properly with their parent components. My question is how do I accomplish registering the validator correctly with its parent component.
    Below is an example of one of the valiators and its use in the page.
    <c:form validationType="Server">
        <label>Phone Number</label>
        <h:inputText id="PhoneNumber">
         <c:validatePhoneNumber errorSummary="Please enter a valid Phone number" errorDetail="Blah"></c:validatePhoneNumber>
        </h:inputText>
        <h:message style="color: red" for="PhoneNumber" />
        <h:commandButton value="Submit"></h:commandButton>
    </c:form>
    public class PhoneNumberValidatorTag extends ValidatorTag {
      private static final long serialVersionUID = -3061371618875302020L;
      private final String validatorId = "jsf.validators.PhoneNumber";
      private String validationType;
      private String validateAgainst = PhoneNumberValidator.US;
      private String errorSummary = "";
      protected String errorDetail = "";
      public PhoneNumberValidatorTag() {
        setValidatorId( validatorId );
      public Validator createValidator() throws JspException {
        PhoneNumberValidator validator = ( PhoneNumberValidator ) super
            .createValidator( );
        FacesContext context = FacesContext.getCurrentInstance( );
        Application app = context.getApplication( );
        Util.doAssert( null != validator );
        UIComponentTag tag = UIComponentTag.getParentUIComponentTag( pageContext );
        UIComponent component = tag.getComponentInstance( );
        UIComponent parentForm = component;
        while ( !( parentForm instanceof HtmlForm ) ) {
          parentForm = parentForm.getParent( );
        ValidationHtmlForm vhf = ( ValidationHtmlForm ) ( ( HtmlForm ) parentForm );
        if ( "client".equalsIgnoreCase( vhf.getValidationType( ) ) ) {
          validator.setServerValidate( false );
        } else {
          validator.setServerValidate( true );
          if ( errorSummary != null ) {
            if ( UIComponentTag.isValueReference( errorSummary ) ) {
              validator.setErrorSummary( ( String ) app.createValueBinding(
                  errorSummary ).getValue( context ) );
            } else {
              validator.setErrorSummary( errorSummary );
          if ( validateAgainst != null ) {
            if ( UIComponentTag.isValueReference( validateAgainst ) ) {
              validator.setErrorSummary( ( String ) app.createValueBinding(
                  validateAgainst ).getValue( context ) );
            } else {
              validator.setErrorSummary( validateAgainst );
        return validator;
      public void release()
        super.release();
      public int doEndTag() throws JspException {
        FacesContext context = FacesContext.getCurrentInstance( );
        ResponseWriter writer = context.getResponseWriter( );
        try {
          UIComponentTag tag = UIComponentTag.getParentUIComponentTag( pageContext );
          UIComponent component = tag.getComponentInstance( );
          UIComponent parentForm = component;
          while ( !( parentForm instanceof HtmlForm ) ) {
            parentForm = parentForm.getParent( );
          ValidationHtmlForm vhf = ( ValidationHtmlForm ) parentForm;
          if ( "client".equalsIgnoreCase( vhf.getValidationType( ) )
              || "both".equalsIgnoreCase( vhf.getValidationType( ) ) ) {
            writer
                .write( StringUtil
                    .format(
                        "<script language='JavaScript'>"
                            + " formValidator.addValidator('{0}',new PhoneNumberValidator('{1}', PhoneNumberValidator.{2} ,'{3}'));"
                            + "</script>", new Object[] {
                            parentForm.getClientId( context ),
                            component.getClientId( context ), validateAgainst,
                            errorSummary } ) );
        } catch ( IOException e ) {
          e.printStackTrace( );
        return 1;
      � Getters and Setters removed to shorten code
    public class PhoneNumberValidator extends BaseValidator {
      private static final long serialVersionUID = -1925668990356710828L;
      public static final String US = "US";
      public static final String INTERNATIONAL = "INTERNATIONAL";
      public static HashMap REG = new HashMap( );
      static{
        REG.put( "US", "^\\(?\\d{3}\\)?(\\s|-)\\d{3}-\\d{4}$" );
        REG.put( "INTERNATIONAL",
            "^((\\+\\d(\\d)?)?(\\(\\d\\{3}?)))? \\d{3}?-\\d{4}$" );
      public PhoneNumberValidator() {
        super( );
      public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException {
        if ( !serverValidate )
          return;
        if ( value == null )
          return;
        if ( context == null || component == null )
          throw new NullPointerException( );
        String regex;
        if ( REG.containsKey( validateAgainst ) )
          regex = ( String ) REG.get( validateAgainst );
        else
          regex = ( String ) REG.get( US );
        Pattern pattern = Pattern.compile( regex );
        if ( !"".equals( value.toString( ).trim( ) )
            && !pattern.matcher( value.toString( ).trim( ) ).matches( ) ) {
          Object[] params = new Object[] { value };
          Locale locale = context.getViewRoot( ).getLocale( );
          String summary;
          if ( errorSummary == null )
            summary = Messages.getString(
                "resource.ValidationMessages", "badPhoneNumber",
                params );
          else
            summary = new MessageFormat( errorSummary, locale ).format( params );
          String detail;
          if ( errorDetail == null )
            detail = Messages.getString(
                "resource.ValidationMessages",
                "badPhoneNumber_detail", params );
          else
            detail = new MessageFormat( errorDetail, locale ).format( params );
          FacesMessage message = new FacesMessage( FacesMessage.SEVERITY_ERROR,
              summary, detail );
          throw new ValidatorException( message );
      public String getJavaScript() {
         � Method body removed to shorten post
    }I probably should also mention I overrode the HtmlForm tag so I could add an attribute to the tag that allows the developer to specify client, server, or both when they are choosing the valiation type they want to use.
    Thank you in advance for any help you can provide.
    Grape Ape

    I do not think what you want to do is possible with the standard panelGrid. The panelGrid sees each child (of the panelGrid) as 1 component. The childrens children are considered a part of the child.
    Heh, did I confuse you with that? You have probably already guessed that though.
    At one time, I considered creating a custom component like yours. One that would just allow rendering of it's children or not. I decided that it was easier and better to add the rendered attribute to each of my other custom components (since the functionality is already supported by UIComponent). All you have to do is add the rendered attribute to your TLD doc for each custom component and your component can now use the "rendered" attribute. Oh, and you'll have to call super.setProperties() in the component tag.
    All JSF standard components can use the rendered attribute.
    Let me know if you'd like me to explain things better or post some code examples.
    Hope this helps,
    CowKing

  • Flash changes apostrophe to question mark when saving data?

    Hi,
    Ok these are the steps I take to create the problem within my Flash application.
    1. Copy and paste a string from a word.doc which contains an apostrophe
    2. I then save this data to a XML doc.
    3. reload that XML data, now the apostrophe has changed to a square box
    4. I then resave this data
    5. I reload this data and now, the square box has changed to a question mark.
    My question is, how do I stop this from happening other than not copying from a word doc?
    Is there something extra I have to do when parsing the string into its saved format.
    Currently what happens is:
    1. Pass the string from the input box to an object
    localTextObject.textData = myInput.text
    2. The object is then parsed through a custom Object to XML parser
    for example:
    textNode.text = "";
    textNode.text.appendChild( localTextObject.textData );
    3. And then an XML file is saved local with this data in it.
    Does Flash do something wonderful along the way as so by the third time around we have gone from a speech mark to a question mark?
    Any help with solving this problem would be very much appreciated.
    Thanks

    Apostrophes from word aren't part of the normal ASCII character set. They've been mucking up plain text forever...
    You can use a RegEx to strip them out, or just change them to regular apostrophes. Something like so should work:
    reg = new RegExp("“", "gi");
    m = m.replace(reg, "");

Maybe you are looking for

  • Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. How do I fix this?

    Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again. This happe

  • Suspend not working, task refusing to freeze

    Hi, I have no idea how to get to the source of the problem, so I am asking for your help. Suspend is not working on my acer notebook (fresh archlinux (re)install). I get the "tasks refusing to freeze" message. Journalctl tells me that alsactl is to b

  • Can't access files with names too long

    I have some files on a Windows formatted external hard drive that have filenames that seem to be too long for OS X to handle. I can't open them, nor can I delete them. I can't even seem to "rm" them from the command line. I know they're there, and no

  • Plz help me out. Urgent Issue

    I have a canvas with a image , text box and a check box.I am displaying it using a tile list(the data is dynamic), but the behaviour of the check box is unpredictable when scrolled. when i do scroll the check box gets checked and unchecked by itself.

  • Very big problem on aperture

    hi all i have a big problem with my aperture 3,for the second time in 2 month my aperture won't open i have to reinstall the software to reuse it. and i can't switch library inside the program. i have twice this crash error. hi and tnx Process: Apert