Skip to Content
avatar image
Former Member

reports

<b>hi this is naveen,

is it possible to get check boxes,when we execute reports?so that we may perform further operations through that check boxes.</b>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Nov 23, 2006 at 04:46 PM

    Yes, its very much possible, try to use ALV Grid reports.

    Look at the BCALV reports and you should be able to see what you are looking for.

    Regards,

    Ravi

    Note - Please mark all the helpful answers

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2006 at 04:47 PM

    Hi Naveen,

    welcome to SDN,

    check the below link may be useful for you

    http://www.sap-basis-abap.com/abap/check-boxes-in-an-interactive-report.htm

    Regards,

    Naveen

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2006 at 06:26 PM

    Here you a go a very simple one for using checkboxes,

    after selecting the check box type DISP and press enter in the command pane,

    REPORT zkb_test.

    TYPES: BEGIN OF t_data,

    sele TYPE c,

    name1 TYPE ad_name1,

    END OF t_data.

    DATA: i_data TYPE TABLE OF t_data,

    w_data TYPE t_data.

    DATA: v_count TYPE i,

    v_no TYPE i,

    v_line(30) TYPE c.

    AT LINE-SELECTION.

    START-OF-SELECTION.

    CLEAR w_data.

    w_data-sele = ' '.

    w_data-name1 = 'John1'.

    APPEND w_data TO i_data.

    CLEAR w_data.

    w_data-sele = ' '.

    w_data-name1 = 'John1'.

    APPEND w_data TO i_data.

    CLEAR w_data.

    w_data-sele = ' '.

    w_data-name1 = 'John1'.

    APPEND w_data TO i_data.

    LOOP AT i_data INTO w_data .

    WRITE: / sy-vline, w_data-sele AS CHECKBOX, sy-vline, w_data-name1, sy-vline.

    ENDLOOP.

    AT USER-COMMAND.

    CASE sy-ucomm.

    WHEN 'DISP'.

    DESCRIBE TABLE i_data LINES v_count.

    DO v_count TIMES.

    v_no = sy-index + 2.

    READ LINE v_no LINE VALUE INTO v_line.

    IF v_line+2(1) = 'X'.

    WRITE: / v_line.

    ENDIF.

    ENDDO.

    ENDCASE.

    Regards

    Kathirvel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2006 at 01:39 PM

    hi,

    single stmt displays you a checkbox.

    <b>

    parameter:a as checkbox.</b>

    you can display your own text for checkbox using

    <b>GOTO->TEXT ELEMENTS-SELECTION TEXTs</b>

    do assign points if it helps yoou

    regards,

    Sowjanya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2006 at 01:44 PM

    hi,

    yes...

    using WRITE stmt...

    check this from help....

    ... AS CHECKBOX

    Effect

    This addition outputs a single-digit checkbox that is ready for input. For dobj, a character-type data type of length 1 is expected. If the first character in dobj is "X" or "x", the checkbox is shown as selected. If the first character is not "X" or "x", the checkbox is shown as empty. If dobj is an empty data object of the type string, the checkbox is not output.

    The user can select and deselect the checkbox in the list displayed on the screen. If the user selects the checkbox, the first character of the assigned field in the list is set to "X". If the user deselects it, it is set to blank. The change is stored in the list buffer and can be evaluated during the list results.

    If the addition AS CHECKBOX is used, no list output len is allowed after AT. Except for INPUT, NO-GAP, and UNDER, the other additions given at the same time for internal formats and external formats have no effect.

    The addition AS CHECKBOX has the same effect as if the addition INPUT ON were specified simultaneously. The standard settings or a format INPUT OFF set by a FORMAT statement are overridden for the current WRITE statement. To switch off the input readines of the checkbox, the addition INPUT OFF must be used simultaneously.

    Note

    Whenever a list line contains solely a checkbox with a blank, it will not be displayed unless the statement SET BLANK LINES ON was executed beforehand.

    Example

    Output of two checkbox fields and evaluation of the user inputs at the event AT LINE-SELECTION.

    REPORT test NO STANDARD PAGE HEADING.

    DATA: check1 TYPE c VALUE 'X',

    check2 TYPE c VALUE ' '.

    START-OF-SELECTION.

    WRITE: / check1 AS CHECKBOX, 'Checkbox 1',

    / check2 AS CHECKBOX, 'Checkbox 2'.

    AT LINE-SELECTION.

    READ: LINE 1 FIELD VALUE check1,

    LINE 2 FIELD VALUE check2.

    do reward if it helps,

    regards,

    priya.

    Add comment
    10|10000 characters needed characters exceeded