Logic Problem in HR-ABAP...

Hi Experts,
i am developing outbound interface in HR module. in that i got stckup.
i ve Ztable like YSHR_NRIC  there are some ICNUM and in my code every PERNR which am reading
through GET pernr. i want to compare my current Pernr(ICNUM) with YSHR_NRIC table ICNUM, if my
curreny ICNUM is there in my Ztable, then i want Bypass the pernr.
if not there in Ztable then i want to INSERT my Current Pernr-icnum into Ztable...
how can i procede in this ...i need logic...
Thanks in advance...
sudeer.

Hi Marcin,
thank you verymuch for ur replay.  and here i have doubt.
i.e suppose in my Ztable i ve 10 (ICNUM) records, if i use Read statement will it be compare with all 10 recors r not?
bcoz in my case i should compare with all 10 (ICNUM)records with current ICNUM. then it will be inserted into Ztable...
Thanks & Regards,
sudeer.

Similar Messages

  • LOGICAL DATABASE IN HR ABAP PRPGRAMMING

    Hi Friends,
    what is use of LOGICAL DATABASE IN HR ABAP PROGRAMMING
    AND END-OF-SELECTION EVENT IN HR PROGRAMMING PROGRAMMING???
    regards,
    vijay.

    hi
    HR Logical Databases
    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP (PNPCE)
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    Logical Database PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    Logical Database PNP (or PNPCE)
    Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
    Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
    Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
    Reporting on working time and planned compensation for a position that an employee occupies
    Reporting on the validity and proficiency of a qualification that an employee fulfils
    From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
    The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
    You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
    Logical Database PAP
    Logical database PAP enables you to access data from Recruitment.
    regards
    navjot
    reward if helpfull

  • Is Logical Database used in ABAP?????

    Hi All,
    I m very confused whether LDB's are used in ABAP or not.
    i have undergone a small training in ABAP-HR (HCM).
    In that training i was told that there is an advantage in HCM that LDB's are used here
    which were not used in ABAP.
    And i have read somewhere that LDB's are used in ABAP.
    can plz sumone give a light on this.
    Thanks,
    Sonali

    hi,
    The use of a logical database provides you with an alternative to having to program database accesses individually. Logical databases retrieve data records and make them available to ABAP programs.
    The same logical database can be the data source for several Quick Views, queries, and programs. In the Quick View, the LDB can be specified directly as a data source. A query works with the logical database when the functional area that generated the query is defined with a logical database. In the case of type 1 programs, the LDB is entered in the attributes or called using function module LDB_PROCESS. See appendix for information on how to use the function module.
    Logical databases offer several advantages:
    The system generates a selection screen. The use of selection screen versions or variants provides the required flexibility.
    The user does not have to know the exact structure of the tables involved (especially the foreign key dependencies); the data is made available in the correct order at GET events.
    Performance improvements within logical databases directly affect all programs linked to the logical database, without having to change the programs themselves.
    Maintenance can be performed at a central location.
    Authorization checks can also be performed centrally.
    A logical database is an ABAP program that reads predefined data from the database and makes it available to other programs.
    A hierarchical structure determines the order in which the data is supplied to the programs. A logical database also provides a selection screen that checks user entries and conducts error dialogs. These can be extended in programs.
    SAP provides some 200 logical databases in Release 4.6. The names of logical databases have been extended to 20 places in Release 4.0 (namespace prefix max. 10 characters).
    In the case of executable programs, you can enter a logical database in the attributes.
    Use the NODES statement to specify the nodes of the logical database that You want to use in the program. NODES allocates the appropriate storage space for the node - that is, a work area or a table area depending on the node type.
    The logical database makes the data records available for the corresponding GET events.
    The sequence in which these events are processed is determined by the structure of the logical database.
    Logical databases are made up of several sub-objects. The structure determines the hierarchy, and thus the read sequence of the data records.
    Hope this helps, Do reward

  • The logical problem in turnover in  for ?

    Welcome
    wrote this code, everything is true but there is a logical problem to be solved first idea of this program is a moving train to the contrary, it can stop and operated once again and that can add cars and locomotives and can delete it but there is a problem when adding that the train carriages have remained stable cart after the first turnover Thus ...
    THAT shows us the error ..
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Train extends JFrame implements ActionListener{
        private boolean check = false;
        private boolean stopped = true;
        private boolean add = false;
        private int trainPlace = 0;
        private int INDEX_START = 0;
        public int speed = 300;
        private ImageIcon CurrentImage ;
        private boolean front=true, back=false ;
        private int carrNum = 0 ;
        private JPanel screen, area , controlroom;
        private JButton[][] street;
        public JButton[] keybord;
        private String s[] = {"Start","Back","Fast","Slow","Add Carriage","Delete Carriage","Rest","Check","Desiners"};
        private ImageIcon images[][] ={{
                        new ImageIcon("images/UpRight.jpg"),
                        new ImageIcon("images/RightDown.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        {new ImageIcon("images/Vert.jpg"),
                        new ImageIcon("images/DownRight.jpg"),
                        new ImageIcon("images/Horiz.jpg"),
                        new ImageIcon("images/RightDown.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/Vert.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/Vert.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/Vert.jpg"),
                        new ImageIcon("images/UpRight.jpg"),
                        new ImageIcon("images/Horiz.jpg"),
                        new ImageIcon("images/RightUp.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/DownRight.jpg"),
                        new ImageIcon("images/RightUp.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/NoTrack.jpg"),
                        new ImageIcon("images/NoTrack.jpg")}};
        private ImageIcon frontImagesTrain[]={
                        new ImageIcon("images/TrainDown.jpg"),
                        new ImageIcon("images/TrainDown.jpg"),
                        new ImageIcon("images/TrainLeft.jpg"),
                        new ImageIcon("images/TrainLeft.jpg"),
                        new ImageIcon("images/TrainDown.jpg"),
                        new ImageIcon("images/TrainLeft.jpg"),
                        new ImageIcon("images/TrainUp.jpg"),
                        new ImageIcon("images/TrainUp.jpg"),
                        new ImageIcon("images/TrainUp.jpg"),
                        new ImageIcon("images/TrainUp.jpg"),
                        new ImageIcon("images/TrainRight.jpg"),
                        new ImageIcon("images/TrainDown.jpg"),
                        new ImageIcon("images/TrainRight.jpg"),
                        new ImageIcon("images/TrainDown.jpg")};
            private ImageIcon trackImagesTrain[]={
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/RightUp.jpg"),
                    new ImageIcon("images/Horiz.jpg"),
                    new ImageIcon("images/UpRight.jpg"),
                    new ImageIcon("images/RightUp.jpg"),
                    new ImageIcon("images/DownRight.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/UpRight.jpg"),
                    new ImageIcon("images/RightDown.jpg"),
                    new ImageIcon("images/DownRight.jpg"),
                    new ImageIcon("images/Horiz.jpg"),
                    new ImageIcon("images/RightDown.jpg")};
              private ImageIcon carrinImagesTrain[]={
                        new ImageIcon("images/Carriage1Down.jpg"),
                        new ImageIcon("images/Carriage1Down.jpg"),
                        new ImageIcon("images/Carriage1Left.jpg"),
                        new ImageIcon("images/Carriage1Left.jpg"),
                        new ImageIcon("images/Carriage1Down.jpg"),
                        new ImageIcon("images/Carriage1Left.jpg"),
                        new ImageIcon("images/Carriage1Up.jpg"),
                        new ImageIcon("images/Carriage1Up.jpg"),
                        new ImageIcon("images/Carriage1Up.jpg"),
                        new ImageIcon("images/Carriage1Up.jpg"),
                        new ImageIcon("images/Carriage1Right.jpg"),
                        new ImageIcon("images/Carriage1Down.jpg"),
                        new ImageIcon("images/Carriage1Right.jpg"),
                        new ImageIcon("images/Carriage1Down.jpg")};
        private int[]frontPath={13, 18,17,16,21,20,15,10,5,0,1,6,7,8};
      private int[]frontPath2={8, 13,18,17,16,21,20,15,10,5,0,1,6,7};  
        private ImageIcon icon;
        private JLabel labelInfo;
        public Train () {  
           screen = new JPanel(new GridLayout(1,1));
           Font f =new Font ("Sanserif",Font.BOLD,18);
           labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
           labelInfo.setFont(f);
           screen.setBackground(Color.red);
           screen.add(labelInfo);
           getContentPane().add(BorderLayout.NORTH,screen );
            street = new JButton[5][5];
            area = new JPanel (new GridLayout(5,5));
            for(int r=0; r<5; r++) 
                for (int c=0; c<5; c++){
                    street[r][c] = new JButton("", images[r][c]);
                    area.add(street[r][c]);
            getContentPane().add(BorderLayout.CENTER,area );   
            keybord = new JButton[9];
            controlroom = new JPanel(new GridLayout(5,2));   
    //        ActionHandler handler = new ActionHandler();
            for (int i=0; i <9; i++)
                keybord[i] = new JButton(s);
    keybord[i].addActionListener(this);
    controlroom.add(keybord[i]);
              keybord[i].setEnabled(false);
              keybord[7].setEnabled(true);
    getContentPane().add(BorderLayout.SOUTH,controlroom );
    public void moveTrainFront(){
    int trainPlace1 = trainPlace;
    try{
    if (trainPlace == frontPath.length-1) trainPlace = 0;
    else trainPlace ++;
                   if (carrNum == 0 )
         int i = frontPath[trainPlace]/5;
         int j = frontPath[trainPlace] - i * 5;
         int r = frontPath[trainPlace1]/5;
         int c = frontPath[trainPlace1] - r * 5;
         street[i][j].setIcon(frontImagesTrain[trainPlace]);
         street[r][c].setIcon(trackImagesTrain[trainPlace1]);
                   else
                        int i1 = frontPath[trainPlace]/5;
                        int j1 = frontPath[trainPlace] - i1 * 5;
                        street[i1][j1].setIcon(frontImagesTrain[trainPlace]);     
                        int trainPlace2 = trainPlace;
                        for (int z = 1; z <= carrNum; z++)
    if (trainPlace2 - z < 0) trainPlace2 = 13;
                                  int i2 = frontPath[trainPlace2 - z]/5;
                                  int j2 = frontPath[trainPlace2 - z] - i2 * 5;
                                  street[i2][j2].setIcon(carrinImagesTrain[trainPlace2 - z]);
              int r1 = frontPath[trainPlace1 - carrNum]/5;
                        int c1 = frontPath[trainPlace1 - carrNum] - r1 * 5;
                        street[r1][c1].setIcon(trackImagesTrain[trainPlace1 - carrNum]);
    }catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
    // Move train Back
    public void moveTrainBack(){
    int trainPlace1 = trainPlace;
    try{
    if (trainPlace == 0) trainPlace = 13;
    else trainPlace--;
    int i = frontPath[trainPlace]/5;
    int j = frontPath[trainPlace] - i * 5;
    int r = frontPath[trainPlace1]/5;
    int c = frontPath[trainPlace1] - r * 5;
    street[i][j].setIcon(frontImagesTrain[trainPlace]);
    street[r][c].setIcon(trackImagesTrain[trainPlace1]);
    }catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
    public void setRest(){
    setStop(true);
              setSpeed(300);
    int i = frontPath[trainPlace]/5;
    int j = frontPath[trainPlace] - i * 5;
    street[i][j].setIcon(trackImagesTrain[trainPlace]);
    trainPlace = 0;
    i = frontPath[trainPlace]/5;
    j = frontPath[trainPlace] - i * 5;
    street[i][j].setIcon(frontImagesTrain[0]);
    public void setCheck (boolean c)
    int i = frontPath[trainPlace]/5;
    int j = frontPath[trainPlace] - i * 5;
    street[i][j].setIcon(frontImagesTrain[0]);
    check = c ;
    public boolean getCheck (){ return  check ;}
    public void setSpeed (int s){speed = s ;}
    public int getSpeed(){return  speed;}
    public void setStop(boolean s){stopped = s ;}
    public boolean getStop(){return  stopped ;}
    public void setBack(boolean s){back = s ;}
    public boolean getBack(){return  back;}
         public void setAdd(){carrNum++ ;}
    public boolean getAdd(){return  add;}
    // Action
         public void actionPerformed(ActionEvent e){
              if(e.getSource()==keybord[0])//Start
              if (stopped)
              keybord[0].setText("Stop");
                   setStop(false);
                   labelInfo.setText("Running");
    else      
                   {    setStop(true);
                   keybord[0].setText("Start");
                        labelInfo.setText("Stop");
              if(e.getSource()==keybord[1])//Front And Back
              if (!back)
                   setBack(true);
              keybord[1].setText("Front");
                   labelInfo.setText("Back");
              else      
                   setBack(false);
              keybord[1].setText("Back");
                   labelInfo.setText("Front");
              }     else if (e.getSource()==keybord[2])//Fast
              if (speed <= 0)
              labelInfo.setText("You've arrived the maximum speed : " + getSpeed());
              else {      setSpeed(speed  - 10);
                   labelInfo.setText("The Train speed is slow down to : " + getSpeed());
         else if(e.getSource()==keybord[3])//Slow
              {setSpeed(speed + 10);
                    labelInfo.setText("The Train speed is pulled up to : "+getSpeed());
    else if(e.getSource()==keybord[4]) //ADD carrin
                        setAdd();
                        labelInfo.setText("Add Carriage");
              //setStop(false);
    else if(e.getSource()==keybord[5]) //Delete carrin
                   labelInfo.setText("Delete Carrin");
         else if(e.getSource()==keybord[6]) //Rest
                   setRest();     
              labelInfo.setText("Rest");
         else if (e.getSource()==keybord[7]) //Check
         setCheck(true);
         keybord[7].setEnabled(false);
         keybord[0].setEnabled(true);
         keybord[1].setEnabled(true);
         keybord[2].setEnabled(true);
         keybord[3].setEnabled(true);
         keybord[4].setEnabled(true);
         keybord[5].setEnabled(true);
         keybord[6].setEnabled(true);
         keybord[8].setEnabled(true);
         labelInfo.setText("The Train is Checked");
    else if(e.getSource()==keybord[8]) //desiners
         String x = "";
                   labelInfo.setText("Desiners About");
                   JOptionPane.showMessageDialog(null,"The Progect is Under The Auspices of:"
                   + "\n??" + "\n" + "\n ??" +
                   "\n ??" + "\n??" + "\n ??" + "\n" + "\n" + "\n?? " + "\n C 2007");     }     
    This main ..
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.Thread;
    public class TestTrain{     
        public static void main(String[]args){
            Train train = new Train ();
              MoveTrain mt = new MoveTrain(train);
            train.setTitle("Train");
            train.setSize(421,550);
            train.setVisible(true);
            train.addWindowListener (
            new WindowAdapter (){
                 public void windowClosing(WindowEvent e ){
                      System.exit(0);
              mt.start();
    }This Threads
    import java.lang.Thread;
    public class MoveTrain extends Thread {
         Train train ;
        public MoveTrain (Train train){
               this.train= train;
         public void run(){
               while(!train.getCheck());
               while (train.getCheck()){
                    try {sleep (train.getSpeed()); }
                    catch (InterruptedException e ){System.out.println("unknown error");}
                     if (!train.getStop())
                        if(!train.getBack())
                                {train.moveTrainFront();
                          else  train.moveTrainBack();
    }This Link image icon ..
    http://www.geocities.com/alhairan_2003/as/777/UpRight.jpg
    http://www.geocities.com/alhairan_2003/as/777/Vert.jpg
    http://www.geocities.com/alhairan_2003/as/777/TrainUp.jpg
    http://www.geocities.com/alhairan_2003/as/777/TrainRight.jpg
    http://www.geocities.com/alhairan_2003/as/777/TrainLeft.jpg
    http://www.geocities.com/alhairan_2003/as/777/TrainDown.jpg
    http://www.geocities.com/alhairan_2003/as/777/Train.jpg
    http://www.geocities.com/alhairan_2003/as/777/RightUp.jpg
    http://www.geocities.com/alhairan_2003/as/777/RightDown.jpg
    http://www.geocities.com/alhairan_2003/as/777/NoTrack.jpg
    http://www.geocities.com/alhairan_2003/as/777/Horiz.jpg
    http://www.geocities.com/alhairan_2003/as/777/DownRight.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage3Up.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage3Right.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage3Left.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage3Down.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage2Up.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage2Right.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage2Left.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage2Down.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage1Right.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage1Left.jpg
    http://www.geocities.com/alhairan_2003/as/777/Carriage1Down.jpg
    thanks :)

            String[] car1Names = {
                "Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
            };The first image name should be "Carriage1Up" but it is missing in your directory.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class MC6 implements Runnable, ActionListener {
        JLabel[] grid;
        BufferedImage[] trackImages;
        BufferedImage[] trainImages;
        BufferedImage[][] carImages;
        int[] imageKeys;
        int[] trackKeys;
        int[] forwardKeys;
        int[] reverseKeys;
        int keyIndex = 0;
        int carCount = 0;           // [0 - 3]
        boolean goingAhead = true;
        boolean changeDirections = false;
        Thread thread = null;
        boolean moving = false;
        final int DELAY = 1000;
        public MC6() {
            loadImages();
        public void actionPerformed(ActionEvent e) {
            String ac = e.getActionCommand();
            if(ac.equals("START"))
                changeDirections = false;
                start();
            if(ac.equals("STOP"))
                stop();
            if(ac.equals("FORWARD") || ac.equals("REVERSE"))
                changeDirections = true;
            if(ac.equals("ADD CARRIAGE"))
                carCount += (carCount+1 <= 3) ? 1 : 0;
            if(ac.equals("REMOVE CARRIAGE")) {
                int carIndex = getCarIndex(carCount);
                int trackIndex = trackKeys[carIndex];
                int imageIndex = imageKeys[carIndex];
                grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));           
                carCount -= (carCount-1 >=0 ) ? 1 : 0;
        public void run() {
            while(moving) {
                // Clear track in preparation for next advance.
                if(changeDirections) {
                    clearTrack();
                    // Adjust keyIndex by one increment in the direction of travel
                    // to allow it to return it to its current position after the
                    // next advance in position (further below).
                    advance();
                    goingAhead = !goingAhead;
                    changeDirections = false;
                } else {
                    // Replace last car with track image before train advances.
                    int carIndex = getCarIndex(carCount);
                    int trackIndex = trackKeys[carIndex];
                    int imageIndex = imageKeys[carIndex];
                    grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
                // Move to next position on the track.
                advance();
                // Set locomotive.
                setLocomotive();
                // Set the cars following the locomotive.
                setCars();
                try {
                    Thread.sleep(DELAY);
                } catch(InterruptedException e) {
                    System.out.println("interrupted");
                    stop();
        private int getCarIndex(int carNumber) {
            int n = carNumber;
            int index;
            if(goingAhead) {
                index = keyIndex-n;
                if(index < 0)
                    index += trackKeys.length;
            } else {
                index = (keyIndex+n) % trackKeys.length;
            return index;
        private void advance() {
            keyIndex = goingAhead ?
                           (keyIndex+1 > trackKeys.length-1) ? 0 : keyIndex+1
                           (keyIndex-1 < 0) ? trackKeys.length-1 : keyIndex-1;
        private void clearTrack() {
            // Remove all cars from track before direction change.
            for(int j = 0; j < carCount; j++) {
                int carIndex = getCarIndex(j+1);
                int trackIndex = trackKeys[carIndex];
                int imageIndex = imageKeys[carIndex];
                grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
        private void setLocomotive() {
            int trackIndex = trackKeys[keyIndex];
            int imageIndex = goingAhead ? forwardKeys[keyIndex]
                                        : reverseKeys[keyIndex];
            grid[trackIndex].setIcon(new ImageIcon(trainImages[imageIndex]));
        private void setCars() {
            for(int j = 0; j < carCount; j++) {
                int carIndex = getCarIndex(j+1);
                int trackIndex = trackKeys[carIndex];
                int imageIndex = goingAhead ? forwardKeys[carIndex]
                                            : reverseKeys[carIndex];
                grid[trackIndex].setIcon(new ImageIcon(carImages[j][imageIndex]));
        private void start() {
            if(!moving) {
                moving = true;
                thread = new Thread(this);
                thread.setPriority(Thread.NORM_PRIORITY);
                thread.start();
        public void stop() {
            moving = false;
            if(thread != null)
                thread.interrupt();
            thread = null;
        private void loadImages() {
            String[] trackNames = {
                "UpRight", "RightDown", "Vert", "DownRight", "Horiz", "RightUp", "NoTrack"
            String[] trainNames = { "TrainUp", "TrainLeft", "TrainDown", "TrainRight" };
            String[] car1Names = {
                "Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
            String[] car2Names = {
                "Carriage2Up", "Carriage2Left", "Carriage2Down", "Carriage2Right"
            String[] car3Names = {
                "Carriage3Up", "Carriage3Left", "Carriage3Down", "Carriage3Right"
            trackImages = getImages(trackNames);
            trainImages = getImages(trainNames);
            BufferedImage[] car1Images = getImages(car1Names);
            BufferedImage[] car2Images = getImages(car2Names);
            BufferedImage[] car3Images = getImages(car3Names);
            carImages = new BufferedImage[][]{ car1Images, car2Images, car3Images };
        private BufferedImage[] getImages(String[] ids) {
            BufferedImage[] images = new BufferedImage[ids.length];
            for(int j = 0; j < ids.length; j++) {
                String path = "images/" + ids[j] + ".jpg";
                try {
                    images[j] = ImageIO.read(new File(path));
                } catch(IOException e) {
                    System.out.println("Read error for " + path +
                                       ": " + e.getMessage());
                    images[j] = null;
            return images;
        private JPanel getCenterComponent() {
            imageKeys = new int[] {
                0, 1, 3, 4, 1,  2,  5,  4,  0,  5,  3,  2,  2, 2
            trackKeys = new int[] {
                0, 1, 6, 7, 8, 13, 18, 17, 16, 21, 20, 15, 10, 5
            forwardKeys = new int[] {
                0, 3, 2, 3, 3,  2,  2,  1,  1,  2,  1,  0,  0, 0
            reverseKeys = new int[] {
                1, 0, 1, 1, 0,  0,  3,  3,  0,  3,  2,  2,  2, 2
            grid = new JLabel[25];
            JPanel panel = new JPanel(new GridLayout(5,0));
            for(int j = 0; j < grid.length; j++) {
                ImageIcon icon;
                int index = getIndexForValue(j);
                if(index != -1) {
                    icon = new ImageIcon(trackImages[imageKeys[index]]);
                } else {
                    icon = new ImageIcon(trackImages[6]);
                grid[j] = new JLabel(icon);
                panel.add(grid[j]);
            return panel;
        private int getIndexForValue(int value) {
            for(int j = 0; j < trackKeys.length; j++) {
                if(value == trackKeys[j])
                    return j;
            return -1;
        private JPanel getControls() {
            String[] ids = {
                "Start", "Stop", "Forward", "Reverse", "Add Carriage", "Remove Carriage"
            JPanel panel = new JPanel(new GridLayout(0,2));
             for(int j = 0; j < ids.length; j++) {
                JButton button = new JButton(ids[j]);
                button.setActionCommand(ids[j].toUpperCase());
                button.addActionListener(this);
                panel.add(button);
            return panel;
        public static void main(String[] args) {
            MC6 test = new MC6();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getCenterComponent());
            f.getContentPane().add(test.getControls(), "Last");
            f.pack();
            f.setLocation(200,100);
            f.setVisible(true);
    }

  • Can any provide me problem issues on ABAP dictionary for practice?

    Or any one can tell me the links in which problem issues on ABAP dictionary is there?
    Moderator message : Don't ask for links & solution to vague requirements. Thread locked.
    Edited by: Vinod Kumar on Jun 14, 2011 9:36 AM

    Hi jessculter, 
    Thanks for your post. 
    I am sorry to hear about the problems you have been having lately. 
    Please send me in your details using the "Contact The Mods" link found in my profile and I will take it from there. 
    Cheers,
    OlgaC 
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Logical problem using vectors

    Hi and Happy New Year,
    I have a vector in my java application which contains a number of elements that is not fix which means each time the number of elements might change.
    I want to retrieve the elements of the vector 3 by 3 its like table records paging in jsp , asp or php
    - lets say this time i've got 10 elements in my vector , I have to JButtons previous_3 and next_3
    - The first time the program runs I want to get the first three elements of the vector (0 to 2)
    - By clicking on the next_3 button I want to get the next 3 ( 3 to 5) and so on... providing that the exist
    - By clicking on the privious_3 button I want to get the previous 3 ( 0 to 2) in this instance and so on... providing that the exist
    Can anyone give me a hint as how to solve this problem at least give me some ideas cause i am lacking of ideas my brain is frozen, I know that is it more a logical problem that a programming one
    I 've done this kind of thing in Asp and PHP but as I am new to Java
    I just can not figure out how to tackle this issue

    You may want to use the modulus function.
    lets look at an example.
    pseudo code
    vector v = new vector()
    v.size = 10; //lets say there are 10 elements in the vector
    int n = 3; // you want to jump maximum 3 elements each time
    // you can jump 3.3 times before running outide the scope
    // of the vector, well after the third time you must check
    // how many elements that is left in the vector, this is
    // done by modulus n%10 = 1, this means that the last time
    // you can not jump more than 1 element.
    I have to go now so I cant give you any code to cope with the problem, Ill be back in 3 hours, maybe I can give a good axample, but this outline is the way to go.
    TheLaw

  • What r problems came related ABAP/4 work, when upgration from lower version

    Hi Experts,
    can i know information about upgration.
    what are problems came in ABAP/4 realated development,when upgration from lower version to higher version.
    Best Regards
    jai

    Hi Jayasunderreddy,
    I have gone through an upgradation project, which upgrades from lower version to higher version, there are some problem we could find and here are they:
    1) There were some syntax errors for the variables.
    sloution) we should relate them with new version variables and change them.
    2) There were some FM to be changed according to the version
    3) There were change in BDC also if the objects having BDC then we have to check whether it is functioning well or not, or the best way is to replace the BDC with BAPI, which is independent of version change, so further no problems if at all the version changes.
    Is this information ok..this is what we did for that.
    if you are satisfied then award the points.
    Thanks and regards
    Vipin Das V

  • Problem with logical database DDF in ABAP query

    Hi All,
          I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
    Thanks and regards,
    Sarath.

    I think it's not used by DDF.
    so you must check it with:
    check kna1-bran1 in s_bran1.
    A.

  • Problem creating new ABAP Technical System in SLD

    I newly installed a ECC 5 IDES system (ABAP + JAVA) on my computer for ABAP and Webdynpro learning.
    I got problem when I try to create new ABAP Technical System in SLD.
    I put my steps of installation here so you know my full story.
    1. Install Central Instance (Non-unicode);
    2. Install Database Instance (Non-unicode);
    3. Install Java add-in on ABAP;
    4. Configure the HTTP connection parameters in J2EE Engine Visual Administrator
    All of the above steps are successful.
    Now my Webdynpro application need to access a Function Module, so I want to create a JCo connection in Webdynpro Content Administrator, but both application server and message server are not available, so I can't create any connection.
    I go back to SLD to register ABAP Technical System step by step below:
    1.      Choose Home ® Technical Systems.
    2.      Choose New Technical System.
    3.      Select the AS ABAP radio button.
    4.      Choose Next.
    5.      Enter system details (Installation number, host name).
    6.      Choose Next.
    7.      Enter message server and central application server details.
    8.      Choose Next.
    9.      Choose Next.
    10.    Add New Client 800, leave logical name blank, click Add.
    11.    Choose Next.
    12.    Here the system says 'No product available', the whole effort make no sense.
    I tried every possible settings, but at step 12 it keeps telling me 'No product available'.
    This is the problem I want to fix.
    Can anyone help me?
    Thanks a lot in advance.

    hi,
    use th following thread,
    No products installed while adding a Technical ABAP System in the SLD.
    Regards
    Jayapriya

  • Problem in HR- Abap code

    Hi ,
             I am writing HR Abap. I m using IF condition inside GET PERNR. As i am not givin personnel number in selection screen, it should fetch all possible persoonel number details. but in my case this loop gets termintaed if any one of the personnel number fails the if condition. But i want loop to continue to fetch other PERNR details. Please can any one help me out in this.
    GET pernr.
      IF pnpstat2-low EQ '3' OR pnpstat2-low EQ '1'.
        PERFORM get_terminatedate.
        PERFORM fetch_employee_details.
      ELSEIF pnpstat2-low EQ '0' OR pnpstat2-low EQ '2'.
        PERFORM get_terminatedate.
    IF v_termdate LE 45.                               "This is that if condition
      PERFORM fetch_rehire USING '12'.
        IF g_rehiredate NE high-date.
          hiredate = g_rehiredate.
          wa_final-t_rehiredate = hiredate.
        ELSE.
          PERFORM fetch_rehire USING '01'.
          IF g_rehiredate NE high-date.&quot;endda.
            hiredate = g_rehiredate.
            wa_final-t_rehiredate = hiredate.
          ENDIF.
        ENDIF.
        PERFORM fetch_employee_details.
      ELSE.
         MESSAGE text-001 TYPE 'E'.
       ENDIF.
    Edited by: Vanitha P on Sep 2, 2010 11:28 AM

    Hi Vanitha,
    I got your problem. If you will use if else statement den it will work like that only means if any one pernr fails the condition loop will end. So better use CHECK statement there instead of giving if-else.
    like-
    GET pernr.
      IF pnpstat2-low EQ '3' OR pnpstat2-low EQ '1'.
        PERFORM get_terminatedate.
        PERFORM fetch_employee_details.
      ELSEIF pnpstat2-low EQ '0' OR pnpstat2-low EQ '2'.
        PERFORM get_terminatedate.
    check firedate GT V_DATE .        "  Use this Check statement.
    PERFORM fetch_rehire USING '12'.
        IF g_rehiredate NE high-date.
          hiredate = g_rehiredate.
          wa_final-t_rehiredate = hiredate.
        ELSE.
          PERFORM fetch_rehire USING '01'.
          IF g_rehiredate NE high-date."endda.
            hiredate = g_rehiredate.
            wa_final-t_rehiredate = hiredate.
          ENDIF.
        ENDIF.
        PERFORM fetch_employee_details.
      ELSE.
         MESSAGE text-001 TYPE 'E'.
       ENDIF.
    Use one fm "RP_HIRE_FIRE" to capture fire date and then compare it with ur variable v_date.
    Thanks and Regards,
    Nidhi Srivastava.

  • Problem Mapping to ABAP Proxy

    Hello,
    I Have a very strange error.
    So i send a Message from Java Proxy ->to-> ABAP Proxy.
    The Mapping is a XSLT Mapping.
    The Mapping everthings fine but the ABAP Proxy get and error like:
    Error during XML => ABAP conversion (; error ID: ; ( ))
    ....CREATE_TRANSACTIONS(1)IT_TRANSACTION(1)item(1)OPERATORQUAL(9) Error Text: Data loss occurred when converting 9134408  Kernel ErrorId: CONVT_DATA_LOSS))
    Ok the error is normally not so strange, but in my XML Message the tag OPERATORQUAL is empty. The 9134408 ist the last filled tag for the OPERATORQUAL.
    Why the ABAP Proxy think there is something in ?
    I checked the XML and there is nothing.
    But when the proxy think there is something like 9134408 that the error is normal, because the field has only except only 1 Char Values.
    Any Idea whats going wrong?
    Regards,
    Robin

    Hi Udo whats up ? ,
    Mappings all works fine.
    Problem was that blanks was there in the XML Tag that you can't see in the XML view.
    This blanks came already from Database.
    Know i kill all blanks in XSLT Mapping and it Works !
    see you soon and regard from zagreb,
    Robin

  • Problem Installation Full ABAP Edition-Trial (with Web Dynpro for ABAP!)

    Hi all,
    I have a problem during installation of new Netweaver 2004s Trailversion. The problem is while installing MaxDB. In file MaxDBSAPNWPREV.log I found the following installationsteps (the error you will see at the bold part at the end):
    (Oct 3, 2006 3:58:04 PM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, An error occurred and product installation failed.  Look at the log file G:\sapdb\NSP\log.txt for details.
    (Oct 3, 2006 3:58:04 PM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile D:/DOCUME1/ELFLEI1/LOCALS~1/Temp/MaxDBSAPNWPREV.log")
    STACK_TRACE: 22
    ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile D:/DOCUME1/ELFLEI1/LOCALS~1/Temp/MaxDBSAPNWPREV.log")
         at com.sap.installshield.maxdb.maxdb_call_sdbinst.install(maxdb_call_sdbinst.java:193)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction (Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProduct(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.installshield.wizard.service.LocalImplementorProxy.invoke(Unknown Source)
         at com.installshield.wizard.service.AbstractService.invokeImpl(Unknown Source)
         at com.installshield.product.service.product.GenericProductService.installProduct(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installAssembly(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.access$900(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: Start SoftwareCheck
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: IndepProgPath: g:\sapdb\programs
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: IndepDataPath: g:\sapdb\data
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: Calling check for dbmcli
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: Software exists, Variable MAXDB_SOFTW_EXISTS set to YES
    Tue Oct 03 15:10:57 CEST 2006 MaxDB: Calling check for existent database instances
    Tue Oct 03 15:10:58 CEST 2006 MaxDB waiting for :"g:\sapdb\programs/pgm/dbmcli.exe" db_enum:
    Tue Oct 03 15:10:59 CEST 2006 MaxDB: These database instances already exists =
    Tue Oct 03 15:10:59 CEST 2006 MaxDB: End of SoftwareCheck!
    Tue Oct 03 15:12:33 CEST 2006 MaxDB: Start of Extracting Software and Backup.
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: End of Extracting Software and Backup.
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: Start of CallSdbinst
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: IndepProgPath = g:/sapdb/programs
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: Stopping x_server
    Tue Oct 03 15:57:03 CEST 2006 MaxDB program: g:/sapdb/programs/bin/x_server.exe
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: Found g:/sapdb/programs/bin/x_server.exe
    Tue Oct 03 15:57:03 CEST 2006 MaxDB: Calling: "g:/sapdb/programs/bin/x_server.exe" stop
    Tue Oct 03 15:57:05 CEST 2006 MaxDB: rc of x_server stop call = 0
    Tue Oct 03 15:57:05 CEST 2006 MaxDB: inst_type = :restore:
    Tue Oct 03 15:57:05 CEST 2006 MaxDB: Calling sdbinst with template option sapmds
    Tue Oct 03 15:57:05 CEST 2006 MaxDB SID: NSP
    Tue Oct 03 15:57:05 CEST 2006 MaxDB drive: G:\
    Tue Oct 03 15:57:05 CEST 2006 MaxDB softwarepath: G:/sapdb
    Tue Oct 03 15:57:05 CEST 2006 MaxDB Software location: G:/sapdb/NSP/_tempLocation
    Tue Oct 03 15:57:05 CEST 2006 MaxDB backup_loc: G:/sapdb/NSP/_tempLocation/load/load_datasave
    Tue Oct 03 15:57:05 CEST 2006 MaxDB program: G:/sapdb/NSP/_tempLocation/sdbinst.exe
    Tue Oct 03 15:57:05 CEST 2006 MaxDB paramfile: G:/sapdb/NSP/_tempLocation/sapmds.txt
    Tue Oct 03 15:57:05 CEST 2006MaxDB found sdbinst
    Tue Oct 03 15:57:05 CEST 2006 MaxDB: Calling: G:/sapdb/NSP/_tempLocation/sdbinst.exe -t sapmds -f "G:/sapdb/NSP/_tempLocation/sapmds.txt" -p DBNAME=NSP -p SOFTWAREPATH="G:/sapdb" -p INSTANCEBACKUP="G:/sapdb/NSP/_tempLocation/load/load_datasave"
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:      Installation of MaxDB Software
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:      *******************************
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:12 CEST 2006 MaxDB sdbinst: starting installation Tu, Oct 03, 2006 at 15:57:12
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst: operating system: Windows I386 NT 5.1 Service Pack 2
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst: callers working directory: D:/SAP_Install/SAPNW2004sABAPTrail/image
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst: installer directory: G:/sapdb/NSP/_tempLocation
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst: archive directory: G:/sapdb/NSP/_tempLocation
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:13 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:36 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:36 CEST 2006 MaxDB sdbinst: starting preparing phase of package Base 7.6.00.32 32 bit
    Tue Oct 03 15:57:36 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:36 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:38 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:38 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst: check rte registration of package... ok
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:40 CEST 2006 MaxDB sdbinst: starting preparing phase of package SAP Utilities 7.6.00.32 32 bit
    Tue Oct 03 15:57:41 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:41 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:41 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:41 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst: starting preparing phase of package SQLDBC 7.6.00.32 32 bit
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:42 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:43 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:43 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:43 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:44 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:44 CEST 2006 MaxDB sdbinst: starting preparing phase of package JDBC 7.6.00.30
    Tue Oct 03 15:57:44 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:44 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:44 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: starting preparing phase of package Server Utilities 7.6.00.32 32 bit
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:45 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst: starting preparing phase of package Database Kernel 7.6.00.32 32 bit
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:46 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:52 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:52 CEST 2006 MaxDB sdbinst: check rte registration of package... ok
    Tue Oct 03 15:57:52 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:52 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:52 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: starting preparing phase of package Messages MSG 0.3951
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: starting preparing phase of package ODBC 7.6.00.32 32 bit
    Tue Oct 03 15:57:53 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: starting preparing phase of package Webtools 7.6.00.32 32 bit
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:57:54 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:57:55 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:58:02 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:58:02 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:58:02 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: starting preparing phase of package SQLDBC 76 7.6.00.32 32 bit
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: -
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst:
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: same package already installed
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: checking consistence of package data in install registry...
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: check files... ok
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: skipping package
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: installation of MaxDB Software finished successfully Tu, Oct 03, 2006 at 15:58:03
    <b><b><b>Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: creating database NSP...
    Tue Oct 03 15:58:03 CEST 2006 MaxDB sdbinst: ERROR: Backup check for  'G:\sapdb\NSP\_tempLocation\load\load_datasave' failed:
    Tue Oct 03 15:58:04 CEST 2006 MaxDB sdbinst: File not found: G:\sapdb\NSP\_tempLocation\load\load_datasave</b>Tue Oct 03 15:58:04 CEST 2006 MaxDB sdbinst: installation exited abnormally  at Tu, Oct 03, 2006 at 15:58:03
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: Error during call to sdbinst, rc= 1
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: Done with call_sdbinst
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: rc of sdbinst = 1
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: Start of CallSdbuninst
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: IndepProgPath: g:/sapdb/programs
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: dbmcli path: g:/sapdb/programs/pgm/dbmcli.exe
    Tue Oct 03 15:58:04 CEST 2006 MaxDB: Calling check for db_enum in case of an abort
    Tue Oct 03 15:58:05 CEST 2006 MaxDB: nsp doesn't exist. Nothing to do !
    Tue Oct 03 15:58:05 CEST 2006 MaxDB: rc of Method: 3
    Tue Oct 03 15:58:05 CEST 2006 MaxDB: IndepProgPath = g:/sapdb/programs
    MaxDB: dbmcli_path = g:/sapdb/programs/pgm/dbmcli.exe
    MaxDB: Database instance to drop: :NSP:
    MaxDB: Instroot of NSP is: null
    MaxDB: sdbuninst_option = :3
    MaxDB: 0=uninstall all, 1=uninstall Kernel package, 2=drop database only, 3=do nothing
    Tue Oct 03 15:58:05 CEST 2006 MaxDB: End of CallSdbuninst
    Tue Oct 03 15:58:05 CEST 2006 MaxDB: End of uninstallation     at java.lang.Thread.run(Unknown Source)</b></b>

    Please referr to the ideas on this thread.
    Install Problems withe the NW04s ABAP Trial verssion
    You have installed the loopback adapter and made the propriate entries in the hosts file, right?
    Regards,
    Rich Heilman

  • Problem while sending Abap list to mail in the background

    Hi all,
    I am sending abap list to email in the background.
    My code as folllows:
    DATA: so_ali LIKE solisti1 OCCURS 100 WITH HEADER LINE.
      DATA: listobject LIKE abaplist OCCURS 0 WITH HEADER LINE.
      DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
      DATA: doc_chng LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
      DATA: lt_user TYPE soud3 OCCURS 0 WITH HEADER LINE.
    *Start of modification Tix 14411 for transport request D82K929044
      DATA: it_user like SODLIENTI1 occurs 0 with header line.
    *End of modification for Tix 14411 for transport request D82K929044
    CLEAR: listobject, so_ali, objpack, objhead, objtxt, reclist, doc_chng.
      REFRESH :
         listobject, so_ali, objpack, objhead, objtxt, reclist.
    creation of the document to be sent
      doc_chng-obj_name = 'BOFAREPORT'.
      WRITE sy-datum TO doc_chng-obj_descr.
      CONCATENATE 'Bank Activity Report for :'(025)
              company_itab_tr-company_code '-' doc_chng-obj_descr INTO
              doc_chng-obj_descr.                               "AN052799
      objtxt = 'This is the bank activity report received for'(026).
      APPEND objtxt.
      CONCATENATE company_itab_tr-company_code '-'
                  company_itab_tr-company_name '-'
                  company_itab_tr-company_city INTO
                  objtxt.
      APPEND objtxt.
      WRITE sy-datum TO objtxt.
      CONCATENATE 'Date Received : '(027) objtxt INTO objtxt.
      APPEND objtxt.
      WRITE sy-uzeit TO objtxt.
      CONCATENATE 'Time Received : '(028) objtxt INTO objtxt.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creation of the entry for the compressed document
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    Creation of the document attachment
      CALL FUNCTION 'SAVE_LIST'
        EXPORTING
          list_index         = '0'
        TABLES
          listobject         = listobject
        EXCEPTIONS
          list_index_invalid = 1
          OTHERS             = 2.
      CALL FUNCTION 'TABLE_COMPRESS'       "Schneller Tabellencopy
           TABLES
                in         = listobject
                out        = so_ali.
      DESCRIBE TABLE so_ali LINES tab_lines. "objbin
      objhead = 'BOFA-REPORT'. APPEND objhead.
    Creation of the entry for the compressed attachment
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'ALI'.
      objpack-obj_name = 'BOFAREPORT'.
      objpack-obj_descr = 'Bank Activity Report'.
      objpack-doc_size = tab_lines * 255.
      APPEND objpack.
    Completing the recipient list
      SELECT * FROM zwfi_yefap_paypr WHERE
                           bukrs = company_itab_tr-company_code.
        IF NOT  ( zwfi_yefap_paypr-list1 IS INITIAL ).
          clear it_user[].
          CALL FUNCTION 'SO_DLI_READ_API1'
           EXPORTING
             DLI_NAME                         = zwfi_yefap_paypr-list1
          DLI_ID                           = ' '
             SHARED_DLI                       = 'X'
        IMPORTING
          DLI_DATA                         =
           TABLES
             DLI_ENTRIES                      = it_user
           EXCEPTIONS
             DLI_NOT_EXIST                    = 1
             OPERATION_NO_AUTHORIZATION       = 2
             PARAMETER_ERROR                  = 3
             X_ERROR                          = 4
             OTHERS                           = 5
          IF SY-SUBRC = 0.
            loop at it_user.
              if it_user-member_typ = 'A'.
                reclist-receiver = it_user-member_adr.
                reclist-rec_type = 'U'.
                reclist-com_type = 'INT'.
                reclist-notif_del = 'X'.
                reclist-notif_ndel = 'X'.
                append reclist.
              elseif it_user-member_typ = ''.
                reclist-receiver = it_user-member_nam.
                reclist-rec_type = 'B'.
                reclist-express = 'X'.
                append reclist.
              Endif.
            endloop.
          ENDIF.
        ENDIF.
        IF NOT ( zwfi_yefap_paypr-list2 IS INITIAL ).
          clear it_user[].
          CALL FUNCTION 'SO_DLI_READ_API1'
           EXPORTING
             DLI_NAME                         = zwfi_yefap_paypr-list2
          DLI_ID                           = ' '
             SHARED_DLI                       = 'X'
        IMPORTING
          DLI_DATA                         =
           TABLES
             DLI_ENTRIES                      = it_user
           EXCEPTIONS
             DLI_NOT_EXIST                    = 1
             OPERATION_NO_AUTHORIZATION       = 2
             PARAMETER_ERROR                  = 3
             X_ERROR                          = 4
             OTHERS                           = 5
          IF SY-SUBRC = 0.
            loop at it_user.
              if it_user-member_typ = 'A'.
                reclist-receiver = it_user-member_adr.
                reclist-rec_type = 'U'.
                reclist-com_type = 'INT'.
                reclist-notif_del = 'X'.
                reclist-notif_ndel = 'X'.
                append reclist.
              elseif it_user-member_typ = ''.
                reclist-receiver = it_user-member_nam.
                reclist-rec_type = 'B'.
                reclist-express = 'X'.
                append reclist.
              Endif.
            endloop.
          ENDIF.
        endif.
      ENDSELECT.
      CLEAR error_text.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
          COMMIT_WORK                = 'X'
       TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = so_ali  "objbin
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      CASE sy-subrc.
        WHEN 0.
          write: / 'Result of the send process:'.
          LOOP AT reclist.
            write: / reclist-receiver(48), ':'.
            IF reclist-retrn_code <> 0.
              write 'The document was sent'.
            else.
              CONCATENATE 'The document could not be sent to : '(029)
                         reclist-receiver(48) INTO error_text.
            ENDIF.
          ENDLOOP.
        WHEN 1.
          error_text = text-030.
        WHEN 2.
          error_text = 'Document could not be sent to any recipient'(031).
        WHEN 4.
          error_text = 'No send authorization'(032).
        WHEN OTHERS.
          error_text = 'Error occurred while sending'(033).
      ENDCASE.
      IF NOT ( error_text IS INITIAL ).
        CONCATENATE 'Mail send Error : '(034) error_text INTO error_text.
       PERFORM WRITE_LOG(YEFAP_APERAK) USING ERROR_TEXT.
        PERFORM write_log(zwfi_yefap_bank_report) USING error_text.
      ENDIF.
      CALL FUNCTION 'LIST_FREE_MEMORY'
        TABLES
          listobject = listobject
        EXCEPTIONS
          OTHERS     = 1.
    When I excute the same program in the foreground, Attachment in the mail is showing all the pages of the report output.
    But when I excute the same program in the background only last page is shown in the mail attachemnt.
    I think the problem is with the function module SAVE_LIST function module.
    I replaced the SAVE_LIST function module with  LIST_TO_MEMORY and LIST_FROM_MEMORY function modules.
    It is also giving the same result.
    In the foreground excution email attachemnt showing all the pages and in the background excution only last page is shown in the attachemnt.
    I want all the pages dispalyed in the background mode excution in the email attachment.
    How to slove this issue.
    Thanks in advance.
    Raja

    I have seen this problem before.   Please have a look at this example program.  This works very well when ran in background as well as foreground
    * This program works in the background,
    report zrich_0003 .
    data: maildata like sodocchgi1.
    data: mailtxt like solisti1 occurs 10 with header line.
    data: mailrec like somlrec90 occurs 0 with header line.
    data: list type table of abaplist with header line.
    data: ascilines(1024) type c occurs 0 with header line.
    data: htmllines type table of w3html with header line.
    parameters: p_check.
    start-of-selection.
      submit zrich_0004 exporting list to memory and return.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = list
           exceptions
                not_found  = 1
                others     = 2.
      call function 'LIST_TO_ASCI'
           tables
                listobject         = list
                listasci           = ascilines
           exceptions
                empty_list         = 1
                list_index_invalid = 2
                others             = 3.
      call function 'WWW_HTML_FROM_LISTOBJECT'
           tables
                html       = htmllines
                listobject = list.
      clear: maildata, mailtxt, mailrec.
      refresh: mailtxt, mailrec.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      commit work.
      wait up to 2 seconds.
      submit rsconn01 with mode = 'INT'
                   with output = 'X'
                              and return.
    Regards,
    Rich Heilman

  • Problem installing NW2004s ABAP Trial version on windows xp pro SP3

    Good Day.
    I have drawbacks installing Abap Trial SP12. When it comes to 89% ends abruptly.
    I set up MS Loopback Adapter. The operating system is Windows XP Professional SP3. 1Gb RAM. Disk Space 50Gb Free.
    I have installed thousand and once and presents the same mistake. I have followed the procedure to uninstall the MaxDB, Stop service SAP, Clear Folders installed and clean record with RegCleanTool. And nothing, I am grateful for the help they can give me.
    Thank you.
    (May 27, 2008 7:13:42 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles, err, An error occurred and product installation failed. Look at the log file C:\SAP\NSP\log.txt for details.
    (May 27, 2008 7:13:42 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.execute(StepWrapperInstallFiles.java:2 54)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllSteps(StepWrapperInstallFile s.java:224)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllInstallationSteps(StepWrappe rInstallFiles.java:177)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.install(StepWrapperInstallFiles.java:2 68)
    at com.installshield.product.service.product.PureJava ProductServiceImpl.installProductAction(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$InstallProduct.getResultForProd uctAction(Unknown Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitComponent(Unknown Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitInstallableComponents(Unknow n Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitProductBeans(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$InstallProduct.install(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$Installer.execute(Unknown Source)
    at com.installshield.wizard.service.AsynchronousOpera tion.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    (May 27, 2008 7:18:44 PM), Install, com.installshield.product.service.product.PureJava ProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed. Look at the log file C:\SAP\NSP\log.txt for details.
    (May 27, 2008 7:18:44 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.execute(StepWrapperInstallFiles.java:2 54)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllSteps(StepWrapperInstallFile s.java:224)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllUninstallationSteps(StepWrap perInstallFiles.java:192)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.uninstall(StepWrapperInstallFiles.java :313)
    at com.installshield.product.service.product.PureJava ProductServiceImpl.uninstallProductAction(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$InstallProduct.processActionsFa iled(Unknown Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitComponent(Unknown Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitInstallableComponents(Unknow n Source)
    at com.installshield.product.service.product.Installa bleObjectVisitor.visitProductBeans(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$InstallProduct.install(Unknown Source)
    at com.installshield.product.service.product.PureJava ProductServiceImpl$Installer.execute(Unknown Source)
    at com.installshield.wizard.service.AsynchronousOpera tion.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Problem solved.
    I had installed.
    - Windows XP Pro SP3
    - Java Runtime 1.6
    The uninstall and install the following.
    - Windows XP Pro SP2
    - Java Runtime 1.5
    Thanks.

  • Problem installing NW2004s ABAP Trial version on windows vista business

    Hi Gurus,
    I am trying to install NW04s Abap trial version on Windows vista Business edition when I click on installer it's giving error "Precondition failed" . I wonder If we can install NW04s on win vista business edition.What version will work on vista business edition.
    Please guide me how to install R/3 and BW on my PC which has windows vista business edition installed on it.
    I would appreciate If anyone can help me out in this problem.
    Thanks,
    sat

    Hi Sat
    As far as i know  presently vista does not support NW04s.But in future the NewYork version of netweaver will be supported by vista.
    Reward poinst if usefull

Maybe you are looking for