Module pool issue (Urgent Plz Help)

Hi All,
I have a requirement in which when i click on the image in the module pool then i have to navigate to some other screen but
1. how could i know that the user has clicked the image ?
2. What is the use of PF_STATUS?
Please help me out i have already loaded the image in my module pool screen but don't know how to go further please help me as soon as possible.
Thanks in advance
Message was edited by:
        Rachit Khanna

Dialog Status for Lists
To allow the user to communicate with the system when a list is displayed, the lists must be able to direct user actions to the ABAP program. As described in User Actions on Screens, function codes are used to do this. Function codes are maintained in the GUI status of the list screen. You define a GUI status using the Menu Painter tool in the ABAP Workbench. The system assigns function codes to list-specific user actions.
The most important of these functions is for selecting list lines by double-clicking. As described in Using a GUI Status, the double-click function is always linked to the F2 key. If a function code is assigned to the F2 key in the GUI status, it will be triggered when you double-click.
The Standard List Status
As with normal screens, you can define your own GUI status for lists and attach it to a list level using the SET PF-STATUS statement. If you do not set a particular GUI status, the system sets a default list status for the list screen in an executable program. In other programs, for example, when you call a list from screen processing, you must set this status explicitly using the statement
SET PF-STATUS space.
This default interface always contains at least the functions described in the Standard List section.
Unlike normal dialog statuses, the default list status is affected by the ABAP program.
If you define event blocks in your program using the event keywords AT LINE-SELECTION or AT PF]
This statement sets the status  parameters. To display an ampersand character ‘&’, repeat it in the title ‘&&’.
Examples
Example for dialog status in a list.
REPORT demo_list_menu_painter.
START-OF-SELECTION.
  SET PF-STATUS 'TEST'.
  WRITE:  'Basic list, SY-LSIND =', sy-lsind.
AT LINE-SELECTION.
  WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'TEST'.
      WRITE:  'TEST, SY-LSIND =', sy-lsind.
  ENDCASE.
This program uses a status TEST, defined in the Menu Painter.
Function key F5 has the function code TEST and the text Test for demo.
Function code TEST is entered in the List menu.
The function codes PICK and TEST are assigned to pushbuttons.
The user can trigger the AT USER-COMMAND event either by pressing F5 , or by choosing List ® Test for demo, or by choosing the pushbutton Test for demo.The user can trigger the AT LINE-SELECTION event by selecting a line.
Example of setting a dialog status for the current list
REPORT demo_list_set_pf_status_1.
DATA: fcode TYPE TABLE OF sy-ucomm,
      wa_fcode TYPE sy-ucomm.
START-OF-SELECTION.
  wa_fcode = 'FC1 '. APPEND wa_fcode TO fcode.
  wa_fcode = 'FC2 '. APPEND wa_fcode TO fcode.
  wa_fcode = 'FC3 '. APPEND wa_fcode TO fcode.
  wa_fcode = 'FC4 '. APPEND wa_fcode TO fcode.
  wa_fcode = 'FC5 '. APPEND wa_fcode TO fcode.
  wa_fcode = 'PICK'. APPEND wa_fcode TO fcode.
  SET PF-STATUS 'TEST'.
  WRITE: 'PF-Status:', sy-pfkey.
AT LINE-SELECTION.
  IF sy-lsind = 20.
    SET PF-STATUS 'TEST' EXCLUDING fcode.
  ENDIF.
  WRITE: 'Line-Selection, SY-LSIND:', sy-lsind,
       / '                SY-PFKEY:', sy-pfkey.
AT USER-COMMAND.
  IF sy-lsind = 20.
      SET PF-STATUS 'TEST' EXCLUDING fcode.
    ENDIF.
    WRITE: 'User-Command, SY-LSIND:', sy-lsind,
         / '              SY-UCOMM:', sy-ucomm,
         / '              SY-PFKEY:', sy-pfkey.
Suppose that the function codes FC1 to FC5 are defined in the status TEST and assigned to pushbuttons: The function code PICK is assigned to function key F2 .
When the program starts, the user can create detail lists by selecting a line or choosing one of the function codes FC1 to FC5. For all secondary lists up to level 20, the user interface TEST is the same as for the basic list:
On list level 20, EXCLUDING ITAB deactivates all function codes that create detail lists. This prevents the user from causing a program termination by trying to create detail list number 21.
Example of setting a dialog status for the current list
REPORT demo_list_set_pf_status_2.
START-OF-SELECTION.
  WRITE: 'SY-LSIND:', sy-lsind.
AT LINE-SELECTION.
  SET PF-STATUS 'TEST' IMMEDIATELY.
After executing the program, the output screen shows the basic list and the user interface predefined for line selection (with function code PICK).
When you choose Choose, the user interface changes. However, since the AT LINE-SELECTION processing block does not contain an output statement, the system does not create a detail list: The status TEST is defined as in the previous example.
Example: Titles of detail lists.
REPORT demo_list_title .
START-OF-SELECTION.
  WRITE 'Click me!' HOTSPOT COLOR 5 INVERSE ON.
AT LINE-SELECTION.
  SET TITLEBAR 'TIT' WITH sy-lsind.
  WRITE 'Click again!' HOTSPOT COLOR 5 INVERSE ON.
In this program, a new title is set for each detail list. The title is defined as follows: "Title for Detail List &1".

Similar Messages

  • How to install adapters in pi 7.0 ex(tibco adapter) its urgent plz help

    hi  friends
                   can any one help me how  to insatlll  the tibco adapter in pi 7.0 its urgent plz help
    thanks in advance
    bye
    raja

    Hi Raj,
    Is  your Sender System  Tibco If  so  Use  JMS Adapter  to get  the Data from tibco  and Use  IDOC  Adapter  to Post  in R3. For this you no need to Install any Adapter in XI System.
    Similar discussions ,
    XI integration with Tibco
    XI Integration with Tibco EMS (Using JMS Adapter)
    Regards
    Agasthuri Doss

  • Cursor position on screen data in module pool programming(urgent)

    Hi all,
    I developed a module pool  program which will save the data after  scanning the barcode data.
    In my program screen 100 is there which contains field  ‘2dbar’. scanned data is comming to 2dbar field.
    we r doing scan 4 times.once for vendor number,once for material no. like this.
    After 1st scan, vendor number will come to field ‘2dbar’.
    Then I developed logic to put comma after each scanned data come to this field ‘2dbar’.
    MODULE put_comma INPUT.
    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    *replace 2dbar with 2dbar2 into 2dbar.
    move 2dbar2 to 2dbar.
    *write 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    *move '' to 2dbar.
    *set cursor field 2dbar offset 5.
    *write
    ENDCASE.
    ENDMODULE.                 " put_comma  INPUT
    By above logic, comma  comes to the starting position of 2dbar after each scan. i.e cursor position is coming to the starting position of screen field ‘2dbar’.
    Now  I need to move the cursor position after the comma position on 2dbar after each scan.
    after 1st scan, 2dbar contains
    vmotorola
    then my logic puts a comma when u put enter on screen 100.
    now 2dbar contains
    vmotorola,
    i should get the cursor position after the comma.but i am getting cursor position before 'v'.so how to move this cursor position  beyond comma after each scan.
    I added set cursor  command but it is not working.plz
    What is the logic, I need to put in PAI  to move the cursor on selection screen.
    Already the logic I have mentioned.  with that logic, I can put comma.now I need to add cursor movement logic  to move the cursoron  on screen field ‘2dbar’.
    Plz reply me as it is urgent.
    Thanks in advance.
    Regards
    pabitra

    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    move 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    len = strlen ( 2dbar ).
    len = len - 1.
    set cursor field 2dbar offset len.
    ENDCASE.
    ENDMODULE. " put_comma INPUT

  • Calling Smartforms from Module pool: Most Urgent

    Hi, Exeperts
    how can I call smartforms from module pool.
    I have done like below.
    First Created a push button on screen and used
    these code in user command through PAI
    FORM CALL_SMARTFORMS .
    DATA: V_FORM_NAME TYPE RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = 'ZSMART'
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2
        OTHERS             = 3.
    ENDFORM.                    " CALL_SMARTFORMS
    now I am getting form name in v_form_name, but it is not executing.
    Please help me out.
    Regards
    Rajiv singh.

    Well, as it's most urgent....
    One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
    Eg.
    DATA: DEVICE TYPE SSFCTRLOP .
    DEVICE-DEVICE = 'PRINTER'.
    DEVICE-NO_DIALOG = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
       CONTROL_PARAMETERS         = device
       USER_SETTINGS              = 'X'
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5.
    Regards,
    Nick

  • Urgent plz help in currency conversions

    hi to all
             wrbtr = sum of dmbtr
    wrbtr = document currency
    dmbtr = local currency
    how can i match these
    there is any function module to convert one to other.
    plz help me in this issue
    take example wrbtr = 20,000
    sum of dmbtr =200
    i am not understanding does i should use a fm or some other to make
    wrbtr = sum of dmbtr
    does the local currency and document currencies r same.
    plz helpme
    Message was edited by: kranthi reddy

    Hi,
      Local currency & document currencies need not be same, and that is the reason function modules are used ( Convert_to_local_currency & Convert_to_foreign_currency ) to convert the amount either to your Local or to Document currency, if they are same there is no need for conversions,
      Can you elaborate on your query related to summing up the values as it is not clear,
    Rgds,

  • Refreshing JEditorPane (Urgent) plz help

    hello programmers,
    i'm building an html editor:
    My html editor has a split pane, the 2 pane got of the split pane are JEditorPanes, one on which i write tag and the other i display them,... thankfully all's working great, my syntax is highlighting and the html is displayed well but i've got the following problem:
    when i save a html page , i wanna my browser (on the right side of the slipt pane) to display the html page... it's ok .. it displays it with the method JHTMLEditorPane.setPage(file:/// directory/ file) but the problem is that when i save the page again using the same filename... my html page on the JHTMLEditorPane stays the same... it does not update...
    is their a refresh function for the JEditorPane? how can i update my JHTMLPane to reflect the changes i've brought to it? ONe thing , the page changes when i save it by aother file name..... PLz help it's very urgent!!!!!!!
    Bernard

    Have you tried to close and then re-open the file in your editorpane after you've saved?
    It will work when you change the name because it has to open the file as new. Java can't dynamically update values upon files like C does with pointers.

  • Module pool Issue

    Hi
    I have created  a module pool program , its working fine on development , bbut when transporting in quality server there is coming error in include  SAPMPROGTOP  in line 8  DDIC ztable is not active while ztable is active in Development server ,
    even after it i activated Ztable then tranported it but issue is same in quality even i checked ZTABLE in quality there is showing status  NEW instead of active while in DEV this is active. how can i resolve this
    Thanks .

    Hi Chandra,
    There is a possibility that if you had created any data elements or domains which are dependent on this table and did not transport them first, the table will not get activated. Check if any such sub elements you have created are not transported, if yes, transport them first and then the table.
    Vikranth

  • Module pool program - urgent

    Hi Friends..
    I am working on a module pool program where I am using Z_BAPI_ADDREMPAU_CREATE and Z_BAPI_ADDREMPAU_CHANGE inside my Zmodule program. I have copied this these BAPI’s from Standard BAPI. The reason I created this ZBAPI’s because I have created a new fields on the screen in which when I press SAVE button ..these extra fields should also saved.
    I am facing a different problem when I am debugging each line ..it is saving into database table( pa0006). But when I press SAVE ..it is going into short dump. I could not understand why this problem is coming. Either it is giving this dump problem or the BAPI is returning “ a complex application error has occurred “
    The DUMP is :- Incorrect internal format of ABAP Program SAPLHRMM
    Correct the error:- Try regenerating the program SAPLHRMM
    Please help.

    Hi Ravi,
    This is the code in my ZFm.
    I am calling bapi_addrempua_change in my ZFM first and then moving extra fields to p0006.
    please have a look.
    'BAPI_ADDREMPAU_CHANGE'
      EXPORTING
        EMPLOYEENUMBER         = EMPLOYEENUMBER
        SUBTYPE                = SUBTYPE
        OBJECTID               = OBJECTID
        LOCKINDICATOR          = LOCKINDICATOR
        VALIDITYBEGIN          = VALIDITYBEGIN
        VALIDITYEND            = VALIDITYEND
        RECORDNUMBER           = RECORDNUMBER
       CONAME                 = CONAME
       STREETANDHOUSENO       = STREETANDHOUSENO
       CITY                   = CITY
       SCNDADDRESSLINE        = SCNDADDRESSLINE
       HOUSENUMBER            = HOUSENUMBER
       APARTMENTID            = APARTMENTID
       POSTALCODECITY         = POSTALCODECITY
       DISTRICT               = DISTRICT
       STATE                  = STATE
       COUNTRY                = COUNTRY
       TELEPHONENUMBER        = TELEPHONENUMBER
       DISTANCEINKM           = DISTANCEINKM
       DISTANCEINKM1          = DISTANCEINKM1
       COMPANYOWNEDAPT        = COMPANYOWNEDAPT
       BUSROUTE               = BUSROUTE
      NOCOMMIT               =
    IMPORTING
       RETURN                 = RETURN.
    Telephone Number
      P0006-ZZCN_CODE_TEL      = TELEPHONECOUNTRYCODE.
      P0006-ZZAREA_CODE_TEL    = TELEPHONEAREACODE.
    Mobile Number
      P0006-ZZCN_CODE_MOB      = MOBILECODE.
      P0006-ZZAREA_CODE_MOB    = MOBAREACODE.
      P0006-ZZMOB_NO           = MOBILE.
    Fax Number
      P0006-ZZCN_CODE_FAX      = FAXCODE.
      P0006-ZZAREA_CODE_FAX    = FAXAREACODE.
      P0006-ZZFAXNR            = FAX.
    Email Address
      P0006-ZZSMTP_ADDR = EMAILADDRESS.
    Location.
      P0006-ZZPLOC = LOCATION.
    Location description
      P0006-ZZPLOCDESC = LOCATIONDESC.

  • Urgent Plz Help

    hi
    actually my problem is that i have to print the page which is not in the brouser
    i,e a html page which cannnot be viewed but has to printed.
    normlly a page opened in any brouser can be given to the printer but how to give the unseen page to a printer .I dont know if it can be done through java but if it can it has to be done using jdk1.3.
    plz help me in this..

    First of all , Wrong forum!! This is a client side issue(unless you are trying to print the page in a server side printer). Anyway, to print in client side put the unseenable data in a hidden frame and use javascript window.print(). If you are using DHTML enabled browser(IE 5+) , you will be able to use CSS to specify alternate document for printing <link rel=alternate media=print href="printversion.doc"> .See http://www.pageresource.com/dhtml/d_a_01.htm

  • RECORDING WITH F-32 .......ITS URGENT PLZ HELP ME

    HI GUYS
    HERE IS MY REQUIREMENT
    I WANT TO DO A RECORDING USING F-32 AND I HAVE TO DO THE FOLLOWING WAYS
    1- ENTER ACCOUNT
    2-COMPANY CODE
    3-CLEARING DATE
    4-OPENITEM SELETION
    5-I HAVE TO SELECT THE REFERENCE RADIO BUTTON
    HERE IS MY ERROR , I DONT KNOW WHAT ARE THE VALUE I HAVE TO ENTER IN THE REFERENCE FIELD AND HOW TO PROCEED ,PLZ HELP ME IT IS VERY VERY URGENT FOR ME.
    THANKS A LOT
    MRUTYUN

    This should get you started:
    FORM clearing USING    p_purch_order
                           p_cus
                           p_ven.
      DATA: okcode(3).
      CLEAR bdcdata.
      CLEAR messtab.
      REFRESH bdcdata.
      REFRESH messtab.
      MESSAGE s205 WITH 'Clearing A/R Invoice to Invoice Receipt.'.
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0131',       "Clear Customer: Header Data
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'BKPF-BUDAT'       today_ch,
       ' ' 'BKPF-BUKRS'      'UOFT',
       ' ' 'BKPF-WAERS'      'CAD',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XPOS1(2)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730',       "Amount popup
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730'.       "Press enter
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0710',"Clear Customer: Enter selection criteri
       ' ' 'RF05A-AGBUK'     'UOFT',
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'RF05A-AGKOA'     'D',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XMULK'     'X',
       ' ' 'RF05A-XPOS1(1)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0609',       "Additional Accounts popup
       ' ' 'RF05A-AGKON(1)'   p_ven,
       ' ' 'RF05A-AGKOA(1)'  'K',
       ' ' 'RF05A-XNOPS(1)'  'X'.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Inactive
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Find
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'BDC_OKCODE'      '/24'.        "Next page
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'RF05A-XPOS1(10)' 'X'.          "Allocation
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '0731',       "Search for Allocation
       ' ' 'RF05A-SEL01(1)'   p_purch_order.                    "PO
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
    'X' 'SAPDF05X'        '1102',         "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'    '/05'.          "Active
      IF p_test = space.
        okcode = '/11'.                    "save
      ELSE.
        okcode = 'BS'.                     "simulate
      ENDIF.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',
       ' ' 'BDC_OKCODE'       okcode.      " save or check
      IF p_test NE space.                  "exit from screen after check
        PERFORM dynpro USING:
         'X' 'SAPMF05A'        '0700',
         ' ' 'BDC_OKCODE'       '/15'.     "Save or check
        PERFORM dynpro USING:              "popup
         'X' 'SAPLSPO1'        '0200',
         ' ' 'BDC_CURSOR'      'SPOP-OPTION1'.       "choose yes
      ENDIF.
      CALL TRANSACTION 'F-32' USING bdcdata MODE u_mode UPDATE 'S'
                                            MESSAGES INTO messtab.
      PERFORM get_message TABLES messtab USING text 'CL'.
      IF text IS INITIAL.
        PERFORM batch_input USING 'F-32'.
      ENDIF.
    ENDFORM.                               " CLEARING
    Rob

  • It is urgent plz help

    hi to all,
    I have problem in module pool programming.
    I have one screen through which I am calling another screen.
    Now the second screen has one io field, My requrement is that I am entering plant number into the screen 1 then pressing enter the other screen is called, now i want that the io field has to mandatory for plant 1000 and not mandatory for other plant numbers.
    Is it possible.
    IO field has input in program tab it's property.
    Can we access this property dynamically.
    Please help me in this.
    thanks in advance.
    Dharmishta

    Hi,
    yes, we can do that.there is one field REQUIRED in screen structure. write your code to make mandatory field in screen 2.
    like   (it should be in screen2)
    loop at screen.
    check screen-name = 'screen2-field'.
    if screen1-field = '1000'.
    screen-REQUIRED = 1.
    else.
    screen-REQUIRED = 0.
    endif.
    endloop.
    L.Velu

  • FlashPlayer suddenly turns black screen, urgent plz help

    I am a game developer. my game work fine for two months. but recently some player told me that when in playing games flashplayer suddenly turns black screen. when i using flashplayer debug. it didn't throw any excepetion or error. and when i right click in flashplayer content. the menu show 2 opptions. do not load movie and flashplayer verison is 11.6.602.180...
    many many player told me about this. and my game is still running for all the player. so plz help, verry urgent, thx

    If they are on Windows, they may need to update their display adapter drivers; see http://forums.adobe.com/thread/945765

  • Urgent plz help me......plz

    Am very nem to jsp.
    am doing my final year project in jsp.
    I want to retreive value in the textbox depending on the selectino made in the dropdown.
    in the dropdown menu i retrieve employee id frm backend. n in the textbox i shuld get employee name depending on the selection made in the dropdown list. that is data in the textbox shuld change depending on the selectin made in dropdown.
    here is my code which i tired but in the textbox the value is alwys remaning the last record value n it is not changing depending on slectino made in dropdwon list
    <%@ page import="java.util.*" %>
    <%@ page language="java" %>
    <%@ page import="java.sql.*" %>
    <HTML>
    FAQ
    Category choice
    <FORM ACTION="selection.jsp" METHOD="POST">
    <%
    String nameselection = null;%>
    <SELECT NAME="Category" id= Category >
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:man","scott","tiger");
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery("SELECT DISTinCT empid FROM employee" );%>
    <OPTION VALUE='nochoice'>Please choose a category</OPTION>";
    <%while(rs.next()) {
    nameselection = rs.getString("empid");%>
    <OPTION value ="optcategory"><%out.println(nameselection);%>
    </OPTION>
    <% } %>
    </SELECT>
    Question selection
    <%
    String password = null;%>
    <%ResultSet m1 = statement.executeQuery("SELECT * FROM employee WHERE empid = ( '" + nameselection + "')");
    String mm1;
    while(m1.next()){%>
    <input type =text name=mm value="<%= m1.getString(2) %>">
    <%}%>
    </FORM>
    </HTML>
    plz help me....
    am very new to it.
    Thanx in advance

    hi manisha
    good try & sorry for late reply
    To say the truth i'm too new to jsp
    i'll give u my code see it for reference.. if u have any doubts in that pls don't forget to ask me
    function display()
      var index=document.form1.drug.value;
      document.form1.hid.value=index;
      form1.submit();
    function refresh()
         var indexOfcombobox = document.form1.drughid.value;
         sel = document.form1.drug;
         for (i=0; i<sel.options.length; i++) {
              if (sel.options.text ==indexOfcombobox ) {
                   sel.selectedIndex = i;
    <form name="form1" method="post" action="">
    <body onload="refresh() ">
    <select name="drug" id="drug" value="hid" onChange="display()">
    <option value="" selected> </option>
    <%
    while(rs.next())
    %>
    <OPTION VALUE="<%=rs.getString("DrugName")%>"><%=rs.getString("DrugName") %></OPTION>
    <%
    %>
    </select>
    <input type="hidden" name="hid">
    </div></td>
    </tr>
    <tr>
    <td>NDC code #</td>
    <td>
    <%
    //query for selecting the values from the database
    String sql1 = "SELECT ProductCode,DrugName,Dosageform from ProductMaster where DrugName='"+request.getParameter("hid")+"' ";
    rs=stm.executeQuery(sql1);
    %>
    <% while (rs.next())
    String val1=rs.getString("ProductCode");
    String val2=rs.getString("DrugName");
    String val3=rs.getString("Dosageform");
    out.println (val1 +"</td>");
    out.println ("<input type=hidden name=ndc value='" + val1 + "'>");
    out.println ("<input type=hidden name=drughid value='" + val2 + "'>");
    out.println("<td>Dosageform    :     "+val3);
    }Regards
    kalai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Module pool problem (urgent)

    I am developing one module pool program where I have used custom control... when I am click on a clear button. it clears all the internal tables and fields and even that internal table also which is the source of the custom control. But the screen that means the custom contrl screen holds the record... can any body tell me how to clear that screen.?

    try this
    use refresh_table_display
      IF rc IS INITIAL.                     "reference to custom container
       CREATE OBJECT rc
                                       EXPORTING container_name = 'CONTAINER1'.
        CREATE OBJECT rg                          "reference to grid
                                       EXPORTING i_parent = rc.
      ELSE.
        CALL METHOD rg->refresh_table_display.
      ENDIF.
    Edited by: Kamini Rawat on May 23, 2008 1:57 PM

  • Query on FBL3N................Urgent  plz help me on this.

    Hi Friends
         Here is my query,
    I am changing the tcode FBL3N to add one extra field into it and to display data in the name1 field for the spcific entries in the selection screen,
    After selecting the All item radio button and giving the range in the select-options when i am pressing F8 it is giving me the correct output,after that when i am trying to display the name1 field by selecting the ctrl+f8 button and pressing the apply button  it is giving me the error as
    "An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT
    for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and
    structure RFPOSEXT."
    I changed everything to Y* but still it is giving the error.
    Plz help me in this if someone face the same prob or someone having idea on this.
    Thanks a lot in Advance
    Mrutyun^

    Hi Mrutyunjaya,
    Did you manage to resolve this error?
    Thanks and Regards
    Pras

Maybe you are looking for

  • What is offsetting customer line items?

    Hi all, Please tell about offsetting customer line items in ref of posting documents in FI.. Thanks, Charles.

  • HT201401 Can not activate iphone with apple ID

    I just upgrade ios 7 in my iphone 4s. When I restart the phone, it requires apple ID + password . I changed password in between then the machine can not active? Now my iphone is useless. Can you help? Thanks

  • How to go from 4.4 to 4.2.2?

    hello.i have the primo 81 with updated 4.4 kit kat and i will go back in 4.2.2 because i dont like.which is the way to do?

  • New ics update no macro in camera settings

    Hello everyone i just got updated to New ics 4.1..B.0587 My problem first thing im not getting macro settings in focus mode in camera setiings must needed. Second thing clear black is not there . You cant see clear black on menu setiings or in menu h

  • MBP Running extremely slow

    I have had my MBP for about 2 years, and it started to run really slow this fall.  If someone could give me some tips or look at my EtreCheck, I'd appreciate the education so I can troubleshoot better in the future. Problem description: Macbook Pro m