<?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: POPUP Internal Table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499302#M231469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Again to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, &amp;lt;i&amp;gt;REUSE_ALV_POPUP_TO_SELECT&amp;lt;/i&amp;gt; was what i really needed.&lt;/P&gt;&lt;P&gt;I'm going to give the 10 points "Solved My Problem" to the first person who replied with this function module. Since i can't reward the max to everyone who gave me the info of that FM, i'm going to reward the others with the max i can. It seems fair enough.&lt;/P&gt;&lt;P&gt;Once again, thanks to everyone. I hope that with time... lots of code and experience i can win some points too and be the same help as you guys are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 11:30:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-23T11:30:10Z</dc:date>
    <item>
      <title>POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499295#M231462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've build a report with &amp;lt;i&amp;gt;REUSE_ALV_GRID_DISPLAY&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;After displaying the result the user can execute another process using a button i've created in the STATUS_GUI of the ALV_GRID.&lt;/P&gt;&lt;P&gt;This process does several things, and one of them should be a popup of data i have in one of my internal tables.&lt;/P&gt;&lt;P&gt;I've searched for some functions that could popup an internal table to the screen (POPUP_WITH_TABLE_DISPLAY_OK, POPUP_WITH_TABLE_DISPLAY, POPUP_WITH_TABLE_DISPLAY_OK, POPUP_SHOW_INTTAB) but the display isn't what i wanted... I want to display a popup like a ALV_GRID or ALV_LIST.&lt;/P&gt;&lt;P&gt;Is there any function that does that? If not, how can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499295#M231462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499296#M231463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro, &lt;/P&gt;&lt;P&gt;  Try using the below FM&lt;/P&gt;&lt;P&gt;  HR_DISPLAY_ERROR_LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishnakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499296#M231463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499297#M231464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware of a function module that would do exactly what you want. However, I like to propose a simple alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Call your own popup (CALL SCREEN nnn STARTING AT ... ENDING AT ...).&lt;/P&gt;&lt;P&gt;(2) Suppress the dialog (define a module SUPPRESS_DIALOG which contain the single statement SUPPRESS DIALOG).&lt;/P&gt;&lt;P&gt;(3) Call function module REUSE_ALV_GRID_DISPLAY with your itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this yet but I do not see any reason why it should not work. Of course, don't forget to set status and titlebar for your popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499297#M231464</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-23T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499298#M231465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FM,&lt;/P&gt;&lt;P&gt;              REUSE_ALV_POPUP_TO_SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Badri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499298#M231465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499299#M231466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the fm: REUSE_ALV_POPUP_TO_SELECT&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499299#M231466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499300#M231467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try with this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REUSE_ALV_POPUP_TO_SELECT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499300#M231467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499301#M231468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;use &amp;lt;b&amp;gt;REUSE_ALV_POPUP_TO_SELECT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Check out this code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT z_alv_grid_and_popup.
*---------------------------------------------------------------------*
* This program is an example with a Grid list and a Popup list        *
* The Sales Orders are displayed in the first list                    *
* When a line is selected, the items of the order are displayed in    *
* a popup list                                                        *
*---------------------------------------------------------------------*
* Author : Michel PIOUD                                               *
* Email : mpioud@yahoo.fr  HomePage : &amp;lt;a href="http://www.geocities.com/mpioud" TARGET="test_blank"&amp;gt;http://www.geocities.com/mpioud&amp;lt;/a&amp;gt; *
*---------------------------------------------------------------------*
* Macro definition
DEFINE m_fieldcat.
  add 1 to ls_fieldcat-col_pos.
  ls_fieldcat-fieldname   = &amp;amp;1.
  ls_fieldcat-ref_tabname = &amp;amp;2.
  append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.

TABLES : vbak.                         " Sales Document: Header Data

TYPE-POOLS: slis.                      " ALV Global types

SELECT-OPTIONS :
  s_vkorg FOR vbak-vkorg,              " Sales organization
  s_kunnr FOR vbak-kunnr,              " Sold-to party
  s_vbeln FOR vbak-vbeln.              " Sales document

SELECTION-SCREEN :
  SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.    "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.

DATA:
* Data displayed in the first list
  BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg,             " Sales organization
    kunnr LIKE vbak-kunnr,             " Sold-to party
    vbeln LIKE vbak-vbeln,             " Sales document
    netwr LIKE vbak-netwr,             " Net Value of the Sales Order
  END OF gt_vbak,

* Data displayed in the popup list
  BEGIN OF gt_vbap OCCURS 0,
    posnr  LIKE vbap-posnr,            " Sales document item
    matnr  LIKE vbap-matnr,            " Material number
    arktx  LIKE vbap-arktx,            " Short text for sales order item
    kwmeng LIKE vbap-kwmeng,           " Order quantity
    netwr  LIKE vbap-netwr,            " Net value of the order item
  END OF gt_vbap.

*---------------------------------------------------------------------*
INITIALIZATION.

  v_1 = 'Maximum of records to read'.

*---------------------------------------------------------------------*
START-OF-SELECTION.

  PERFORM f_read_data_vbak.

  PERFORM f_display_data_vbak.

*---------------------------------------------------------------------*
*      Form  f_read_data_vbak
*---------------------------------------------------------------------*
FORM f_read_data_vbak.

  SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
           FROM vbak
             UP TO p_max ROWS
          WHERE kunnr IN s_kunnr
            AND vbeln IN s_vbeln
            AND vkorg IN s_vkorg.

ENDFORM.                               " F_READ_DATA_VBAK
*---------------------------------------------------------------------*
*      Form  f_display_data_vbak
*---------------------------------------------------------------------*
FORM f_display_data_vbak.

  DATA:
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv.

* Build the field catalog
  m_fieldcat 'VKORG' 'VBAK'.
  m_fieldcat 'KUNNR' 'VBAK'.
  m_fieldcat 'VBELN' 'VBAK'.
  m_fieldcat 'NETWR' 'VBAK'.

* Display the first list
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program      = sy-cprog
            i_callback_user_command = 'USER_COMMAND'
            it_fieldcat             = lt_fieldcat
       TABLES
            t_outtab                = gt_vbak.

ENDFORM.                               " F_DISPLAY_DATA_VBAK
*---------------------------------------------------------------------*
*       FORM USER_COMMAND                                             *
*---------------------------------------------------------------------*
FORM user_command USING u_ucomm     LIKE sy-ucomm
                        us_selfield TYPE slis_selfield.     "#EC CALLED

  CASE u_ucomm.
    WHEN '&amp;amp;IC1'.
      READ TABLE gt_vbak INDEX us_selfield-tabindex.
      CHECK sy-subrc EQ 0.
      PERFORM f_read_data_vbap.        " Read data from VBAP
      PERFORM f_display_data_vbap.
  ENDCASE.

ENDFORM.                               " USER_COMMAND
*---------------------------------------------------------------------*
*      Form  f_read_data_vbap
*---------------------------------------------------------------------*
FORM f_read_data_vbap.

  SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbap
           FROM vbap
          WHERE vbeln = gt_vbak-vbeln.

ENDFORM.                               " F_READ_DATA_VBAP
*---------------------------------------------------------------------*
*      Form  f_display_data_vbap
*---------------------------------------------------------------------*
FORM f_display_data_vbap.

  DATA:
    ls_private  TYPE slis_data_caller_exit,
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv.

* Build the field catalog
  m_fieldcat 'POSNR'  'VBAP'.
  m_fieldcat 'MATNR'  'VBAP'.
  m_fieldcat 'ARKTX'  'VBAP'.
  m_fieldcat 'KWMENG' 'VBAP'.
  m_fieldcat 'NETWR'  'VBAP'.

  ls_private-columnopt = 'X'.          " Optimize width

* Display items in a POPUP
  CALL FUNCTION &amp;lt;b&amp;gt;'REUSE_ALV_POPUP_TO_SELECT'&amp;lt;/b&amp;gt;
       EXPORTING
            i_selection = ' '
            i_tabname   = 'GT_VBAP'
            it_fieldcat = lt_fieldcat
            is_private  = ls_private
       TABLES
            t_outtab    = gt_vbap.

ENDFORM.                               " F_DISPLAY_DATA_VBAP
**************** END OF PROGRAM Z_ALV_GRID_AND_POPUP ******************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499301#M231468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499302#M231469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Again to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, &amp;lt;i&amp;gt;REUSE_ALV_POPUP_TO_SELECT&amp;lt;/i&amp;gt; was what i really needed.&lt;/P&gt;&lt;P&gt;I'm going to give the 10 points "Solved My Problem" to the first person who replied with this function module. Since i can't reward the max to everyone who gave me the info of that FM, i'm going to reward the others with the max i can. It seems fair enough.&lt;/P&gt;&lt;P&gt;Once again, thanks to everyone. I hope that with time... lots of code and experience i can win some points too and be the same help as you guys are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499302#M231469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499303#M231470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.list-editor.de/JAVASCRIPTS/JAVASCRIPTS/popup.html" target="test_blank"&gt;http://www.list-editor.de/JAVASCRIPTS/JAVASCRIPTS/popup.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 19:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-internal-table/m-p/1499303#M231470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T19:22:05Z</dc:date>
    </item>
  </channel>
</rss>

