Assigning a function code to radio button in 4.5B

I’ve a requirement wherein I need to trigger the PAI event in a module pool program when I select a particular radiobutton in a group and do some processing subsequently.
For this I need to assign a function code to the radiobutton group.
But the function code field is disabled for input in the properties screen of the layout. Our client system is SAP 4.5B.
I am able to assign function codes to radio button groups in esuides(4.6C) and other systems.
I want to know whether we can assign a function code at all to a radio button group in version 4.5B.
If so, please tell me how to do this.
With regards,
ramu.

Hi,
we can't assign function codes to radio buttons.
for assigning some code to radio button.check the radio button status.
in PAI.
if RAD1 = 'X'.
xxxxxxxxxxx.
xxxxxxxxx.
elseif RAD2 = 'X'.
xxxxxxxxx.
xxxxxxxxxxxx.
endif.
regards,
bharat.

Similar Messages

  • Func- Code for Radio-button in Module-pool Prg.

    Hi Friend's.
    I have define 2 Radio button
    on Module-pool screen.
    I am not been able to triger the Radio button in
    Pai .
    How can i assign the function code for
    radio-button in module-pool.
    pls can any one help me

    Hi,
    For radion buttons, what ever the name you will give that name only will hold that value ( Either selected or not ). But this variable should be declared as global variable in main program.
    Still if you want to assign function code, you can assign one like other fields on the screen.

  • Function code for execute button

    Hi,
    I have a requirement like this...
    there is a program for selective deletion from a data target by a transaction called delete_facts.
    this generates a program for selective deletion. when i run this report there comes one screen asks for selections fields and then again excute it then deletion will happen.
    But this program i need to modify for certain default values so as to avoid entering of the values in the selection screen.
    i will use default value this will solve my 1st purpose but since this program has to be scheduled from process chain, the 2nd execute funtionality( once the values appear in the screen) shud be automated.
    can anybody tell me how to do this that is after program runs values will be passed to selection screen and selection screen shud not be shown and execute shud happen automatically.
    this is the code generated by transaction delete_facts:
    *& Report  ZTEST_DELETE1
    REPORT  ZTEST_DELETE1.
    generated Header from i_sel_repid
    generated REPORT (RSDRD)
    (should be deleted after use)
    Generated by..: SALAGUN
    Date/Time.....: 20070322 / 051426
    *REPORT GP457FUV92GJS4663HYHXLYC9Q7 .
    generated Tables from i_t_tables
                     and  i_datatarget
    TABLES:
    SSCRFIELDS,
    /BIC/SZTESTBC
    ,/BI0/SCHNGID
    ,/BI0/SRECORDTP
    ,/BI0/SREQUID
    ,/BI0/SDATE
    ,/BI0/SUNIT
    generated DATA/TYPES
    TYPE-POOLS: RSDRD, RSDQ.
    DATA:
      L_INTERACTIVE      TYPE RS_BOOL,
      L_ANSWER(1)        TYPE C,
      L_TYPE(1)          TYPE C,
      L_PARALLEL         TYPE I,
      L_NO_OF_ROWS       TYPE I,
      L_NO_OF_ROWS_C(10) TYPE C,
      L_TITEL            TYPE RS_CHAR72,
      L_TEXT1            TYPE RS_CHAR72,
      L_TEXT2            TYPE RS_CHAR72,
      L_S_RANGE          TYPE RSDRD_S_RANGE,
      L_S_SELTXT         TYPE RSDQ_S_SELTEXT,
      L_SX_SEL           TYPE RSDRD_SX_SEL,
      L_T_MSG            TYPE RS_T_MSG,
      L_THX_SEL          TYPE RSDRD_THX_SEL,
      L_T_SELTXTS        TYPE RSDQ_T_SELTEXT
                              WITH HEADER LINE.
    generated SELECTION-SCREEN from i_t_selscr
    SELECTION-SCREEN BEGIN OF BLOCK B001 WITH FRAME TITLE T001 .
    SELECT-OPTIONS C001 FOR /BIC/SZTESTBC-/BIC/ZTESTBC
    default 'D' TO  'C'.
    SELECTION-SCREEN   END OF BLOCK B001 .
    SELECTION-SCREEN BEGIN OF BLOCK B002 WITH FRAME TITLE T002 .
    SELECT-OPTIONS C002 FOR /BI0/SCHNGID-SID .
    SELECT-OPTIONS C003 FOR /BI0/SRECORDTP-SID .
    SELECT-OPTIONS C004 FOR /BI0/SREQUID-SID .
    SELECTION-SCREEN   END OF BLOCK B002 .
    SELECTION-SCREEN BEGIN OF BLOCK B003 WITH FRAME TITLE T003 .
    SELECT-OPTIONS C005 FOR /BI0/SDATE-DATE0 .
    SELECTION-SCREEN   END OF BLOCK B003 .
    SELECTION-SCREEN BEGIN OF BLOCK B004 WITH FRAME TITLE T004 .
    SELECT-OPTIONS C006 FOR /BI0/SUNIT-UNIT .
    SELECTION-SCREEN   END OF BLOCK B004 .
    SELECTION-SCREEN BEGIN OF BLOCK B005 WITH FRAME TITLE T005 .
    PARAMETERS L_PA TYPE DBMAN_PARALLEL_DEGREE DEFAULT '01'.
    DATA L_P1(1) TYPE C.
    PARAMETERS L_NL TYPE DBMAN_NO_LOGGING AS CHECKBOX DEFAULT ' '.
    PARAMETERS L_SR TYPE DBMAN_SHOW_REPORT AS CHECKBOX DEFAULT ' '.
    SELECTION-SCREEN   END OF BLOCK B005 .
    generated body from i_t_body
    generated INITIALIZATION from i_t_init
                             and  i_t_seltexts
                             and  i_batch_allowed
                             and  i_datatarget
    INITIALIZATION.
    T001 = 'product'.
    T002 = 'Data Package'.
    T003 = 'Time'.
    T004 = 'Unit'.
    T005 = 'Options'.
    SELECTION-SCREEN FUNCTION KEY 1.
    MOVE 'Execute in Bckgrnd' TO SSCRFIELDS-FUNCTXT_01.
    PERFORM RESTRICT_SEL_OPTIONS(SAPLRSDRD).
    SET TITLEBAR 'SELECTION' OF PROGRAM 'SAPLRSDRD' WITH
    ' Delete selected entries from the data target DELETE '.
    L_S_SELTXT-NAME = 'C001'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Base Code'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C002'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Change Run ID (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C003'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Record type (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C004'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Request ID (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C005'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Calendar Day'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C006'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Unit of measure'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_PA'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Parall. deg. during reconstruc'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_NL'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Switch off logging drng recons'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_SR'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Display generated report'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    generated AT SELECTION-SCREEN OUTPUT from i_sel_repid
    AT SELECTION-SCREEN OUTPUT.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
         EXPORTING
              PROGRAM                     =  'GP457FUV92GJS4663HYHXLYC9Q7'
         TABLES
              SELTEXTS                    =  L_T_SELTXTS
         EXCEPTIONS
              PROGRAM_NOT_FOUND           = 1
              PROGRAM_CANNOT_BE_GENERATED = 2
              OTHERS                      = 3.
    generated AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
      WHEN 'ONLI'.
        L_INTERACTIVE = RS_C_TRUE.
      WHEN 'OPTI'.
      WHEN 'DELS'.
      WHEN 'FC01'.
        L_INTERACTIVE = RS_C_FALSE.
        SSCRFIELDS-UCOMM = 'ONLI'.
      WHEN 'OTHERS'.
    ENDCASE.
    generated END-OF-SELECTION from i_t_selopt
                               and  i_del_repid
                               and  i_datatarget
                               and  i_gen_mode
    END-OF-SELECTION.
    IF NOT C001[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = 'ZTESTBC'.
      LOOP AT C001 .
        CLEAR L_S_RANGE.
        MOVE C001-SIGN TO L_S_RANGE-SIGN.
        MOVE C001-OPTION TO L_S_RANGE-OPTION.
        MOVE C001-LOW TO L_S_RANGE-LOW.
        MOVE C001-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C002[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CHNGID'.
      LOOP AT C002 .
        CLEAR L_S_RANGE.
        MOVE C002-SIGN TO L_S_RANGE-SIGN.
        MOVE C002-OPTION TO L_S_RANGE-OPTION.
        MOVE C002-LOW TO L_S_RANGE-SIDLOW.
        MOVE C002-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C002-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C003[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0RECORDTP'.
      LOOP AT C003 .
        CLEAR L_S_RANGE.
        MOVE C003-SIGN TO L_S_RANGE-SIGN.
        MOVE C003-OPTION TO L_S_RANGE-OPTION.
        MOVE C003-LOW TO L_S_RANGE-SIDLOW.
        MOVE C003-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C003-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C004[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0REQUID'.
      LOOP AT C004 .
        CLEAR L_S_RANGE.
        MOVE C004-SIGN TO L_S_RANGE-SIGN.
        MOVE C004-OPTION TO L_S_RANGE-OPTION.
        MOVE C004-LOW TO L_S_RANGE-SIDLOW.
        MOVE C004-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C004-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C005[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CALDAY'.
      LOOP AT C005 .
        CLEAR L_S_RANGE.
        MOVE C005-SIGN TO L_S_RANGE-SIGN.
        MOVE C005-OPTION TO L_S_RANGE-OPTION.
        MOVE C005-LOW TO L_S_RANGE-LOW.
        MOVE C005-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C006[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0UNIT'.
      LOOP AT C006 .
        CLEAR L_S_RANGE.
        MOVE C006-SIGN TO L_S_RANGE-SIGN.
        MOVE C006-OPTION TO L_S_RANGE-OPTION.
        MOVE C006-LOW TO L_S_RANGE-LOW.
        MOVE C006-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
      L_PARALLEL = L_PA.
      IF L_INTERACTIVE EQ RS_C_TRUE.
      CALL FUNCTION 'RSDRD_SEL_DELETION'
           EXPORTING
                I_DATATARGET   = 'DELETE'
                I_THX_SEL           = L_THX_SEL
                I_AUTHORITY_CHECK   = RS_C_TRUE
                I_NO_LOGGING        = L_NL
                I_PARALLEL_DEGREE   = L_PARALLEL
                I_SHOW_REPORT       = L_SR
           CHANGING
                C_T_MSG             = L_T_MSG.
      ELSE.
        CALL FUNCTION 'RSDRD_BUILD_REPORT_FOR_BATCH'
             EXPORTING
              I_REPID        = 'GP457FWJUK1J1F3ZIZZOEH9U533'
              I_DATATARGET   = 'DELETE'
              I_GEN_ONLY          = RS_C_FALSE
              I_THX_SEL           = L_THX_SEL
              I_AUTHORITY_CHECK   = RS_C_TRUE
              I_NO_LOGGING        = L_NL
              I_PARALLEL_DEGREE   = L_PARALLEL
              I_SHOW_REPORT       = L_SR
         CHANGING
              C_T_MSG             = L_T_MSG.
      ENDIF.
    Thanks in advance,
    Vijaya

    hi!
    Function code for execute button is 'ONLI'.
    try ur code using it!!
    Reward points if it helps.
    Regards,
    Neha Bansal.
    Message was edited by:
            Neha Bansal

  • How to get function code of enter button in bdc manually

    hi
    i need to know how to get function code of enter button in bdc manually like in screen i want to capture techincal infor of enter buttion and itd fucntion cod ehow can i get it i mean what is the key in keyboard to display that
    i want to capture enter button and for eg status button etc funtion code
    pls suggest
    arora

    Hi,
    Want you need to do is go to transaction SHDB and record the bdc for the transaction you want, during transaction press the buttons for which you want the bdc code. And after this go press the back button and check the list of all the things recorded in Recorder.
    And for SHDB help check this link:
    http://abaplovers.blogspot.com/2008/02/recording-bdc-using-transaction-shdb.html
    Hope this helps.
    Regards,
    Qamar.

  • Assign Excel functionality to a New Button

    Hi all,
    Does anyone know how to assign the functionality of exporting to excel to a button?
    I mean if anyone knows the code in order to export to a excel file. I already know how to create a new button and the way to assign the function to it, but I don´t know the correct code in order to export to a excel file.
    Thanks in advance!

    See this Link to Action
    Regards
    Nithya

  • Is it possible to assign a value to a radio button or checkbox?

    I would like to assign radio buttons or checkboxes a value and then have the results of the buttons selected tabulated at the end of a form, if desired. Is that possible? Thanks

    Thanks for your reply and help. I appreciate it. I was able to get an export value added to the check box, but did not see and option for a radio button. But the check box works fine for now. Thanks again.

  • How to set Function Code for Radion Buttons in Screen painter

    Hi,
    I have faced problem of grouping 3 radio buttons in screen painter (no graphical editor). How to do it?
    I have checked similiar threads in SDN, but those are for graphical editor.
    Radio Buttons in custom screeen
    http://****************/Tutorials/ABAP/Checkbox/page1.htm
    http://****************/Tutorials/ABAP/Checkbox/page2.htm
    Regards,
    Sukhbold

    Hi,
    U want to create radio button in the selection screen  then u can create like this
    PARAMETERS : c1 AS CHECKBOX USER-COMMAND cd,
    r1 RADIOBUTTON GROUP rad,
    r2 RADIOBUTTON GROUP rad.
    AT SELECTION-SCREEN OUTPUT.
    IF c1 = 'X'.
    LOOP AT SCREEN.
    IF screen-name = 'R1'.
    screen-input = '0'.
    screen-active = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ELSE.
    LOOP AT SCREEN.
    IF screen-name = 'R1'.
    screen-input = '1'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Thanks,

  • BW Table for T-code RSSM  - Radio Button Checked ODS Infoproviders to AO

    Hello,
    Need to know the table which reads the tcode RSSM & the table when we check the ODS Infoproviders to right Authorization Objects.
    RSSM->click Radio Button-->Generating Authorizations for ODS Checks.
    Table which checks RSSM Tcode
    Table which checks for ODS Objects
    We are trying to create abap program which can be scheduled as batch job &  automatically and checks the ODS Infoproviders to right Authorization Objects.
    For Example:
    In BW security we check the Infoproviders to correct Authorization objects. This is one way of security in BW Reporting Authorizations.
    These checks can be read from table RSSTOBJDIR from Tcode SE16
    Please Let me know.
    Thanks,
    Vijay

    RSSTOBJDIR is the table which reads the ODS Objects from tcode RSSM.
    Issue Resolved & closed

  • Code for radio button is not working plz help

    checkboxes are working fine but when i put radio code submit button does nothing
    plz help
    thanks in advance
    <%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
    <jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <script language="javascript" >
    function cmdOnSelect()                                   
                   var deptcode=document.DepartmentPage.cmdSelect.value;
                   DepartmentPage.method="post";
                   DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
                   DepartmentPage.submit();           
    function validate()
         var user_etime = document.DepartmentPage.etime.value;
         var etime_length = document.DepartmentPage.etime.value.length;
         var user_edate = document.DepartmentPage.edate.value;
         var edate_length = document.DepartmentPage.edate.value.length;
         var user_calltype = document.DepartmentPage.calltype.value;
         var calltype_length = document.DepartmentPage.calltype.value.length;
         var user_callstatus = document.DepartmentPage.callstatus.value;
         var callstatus_length = document.DepartmentPage.callstatus.value.length;
         if( edate_length==0 )
              alert("Please enter the call date");
              return false;
         else if( calltype_length==0 )
              alert("Please enter the call type");
              return false;
         else if( callstatus_length==0 )
              alert("Please enter the call status");
              return false;
         else if( etime_length==0 )
              alert("Please enter the call timing");
              return false;
         else if(etime_length!=0 && etime_length!=4)
              alert("Entered timing is invalid");
              return false;
         else if (etime_length!=0)
              for (var i = 0; i < etime_length; i++)
                   valid_characters = new RegExp ("[0-9]", "g");
                   var part_user_etime = user_etime.charAt (i);
                   if (!valid_characters.test (part_user_etime))
                        alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
                        return false;
                   valid_characters = null;
              return true;
         else
              return true;
    function cmdOnClick()                                   
              if (validate())
                        DepartmentPage.method="post";
                        DepartmentPage.action="/anaghan/CallSheet?flag=call";     
                        DepartmentPage.submit()     
    </script>
    <script language="javascript" src="calendar1.js">
    </script>
    </head>
    <body>
    <%
    String uname=(String)session.getAttribute("employeeName");
    if(uname==null)
         response.sendRedirect("/Error.jsp?login=Login Session Problem");
    %>
    <%
         String date1="";
         String date2="";
    %>
    <%!
         ResultSet rs=null;
         Connection con =null;
         String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
         String tableStr="jdbc:odbc:Anaghan";
    %>
    <%
         String companycode=request.getParameter("cmdSelect");
         HttpSession hs = request.getSession();
         hs.setAttribute("companycode",companycode);
         System.out.println("CALLLLL="+companycode);
    %>
    <%
         String flag="";
         String deptcode="";
         String commissioningdate="";
         String closuredate="";
    %>
    <%
         String a2="";String a1="";
    %>
    <form name="DepartmentPage" >
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
         <TR>
              <TD align=CENTER>
                   <h2> CALL DATA SHEET </h2>
              </TD>
         </TR>
         <TR>     
              <div>
                                  <FONT face="Arial " color=#000000 size=2>
              <TD valign="top">          
                   <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                        <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                       <tr>
                                            <TD align=RIGHT>Select Company - </TD>
                                                 <td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
                                                 <OPTION SELECTED></OPTION>
                                                      <%
                                                           deptcode=request.getParameter("cmdSelect");
                                                           response.setContentType("text/html");
                                                           ResultSet rs = obj.onSelect();
                                                           while(rs.next())
                                                                String tempName=rs.getString(2);
                                                      %>
                                                 <OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
                                                 <%}%>
                                                 </SELECT></td>
                                       </TR>
                                            </TD>
                                       </TABLE>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Contact Person</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
                                                 <%!
                                                      ResultSet result=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
                                                      Statement stmt=con.createStatement();
                                                      result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
                                                      while(result.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result.getString(9) %></td>
                                                           <td align ="center"><%=result.getString(10) %></td>
                                                           <td align ="center"><%=result.getString(11) %></td>
                                                           <td align ="center"><%=result.getString(12) %></td>
                                                           <td align ="center"><%=result.getString(13) %></td></OL>
    <tr>
                                                           <OL><td align ="center"><%=result.getString(14) %></td>
                                                           <td align ="center"><%=result.getString(15) %></td>
                                                           <td align ="center"><%=result.getString(16) %></td>
                                                           <td align ="center"><%=result.getString(17) %></td>
                                                           <td align ="center"><%=result.getString(18) %></td></OL>
                                                           <%}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Call History</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
                                                 <%!
                                                      ResultSet result1=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      result1=obj.onSelectCallHistory(deptcode);
                                                      while(result1.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result1.getString(3) %></td>
                                                           <td align ="center"><%=result1.getString(4) %></td>
                                                           <td align ="center"><%=result1.getString(6) %></td>
                                                           <td align ="center"><%=result1.getString(7) %></td>
                                                           <td align ="center"><%=result1.getString(9) %></td>
                                                           <td align ="center"><%=result1.getString(8) %></td>
                                                           </OL>
                                                           <%}}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                            <TR>
                                                 <TD></TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Type of Call - </TD>
                                            <td>
                                            <input type = radio name=calltype value=personal/>personal
                                            <input type = radio name=calltype value=email/>Email</td>
                                                 <!-- <TD><SELECT name="calltype" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "personal"> Personal </OPTION>
                                                      <OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
                                                      <OPTION id= "s" value= "email"> E-mail </OPTION>
                                                      <OPTION id= "s" value= "meeting"> Meeting </OPTION>
                                                      </SELECT>
                                                 </TD>-->
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Status of Call - </TD>
                                                 <TD>
                                                 <SELECT name="callstatus" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "cold"> Cold </OPTION>
                                                      <OPTION id= "s" value= "warm"> Warm </OPTION>
                                                      <OPTION id= "s" value= "hot"> Hot </OPTION>
                                                      <OPTION id= "s" value= "closed"> Connection Executed </OPTION>
                                                      <OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
                                                      <OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
                                                      <OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
                                                      <OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Date - </TD>
                                                 <TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Time - </TD>
                                                 <TD><input type="text" size="4" name="etime" maxlength="4"></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 </TD>
                                                 <TD>(Write timing in 0000 - 2400 in this format only)</TD>
                                            </TR>
                                            <TR><TD align=CENTER> INFRASTRUCTURE DETAILS
                                                 </TD></TR>
                                            <TR></TR>     
                                            <TR>
                                                 <TD align=RIGHT bgcolor=#00CCFF>     
                                                 <font color="#CC6600" size=4>Details of service </font></TD>
                                                 <TD></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Circuit Specification - </TD>
                                                 <TD><SELECT name="servicetype" size="1" >
                                                      <OPTION SELECTED>---Services---</OPTION>
                                                      <OPTION id= "s" value= "IPLC"> IPLC </OPTION>
                                                      <OPTION id= "s" value= "VPN"> VPN </OPTION>
                                                      <OPTION id= "s" value= "ILL"> ILL </OPTION>
                                                      <OPTION id= "s" value= "VoIP"> VoIP </OPTION>     
                                                      <OPTION id= "s" value= "ISDN"> ISDN </OPTION>
                                                      <OPTION id= "s" value= "IDC"> IDC </OPTION>
                                                      <OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
                                                      <OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT vAlign=TOP>
                                                 Feedback Details - </TD>
                                                 <TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Next Visit Scheduled - </TD>
                                                 <TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD></TD>
                                                 <TD>     
                                                      <input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
                                                         <input type="reset" name="reset" value="RESET" >
                                                 </TD>
                                            </TR>
                                       </FONT>
                             </div>
                        </TD>
                   </TR>
              </TABLE>
         </TD>
         <TD vAlign=TOP bgcolor=#FFFFFF>
                   </TD>
         </TR></TABLE>
    </form>
    <script language="JavaScript">
         var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
         var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
    </script>
    <script language="javascript">
    document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
    </script>
    <BR><BR>
    <jsp:include page="index-end.jsp"/>
    </body>
    </html>

    If the reset doesn't work, you have to force iPad into Recovery Mode
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • How to find function codes of the buttons in ABAP Webdynpro

    I had 2 buttons in my input screen of the WebDynpro, for both buttons some piece of logic is common. So i wrote that common logic in the default method 'WDDOBEFOREACTION', which will be triggered always before the corresponding methods got triggered.
    Now my problem is the method 'WDDOBEFOREACTION' triggering even when user hits ENTER in the input screen, to prevent the common logic not to execute need to write some condition based on the user action. But unfortunately was not able to find the way. Could any one suggest me on this.

    For your specific requirement :
    you should first determine the current action which triggered this WDDOBEFOREACTION method,
    as this method triggers for every action performed on the webdynpro view.
    For that below is the code
      DATA lo_api_view_controller    TYPE REF TO if_wd_view_controller.
      DATA lo_action                 TYPE REF TO if_wd_action.
      lo_api_view_controller = wd_this->wd_get_api( ).
      lo_action = lo_api_view_controller->get_current_action( ).
      IF lo_action IS NOT BOUND.
              IF lo_action->name EQ 'BUTTON1'   OR   lo_action->name EQ 'BUTTON2'.
    Where BUTTON1 and BUTTON2 are the actions associated with both the buttons.
    Write your common logic here and now it would get executed only for both these button cliks only
               ENDIF.
    ENDIF.
    Edited by: Avasarala Sampath on Oct 28, 2011 7:26 AM
    Edited by: Avasarala Sampath on Oct 28, 2011 7:29 AM

  • Push Buttons, Radio Buttons, Folder Tabs

    Could someone please let me in on the secret to selecting
    background colors for push-buttons, radio-buttons and folder
    tabs. I've tried the obvious properties with no luck.
    I am developing on a Windows NT 4.0 platform using Developer
    6.0. I will be releasing my app to the web soon and could
    really use some help.
    Ideally, I would like to be able to select any color ( i.e. to
    match the background color of the canvas ), but so far the only
    choices seem to be black, white or a couple of other non-
    desirable colors ( bright red, green, yellow, yuck! ). Is a
    custom color palette the ticket?
    I realize that many button properties are controlled by Windows.
    If this is the case, are there any work-arounds? When I
    distribute the application, will I be able to offer my customers
    the ability to configure Windows to correctly define the button
    colors?
    I am sure that others have these same questions. I have not
    been able to find any answers. Any help is greatly appreciated.
    Mike
    [email protected]
    null

    Hi,
    1. Disabling Push button.
        In PBO loop at sccreen and check the field name is equal to push button name
        set screen-input = 0.
        modify screen.
        endloop.
    2.assign a function code to radio button in screen element it will trigger the PAI.
    In PAI during loop at table control check the field value is equal to 'X'.then not down the roqw number and in PBO enable the button based on the row number by looping at screen.
    3Assign the fcode to push button.Once the user presses the button in PAI check the focde and see for which line it is pressed based on it call the pop up screen using FM or dialog box.
    Regards,
    Nabheet Madan
    Never give Up.
    Edited by: nabheet1234 on May 11, 2009 2:26 PM
    Edited by: nabheet1234 on May 11, 2009 2:27 PM

  • Assisning function code

    Hi all,
              We have requirement of assigning function code to radio button on screen.
    It's urgent.
    Thanks in anticpation.
    Regards,
    Rajashree

    Hi as per previous answer you select and make a group of radio button by right clicking then you will be able to give it FCODE.
    But now your Radio Button will work like a push button clicking it will activate the PAI event. Now in pai you have to write a case statement to know which button is pressed.
    Example:  With three radio button named Radio1,2 and 3 with FCODE RAD and Group name RADIO_GRP.
    DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c.
    MODULE USER_COMMAND_0100 INPUT.
    CASE 'X'.
    when radio1.
    when radio2.
    When radio3.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Assign function code to a field in internal table

    Hi all,
    Can we assign a function code to one field in internal table so that we can use it as an user command in list display.
    For ex:
    data : begin of itab occurs 0,
              check(1) type C,
              num type I,
             end of itab.
    I am preparing a list display using WRITE statements.
    I'ld like to update the checked value of check box as soon as the user selects a  check box. So I would like to assign a function code to this check box. Then I can use AT user-command.

    Hi,
    dinesh's apporach is not bad, but
    1. the structure' name cannot be part of the component
    2. you need to make sure the component-name always is in upper case.
    Try adapting the following code:
    data: begin of wa_test,
              field01 type string,
              field02 type string,
              field03 type string,
           end of wa_test.
    data:  l_fieldname  type string,
           l_counter    type string.
    field-symbols: <testc> type string.
    do 3 times.
      l_counter = sy-index.
      concatenate 'field0' l_counter into l_fieldname.
      translate l_fieldname to upper case.
      assign component l_fieldname of structure wa_test to <testc>.
      if <testc> is assigned.
        <testc> = 'any value'.
      endif.
    enddo.
    write / wa_test-field01.
    best regards

  • PO function code for HOLD & CANCEL (DELETE or BLOCKED) button

    Hi,
    can any one can provide the function code for HOLD button in purchase order creation.
    How to find out the function code for HOLD button.
    Regards,
    Nagaraju.

    For your case specifically, function code for hold is dependent on that program is calling it, but any way for hold, you can simply use HOLD or RECN or ONHO or PTBK or a bunch of others.
    For block you can use SHB1 or SHB2 or VFIX etc. To make it easy for you and others, follow the following steps:
    -Run transaction SHDB and record the transaction you want.
    -Then in a different session, run SE16 and enter table name RSMPTEXTS.
    -Enter any OK Code you want to know its use in the field OBJ_CODE (Function Code) and execute.
    -If you know the program name or Tcode, you can use that too. Just enter that in the appropriate field.
    -OR use the text wildcard and see if you're lucky.
    -The Text will tell you what the OK Code does.
    Ken G

  • Calling subscreen on click of radio button

    Hi,
    I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
    But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
    Module user_command.
      case sy-ucomm.
       when rb_yes = 'X'
        { CALL SUBSCRREN CODE
    ENDIF.
    Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.

    Hi,
    Try doing this.
    This is your flow logic in the main screen  to call the Subscreen's PBO
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
    In the PAI of the main screen,
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    CALL SUBSCREEN TAB1_REF1.
    Assign a function code to your radio button.
    Layout -> Attributes -> Function Code
    In the TOP include,
    DATA: v_dynnr type sy-dynnr.
    In module USER_COMMAND_0110.
    if p_rad = 'X'.
       v_dynnr = '0111'.
    else.
      v_dynnr =  ' '
    endif.
    You can check this for your reference
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]

Maybe you are looking for

  • Do I need to re-install Logic?

    I recently had to do an Archive and Install of Leopard after having terrible problems with the first installation - see thread below: http://discussions.apple.com/thread.jspa?messageID=6222119&#6222119 The result was the creation of a fresh OSX insta

  • Please Help My External Speakers Are'n't Working

    I am using a powerbook g4 (titanium) and OS 10.4.10. For some reason, my headphone jack plays sound when I plug in headphones but not when I plug in my speakers. Bought new pair of speakers and they still do not get sound ( Is this a coincidence?) I

  • Lightning to Ethernet adapter. Prevent children exposure to EMR

    Hi, Is there a Lightning to Ethernet adapter available? If so, great, where do I get one? The reason I'm after this is that there is a lack of information on the long term effects of EMR (Electromagnetic Radiation) which is produced when data is tran

  • How to call methods at selection screen?

    Hi all, I am developing a program in object oriented abap. i have defined a class and implementated, and we have to instantiate the class in start of selection. now the problem is how to call a method at selection screen event. i want to validate the

  • Acrobat Reader doesn't open at page last viewed.

    When I open a pdf document, I want Reader to open with the same page viewing that I was reading the last time I used it. Instead, Reader opens at the very first page every time. Is there a setting or configuration that needs to be set that tells Read