How to display the checkboxes in the output

Hi,
I need to display checkboxes in the output. Once i select the check box it should
display additional info of that field in anothe list.
another senario:
I want to check all the checkboxes at a time.
i want to uncheck all the ch-boxes at time.
Can i have some explanation on this with some sample code.
Thanks,
Srik

REPORT  ZTESTPROG5                              .
TABLES: MARA.
Types:begin of type_mara,
      matnr type mara-matnr,
      mtart type mara-mtart,
      meins type mara-meins,
      end of type_mara.
Types: begin of type_mard,
       matnr type mard-matnr,
       werks type mard-werks,
       lgort type mard-lgort,
       labst type mard-labst,
       insme type mard-insme,
       end of type_mard.
data: it_mara type table of type_mara,
      wa_mara type type_mara,
      it_mard type table of type_mard,
      wa_mard type type_mard.
data: check value space,
      ucomm type sy-ucomm,
      lines type i.
select-options: s_matnr for mara-matnr.
initialization.
  MOVE: 'BT'       TO s_matnr-OPTION,
        '100-100'  TO s_matnr-LOW,
        '100-500'  TO s_matnr-HIGH.
  APPEND s_matnr.
start-of-selection.
  set pf-status 'ZSTATUS'.
  select matnr mtart meins from mara
  into table it_mara
  where matnr in s_matnr.
end-of-selection.
  loop at it_mara into wa_mara.
    write:/ check as checkbox, wa_mara-matnr, wa_mara-mtart,
            wa_mara-meins.
    hide wa_mara-matnr.
  endloop.
  lines = sy-linno - 1.
at user-command.
  ucomm = sy-ucomm.
  case ucomm.
    when 'REPORT'.
      set pf-status 'ZSTATUS' excluding 'REPORT'.
      do lines times.
        read line sy-index field value check.
        if check = 'X'.
          select matnr werks lgort labst insme from mard
          into wa_mard
          where matnr = wa_mara-matnr.
            write:/ wa_mard-matnr, wa_mard-werks, wa_mard-lgort,
                    wa_mard-labst, wa_mard-insme.
          endselect.
        endif.
      enddo.
    when 'SELECTALL'.
      lines = lines + 1.
      do lines times.
        READ LINE sy-index FIELD VALUE check.
        IF check = space.
          check = 'X'.
          MODIFY LINE sy-index
                      FIELD VALUE  check.
        ENDIF.
      enddo.
    when 'DESELECT'.
      lines = lines + 1.
      do lines times.
        READ LINE sy-index FIELD VALUE check.
        IF check = 'X'.
          check = space.
          MODIFY LINE sy-index
                      FIELD VALUE check.
        ENDIF.
      enddo.
  endcase.

Similar Messages

  • How to display data elements in the tempalte header

    Hello friends
    i've this date_from and date_to parameters which are date parameters that user enters..
    based on these date parameters I want to display them in the header as
    day of date_from(for example if the date_from is 13-nov-2010.then I should display 13)and for date_to it should dispaly as 15 if for example the user enters
    16-nov-2010.(date-1's day)
    so it should break down to
    date_from-13-nov-2010, 13
    date_to- 16-nov-2010, 15
    I want these two values to be displayed in the header of the template how to do this
    pls help
    also let me know how to display data elements in the template header
    Edited by: erp on Dec 22, 2010 12:44 AM

    Hi Ananth..Thanks for ur timely reply
    Can I use it with <? substring(':date_from',1,2)?>
    where date_from is an input parameter which user enters at the run time of the report.
    I've to capture the date entered by the user and print it in the header..
    Pls reply

  • How to display link content on the the same sharepoint page on click event

    "How to display link content on the the same sharepoint page on click event"
    Detail:
    we are using a document library where all html files are stored/uploaded.  we would like to display/open the html file on the same sharepoint page where all the files are listed.
    Thanks.

    Use jQuery and set the target to self to the anchor tag
    Regards,
    Sairam Avacorp Technologies

  • Adobe Connect: how to display a picture in the WebCam pod when not sharing video

    Adobe Connect: how to display a picture in the WebCam pod when not sharing video

    The WebCam pod can pause a live video showing a static image. However, I believe that you are looking to use a Share pod, where you can upload a JPG or PNG image. Just place the share pod with the image where you would have the Camera pod.

  • My time machine doesnt show up in the finder and ive done the checkboxes in the finder preferences and ive restarted in safeboot. i still cant figure out why it wont show up

    my time machine doesnt show up in the finder and ive done the checkboxes in the finder preferences and ive restarted in safeboot. i still cant figure out why it wont show up

    iOS: Device not recognized in iTunes for Windows

  • HT201077 hey somebody help!!! in icloud control panel photos, the checkbox on the left and the options tab ont the right they r both inactive....Anybody any idea why??

    hey somebody help!!! in icloud control panel > photos, the checkbox on the left and the options tab ont the right they r both inactive....Anybody any idea why??

    hey somebody help!!! in icloud control panel > photos, the checkbox on the left and the options tab ont the right they r both inactive....Anybody any idea why??

  • How to display NEGATIVE sign on the left side of a number in SMARTFORMS

    Hi,
         In smartforms I'm trying to print some negative values, but the negative sign is displayed on the right hand side of the number.
    How can I display the '-' sign on the left hand side of a number. I tried the logic &value(<), it works well in sap scripts. Why is it not working in smartforms ?
    Eg :   I'm getting  the output  as  126.75 -
             I want :  - 126.75

    see this wiki which gives details for restrictions of formatting options (I guess you didn't declare the variable correctly, i.e. with the right data element): http://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript#SAPscript-WhatarethevarioustextformattingoptionsinSAPscript%3F

  • How to display Query Description in the Query

    I have a text variable which gets the % of the days Elapsed appended to the text of the query. When I execute the query I am not seeing the text in the output of the query.
    Can some one say how to display text of the query in the output so that I can get the % of the days elapsed.

    Hi
    Have u selected name and text in the key figure properties? if not the this what text u want to display
    Regards
    N Ganesh

  • How to put JTable checkbox on the top of its cell

    my JTable only had 2 columns, one data type is boolean, display as checkbox, one data type is String,cell Renderer is JTextPane which data had large size ,and each row had different height depended on data size.
    now the checkbox is displayed at the centre of each row, i hope it can be displayed on the top of this row, how i can set it. please help guide.
    Many Thanks
    Susan

    Camickr,you are excellant, it's resolved as you said as following:
    private JTable tblMain = new JTable(){
            public Component prepareRenderer(
                TableCellRenderer renderer, int row, int column) {
                Component c = super.prepareRenderer(renderer, row, column);
                if (c instanceof JCheckBox)
                    ( (JCheckBox) c).setVerticalAlignment(JCheckBox.TOP);
                return c;
            public Component prepareEditor(
                TableCellEditor editor, int row, int column) {
                Component c = super.prepareEditor(editor, row, column);
                if (c instanceof JCheckBox){
                    ( (JCheckBox) c).setVerticalAlignment(JCheckBox.TOP);
                    c.setBackground(Color.white);
                return c;
        };

  • How to display(binding) values in the table from more than one node?

    Hi,
    I have two nodes (TRIPS & AMOUNTS)in the context. How to bind these values into the table control?
    When i bind second one, first one is getting replaced.

    Hi Mog,
    Of course it is possible to create a table from attributes of more than one node, and in some cases this is still necessary, but you have to do this the hard (manual) way.
    If you have a table control, have a look at the properties and the elements belonging to it.
    First of all, there is the property "dataSource", which binds to a multiple node (let's name it TableRootNode). This means that for each element of THIS node, one row is created. In each row the data of exactly one element of this TableRootNode is displayed.
    Then you have columns in this table. Inside of the columns there is a header and an editor. The editor is the interesting part.
    Normally the primary property of this editor is bound to an attribute of the TableRootNode. Then everything works as expected. If it binds to an attribute of a subnode (SUB) of TableRootNode, then in row i the data of the subnode of the i-th element of TableRootNode is displayed. There is no need for SUB to be a multiple node, but it must not be a singleton.
    If you bind a property of the editor to an attribute, which does not lie in the subtree of TableRootNode, then you will see the same value in each row.
    Now it depends on the structure of your context. Take the node, which is relevant for the change in each row (I assume it is TRIPS) and bind the table to the node as you are used to. Then for each additional column, you have to create a new column in the tree, create a new header element with a title and a new editor (e.g. textview or inputfield) and then bind the right property of the editor to the corresponding attribute in node AMOUNTS).
    If these 2 nodes do not have parent-child-relationship, the tip to create a new node, which consists of the attributes of both nodes is the only solution.
    Ciao, Regina

  • How to display multiple reports at the same time

    Hi,
    I'm trying to display multiple reports at the same time, each one in separates tabs or windows using Forms 11g 11.1.1.6
    I have a button which has a call to a procedure which makes use of rp2rro library to show the specific reports, for example:
    call_report('report1');
    call_report('report2');
    call_report('report3');
    call_report('report4');
    The main problem is that, just the last report is been displayed.
    Is there some way to display report1, report2 etc in separate tabs or windows ??
    Regards
    Carlos

    You shouldn't have a problem calling different reports at once. As long as you're using Forms 11g they show up in different windows.
    The question is how you are calling the report.
    Here is how I manipulate it.
    After I pass parameters with the ADD_PARAMETER built-in I set some key values (destype, desformat, desname) with the RP2RRO's procedures.
    Finally calling RP2RRO.RP2RRO_RUN_PRODUCT and then WEB.SHOW_DOCUMENT passing the correct procedure parameters the report comes up in a window. If you repeat the above changing the appropriate variables (the report_name in the RP2RRO_RUN_PRODUCT and so on) you can get multiple reports in different windows.

  • How to display multiple signals on the same chart/graph

    Hello,
    I have a text file that has 21 different signals acquired through NI DAQ. I am able to read the file and display on the chart but the problem is all the signals have the same dynamic range -6 to +6 so when plotted they all show up on top of each other and one cannot really discern whats going on. Please see the attached image.
    I am trying to ask the community for help on how could I display all 21 signals separate from each other so that the user can easily differentiate between signals. I thought about adding offsets to the signals but I dont really want to change the actual data and the data set is already large enough that I donot want to creat copies of data.
    I am running Labview 10.0.
    Any creative ideas.
    Attachments:
    Graph Question.PNG ‏19 KB

    Using Stack Plots was my first thought too but it appears to be buggy these days. I know I've used it before with no problems but I can't get it to work now at all. In any case, stacking 21 plots will be futile since you won't be able to see any detail (unless you have a VERY tall monitor).  Your best bet is to use property nodes to make the plot of interest become highlighted in some way. 
    EDIT:  I think stacking only works with charts.  You can select it on the right-click pop-up menu.  Then, expanding the plot legend determines the number of stacked plots shown.  Again, since there is so much wasted vertical space when stacking, you'll never be able to see 21 plots concurrently with any detail visible.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to display text value in the header data (Header text) of credit memo

    Hi...
    I need to display the text value of the text field in the header text of the header data in credit memo.
    The text values are stored in a ztable and i need to display it based on the billing document stored in vbrk (zfield) that was inserted during the creation of credit request..
    Appreciate your help on how to do this...
    Thansk and will surely reward the points..
    Kanthi..

    Hi kanthi ,
                   Read the value from Z Table and during the creation of cedit memo check out for some exit where u the value from The zTABLE AND use function module SAVE_TEXT with object and id in the header text .
    Please award if useful.

  • How to display a variable in the message

    Hi all,
    I am developing an application where I am parking a document, can anyone please tell me how can I display the document number on the web dynpro screen with the message once the document has been parked. So far I have written the following code but this is just for displaying a message only and not the number:
    DATA lo_api_controller     TYPE REF TO if_wd_controller.
        DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
    lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
        CALL METHOD lo_message_manager->report_success
          EXPORTING
            message_text = 'Document has been parked.'

    DATA lo_api_controller     TYPE REF TO if_wd_controller.
    DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
    data lv_document_number    type        string.
    data lv_message_string        type        string.
    lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
    *** get document number in lv_document_number
    lv_document_number = .....
    *** form message string
    concatenate 'Document has been parked : Document No :' lv_document_number into lv_message_string.
        CALL METHOD lo_message_manager->report_success
          EXPORTING
            message_text = lv_message_string.

  • Drilling via Hierarchy - how to display upper levels of the hierarchy??

    Hi all.
    I'm using Discoverer 10.1.2
    I have a worksheet which contains only one Pie graph.
    Users can drill down and up by clicking on the slices of the graph, because I definied Hierarchy in the Administrator.
    Everything's fine, but when drilling down you can't see through which values of upper levels of the hierarchy you go..
    For example assume the pie graph displaying three slices for warehouses 1,2 and 3.
    User clicks on slice 2. Discovere re-run query with new condition warehouse=2 and displays new pie graph which shows four slices for Items a,b,c and d.
    That's fine user can see there are four items on the selected warehouse and there is some amount of each of these items.
    But he can't see which warehouse was selected!!!
    Discoverer only adds new condition to the source sql query but I have no chance to display these conditions on worksheet.
    Discoverer Plus enables to add "Axis Items", "Data points",etc in the graph title.
    In the Legend of the Graph there is a Column name of the upper level of the hierarchy but not its value (in my example there would be Legend displaying slice colors for items a,b,c,d and link to "warehouse") I would Like to see current warehouse number (e.g. 2 in above example) too!!
    Any workaround???
    Thanks a lot.
    Jakub

    Hi Jakub
    In releases prior to 10.1.2 users really had no choice but to drill to detail. However, with the release of hyper drills in 10.1.2 the situation has changed. Most of my customers now use hyper drills and wondered how they ever got by without them. Using hyper linked workbooks allows you to create a library of workbooks that all interlink to each other, up and down the chain.
    Thus a user can jump into the chain anywhere they like and the system should let them link up or link down. When done properly you end up with a library. Now take this one step further and make the library owner a generic user called something like ACCOUNTS PAYABLE. You can now have a library of accounts payable workbooks, workbooks that have been shared with either the ACCOUNTS_PAYABLE role or responsibility.
    Does this help see the direction I take?
    Regards
    Michael

Maybe you are looking for