Regarding checkboxes in modulepool

gdmrng experts,
                      cud u plz tell me how to handle checkboxes in the module pool screen ,plz send me the logic,,,,,,if i enable the checkbox then what will i write,,,, as i new to module pool....thnx in advance.

Hi,
Do something like this in your PBO section.
loop at itab with tc...
module modify_tc.
endloop.
in the main program.
module modify_tc.
loop at itab where mark = 'X'.
endloop.
if sy-subrc = 0.
loop at screen.
screen-input = 0.
modify screen.
endloop.
endif.
endmodule.
Thanks
Ashu

Similar Messages

  • Regarding checkboxes

    how to deactivate checkboxes residing on different tabs at selection screen like if we select tab1 than only checkboxes for first tab should be deactivated and vice versa

    use the property active tab
    fg
    if active-tab = fuvctioncode of tab1
    loop at screen
    if screen name = chkbox
    screen - input =0
    endif.
    endloop.
    endif
    i hope u get an idea
    <u><i><b>u can also use sy -ucomm value of tab as a condition instead of active tab</b></i></u>
    regards
    navjot
    reward points

  • Radiobutton and checkboxes in modulepool

    Hi all,
    I have drag and dropped 3 radiobuttons and 3 checkboxes in the layout.
    My requirement is if i selected the first radio button first checkbox should be checked likewise the rest.
    When i tried to execute it is displaying all the radiobuttons checked..im unable to select any radiobutton..how to set the properties in layout so that only one radiobutton can be selected at a time..pls help me out.
    regards
    swapna

    Hi,
    select all the radiobuttons --> right click --> define --> group.
    Take the function group of all radiobuttons as CS and function type as S .
    And use code in PAI:-
    module user_command_8001.
      if rad1 = 'X'
        chk1 = 'X'.
        chk2 = ' '.
        chk3 = ' '.
      elseif rad2 = 'X'
        chk1 = ' '.
        chk2 = 'X'.
        chk3 = ' '.
      elseif rad3 = 'X'
        chk1 = ' '.
        chk2 = ' '.
        chk3 = 'X'.
      endif.
    endmodule.
    Hope this helps you.
    Regards,
    Tarun
    Edited by: Tarun Gambhir on Feb 27, 2009 11:33 AM

  • Quetion regarding checkboxes and inputting information

    I am runing a form that pulls the checkboxes from a query.  They have the same name, but different values.
    On the action page, for each checkbox checked, a new record must be created in the db.
    Im' sure this has to do with counting and setting a loop number, but for some reason I am drawing a blank.
    The query is basic....
    <cfquery name="whatever" datasource=#dbname#>
         insert into ach_world_done
              (id,scoutid,den,world)
         Values
              ('#url.id#','#url.scoutid#','#url.den#','#form.world#')
    </cfquery>
    As it is written now, it conmas the checkboxes on the previous page, so if there are two boxes checked, it does info1,info2 and puts this into the db.  I need to break this up.
    any help would be greatly appreciated.
    Sharon
    www.smdscouts.com

    On the form page, give each checkbox a unique name:
    <cfset index = 1>
    <cfif doh.recordcount is 0>
                <input name="belt#index#" type="checkbox" value="#belt.belttotemrecord#">
                <cfelse>
                <font class="normal">X - #dateformat(doh.datereceived,'mm/dd/yy')#</font>
    </cfif></td>
    <cfset index = index + 1>
    On the action page, count the number of checkboxes. Remember Coldfusion doesn't submit unchecked checkboxes.
    <cfset numberOfCheckboxes = 0>
    <cfloop collection="#form#" item="field">
        <cfif left(field,4) is 'belt'>
            <cfset numberOfCheckboxes = numberOfCheckboxes + 1>
        </cfif>
    </cfloop>

  • Question regarding Checkboxes

    Is it possible to have rows of selections with checkboxes but if a certain row's checkbox is checked to move that row to the top of the list?

    when i create the checkbox, is there a way i can say if check.. make its value "on"?
    <input type=\"checkbox\" name=\""+items.get(j).itemName+"\">thats how i create the checkboxes (for each item listed in cart).. i thought i might have to add the value parameter but i dont know what exactly its value should be.. are you saying that if i add value="on", that it will only take that value if and when its actually selected?

  • Regarding checkbox in smartfrom

    Hi Folks,
    How to create a check box beside to the text elemet in the smartform? Please respond, its very urgent.
    Thanks in advance.

    Hi,
         Create a text element in your window. Click on the the text editor next to that. In the toolbad click on insert -> characters -> SAP Symbols -> SYM_LARGE_SQUARE
    Thanks
    Nayan

  • Regarding SINO. in modulepool programing

    hi experts,
    i m inserting the data into my customized database table with the help of table control.for deletion purpose i m using sino field in my database table..what i want is without inserting sino in the table control (o/p screen) the database table will automatically
    take the sino depending upon the row insertion.what logic sud i use in pbo or pai to get the sino in database table..plz help me .its urgent.if possible plz send me the code related to this scenario.
    thnx in advance

    Hi Ravi
    You can use number range for automatically generation of sequence no.
    The transcation is SNRO.
    I don't know whether it is the answer to ur question.
    Naresh

  • Checkbox in alv report

    hi all,
    i am facing one problem regarding checkbox in alv.
    i have to buttons on alv report as 'select all' (to select all) and 'send mail'(as i have to send mail to selected record)
    wat i have done till now is:
    1. when i run the report and cleck on checkboxes the action is reflected in internal table..n i can capture the data.
    2.when i click on select all button all the records get selected and i can capture the data again.
    now the problem :
    when i clcik on "select all" and all the record get selected ..but when i deselect any of those record..the changes in internal table lost i.e. the checkbox field because empty for all the record.....
    PLZ GIVE SOLUTION FOR FUNCTION "REUSE_ALV_GRID_DISPLAY" ONLY...
    now the code:
    ************LAYOUT**************
    DATA: gd_layout TYPE SLIS_LAYOUT_ALV.
      gd_layout-colwidth_optimize = 'X'.
    gd_layout-zebra      = 'X'.
      gd_layout-box_fieldname  = 'CHECKBOX'.
      gd_layout-box_tabname  = 'IT_CONF'.
    ****alv display*************
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_grid_title             = 'Detailed List'
            it_fieldcat              = fieldcat
            i_callback_program       = sy-repid
            i_callback_user_command  = 'USER_CMD'
            i_callback_pf_status_set = 'EMAILS'
            IS_LAYOUT                = gd_layout
          TABLES
            t_outtab                 = it_conf
          EXCEPTIONS
            program_error            = 1
            OTHERS                   = 2.
        IF sy-subrc <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      endif.
    endform.                    "alv_display
    *&      Form  sush1
          text
         -->RT_EXTAB   text
    FORM emails USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'EMAILS'.
    ENDFORM.                    "emails
    *&      Form  user_cmd
          text
         -->P_UCOMM    text
         -->LS_SELFIELDtext
    FORM user_cmd USING p_ucomm LIKE sy-ucomm ls_selfield type slis_selfield.
    IF REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = REF_GRID.
      ENDIF.
    IF NOT REF_GRID IS INITIAL.
        CALL METHOD REF_GRID->CHECK_CHANGED_DATA.
      ENDIF.
      IF p_ucomm = 'EMAIL'.
        loop at it_conf  where checkbox = 'X'.
    **[[[[[[[U MAY NOT SEE THIS THIS IS FOR MAIL PUPOSE]]]]]]]]]]]]*********
          select single  sachn  telnr  into (tc_name , tc_num ) from t526
          where SACHX = it_conf-zztc
          and werks = it_conf-werks .
      ******find the emil of employee.
           clear : p_0105,p_0105[].
            CALL FUNCTION 'HR_READ_INFOTYPE'
              EXPORTING
                pernr           = it_conf-pernr
                infty           = '0105'
                BEGDA           = pn-begda
                ENDDA           = pn-endda
              TABLES
                infty_tab       = p_0105
              EXCEPTIONS
                infty_not_found = 1
                OTHERS          = 2.
           if sy-subrc = 0.
            read table p_0105 with key subty = 10.
            move p_0105-USRID_LONG to email.
        endif.
    find immediate superior by Z FM.
          clear pernr_s.
          CALL FUNCTION 'ZHR_GET_IMMMED_SUPERIOR'
            EXPORTING
              pernr     = it_conf-pernr
              begda     = '18000101'
              endda     = '99991231'
            IMPORTING
              v_pernr   = pernr_s
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          if sy-subrc = 0.
    find the email of the immed. superiors personal number..
            clear : p_0105,p_0105[].
            CALL FUNCTION 'HR_READ_INFOTYPE'
              EXPORTING
                pernr           = pernr_s
                infty           = '0105'
                BEGDA           = pn-begda
                ENDDA           = pn-endda
              TABLES
                infty_tab       = p_0105
              EXCEPTIONS
                infty_not_found = 1
                OTHERS          = 2.
            read table p_0105 with key subty = 10.
            move p_0105-USRID_LONG to email_s.
              endif.
            if email <> ' '.
            perform send_mail using it_conf-ename email email_s tc_name tc_num.
            endif.
            if email_s <> ' '.
            perform send_mail using it_conf-ename email email_s tc_name tc_num.
            endif.
    ****MAIL PART IS OVER*******************************************
        endloop.
    endif.
    *****FOR  "SELECT ALL " BUTTON**************
       IF p_ucomm = 'SELECT'.
       flag = 1.
        loop at it_conf.
          move 'X' to it_conf-checkbox.
          MODIFY IT_CONF.
        endloop.
        ls_selfield-refresh = 'X'.
        endif.

    " Please  see the code  of  myin  in the    'SELECT' & 'DESELECT'.
    case save_ok.
        when 'EXIT'.
          perform exit_program.
        when 'SELECT'.
          perform select_all_entries changing gt_outtab[].
        when 'DESELECT'.
          perform deselect_all_entries changing gt_outtab[].
        when 'RESET'.
          perform reset_selected_entries changing gt_outtab[].
        when 'SWITCH'.
          perform switch_activation changing gt_outtab[].
      endcase.
    form select_all_entries changing pt_outtab type standard table.
      data: ls_outtab type gs_outtab.
      data: l_valid type c,
            l_locked type c.
    *§A4ad. Before you (a)set, reset or (d)evaluate checkboxes,
    *       you must check the input cells.
    * If all entries are ok, ALV transferes new values to the output
    * table which you then can modify.
      call method g_grid->check_changed_data
                  importing
                     e_valid = l_valid.
      if l_valid eq 'X'.
        loop at pt_outtab into ls_outtab.
          perform check_lock using    ls_outtab
                             changing l_locked.
          if l_locked is initial
             and not ls_outtab-checkbox eq '-'.
            ls_outtab-checkbox = 'X'.
          endif.
          modify pt_outtab from ls_outtab.
        endloop.
        call method g_grid->refresh_table_display.
      endif.
    endform.   
    form check_lock using    ps_outtab type gs_outtab
                    changing p_locked.
      data ls_celltab type lvc_s_styl.
      loop at ps_outtab-celltab into ls_celltab.
        if ls_celltab-fieldname = 'CHECKBOX'.
          if ls_celltab-style eq cl_gui_alv_grid=>mc_style_disabled.
            p_locked = 'X'.
          else.
            p_locked = space.
          endif.
        endif.
      endloop.
    endform.       
    form deselect_all_entries changing pt_outtab type standard table.
      data: ls_outtab type gs_outtab.
      data: l_valid type c,
            l_locked type c.
    *§A4ad. Before you (a)set, reset or (d)evaluate checkboxes,
    *       you must check the input cells.
    * If all entries are ok, ALV transferes new values to the output
    * table which you then can modify.
      call method g_grid->check_changed_data
                  importing
                     e_valid = l_valid.
      if l_valid eq 'X'.
        loop at pt_outtab into ls_outtab.
          perform check_lock using    ls_outtab
                           changing l_locked.
          if l_locked is initial
             and not ls_outtab-checkbox eq '-'.
            ls_outtab-checkbox = ' '.
          endif.
          modify pt_outtab from ls_outtab.
        endloop.
        call method g_grid->refresh_table_display.
      endif.
    reward  points if it is usefull ......
    Girish

  • How to use a SelectAll box / checkbox to select multiple checkboxes!!

    I have a question regarding checkboxes.
    My jsp page has the following layout generated dynamically based on a drop down selection box.
    ID State Initiated Released Locked
    US Initiated X
    Arg Released X X
    Ger Released X X
    Ita Locked X X X
    The Initated, Released & Locked columns are checkboxes. The checkboxes are enabled or disabled based on the State. This means that if the state is Initaited, the user will click the desired checkbox, while the others in the same row will be disabled, and so forth.
    Now all I want is the option of having a SelectAll button / checkbox (something like in yahoo,hotmail) for each column (Initiated,Released,Locked), which when clicked will select all the desired checkboxes under them.(which will select only those in the respective state).
    This is basically to make life easier for the user in case there are some 100 rows. Instead of selecting each individually, he can just click a single button for each column. He can then unselect whichever one he wants.
    I know this can be done using javascript. Remember that this list is not static, but dynamic. So I cannot send a fixed no. into my javascript function to iterate. Im using <nested:iterate> & <nested:checkbox> for iterating & displaying the checkboxes.
    If someone has a solution on it please do send me the code snippet.
    Thanks.

    Javascript is the only solution for something like this.
    I presume you are using struts indexed properties?
    Remember that this list is not static, but dynamic. So I cannot send a
    fixed no. into my javascript function to iterateTrue, but once your JSP is generated you know exactly how many controls you have generated using the varStatus of a iterate tag, or just looking at the size() of the list being iterated on. You can use that to generate the javascript function/call.
    Also you can use javascript without knowing exactly how many are there. You can actually discover the fields on the page.
    Hope this helps,
    evnafets

  • Kindly help me with this checkbox issue

    Hi all,
    Firstly I would like t o thank this very helpful forum.I have one more question regarding checkboxes.
    /*courses.jsp*/ In my courses.jsp which connects to an MS Access database I have something like this...
    <INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="rs.getString("course")"><%out.print(rs.getString("course"));%></td>/*courses.jsp*/
    This is coming from the database.
    In my servlet code i have this in the doPost method.
    /*CheckBoxServlet*/ PS : This servlet is not connected to the database..
    String checkbox[] = request.getParameterValues("COURSES");
              int counter = checkbox.length;
              System.out.println("Number of checkboxes checked " + counter);
              if (checkbox !=null){
                   for (int i = 0; i < checkbox.length; i++) {
                   System.out.println("Checkbox values "+ checkbox);
         } else {
                   System.out.println("none selected");
    /*CheckBoxServlet*/
    /* OUTPUT */
    I have checked 5 check boxes
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    /*OUTPUT*/
    My question is why is it not printing out the value in rs.getString()????.
    It would be great if this forum helps me in the right direction.Let me know how i can go about doing this.
    I hope i have explained my question correctly.If you have any further questions kindly ask.
    Thanking every one in adavance
    AS

    your mixing html and java code
    <INPUT TYPE=CHECKBOX NAME="COURSES"
    VALUE="rs.getString("course")"><%out.print(rs.getStrin
    g("course"));%></td>based on this it should be
    <INPUT TYPE=CHECKBOX NAME="COURSES"
    VALUE="<%out.print(rs.getString("course"));%>)"><%out.
    print(rs.getString("course"));%></td>
    Hi again,
    Thanks for the reply.
    If I give this
    <INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="<%out.print(rs.getString("course"));%>"><%out.print(rs.getString("course"));%>This is the error message i get
    javax.servlet.ServletException: No data found
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.courses_jsp._jspService(courses_jsp.java:243)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
         servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: No data found
         sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7139)
         sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3908)
         sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5702)
         sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:356)
         sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:413)
         org.apache.jsp.courses_jsp._jspService(courses_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
         servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)What could be the reason for this.It would be great if you can help me out.
    TIA
    AS

  • Setting and getting values to the viewcontroller from component controller

    Hi,
    I'm having a model node in the controller  and the value node int he view which are binded to the UI elements.
    How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
    Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
    Thanks & Regards,
    Suresh

    Thanks Murtuza..
    i have one more question regarding checkbox by group.
    I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
    In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
    how to get the label names, using simple types. i,m able to get it using code.
    how to get it by simpletype??? 
    thanks, suresh

  • Regarding usage of checkbox in smartforms

    Hi,
    I would like to know how a checkbox can be displayed in a smart form and what is the condition or flowlogic thats required inorder to show the checkbox as "selected"(means a tick mark).I have tried the <697>.but it din help me.
    please suggest me with full description.
    Thanks in advance,
    shwetha

    Hi Shwetha,
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Another way is to use [ and ] in text symbols.i.e.[] will look like checkbox.
    Reward points if this Helps.
    Manish

  • Regarding modulepool

    I wnt to do background settings ( like colors, pictures) for modulepool screens, is it possible?
    Thanks in advance

    hi Lakshmi,
    Example for a Picture control
    Steps:
    Create a screen
    Place a custom container for the picture on the screen. Name the container GO_PICTURE_CONTAINER.
    Type pool for using SAP icons
    TYPE-POOLS: icon.
    Declarations
    DATA:
      go_picture                 TYPE REF TO cl_gui_picture,
      go_picture_container  TYPE REF TO cl_gui_custom_container.
    MODULE status_0100 OUTPUT.
      IF go_picture_container IS INITIAL.
      Create obejcts for picture and container and
      setup picture control
        CREATE OBJECT go_picture_container
          EXPORTING
            container_name = 'PICTURE_CONTAINER'.
        CREATE OBJECT go_picture
          EXPORTING
           parent = go_picture_container.
      Set display mode (Stretching, original size etc.)
        CALL METHOD go_picture->set_display_mode
          EXPORTING
            DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
            EXCEPTIONS      = 1.
      Load picture from SAP Icons. To oad a picture from an URL use method
      load_picture_from_url
        CALL METHOD go_picture->load_picture_from_sap_icons
          EXPORTING
             icon             = icon_delete
             EXCEPTIONS error = 1.
      ENDIF.
    ENDMODULE.    
    Example for calling a list with colors displaying the text in List processing
    REPORT demo_leave_to_list_processing .
    TABLES sdyn_conn.
    DATA: wa_spfli TYPE spfli,
          flightdate TYPE sflight-fldate.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100.
      CALL SCREEN 500.
      SET SCREEN 100.
    ENDMODULE.
    MODULE call_list_500 OUTPUT.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS space.
      SUPPRESS DIALOG.
      SELECT  carrid connid cityfrom cityto
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
        WHERE carrid = sdyn_conn-carrid.
        WRITE: / wa_spfli-carrid, wa_spfli-connid,
                 wa_spfli-cityfrom, wa_spfli-cityto.
        HIDE: wa_spfli-carrid, wa_spfli-connid.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.
    ENDMODULE.
    TOP-OF-PAGE.
      WRITE text-001 COLOR COL_HEADING.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      WRITE sy-lisel COLOR COL_HEADING.
      ULINE.
    AT LINE-SELECTION.
      CHECK not wa_spfli-carrid is initial.
      SELECT  fldate
        FROM  sflight
        INTO  flightdate
        WHERE carrid = wa_spfli-carrid AND
              connid = wa_spfli-connid.
         WRITE / flightdate.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.
    This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.
    The flow logic of screen 100 is:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      MODULE user_command_0100.
    The PAI module user_command_0100 calls screen 500 using the CALL SCREEN statement. This screen encapsulates a basic list. It has the following flow logic:
    PROCESS BEFORE OUTPUT.
      MODULE call_list_500.
    PROCESS AFTER INPUT.
    The module call_list_500 defines the basic list and switches to list processing. Since the next screen after list processing is screen 0, screen 500 is a one-screen screen chain. After list processing, control returns to the position in user_command_0100 from which screen 500 was called.
    If the user selects a line on the basic list, a detail list appears. This is achieved through the event block AT LINE-SELECTION. The program also contains event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION, which define page headers for both the basic list and detail list.
    Since there is only one list system in this program, there is no need for case distinctions within the list events.
    Good Luck and thanks

  • Regarding modulepool table control

    hi experts,
    can u plx tell me how can i retrive item table data  trhu modulepoool table control?
    plz help with a sample code
    thnx in advance

    search the sdn and u would find a lot of samples, just like this.
    [table control|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/learn%2bmaking%2bfirst%2btable%2bcontrol]

  • Use of Checkbox in Report for calculation and determine checked records

    Dear All,
    Application Express 4.0.1.00.03
    I have a Report based on Invoice table which displays unpaid Invoices.
    Also I have added one check box (Not a column in Invoice field) to each row of the report query, the user will be check to pay the Invoice, on checking of the Invoices I need to
    1. Calculate the total of Invoice Amount for selected Invoices.
    2. After selection of Invoices User will click on a Button which will open the Payment Form (New Page or Same Page Region),
    but some way I need to know the Invoice No. of each Invoice row selected so that I can use all the selected Invoice No's for creating the Payment.
    3. Any way to add a button on each row of the Invoice that will be used for the Payment of that Invoice only.
    One way can be to create a column to save the check box value which I am aware of, but am looking for other alternate if possible.
    Hoping for some good solution.
    Thanks & Regards
    Arif Khadas

    vee wrote:
    You would need to make the amount column(the one which is used for total) editable so that its value can be accessed easily from JS. You can made it read-only if required ( apex_item.text(2,INV_RENT_VALUE + INV_OTHER_VALUE ) ?? ) .
    How can I make it read only, there is no such attribute which can be set for report column as it exists for Items.
    Also Now I have the following report query:
    SELECT  INV_LSE_NUM                      "Contract No.",
            INV_FROM_DATE                    "Collection Date",
            INV_FROM_DATE                    "From Date",
            INV_TO_DATE                      "To Date",
            INV_RENT_VALUE + INV_OTHER_VALUE "Invoice Amount",
            INV_AMOUNT_PAID                  "Amount Paid",
            INV_RENT_VALUE + INV_OTHER_VALUE
                           - INV_AMOUNT_PAID "Balance",
            INV_NUM                          "Invoice No.",
            'Pay'                            "Pay",
            APEX_ITEM.CHECKBOX (1, INV_NUM)  "CB_PAY",
            APEX_ITEM.TEXT (2, INV_RENT_VALUE + INV_OTHER_VALUE - INV_AMOUNT_PAID)
                                             "BAL"
    FROM    RE_INVOICE
    WHERE   INV_COM_NUM    =  :P0_COM_NUM
    AND     INV_RENT_VALUE + INV_OTHER_VALUE > INV_AMOUNT_PAID
    AND     INV_LSE_NUM    =(SELECT TO_NUMBER (C001)
                             FROM   APEX_COLLECTIONS
                             WHERE  COLLECTION_NAME = 'LEASE'
                             AND    SEQ_ID          = TO_NUMBER (:P24_SR_NO))The Next thing is the HTML Header for the Page:
    <script language = "JavaScript" type="text/javascript">
    total = 0;
    $('input[name=f01]:checked').each( function(){
      parent_row = $(this).parents('tr:first');
      amt = ( parent_row.find('input[name=f02]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f02]').val() );
      total += amt;
    $s('TEST',total);  -- Test is an Item on the Page.
    </script>Also I checked from the Page source "CB_PAY" and "BAL" have names f01 and f02 respectively.
    Even now when I check or un-check the Value in TEST item is not displayed as required.
    Anything more is required, what am I missing.
    Thanks & Regards
    Arif Khadas

Maybe you are looking for

  • I need to know how to file a complaint against Addmired, Inc

    I have been playing the games offered by Addmirred Inc (iMob, Global War, Original Gangstaz) as do my kids.  I am being harassed continually by several other players in these games, and repeated attempts to contact Addmirred do no good at all.  I hav

  • How to set up logical components for ChaRM?

    Hi, we do have the following system landscape. One DEV and two separate QA and PROD systems. DEV-> >QA1  -> PROD1 >QA2  -> PROD2 For these we want to transport parallel from DEV to QA1/QA2 and then parallel to PROD1/PROD2 via ChaRM. My questions are:

  • Cant turn I phone on

    Cant turn I phone on

  • Can N95 Firmware (21.0.016) Be Downloaded To PC

    Is there anyway, we can download the latest firmware update of Nokia N95 using DAP or some other downloading software, to our PC, and then update our N95. In this way, the slow speed internet users like me, can first download the latest firmware to P

  • Maintain photo sequence importing to LR2?

    A new LR2 user, I need to import 3000+  already edited bird photos from  Apple IPhoto albums, in which I had over several years painstakingly put the photos in each album in a sequence very different from date-based filenames. IPhoto allows me to exp