Search logic in servlete programming

Hi
i hae a search text box in jsp.. in the servlet i need write logic for retrieving the values n diaplsyiing...could ne1 tell me how to do it?thank yu

PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD ZSDRBT_INELG_INV-ZAPPR1_STA MODULE DLIST.
DATA: BEGIN OF ITAB OCCURS 0,
       HL LIKE ZSDRBT_INELG_INV-ZAPPR1_STA,
      END OF ITAB.
data: it_ret like ddshretval occurs 0 with header line.
*&      Module  DLIST  INPUT
      text
MODULE DLIST INPUT.
  DATA: l_input(1).
  clear l_input.
  if g_auth <> 'BM'.
    l_input = 'X'.
  endif.
  if bm_app1 = 'C'.
    l_input = 'X'.
  endif.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
  DDIC_STRUCTURE         = ' '
      RETFIELD               = 'HL'
  PVALKEY                = ' '
     DYNPPROG               = 'ZSD_RBT_DEVIATION_PRS'
     DYNPNR                 = '0200'
     DYNPROFIELD            = 'ZSDRBT_INELG_INV-ZAPPR1_STA'
  STEPL                  = 0
   WINDOW_TITLE           =  'Input'
  VALUE                  = ' '
   VALUE_ORG              = 'S'
  MULTIPLE_CHOICE        = ' '
   DISPLAY                = l_input
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
    TABLES
      VALUE_TAB              = ITAB
  FIELD_TAB              =
     RETURN_TAB             = IT_RET
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
  if sy-subrc = 0.
    read table it_ret index 1.
    move it_ret-fieldval to ZSDRBT_INELG_INV-ZAPPR1_STA.
  endif.
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
ENDMODULE.                 " DLIST  INPUT

Similar Messages

  • Search logic absent in RFAVIS40??

    Hi,
    We use the normal lockbox program RFEBLB30 to post the lockbox transmission from customers who send us EDI 820. However, we have some customers on ACH for which we only receive an excel file and using this information , we create the payment advices manually (using a z program). And in order to post these payment advices, we use the standard program RFAVIS40.
    However, we realized that RFAVIS40 does not perform any search to find the documents that it needs to clear. For instance, when a reference number, assignment number are provided in the payment advice, the normal lockbox program will use the reference number first (depending on the config) and look for that number in the reference, document number and then assignment number of AR documents to find a match. If it is unsuccessful , then it will use the next available field.
    Looks like this logic is completely absent in RFAVIS40. If any of you guys used this program before, can you please advise a workaround or solution to incorporate the search logic.
    Also, our developer tells us that it is not possible to incorporate that logic in this program as the way RFEBLB30 and RFAVIS40 work are completely different. RFAVIS40 just submits the existing payment advice to FB05, where as the standard lockbox program modifies the payment advice and fills the document number field whenever it finds the match.
    I am not good at debugging and finding a programming solution. Can you guys please advice if this can be done ??
    Points will be awarded.

    any ideas??

  • Example of 'Java Servlet Programming, 2nd Edition' (O'reilly)

    Hi,
    I'm reading 'Java Servlet Programming, 2nd Edition' (O'reilly).
    I got a error "'.' expected" and "cannot resolve symbol"
    when trying JSP sample, hello3.jsp and HelloBean.java:
    I put hello3jsp to webapps/sample, and HelloBean.class
    to webapps/sample/WEB-INF/classes .
    Is this collect? If true, why I got the error?
    Could you give me any advices?
    hello3.jsp:
    (http://www.servlets.com/jservlet2/examples/ch18/hello3.jsp.txt)
    <%-- hello3.jsp --%>
    <%@ page import="HelloBean" %>
    <jsp:useBean id="hello" class="HelloBean">
      <jsp:setProperty name="hello" property="*" />
    </jsp:useBean>
    <HTML>
    <HEAD><TITLE>Hello</TITLE></HEAD>
    <BODY>
    <H1>
    Hello, <jsp:getProperty name="hello" property="name" />
    </H1>
    </BODY>
    </HTML>HelloBean.java:
    (http://www.servlets.com/jservlet2/examples/ch18/HelloBean.java)
    public class HelloBean {
      private String name = "World";
      public void setName(String name) {
        this.name = name;
      public String getName() {
        return name;
    }Error Message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 4 in the jsp file: /hello3.jsp
    Generated servlet error:
        [javac] Compiling 1 source file
    /usr/local/java/jakarta-tomcat-4.1.18/work/Standalone/localhost/sample/hello3_jsp.java:7: '.' expected
    import HelloBean;
                    ^
    /usr/local/java/jakarta-tomcat-4.1.18/work/Standalone/localhost/sample/hello3_jsp.java:44: cannot resolve symbol
    symbol  : class HelloBean
    location: class org.apache.jsp.hello3_jsp
          HelloBean hello = null;
          ^regards
    maco

    I got succeeded!
    I changed the three point:
    * add 'package hoo;' in HelloBean.java
    * add '<%@ page import="my.HelloBean" %>' in hello3.jsp
    * change '<jsp:useBean id="hello" class="HelloBean">
    to '<jsp:useBean id="hello" class="my.HelloBean">
    Before posting, I searched google three times but couldn't get answer.
    I could not get well if you didn't give me help...
    Thank you very much.

  • Has the NVidia GeForce 8600M GT logic board replacement program been extended by a year?

    I have heard that the logic board replacement program for MacBooks Pro with the failed NVidia 8600M GT chip has been extended from 3 to 4 years after the date of original purchase. However, a local AASP had no knowledge of such an extension. Is this true? I have a MacBook Pro 17" 2.6GHz that was purchased in 2008.

    eww wrote:
    when you took it in, it had been more than four years since your 2007 machine was originally sold, that's why you got the response you did.
    Actually it was within the time frame, it felt like it was just last month, when it was like several months ago.
    Just dragged the 15" recently out to see to use it for testing *cough* and low and behold it's worthless now.
    The problem I have is I told them at the Genius Bar the video was going, but couldn't prove it as it was very rare it occured.
    But they ran their little tests and gave me a load of crap, now it's dead. $2500 down the toilet.
    I know what did it, Lion. Lion was the cause, it ran like a fine machine under Snow, fscking Lion, I'm glad I didn't put that POS on my new 17"
    http://reviews.cnet.com/8301-13727_7-20091204-263/graphics-issues-plaguing-os-x- 10.7-lion-upgrades/
    My word the OP, don't let the Genius Bar screw you with the same crap they gave me, call corporate and raise ****!

  • Servlet program in eclipse

    hi all,
    i write simple hello servlet program in eclipse...
    but compiler tells " javax.servle.* " cannot be resolved...
    plz clarify how to run servlet program in eclipse as a tomcat webserver....
    import java.io.*;
    import javax.servlet.*;
    public class helloservlet extends GenericServlet{
         public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
         response.setContextType("text/html");
         PrintWriter pw= response.getWriter();
         pw.println("hello servlet");
         pw.close();
    }regards
    machepalli

    hi,
    if you are using tomcat 5.5 server use jdk1.5 and if you use tomcat 5.0 use jdk1.4 then compatability adjust.And jar files to library go to tomcat-home ->common->lib->Servelet-api.jar file to your java program library.....
    And better to use myeclipse1.4 instead of eclipse ... bcoz sometimes it requires plugins to avoid that use myelipse1.4 ......

  • How do we run a servlet program in eclipse

    how do we run a servlet program in eclipse.

    Not at all, because servlets require a servlet container. Some Eclipse plugins (Lomboz etc.) do provide integration with those.

  • Weblogic error while deplying a simple servlet program

    Hi This is a very simple servlet program.
    I am trying to deploy it on the weblogic server but i get this error as follow
    Unable to access the selected application.
    *javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260105]Failed to create*
    DDBeanRoot for application, 'E:\AqanTech\WebApp1\myApp.war'.
    I have checked everything, right from my code to my web.xml file. I have used a build.bat file to build my war file.
    PLEASE HELP ME TO SOLVE THIS HUGE PROBLEM OF MINE ?
    Thanks,
    Shoeb

    Hi,
    The J2EE Error code siply suggest that there is something wrong in your Deployment Descriptors...
    Can u please post the XML files available inside your "WEB-INF" directory?
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Inputting an excel file to the java servlet program

    Hi,
    How can I input an excel file into the java servlet program? I am using POI HSSF programming to read the content of that excel file.I have created a form that will accept the path from the user and in the servlet program, I have called a post method to retrieve the path of the file. I am getting the path of the file as a string.Then I have to access the file to read the data. But it is not working. What should I do?.Please help me.
    I have created an html file to create a form that will ask the path of the file to be loaded into the servlet program.Please give me a solution,thanks in advance. The servlet program that receives the file is shown below. It just only take the name of the file and prints if that is ok.
    <html>
    <body bgcolor="green">
    <center>
    <form method="post"  action="http://localhost:8080/examples/servlet/Ron1">
    <table>
    <tr>
    <td><B>ENTER THE PATH OF THE FILE</td>
    <td><input type=file name="path"></td>
    </tr>
    </table>
    <input type=submit value= "submit" >
    </form>
    </body>
    </html>
    import java.io.*;
    import javax.servlet.*;
    import java.lang.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.text.*;
    import java.util.*;
    import com.oreilly.servlet.MultipartRequest;
    import org.apache.poi.hssf.usermodel.*;
    public class Ron1 extends HttpServlet
       public void doPost(HttpServletRequest request, HttpServletResponse response)   throws IOException, ServletException
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            String u = request.getParameter("FileToUpload");
            out.println("The Path is "+u);
            System.out.println("The path is "+u);
            MultipartRequest multi = new MultipartRequest(request,u,10 * 1024 * 1024);
            System.out.println("path is "+u);
            Enumeration files = multi.getFileNames();
            File fUploadedFile = null;
            String sFileName = "";
            out.println("path is "+u);
            while(files.hasMoreElements())
                            String name = (String)files.nextElement();
                            out.println("file is "+name);
                            sFileName = multi.getFilesystemName(name);
                            String type = multi.getContentType(name);
                            fUploadedFile = multi.getFile(name);
                    FileInputStream fis= new FileInputStream(fUploadedFile);
                   HSSFWorkbook wb=new HSSFWorkbook(fis);
                    System.out.println("The path is "+u);
                    out.println("File has identified successfully\n");
                    out.close();
       }

    Hi,
    Can you try to use classes from java.net package (URL, URLConnection) to pass the contents of excel file to servlet?
    HTH
    Vishal

  • I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run, but it won't open. Is my configutation too slow?

    I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run on OS 10.6.8. with 2 GB RAM, 4 GB better, but it won't open. Is my configutation too slow?

    Looks as if you're just at the minimum specs - http://www.apple.com/logicpro/specs/. Says 2GB minimum, 4GB recommended. And 2GB of RAM is all the RAM the 1,1 can handle. If I were you I would call Apple's App Store service center - you have the minimum requirements, as I read it, but perhaps you need a faster processor?
    I had a 1,1 but sold it when I bought my late 2011 in March of this year - maybe it's time to look at a new machine?
    Clinton

  • How to run servlet program in eclipse 3.1

    i run the jsp program in eclipse 3.1
    i want to run sample servlet program in eclipse, how to create the project,where to store the class file..? where to store the web.xml file..?
    plz give explanation with HelloWorld.java program....

    Install WTP and follow the basic J2EE WebApp Tutorial from their WTP tutorials page.

  • Problem in compiling aa servlet program

    I have installed jsdk1.4.2_13
    And also installed tomcat 5.0.28
    I have set
    CATALINA_HOME==C:\Program Files\Tomcat\jakarta-tomcat-5.0.28
    JAVA_HOME ==C:\j2sdk1.4.2_13
    CLASS_PATH==
    C:\Program Files\Tomcat\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;
    C:\Program Files\Tomcat\jakarta-tomcat-5.0.28\common\lib\jsp-api.jar
    PATH ==C:\j2sdk1.4.2_13\bin;C:\Program Files\Tomcat\jakarta-tomcat-5.0.28\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
    -->My java programs are compiling
    -->I can run tomcat server , And also can see starting page of "http://localhost:8080/"
    But I am not able to compile servlet program
    MY sevlet program is
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloServlet extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String docType =
    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
    "Transitional//EN\">\n";
    out.println(docType +
    "<HTML>\n" +
    "<HEAD><TITLE>Hello</TITLE></HEAD>\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1>Hello</H1>\n" +
    "</BODY></HTML>");
    ERRORS are:
    Pakage javax.servlet does not exist
    Pakage javax.servlet.http does not exist
    cannot resolve symbol HttpServletRequest
    and similar errors
    can anyone guide me?
    Message was edited by:
    Learn

    it's not CLASS_PATH, it's CLASSPATH.
    Directory paths with spaces in them are problematic. Surround them with double quotes.
    I think the best thing is not a CLASSPATH environment variable. Better to use the -classpath option on javac.exe when you compile.
    So your command to compile might look something like:
    javac -classpath .;"C:\Program Files\Tomcat\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar" *.java%

  • How to use the created search helps in the program?

    Hi Everyone,
    I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
    How to use the Search help in the programs, which is created through SE11
    Subbu.

    Hi,
    In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
    Eg.
    report abc.
    parameters : a(10) type c matchcode object ZBELNR.
    Hope this helps.
    regards,
    amit m.

  • Unable to run Servlet program using J2EE SDK

    Hello,
    i am a newbie to all this j2ee stuff and servlets even.so the problem that i have maybe a very common one and i hope that most of you may have a fix to it...
    i use J2EE SDK to compile and run Servlet programs.I have a Servlet program with the class name defined as
    public class MyServlet extends HttpServlet ....
    the file is stored as MyServlet.java
    i set the CLASSPATH variable so that the required classes for the compilation of the program can be located.
    the program compiles without any glitches.
    However when i run the program by saying
    java MyServlet
    ( i dont think its any different to run servlet code is it?)
    i get the message
    java.lang.NoClassDefFoundException:MyServlet
    Can someone suggest a remedy?
    thank you
    -NDK

    First, I don't understand what you are trying to do. Running a servlet ?
    Servlets are ran by an application server ! (Apache Tomcat ....).
    Second, is your class in any package ?

  • Help ~~ Cannot compile servlet program

    I have recently written a servlet program. When I compile the program (let's say "HelloWorld.java"), I've got the following error message:
    package javax.servlet does not exist
    I've download the class files and set the classpath already. Have I missed anything?
    Thx!

    I have recently written a servlet program. When I
    compile the program (let's say "HelloWorld.java"),
    I've got the following error message:
    package javax.servlet does not existyou donot have servlet api classes in your classpath
    I've download the class files and set the classpath
    already. Have I missed anything?just check the classpath again and compile.
    say echo CLASSPATH and see

  • Cannot compile servlet program

    I have recently written a servlet program. When I compile the program (let's say "HelloWorld.java"), I've got the following error message:
    package javax.servlet does not exist
    I've download the class files and set the classpath already. Have I missed anything?
    Thx! ^-^

    Maybe you should listen in at
    http://forum.java.sun.com/thread.jsp?forum=45&thread=234654
    He has a similar problem.
    Did you put the servlet.jar in your classpath?

Maybe you are looking for

  • How to change field lebel name in R3 sales document

    Hi, I want to change the field label name in R3.I tried to change the name by using tcode:cmod in XD02.But it is not reflecting in XA02.But it is reflecting in VF02.I want those changes to be reflected in XA02 also.Please help me. thanks rahul

  • Speedtouch 510/ SIP: Don't scream at me!

    Please can someone help me. I am not very Mac savvy, but generally cope. I run a PowerBook G4, with Airport Express and a Speedtouch 510 router to link to Virgin.net (my ISP) I recently got an iSight camera. I can text chat using AIM but cannot get g

  • Opening dynamic external link in new window

    Hi, I have a XML file with data and one field is an http external url address, what I'm trying to do on the frontend is create a button that will call that url from my XML file it goes in the format of {product.link}. I've looked at flex examples aro

  • Adapter pattern and interfaces

    Hi all! This year I started to study java language and as a person who used c language for a long time, I have some questions.If you can help me I ll appreciate that. 1-Can anybody tell me why we use Adapter pattern?I already read a lot about it but

  • Nokia 520 faulty lock key

    Can anyone give me an easy fix or tell me where i can get the lock key repaired as it seems to be stuck in the handset? Ive tried the obvious trouble shooting suggestions and still not working. I don't want to fiddle with it causing further damage.