<?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: Module Pool - Pop-Up Input Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520126#M1261772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;In PAI.
Case Sy-ucomm.
 When 'Botton CLicked'.     " Any Button is clicked
FL_FLAG = 'X'.
ENDCASE.



PBO:
If Fl_FLAG = 'X'.
Clear Fl_flag.
IF R2 = 'X'.
Loop at Screen.
IF Screen-name Cs 'Push Button'
Screen-Active = 1.
ENDIF.
Modify Screen.
ENDLOOP.

ELSEIF R1 = 'X'.
Call a Modal Dialog Box with Table Control.
ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2009 13:02:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-30T13:02:57Z</dc:date>
    <item>
      <title>Module Pool - Pop-Up Input Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520124#M1261770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have this scenario: &lt;/P&gt;&lt;P&gt;     I have a table control and two radio buttons say R1 and R2. &lt;/P&gt;&lt;P&gt;     R1 -&amp;gt; Single &lt;/P&gt;&lt;P&gt; First Requirement-&amp;gt; When R2 is clicked, a button to its adjacent position should become visible and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Requirement-&amp;gt; When the above button is clicked, a new table control should get displayed as a pop-up window type, and user can enter more data or more rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 12:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520124#M1261770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Pop-Up Input Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520125#M1261771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

double click on the radoi button and create a function code for the radio button.

In rhe PBO write the code for function code..

case sy-ucomm.
when 'Function for radio button1'.
        table-control-1-invisible = 'X'.   "table control1 invisible is set to 'X" then the table control is not cisible on the screen.
 table-control-2-invisible = ' '.   "Table control 2 is visible on the screen.
when 'Function for radio button2'.
       table-control-2-invisible = 'X'.   "table control2 invisible 
        table-control-1-invisible = ' '.   "Table control 1 is visible on the screen.
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need pop with alv format to diaply data use this fm ..but iw will allow you to selct and not to edit..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_title               = 'Batch Number Selection'
      i_selection           = 'X'
      i_screen_start_column = 5
      i_screen_start_line   = 5
      i_screen_end_column   = 70
      i_screen_end_line     = 20
      i_tabname             = 'T_BATCH'
      it_fieldcat           = gt_fieldcat_drd[]                  "field catalog for internal table
    IMPORTING
      es_selfield           = gc_selfield            "if you select field on the pop-up the selcted field and index is captured
    TABLES
      t_outtab              = t_batch                 "internal Table values want to show on the POP-Up
    EXCEPTIONS
      program_error         = 1
      OTHERS                = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 12:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520125#M1261771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Pop-Up Input Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520126#M1261772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;In PAI.
Case Sy-ucomm.
 When 'Botton CLicked'.     " Any Button is clicked
FL_FLAG = 'X'.
ENDCASE.



PBO:
If Fl_FLAG = 'X'.
Clear Fl_flag.
IF R2 = 'X'.
Loop at Screen.
IF Screen-name Cs 'Push Button'
Screen-Active = 1.
ENDIF.
Modify Screen.
ENDLOOP.

ELSEIF R1 = 'X'.
Call a Modal Dialog Box with Table Control.
ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 13:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-pop-up-input-screen/m-p/5520126#M1261772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T13:02:57Z</dc:date>
    </item>
  </channel>
</rss>

