<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: interactive report help?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249403#M1014289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well there is no push botton,but user want to print the final list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 05:44:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-13T05:44:23Z</dc:date>
    <item>
      <title>interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249401#M1014287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had an req to show the list display if ITAB with check box,&amp;amp; than to show the records on another list with the check box selected records only on final display.&lt;/P&gt;&lt;P&gt;i am not able to understand how to move the check box selected records to another list,what condition shd i use to do this?&lt;/P&gt;&lt;P&gt;please tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249401#M1014287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T05:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249402#M1014288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vipin ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell us that how you want to go on second list by push button or smthg else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249402#M1014288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T05:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249403#M1014289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well there is no push botton,but user want to print the final list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249403#M1014289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T05:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249404#M1014290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5975436"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is a duplicate post &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249404#M1014290</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-08-13T05:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249405#M1014291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using ALV then it is simple..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_alv_check MESSAGE-ID zz .

TYPE-POOLS: slis.
DATA: x_fieldcat TYPE slis_fieldcat_alv,
      it_fieldcat TYPE slis_t_fieldcat_alv,
      l_layout TYPE slis_layout_alv.
DATA: it_book TYPE STANDARD TABLE OF sbook WITH HEADER LINE.
TYPES: BEGIN OF t_itab ,
        carrid LIKE sflight-carrid,
        connid LIKE sflight-connid,
        chk(1),
      END OF t_itab.
DATA: BEGIN OF itab OCCURS 0,
        carrid LIKE sflight-carrid,
        connid LIKE sflight-connid,
        chk(1),
      END OF itab.

select-options: carrid for itab-carrid.

SELECT carrid
       connid
FROM sflight
UP TO 20 ROWS
INTO TABLE itab
where carrid in carrid.

x_fieldcat-fieldname = 'CHK'.
x_fieldcat-seltext_l = 'Check'.
x_fieldcat-checkbox = 'X'.
x_fieldcat-input = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-hotspot = 'X'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.


x_fieldcat-fieldname = 'CARRID'.
x_fieldcat-seltext_l = 'CONNID'.
x_fieldcat-hotspot = 'X'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.

x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.



CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program      = sy-repid
    is_layout               = l_layout
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat             = it_fieldcat
  TABLES
    t_outtab                = itab
  EXCEPTIONS
    program_error           = 1
    OTHERS                  = 2.
IF sy-subrc NE 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

AT USER-COMMAND.
  IF sy-ucomm = 'BACK'.
*    LEAVE LIST-PROCESSING.
  ENDIF.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.

  DATA: gd_repid LIKE sy-repid, "Exists
  ref_grid TYPE REF TO cl_gui_alv_grid.
  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-&amp;gt;check_changed_data .
  ENDIF.
  CASE r_ucomm.

    WHEN '&amp;amp;IC1'.
      READ TABLE itab INDEX rs_selfield-tabindex.
      IF sy-subrc EQ 0.
        LEAVE TO LIST-PROCESSING ."AND RETURN TO SCREEN 0.
        PERFORM show_bookings USING itab.
      ENDIF.
      BREAK-POINT.
  ENDCASE.
  rs_selfield-refresh = 'X'.
ENDFORM. "USER_COMMAND

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  show_bookings
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;ITAB       text
*----------------------------------------------------------------------*
FORM show_bookings USING itab TYPE t_itab.
  SET PF-STATUS 'AAA'.
  SELECT * FROM sbook
  INTO TABLE it_book
  WHERE carrid EQ itab-carrid AND
        connid EQ itab-connid.

  LOOP AT it_book.

    WRITE:/ it_book-carrid, it_book-connid.

  ENDLOOP.

ENDFORM.                    "show_bookings&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay Babu Dudla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249405#M1014291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: interactive report help??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249406#M1014292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  In the user command, you write the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm TYPE sy-ucomm
                        rs_selfield TYPE slis_selfield.

  DATA: e_grid TYPE REF TO cl_gui_alv_grid.

  IF e_grid IS INITIAL.
* This FM is use to get the grid control screen
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        e_grid = e_grid.
  ENDIF.

  IF e_grid IS NOT INITIAL.
* This method is used to get the changed the data in the ALV output
* into the internal table
    CALL METHOD e_grid-&amp;gt;check_changed_data.
  ENDIF.

  CASE r_ucomm.
  -------------
  ------------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method &lt;STRONG&gt;e_grid-&amp;gt;check_changed_data&lt;/STRONG&gt;, gets the changed data into the internal table you are using.&lt;/P&gt;&lt;P&gt;Now, in case r_ucomm, move the checked check box data to another internal table.&lt;/P&gt;&lt;P&gt;Display the those records only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 05:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report-help/m-p/4249406#M1014292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T05:49:22Z</dc:date>
    </item>
  </channel>
</rss>

