Can any one answer this?

All,
Can we have any limit for using nested loop in PL/SQL?
Regards
ND

user8900449 wrote:
The recurssion no doubt is elegant but the only problem arises when you are doing some sql or dml inside it.
Because it will end up opening as many cursors as your recursion revolves around.That depends on the scope of the cursor - whether it remains open for the duration of the procedure's lifetime, or whether it is closed before recursion occurs.
Simple (and ugly) example using implicit cursors (cursor is created and destroyed before the recursive call is made in the current active code unit), thus a single open cursor exist (per call) for the lifespan of the entire recursive call.
SQL> create or replace procedure Nest( levelNo number ) is
  2          i       integer;
  3  begin
  4          if levelNo > 0 then
  5                  select levelNo-1 into i from dual;
  6                  Nest( i );
  7          end if;
  8  end;
  9  /
Procedure created.
SQL>
SQL> exec Nest(1000000)
PL/SQL procedure successfully completed.
So be careful in recursion along with sql operation inside it.Agreed. But why would one want to use open SQL cursors in recursion? (i.e. each recursion creating a cursor with scope that spans the recursive call)
There are nested loop joins (courtesy of the CBO), hierarchical query support and so on. Using PL to solve a SQL problem (like doing manual nested loops in PL) is always a problem - not just an issue with PL recursion.

Similar Messages

  • CAn any one supply this script

    Hi can any one supply this script for
    installing Oracle 11i...
    adautostg.pl
    In order to create a staging area...
    Help me guys...

    I had check the version of perl in linux
    perl -v
    output is
    this perl is, v5.8.0
    but in the StartCD/Disk1/rapidwizard/...the adautostg.pl
    file is not available...
    so it could not able to start
    still I tried by ./rapidwiz

  • Hello!!!!!!!!!!!!!!!!!!!! can any one answer me pleaseeeeeeeee

    hello guys can any one answer my questions.......please
    regards
    Venkat

    thanks some one is here...........
    my question is how to use custom tags in uix with jdev 10g production and how to do validation og forms...
    iam doing my application with struts frame owrk

  • Can any body answer this-Want to set the cursor position in textfield.

    i want my cusor position in textfield at the initial position which will come by default.
    but when i'm using the textfields in an inner class i'm getting the cursor position at the end of the text in text filed.pls can any body answer this.
    thanks in advance.
    if want run this example.
    import java.awt.*;
    import java.awt.event.*;
    class Testing extends JFrame implements ActionListener
         Container cnt;
         JButton jd;
         JTextField jt1;
         JTextField jt2;
         Testing()
              cnt = getContentPane();
              cnt.setLayout(new FlowLayout());
              jd = new JButton("OK");
              //jd.setBounds(50,50,100,30);
              cnt.add(jd);
              jd.addActionListener(this);
         public void actionPerformed(ActionEvent ae)
              Object but = ae.getSource();
              System.out.println("in action 00000");
              if(but.equals(jd))
                   System.out.println("in action ");
                   call();
                   return;
         void call()
              System.out.println("in action 1111111111");
              Inner inn = new Inner();
              inn.jdlg.show();
         public static void main(String s[])
              JFrame jf = new Testing();
              jf.setSize(200,200);
              jf.show();
         class Inner
              JDialog jdlg;
              //JTextField jt1;
              //JTextField jt2;
              Container cnt;
              Inner()
                   jdlg = new JDialog();
                   JLabel jla = new JLabel("Label");
                   jt1 = new JTextField();
                   jt2 = new JTextField(5);
                   cnt = jdlg.getContentPane();
                   cnt.setLayout(new FlowLayout());
                   cnt.add(jt1);
                   cnt.add(jt2);
                   jt1.setText("aaaaaaaa");
                   jt2.setText("bbbbbbbb");
                   System.out.println("the text "+jt1.getText());
                   jdlg.setSize(200,200);

    JTextFiled.setCaretPosition(0);

  • Can any one solve this problem

    when i sent request to the jsp using struts1.1 this error occurred. i couldn't understand this error. can any one let me know when such error comes and let me Know how to solve this error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:653)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:649)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.

    Its problem related to your configuration files. check struts config file

  • Can any one debug this code????

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.geom.*;
    import java.util.*;
    public class AppletTest2 extends JApplet implements ActionListener,MouseMotionListener,WindowListener{
    JFrame fr = new JFrame("Visual Tool -- Work Flow Editor");
         JPanel panel1 = new JPanel();
         JPanel panel2 = new JPanel();
         JButton sButton = new JButton("Source");
         JButton rButton = new JButton("Redirection");
         JButton dButton = new JButton("Destination");
         JButton connect = new JButton("Connect");
         BasicStroke stroke = new BasicStroke(2.0f);
         int flag = 1 ;
         Vector lines = new Vector();
         JButton sBut,rBut,dBut;
    int x1 = 0 ;
         int y1 = 0 ;
         int x2 = 0 ;
         int y2 = 0;
         int x3 = 0;
         int y3 = 0;
         int i=0;
         int j=0;
         int k=0;
         int l = 100;
    int b = 50;
    public void init(){
              /*********Frame ******************/
    fr.getContentPane().setLayout(new BorderLayout());
         fr.setSize(700,500);
              fr.getContentPane().add(panel1,BorderLayout.CENTER);
              fr.getContentPane().add(panel2,BorderLayout.SOUTH);
              fr.addWindowListener(this);
              /*****************PANEL 1*********************/
              panel1.setLayout(null);
    panel1.setBounds(new Rectangle(0,0,400,400));
              panel1.setBackground(new Color(105,105,205));
    /************************PANEL 2 *************/
              panel2.setLayout(new FlowLayout());
              panel2.setBackground(new Color(105,205,159));
              panel2.add(sButton);
              panel2.add(rButton);
              panel2.add(dButton);
              panel2.add(connect);
              connect.setToolTipText("Use this button after selecting From and To position to connect");
              /***************************LISTENER********************/
    sButton.addActionListener(this);
              rButton.addActionListener(this);
              dButton.addActionListener(this);
              connect.addActionListener(this);
              fr.setVisible(true);     
              fr.setResizable(false);
         } // init clse
    /************************** START METHOD **********************************************/
              public void start(){                                 
                   System.out.println("inside start");
                   paint(panel1.getGraphics());
    /*******************************APPLET METHODS **************************************************/
              public void stop(){}
              public void destroy(){}
    /******************************MOUSE MOTION LISTENERS METHOD*************************************/
              public void mouseMoved(MouseEvent e){System.out.println("moved");}
              public void mouseDragged(MouseEvent e){System.out.println("dragged");}
    /***************************************ACTION EVENT IMPLEMENTAION *******************************/
         public void actionPerformed(ActionEvent e){
              if (e.getSource().equals(sButton)){          
              sourceObject("Source Object");          
              else if (e.getSource().equals(rButton)){          
              redirectionObject("Redirection");
              i = i+1;
              else if (e.getSource().equals(dButton)){
              destinationObject("Destination");
                   j= j+1;
              else if (e.getSource().equals(connect)){
                   System.out.println("am inside connect");                
                   paint(panel1.getGraphics());               
    else if(e.getSource().equals(sBut)){
                   System.out.println("am s button");                
                   x1 = sBut.getX() + l;
                   y1 = sBut.getY() + (b/2);
              else if(e.getSource().equals(rBut)){
                   System.out.println("am r button");               
                   x2 = rBut.getX() ;
                   y2 = rBut.getY()+ b/2;
                   System.out.println("x2 : " + x2 + "y2 :" +y2 );
              else if(e.getSource().equals(dBut)){
                   System.out.println("am d button");                
                   x3 = dBut.getX();
    y3 = dBut.getY()+ b/2;
    } // action close
    /**********************Main **********************************/     
         public static void main(String args[]){
         JApplet at = new AppletTest2();
              at.init();
              at.start();
    /********************my methods starts here *******************/
         public void sourceObject(String name){     
    sBut = new JButton(name);
         panel1.add(sBut);
         sBut.setBounds(new Rectangle(20,208,l,b));     
         sBut.addActionListener(this);
    System.out.println("am inside the source object") ;
         public void redirectionObject(String name){     
         rBut = new JButton(name);
         panel1.add(rBut);
         rBut.setBounds(new Rectangle(290,208,l,b));     
    rBut.addActionListener(this);
    System.out.println("am inside the redirection :" + j) ;
    public void destinationObject(String name){     
         dBut = new JButton(name);
         panel1.add(dBut);     
    System.out.println("am inside the destination object") ;
    if (j == 0)
                   dBut.setBounds(new Rectangle(566,60,l,b));                    
                   System.out.println("am inside the destination:" + j) ;
                   } else if (j == 2)
                        dBut.setBounds(new Rectangle(566,208,l,b));     
                        System.out.println("am inside the destination :" + j) ;
                   } else if (j == 1)
    dBut.setBounds(new Rectangle(566,350,l,b));     
                        System.out.println("am inside the destination :" + j) ;
    dBut.addActionListener(this);
    /* public void connectObject(Object obj1,Object obj2){
    System.out.println("nothing");
    /************************************* PAINT **************************/
    public void paint(Graphics g){
         System.out.println("inside paint");
         Graphics2D g2 = (Graphics2D) g;
         g2.setStroke(stroke);
    if(flag == 1){
    System.out.println("inside flag");
    int np = lines.size();
                        System.out.println(np);
                             for (int I=0; I < np; I++) {                       
         Rectangle p = (Rectangle)lines.elementAt(I);
                             System.out.println("width" + p.width);
                             g2.setColor(Color.red);
                             g2.drawLine(p.x,p.y,p.width,p.height);
                             System.out.println(p.x +"" +""+ p.y + ""+ ""+ p.width+ "" + ""+ p.height);
    flag = -1;
    }else if(flag == -1){
         if(x1 != 0 && y1 != 0 && x2 != 0 && y2 != 0 ){
    // Graphics2D g2 = (Graphics2D) g;
         // g2.setStroke(stroke);
    g2.setColor(Color.red);
         g2.drawLine(x1,y1,x2,y2);
         lines.addElement(new Rectangle(x1,y1,x2,y2));     
         x1 = 0 ;y1 = 0 ;
         x2 = 0 ;y2 = 0 ;
    //     g2.drawLine(100,100,200,200);
    else if (x2 != 0 && y2 != 0 && x3 != 0 && y3 != 0 )
              // Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
              g2.setColor(Color.green);
                        g2.drawLine(x2,y2,x3,y3);
                        lines.addElement(new Rectangle(x2,y2,x3,y3));
                        x2 = 0; y2 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    else if (x1 != 0 && y1 != 0 && x3 != 0 && y3 != 0)
                   //     Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
                   g2.setColor(Color.red);
                   g2.drawLine(x1,y1,x3,y3);
                        lines.addElement(new Rectangle(x1,y1,x3,y3));                              
                        x1 = 0; y1 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    // repaint();
    /********************************WINDOW LISTENER IMPLEMENTATION *****************************/
    public void windowActivated(WindowEvent we) { 
              flag = 1;
              paint(panel1.getGraphics());
    System.out.println("windowActivated -- event 1");
         //start();               
         public void windowClosed(WindowEvent we) {
                                                                System.out.println("windowClosed -- 2");
         public void windowClosing(WindowEvent we){
                                                                System.out.println("windowClosing -- 3");
    public void windowDeactivated(WindowEvent we) {
                                                                     System.out.println("windowDeactivated -- 4");
    public void windowDeiconified(WindowEvent we) {
                                                                     flag = 1;
                                                                     System.out.println("windowDeiconified -- 5");          
                                                                     paint(panel1.getGraphics());           
    public void windowIconified(WindowEvent we) {           
                                                           System.out.println("windowIconified -- 6");
                                                           //paint(panel1.getGraphics());
    public void windowOpened(WindowEvent we) {             
                                                      //     flag = 1;
                                                      //     paint(panel1.getGraphics());
                                                           System.out.println("windowopened -- 7");     
    The problem am facing here is that when i minimize the frame and maximize , my old lines are getting disappared.
    For avoiding that i am storing the old coordinates and
    try to redraw , when maximize.
    but the lines are coming for flash of second and disappearing once again ?
    can any one help?
    thanks all

    You are probably seeing both a window un-iconify AND a window resize.
    Your best bet is to create an off screen buffer update that and then copy it to the screen. Just as you use the appropriate Java2d gc.createCompatibleImage(...) you should be ok. You will never have to worry about loosing your on-screen image again. Using an off screen buffer would also simplify your code as your paint would not have to be so crazy with all of those if(..) else if ... statements.

  • Can any one answer me how to import and use jsp libraries into uix file and

    Hi guys
    can any one help me how to import jsp libraries in to my uix file with jdev 10g production adn how to use them..if any one got any sample for this i appreciate if u cans end me that
    thanks
    Venkat

    you cannot use jsp tags inside uix xml pages.
    you can, however, use uix jsp tags inside jsp pages.

  • Can  any one Resolve this Error

    Hello All,
          i have downloaded  AppleAccordion example and imported in flex builder ide .
          i am getting an error
               Interface method get creatingContentPane in namespace mx.core:IContainer not implemented by class Header.
          i have added flexlib.swc file into my build path.
    Can any one help me.
    thanks
    Raghu.

    Hi,
    I don't know what version of FlexLib is in that source, but it's not latest.
    Download and put latest version of Flexlib to your project.
    http://code.google.com/p/flexlib/

  • Can any one change this Applet into a class that extends Jpanel.....

    Hi,
    I need this applet as a class that extends JPanel, I will be very very thankful to you if any one kindly change this Applet code into a class that extends JApplet.
    I will be very thankful to you if some one can reserve few minutes & do this favor early.
    Thanks a lot for any help.
         My Pong Code
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.event.*;
    public class Class1 extends Applet implements Runnable
    {     private final int APPLET_WIDTH = 900;
         private final int APPLET_HEIGHT = 600;
         private int px = 15;
         private final int py = 560;
         private final int ph = 10;
         private final int pw = 75;
         private int old_px = px;
         private int bx = 450;
         private int by = 15;
         private final int bh = 20;
         private final int bw = 20;
         private int move_x = 2;
         private int move_y = 2;
         private boolean done = false;
         Thread t;
         private final int delay = 25;
         public void init()
         {     setBackground(Color.black);
              setSize(APPLET_WIDTH, APPLET_HEIGHT);
              requestFocus();
              addKeyListener(new DirectionKeyListener());
             (t = new Thread(this)).start();
         public void run()      {
        try      {     while((t == Thread.currentThread()) && (done == false))           {     
                   if ((bx < 15) || (bx > APPLET_WIDTH-30))                     move_x = -move_x;                                if ((by < 15) ||                    ((by > APPLET_HEIGHT-60)&&                     ((px<=bx)&&(bx<=px+pw))))
                        move_y = -move_y;
                   if (by > APPLET_HEIGHT)
                        done = true;
                                   bx = bx + move_x;
                   by = by + move_y;                                                repaint();
                   t.sleep(delay);
         catch(Exception e)      {}
         }//end run
         /*public void move_paddle(int amount)
              old_px = px;
              //if (amount > 0)
                //if (px <= APPLET_WIDTH-15)
                   px = px + amount;
              //else if (amount < 0)
               // if (px >= 15)
                   px = px + amount;
         public void paint(Graphics page)
              //     page.setColor(Color.black);
              //     page.drawRect(old_px, py, pw, ph);
                   page.setColor(Color.blue);
                   page.drawRect(px, py, pw, ph);
                   page.setColor(Color.white);
                   page.drawOval(bx, by, bw, bh);
                   if ((done == true) && (by > APPLET_HEIGHT))
                        page.drawString("LOSER!!!", APPLET_WIDTH/2, APPLET_HEIGHT/2);
                   else if (done == true)
                        page.drawString("Game Over, Man!", APPLET_WIDTH/2-10, APPLET_HEIGHT/2);
         private class DirectionKeyListener implements KeyListener               
              public void keyPressed (KeyEvent event)
                   switch (event.getKeyCode())
                   case KeyEvent.VK_LEFT:
                        old_px = px;
                        if (px >=15)
                             px -=10;
                        break;
                   case KeyEvent.VK_RIGHT:
                        old_px = px;
                        if (px+pw <= APPLET_WIDTH-15)
                             px += 10;
                        break;
                   case KeyEvent.VK_Q:
                        done = true;
                   default:
                   }  //end switch
                   repaint();
              }//end keyPressed
              public void keyTyped (KeyEvent event)
              public void keyReleased (KeyEvent event)
         }  //end class 
    }

    thank you sir for your advice.
    Its not like that I without any attempt, just past code here & asked for its conversion. I spent about 5 hours on it, can say spoil whole day but to no avail. You then just guide me, give some hint so that I do it. I will most probably wanted to do it by myself but asked for help when was just disappointed.
    I try to put all init() in default constructor of identical copy of this applet that extends JPanel. Problem.....ball tend to fell but pad not moving. Also out out was not getting ant color input. That was like my best effort.....other tried that I found by search like just do nothing only extend panel OR frame in spite of applet, start applet from within main of another class.... these are few I remember what I tried.
    I will be very very thankful to you if you can help/guide me how can I do it. Behavior of the Applet is like a normal PONG game with on pad controlled by arrow keys, & one ball colliding with walls of boundary & falling down.
    Thanks a lot again for your attention & time.

  • Can any one answer these interview questions

    CTS INTERVIEW QUESTIONS( 24/02/07 )
    1.  What is the difference b/w classical report and ALV  report and in classical report can we produce output more than 255 characters?
    2.  Did you used classes to create ALV reports  and how is superior over using    function modules in ALV report generation?
    3.  If we don't know the  exact number of blocks to be generated then Can we generate the output with different number of blocks in 
         ALV   reports?
    4.  In report if we have write statements in initialization, top of page and in start of selection then which event is first excuted and what
         is  the output?
    5.  In interactive report what is the use of exit key word?
    6.  what are nested structures and deep structures?
    7.  how can we write BDC program to  upload  data from  CSV, XL, TAB delimeter type flat files?
    8.  In BDC if the flat file consist of header and multiple line items then how to upload the load, does we create a single internal table for
         both header and body or different internal tables?
    9.  In call transaction and session method which method is prefered one?
    10. why can't we use call transaction method to upload large amount of data?
    11.what is the use of standard text in sap scripts, why can't we hard code the same information in form itself?
    12.what are user exits and how can we create them?
    13. can we modify  the  sap provided  code?
    14. what are oss notes?
    15. what are the different types of performance techniques?
    16. can we do modifications on output of   ALV reports, how?
    17. what are the classes that are used in ALV reporting?

    hi bhushan,
    1. What is the difference b/w classical report and ALV report and in classical report can we produce output more than 255 characters?
    Ans. Classical report ---Consist of one program that create a single list.This means that when list is displayed,it has to contain all data
    requested,regardless of the number of details the user wants to see.This procdeure may result in extensive and cluttered list from which the user has to pick the relvent data.(desired selection much be made before hand).
    Mian thing in classical report is it is not interactive(you will have cluttered information).
    Alv report _ IS interactive reporting (it is a set of function modules).(in alv we use both classical and interactive).
    in classical report we can't produce output more than 255 characters(but in ALV we can have the report contains columns more than 255 characters in length).
    ALV is very efficient tool for dynamically sorting and arranging the columns from a report output.
    2. Did you used classes to create ALV reports and how is superior over using function modules in ALV report generation?
    Ans. its upto you(did you use classes in ALV then say yes)
    3. If we don't know the exact number of blocks to be generated then Can we generate the output with different number of blocks in
    ALV reports?
    4. In report if we have write statements in initialization, top of page and in start of selection then which event is first excuted and what
    is the output?
    ANS. TOP_OF_PAGE is triggered.
    this event is triggered with the first WRITE statement or whenever new page is triggered. if you donts have any write statement before top-of-page or
    in start-of-selection then this event is not triggered.
    5. In interactive report what is the use of exit key word?
    Ans.
    6. what are nested structures and deep structures?
    7. how can we write BDC program to upload data from CSV, XL, TAB delimeter type flat files?
    Ans use FM 'GUI_UPLOAD'(CSV/TAB is .XLS)
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'D:PERSONALF1.XLS'
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = ' '
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = itab[]
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can also use.
    Use GUI_UPLOAD FM with exporting parameter
    has_field_separator = 'X'
    8. In BDC if the flat file consist of header and multiple line items then how to upload the load, does we create a single internal table for
    both header and body or different internal tables?
    ans. To know more- /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    /people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    No Documentation for Mapping Function useOneAsMany (Mapping Problem)
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
      Re: BDC - Header with multiple line items.   
    Posted: Sep 18, 2006 6:53 PM    in response to: sap innova       Reply      E-mail this post 
    http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    When you have enter multiple line in BDC for a table control use call transaction tcode using i_bdcdata options from opt message into i_messages.
    Check the below example.
    data: lws_cnt type char2,
    lws_field type char15.
    LOOP AT i_invoicing_plan INTO wa_invoicing_plan.
    lws_cnt = sy-tabix.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lws_cnt
    IMPORTING
    output = lws_cnt .
    CONCATENATE 'FPLT-AFDAT(' lws_cnt ')' INTO lws_field.
    CONCATENATE wa_invoicing_plan-date+6(2)
    wa_invoicing_plan-date+4(2)
    wa_invoicing_plan-date+0(4) INTO lws_date
    SEPARATED BY '.'.
    PERFORM bdc_field USING lws_field lws_date.
    CONCATENATE 'FPLT-FPROZ(' lws_cnt ')' INTO lws_field.
    lws_perct = wa_invoicing_plan-percentage.
    CONDENSE lws_perct.
    PERFORM bdc_field USING lws_field lws_perct.
    ENDLOOP.
    While calling the transaction give like this:
    DATA: opt TYPE ctu_params.
    opt-dismode = 'N'.
    opt-updmode = 'A'.
    opt-defsize = 'X'.
    CALL TRANSACTION tcode
    USING i_bdcdata OPTIONS FROM opt MESSAGES INTO i_messages.
    LOOP AT i_messages.
    ENDLOOP.
    9. In call transaction and session method which method is prefered one?
    Ans. it depends on data if data is small then go for call transaction method.
    10. why can't we use call transaction method to upload large amount of data?
    Ans.there are chances of many errors.
    11.what is the use of standard text in sap scripts, why can't we hard code the same information in form itself?
    Ans.Assume ur company has stored some text which will printed on sapscript based on certain conditions and not taken thru driver program .
    For eg .for a plant 1000
    You have to print 'Plant is 1000 and stock is 1000'.
    for plant 1010
    You have to print 'Plant is 4000 and stock is 3000'.
    Then you will create a standard text thru SO10 create a text name and id would be ST and language as EN .
    AND YOU PLace the text You have to print 'Plant is 1000 and stock is 1000'.
    and this will create one standard text and another standard text for another .
    then in the sapscript you will check the plant
    use the command in the sapscript and write
    Include text name 'zzz' id ST lanuage en.
    When you execute
    Sapscript will read the include and bring the text from SO10 and print on the screen .
    Check T-Code NACE
    Check link for more on SAP Scripts.
    http://www.sap-img.com/sapscripts.htm
    12.what are user exits and how can we create them?
    User exits -> They are the provisions given by the sap standard program to add some extra functionality to their program .
    Which will be present till there is any version change .
    1. User exits were nothing but
    subroutines
    FORM/PERFORM
    called from standard programs.
    2. The FORM defintion was placed inside
    an empty include file.
    3. So It was called EVERYTIME.
    and we need to MODIFY/REPAIR the
    standard include .
    USER EXITS
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP.
    The exit is implementerd as a call to a functionmodule.
    The code for the function module is writeen by the developer.
    You are not writing the code directly in the function module,
    but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    13. can we modify the sap provided code?
    Ans. Yes,but you need to have access key and i thing you need to have permission also.
    14. what are oss notes?
    ans.SAP provides support in the form of Notes also and this is called OSS. Can check the link Sree provided.
    Just for an example if you face any error in your system. Then there is error number associated with the error. Then you can search for the OSS not for the error number, and the note will give you possible solution to your problem.
    You do have notes for any details for every thng and any thing related to SAP.
    ans.YES! It is Online Suppor System from SAP. It is official.
    Search in http://service.sap.com support portal link with keywork 'OSS' / 'OSS User Guide' to get more info and 'how to' guides.
    OSS (online support system) .You can get this support from WWW.SAP.COM site..SAP will issue OSS userid and password to the customers with each licence to their packages..Here you will get all suppost packages information and how to use the things..These kind of info you will get it..Ask your Project customer about this id.. OSS1 is the transaction code to check the oss notes from SAP...
    15. what are the different types of performance techniques?
    Ans. Use se30--- simply gives you an over view of the time spent on the application processing against the time spend selecting from the database.
         use sto5 _SQL trace tool ---Overview of exactly how the prog is hitting against the database and shows you the individual SQL statements used with which index was used.
    16. can we do modifications on output of ALV reports, how?
    ans.
    17. what are the classes that are used in ALV reporting?
    ans.Check out this tutorial
    An Easy Reference for ALV Grid Control.pdf
    and also demo programs in your system.
    BCALV_GRID_*.
    Check these out:
    Check this for basic concepts of OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    Tabstrip
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
    Editable ALV
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
    Tree
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    http://www.geocities.com/mpioud/Abap_programs.html
    Award points,if it is helpful

  • Can any one validate this architecture?

    I have designed an architecture for my Application using MVC framework. I need
    wise advice on my architecture.Please validate.
    The architeure is
    JSP ->Struts Action class - >Businessdelegate--> (uses)--> Service Locator--> Session Facade(session bean)-->Businessobject-->Dao
                                                                                                                         |
                                                                                                               Application Service
                                                                                                                          |
                                                                                                          External Application  &  Webservice  ****************************************************************************************
    Explanation of the above depicted sequence :
    JSP : Provides the view for the presentation layer.
    Action Class - The function of an action class is to create a Transfer object out of Form Object and invoke the corresponding business delegate method.
    Business Delegate - The business delegate calls the appropriate Service method based on the value obtained from the Transfer object.This layer uses Service locator for the JNDI look up.
    Session Bean -EJB Service (Session bean) delegates the business object coordination logic to the Business Object Layer.
    Business object Layer- All the business validations will be performed.Based on the business requirement, it will call the DAO or call Web Service Layer through Application Service layer.
    Application Layer - The Application Service layer is used to co-ordinate with the external application services and Web service layer.
    My Queries :
    1) One section of my application has just one concurrent user. Ie. the application has Administration section in which at a time only 2 users will be using the application. Is it wise to go for EJB implementation.?
    2) If EJB layer is not used? can i use a simple java interface class and an implementation class to replace the EJB layer..so that if the future requirement needs EJB implementation, then we can just introduce a home interface to convert this existing approach to a EJB.I have this thought process, I am not sure whether this is feasible? If this is feasible, how do i go about?
    3)Is there any simple approach to have a better architecture? Please advice
    4) If you look at the above layered sequence, I am calling the external application , say for example any rule engine(External application) call is via this application service layer and Web service call is also through the application layer.Do i need to have a seperate layer to differnsiate the call from the webservice and the other external application?

    I have designed an architecture for my Application
    using MVC framework. I need
    wise advice on my architecture.Please validate.You might have a look at the J2EE design patterns and find something similar to this :-)
    JSP ->Struts Action class -
    - >Businessdelegate--> (uses)--> Service Locator-->
    Session Facade(session bean)-->Businessobject-->Dao Yeah! Everyone uses the same design... I'm going to run away from Java now...
    My Queries :
    1) One section of my application has just one
    one concurrent user. Ie. the application has
    Administration section in which at a time only 2
    users will be using the application. Is it wise to go
    for EJB implementation.?You need not have the EJB for that. Anyway, all your EJB does is call another bunch of classes. It is not really achieving what a session facade is intended to do (save remote EJB calls). Besides a Business Object would be achieving the purpose of encapsulating the business logic.
    2) If EJB layer is not used? can i use a simple
    le java interface class and an implementation class
    to replace the EJB layer..so that if the future
    requirement needs EJB implementation, then we can
    just introduce a home interface to convert this
    existing approach to a EJB.I have this thought
    process, I am not sure whether this is feasible? If
    this is feasible, how do i go about?It depends on what you want to do having an EJB. Is it for scalability, concurrent database transaction handling, persistence... ??? If you require all that, I doubt you would get it in a single interface + implementing class. Anyway, you have DAOs to take care of DB layer. And your EJB doesn't serve much purpose here.
    3)Is there any simple approach to have a better
    architecture? Please adviceYes, do away with the EJB. I think Think about what you want to really do with the thing labelled as "DAO". In short, look for the core J2EE patterns and try to understand what each layer is intended to do, if it is a part of the architecture..
    4) If you look at the above layered sequence, I am
    calling the external application , say for example
    any rule engine(External application) call is via
    this application service layer and Web service call
    is also through the application layer.Do i need to
    have a seperate layer to differnsiate the call from
    the webservice and the other external application?You might have another layer of abstraction if you expect a change in requirements. Else it would be just another layer. :-)
    Disclaimer: All the replies are to the best of my knowledge! Consult someone, especially J2EE patterns.

  • Can any one believe this tech support trying to delete legacy adobe apps!!!!!!

    Vipin: May I have your permission to connect to your computer remotely and try to solve the problem while you watch?
    ADOBE CUSTOMER: I need to know that NONE of my legacy adobe apps will be affected. CS5 suite and CS6 products will NOT be affected is that right??????????????
    info: Your chat transcript will be sent to dixxx.net at the end of your chat.
    Vipin: It will be affected.
    ADOBE CUSTOMER: WHOA! you are saying that my CS% and CS 6 apps will be hurt and not run correctly is that right?
    Vipin: We need to remove all the Adobe apps installed on your computer.
    Vipin: Is that okay.
    Vipin: May I have your permission to connect to your computer remotely and try to solve the problem while you watch?
    ADOBE CUSTOMER: There is no way I give permission to delete CS5 creative suite, CS6 video production suite or hurt them in any way what so ever. I have THOUSANDS of dollars of plugins and other workfow products that depend on them. Sorry but my only recourse is to
    ADOBE CUSTOMER: see if you have ANY loyalty to an OVER 30 years adobe customer (me) when you demand payout for the remaining 5 months of the subscription. I'm betting you will just send the bill to collections for non payment. If so, you WILL be sued for non service and non delivery of product. And yes, I am ready to spend over xxxx on a suit vs adobe because of how you have treated me. The point is I know that I am not alone, and that's sad.
    Then customer service has the gall to ....
    ME:
    1) First I need a credit for $10.81 for months October, November, and December of 2014... and January of 2015.
    2) Second I need my subscription extended at the SAME price for ONE year WHEN I START A NEW SUBSCRIPTION upon new releases of the photography CC bundle. The current one does NOT install correctly on a purpose built computer to handle Video and 3D processing. I will not tolerate you deleting legacy products that go back to CS3 and newer that I depend on to pay my bills. The forums are full of folks with the same install problems for CC 2014. That is one year free for the extreme hassle and loss of time productivity, travel expenses, and monies due to being forced to use my standalone
    PS CS6 products for core work and another copy of the CC PS for 3D work at another location with a different persons subscription for my clients jobs.
    3) You need to get PS CC installed on my new production box on its “D” drive before I will agree to anything except the above. Lightroom CC 2014 installed just fine. There is no excuse for a product like PS to fail on extraction prior to install!
    Britt from adobe:
    If you do decide to cancel, we can refund your subscription.
    If you stay with the service, we can provide 2 free months as an apology for the technical difficulties. We cannot provide a free year.
    Please let me know which you would like to do.
    Thanks,
    Britt
    Kee Jee You want me to stay with a service that provides no product? And has not provided me with a usable product since October of 2014? And now the word is out that you are raising subscription prices after the first year? Who do you think you are? You HURT peoples ability to earn a living! You cost us hours and days and months trying trying to fix your problems so we can move forward with your products? Who in the hell do you think you are? Tell you what, dont cancel a thing. A media blitz and maybe a subpoena to San Jose is the right move to protect peoples rights. Your company needs to learn a lesson in how to treat legacy customers. It seems no one has taught you that "if you take care of the customer, they will take care of adobe." Britt, care to guess how many dollars I have given adobe in almost 30 years?

    Britt, I'm still waiting for my refund!
    1) I am STILL waiting for a full refund.
    2) Second I need my subscription extended at the SAME price for ONE year WHEN I START A NEW SUBSCRIPTION upon new releases of the photography CC bundle. The current one does NOT install correctly on a purpose built computer to handle Video and 3D processing with PS. I will not tolerate adobe and your text support wanting to delete legacy products that go back to CS3 and newer that I depend on to pay my bills.
    You and your tech support was worthless in suggesting they wanted to CLEAN my ENTIRE box of ALL ADOBE products. The LEGACY Apps WORK, they are PAID FOR, and thousands of dollars of After Effects, Premiere, and medical scientific plugins for Photoshop would be invalid and not useful without the legacy installed products. I sure as hell am NOT upgrading to CC for my production bundles after the way you have treated me and many of my clients now. Instead we are pursuing alternative solutions that are not adobe.
    The forums are full of folks with the same install problems for CC 2014. That is one year free for the extreme hassle and loss of time productivity, travel expenses, and monies due to being forced to use my standalone PS CS6 products for core work and another copy of the CC PS for 3D work at another location with a different persons subscription for my clients jobs.
    3)  There is no excuse for a product like PS to fail on extraction prior to install!
    4)  Your software has a poor history in the security department and I am now dealing with the second zero-day affecting my Flash, exploiting Internet Explorer and Firefox on
    my Windows 7. You all deny that you have a problem. I am waiting for you to notify me soon on what needs updating and I need to know when you plan to push out a fix. Only then will
    I allow flash back on my systems.
    Charles Fonetnot

  • Can any one Modify this Code and reply back

    Hi,
    Iam using this UDF presently to get one return value from RFC Lookup mapping Table.
    Now I want two return values from the RFC Lookup Mapping Table.
       //write your code here
         int length=pospymtvalue.length;
         String DBTABLE = tabname[0];
                                    String lookUpField = lkpfld[0];
                                    String sapClient = "500";
                                    String hostName = "xidev";
                                    String systemNumber = "00";
                                    String userName = "user1";
                                    String password = "pass";
                                    String language = "EN";
                                    JCO.Repository mRepository;
                                    JCO.Client mConnection = JCO.createClient(
                                                   sapClient,
                                                   userName,
                                                   password,
                                                   language,
                                                   hostName,
                                                   systemNumber );
                                    // connect to SAP
                                    mConnection.connect();
                   for(int j=0;j<length;j++)
                                    String WHERE_CLAUSE = pospymt[0]" = ""'"pospymtvalue[j]"'";
                                    // create repository
                                    mRepository = new JCO.Repository( "GenericRFCMappingLookup", mConnection );
                                    // create function template to select data from any table
                                    JCO.Function function = null;
                                    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
                                    function = ft.getFunction();
                                    // Obtain parameter list for function
                                    JCO.ParameterList input = function.getImportParameterList();
                                    // Pass function parameters
                                    // set import parameters table name and RFC
                                    input.setValue( DBTABLE, "QUERY_TABLE");
                                    input.setValue( "," , "DELIMITER");
                                    //Fill the where clause of the table
                                    JCO.ParameterList tabInput = function.getTableParameterList();
                                    JCO.Table inputTable = tabInput.getTable("OPTIONS");
                                    inputTable.appendRow();
                                    inputTable.setValue(WHERE_CLAUSE,"TEXT");
                                    mConnection.execute( function );
                                    //Find the position of the field that has to be lookedUp
                                    JCO.Table lookupFieldPos = function.getTableParameterList().getTable("FIELDS");
                                    int pos = -1;
                                    for (int i = 0; i < lookupFieldPos.getNumRows(); i++)
                                              lookupFieldPos.setRow(i);
                                              if (lookupFieldPos.getString("FIELDNAME").equals(lookUpField))
                                              pos = i;
                                    //Get the exact lookupvalue from the position obtained above
                                    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
                                    for (int i = 0; i < valueSet.getNumRows(); i++)
                                              valueSet.setRow(i);
                                              String resultSet [] = valueSet.getString("WA").split(",(?=(?:[\"]*\"[\"]\")(?![^\"]*\"))");
                                              result.addValue(resultSet[pos]);
                                  mConnection.disconnect();
    Regards
    Bopanna

    Hi Boppana,
    For loop at the end will return more than one values if it has more than one value for the input values.
    chirag.

  • Doubt in this code can any one clarify this

    this is a code in program generated by sap query
    SELECT VBRKBUKRS VBRKBZIRK VBRKFKDAT VBRKKUNAG VBRK~SPART
           VBRKVBELN VBRKVKORG VBRKVTWEG VBRKXBLNR VBRP~FKIMG
           VBRPMATKL VBRPMATNR VBRPPOSNR VBRPVBELN VBRP~VKBUR
           VBRPVKGRP VBRPVRKME VBFAERDAT VBFAMEINS VBFA~POSNN
           VBFAPOSNV VBFARFMNG VBFAVBELN VBFAVBELV VBFA~VBTYP_N
           VBFA~VBTYP_V
    INTO (VBRK-BUKRS , VBRK-BZIRK , VBRK-FKDAT , VBRK-KUNAG , VBRK-SPART
         , VBRK-VBELN , VBRK-VKORG , VBRK-VTWEG , VBRK-XBLNR , VBRP-FKIMG
         , VBRP-MATKL , VBRP-MATNR , VBRP-POSNR , VBRP-VBELN , VBRP-VKBUR
         , VBRP-VKGRP , VBRP-VRKME , VBFA-ERDAT , VBFA-MEINS , VBFA-POSNN
         , VBFA-POSNV , VBFA-RFMNG , VBFA-VBELN , VBFA-VBELV , VBFA-VBTYP_N
         , VBFA-VBTYP_V )
    FROM ( VBRK
           INNER JOIN VBRP
           ON VBRPVBELN = VBRKVBELN
           INNER JOIN VBFA
           ON VBFAPOSNV = VBRPPOSNR
           AND VBFAVBELV = VBRPVBELN )
           WHERE VBRK~BUKRS IN SP$00009
             AND VBRK~BZIRK IN SP$00012
             AND VBRK~FKDAT IN SP$00002
             AND VBRK~KUNAG IN SP$00003
             AND VBRK~SPART IN SP$00013
             AND VBRK~VBELN IN SP$00001
             AND VBRK~VKORG IN SP$00010
             AND VBRK~VTWEG IN SP$00011
             AND VBRP~MATKL IN SP$00008
             AND VBRP~VKBUR IN SP$00015
             AND VBRP~VKGRP IN SP$00014
             AND VBFA~VBTYP_N IN SP$00004
             AND VBFA~VBTYP_V IN SP$00005.
      %DBACC = %DBACC - 1.
      IF %DBACC = 0.
        STOP.
      ENDIF.
      CHECK SP$00004.
      CHECK SP$00005.
      CHECK SP$00009.
      CHECK SP$00012.
      CHECK SP$00002.
      CHECK SP$00003.
      CHECK SP$00013.
      CHECK SP$00001.
      CHECK SP$00010.
      CHECK SP$00011.
      CHECK SP$00008.
      CHECK SP$00015.
      CHECK SP$00014.
      CHECK SP$00006.
      PERFORM TEXTFIELD_REFRESH(RSAQEXCE).
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRK' VBRK.
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRP' VBRP.
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBFA' VBFA.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBRP 'VBRP' 'MATKL'
              TEXT_VBRP_MATKL.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_N'
              TEXT_VBFA_VBTYP_N.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_V'
              TEXT_VBFA_VBTYP_V.
      ADD 1 TO %COUNT-VBRK.
      %LINR-VBRK = '01'.
      EXTRACT %FG01.
      %LINR-VBRK = '02'.
      EXTRACT %FG02.
      %EXT-VBRP02 = 'X'.
        EXTRACT %FGWRVBRP02.
      %LINR-VBRK = '03'.
      EXTRACT %FG03.
      %LINR-VBRK = '04'.
      EXTRACT %FG04.
      %EXT-VBFA04 = 'X'.
        EXTRACT %FGWRVBFA04.
      %LINR-VBRK = '05'.
      EXTRACT %FG05.
    ENDSELECT.
    in this code what check statement does

    Hi Avinash kodarapu,
                    The use of check statement is ...
    Terminating a Loop Pass Conditionally
    To terminate a single loop pass conditionally, use the
    CHECK <condition> statement in the statement block of
    the loop.
    If the condition is not true, any remaining statements
    in the current statement block after the CHECK statement
    are ignored, and the next loop pass starts. <condition>
    can be any logical expression.
    DO 4 TIMES.
      CHECK SY-INDEX BETWEEN 2 and 3.
      WRITE SY-INDEX.
    ENDDO.
    The output is:
             2          3
    The first and fourth loop passes are terminated without
    the WRITE statement being processed, because SY-INDEX is
    not between 2 and 3.
    So what the check statement does is that it checks if
    SPXXXXX values are null or not. If SPXXXXX values are
    null the current loop terminates and starts with next
    value for the select statement.
    Hope this helps you.
    Regards,
    Maheswaran.B

  • Can any one do this

    3 5 14 22 30 44
    6 12 15 16 31 44
    11 17 21 29 30 40
    26 35 38 43 47 49
    3 5 9 13 14 38
    2 3 27 29 39 44
    9 17 32 36 42 44
    2 5 21 22 25 32
    7 17 23 32 38 42
    6 16 20 30 31 47
    4 16 25 26 31 43
    1 7 37 38 42 46
    15 18 29 35 38 48
    16 19 21 29 36 45
    5 8 10 18 31 33
    11 12 17 26 32 42
    2 13 22 27 29 46
    9 18 19 24 31 41
    4 17 41 42 44 49
    22 25 30 32 41 43
    14 17 22 24 42 47
    1 4 6 23 26 49
    8 18 20 33 36 38
    9 15 22 31 34 48
    5 14 17 35 43 48
    7 16 25 26 28 41
    15 16 17 28 32 46
    12 13 25 37 44 45
    1 21 29 31 32 40
    12 15 26 44 46 49
    Determine how frequently (i.e. how often) each of the winning numbers occurs. For this you will need another array (i.e. a �frequency array�) to store how often each of the winning numbers occurs. For example you can see from the data file that the winning number 9 has occurred 4 times, so that the frequency of 9 is 4. In this case the frequency array element 9 will contain 4. Write java code to determine an array of frequencies. Test your code by providing output of the frequency array.
    Note: The first element (a[0]) is effectively redundant!
    does anyone in here know how to do this I haven't got a clue!!
    Please help!!

    for loops dude..
    use for loops to seee how many times a number occurs, and then record it into a vector or something.
    PS. Dont post homework questions on here. Think about the question try it and then ask us for help getting around more specific problems like why is the count always higher than it should be, or what should i use to record the occurence of something.
    Then people will answer you.

Maybe you are looking for

  • [JHS10.1.3] incomplete generation of DataBindings.cpx

    Hi, I want to have another project after creating application by JSF ADF-BC template(remove original ViewController project and add a new one). But still use same Model project.After I add a new web project and run JHS generation,I found that DataBin

  • An unhandled exception has been thrown in the ESB system

    Hi Experts, we are using SOA suite 10.1.3.1.0 with Jdev 10.1.3.1.0, when we are trying to deploy the FullfillmentESB(of SOA Order booking application) to Integration server, prompted with the following error: Entity Deployment Failed error code: 0 :

  • Offline and online synchronization

    Hello All , Any one has experience with offline online synchronization with live cycle or blazeds and adobe air ? I appreciate your response

  • I keep getting a virus alert

    My home page keeps changing back to a strange search engine http://search-quick.com/?si=85680&channel=DP2701 and then a virus alert pops up with a phone number to call.  It won't let me use the internet.  Help!

  • Opening a document from DMS

    Hi Experts. I have to develop an ABAP code where I have to Retrieve a particular word document uploaded in DMS edit some fields in it and then print it. I dont know how to write the code. i was told to use OFFICE INTEGRATION classes but have no idea