<?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 function module to select some fields on popup screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556557#M1075687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM &lt;STRONG&gt;MC_POPUP_TO_MARK_FIELDS&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 19:35:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-25T19:35:06Z</dc:date>
    <item>
      <title>Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556556#M1075686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;I want a popup during my program execution. This popup should show the list of fields that I want and a check box in front of those fields. If I select those fields and click ok, then they should be selected and passed tp program as soon as funcion module finsihes execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 19:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556556#M1075686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T19:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556557#M1075687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM &lt;STRONG&gt;MC_POPUP_TO_MARK_FIELDS&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 19:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556557#M1075687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556558#M1075688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use FM REUSE_ALV_POPUP_TO_SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ztests. 

TYPE-POOLS SLIS. 

DATA: BEGIN OF itab OCCURS 0,
        BUKRS LIKE T001-BUKRS,
        BUTXT LIKE T001-BUTXT,
      END   OF itab. 

PARAMETERS: P_BUKRS TYPE BUKRS. 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BUKRS. 

  PERFORM F4_FOR_BUKRS.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F4_FOR_BUKRS
*----------------------------------------------------------------------*
FORM F4_FOR_BUKRS. 

  DATA: IT_FIELDCAT TYPE  SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
        ES_SELFIELD TYPE  SLIS_SELFIELD. 

* Get data
  SELECT BUKRS
         BUTXT
         FROM T001
         INTO TABLE itab
         up to 10 rows .
* Get field
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            I_PROGRAM_NAME     = SY-REPID
            I_INTERNAL_TABNAME = 'ITAB'
       CHANGING
            CT_FIELDCAT        = IT_FIELDCAT[]. 

  LOOP AT IT_FIELDCAT.
    IT_FIELDCAT-KEY = SPACE.
    IF IT_FIELDCAT-FIELDNAME = 'BUTXT'.
      IT_FIELDCAT-EMPHASIZE  = 'C710'.
    ENDIF.
    IF IT_FIELDCAT-FIELDNAME = 'BUKRS'.
      IT_FIELDCAT-EMPHASIZE  = 'C610'.
    ENDIF. 

    MODIFY IT_FIELDCAT.
  ENDLOOP. 

  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
 I_TITLE                       = 'THIS IS FOR F4 IN COLOR'
      I_TABNAME                     = 'ITAB'
      IT_FIELDCAT                   = IT_FIELDCAT[]
    IMPORTING
      ES_SELFIELD                   = ES_SELFIELD
    TABLES
      T_OUTTAB                      = ITAB . 

ENDFORM.                    " F4_FOR_BUKRS

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 19:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556558#M1075688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T19:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556559#M1075689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t001.
DATA: t_fields  LIKE  mcs01 OCCURS 0 WITH HEADER LINE,
      t_marked_fields LIKE  mcs01 OCCURS 0 WITH HEADER LINE.

SELECT * FROM t001 UP TO 5 ROWS.
  t_fields-tabname    = 'T001'.
  t_fields-fieldname  = t001-bukrs.
  t_fields-scrtext_l  = t001-butxt.
  APPEND t_fields.
ENDSELECT.



CALL FUNCTION 'MC_POPUP_TO_MARK_FIELDS'
  EXPORTING
    i_object_name_plural   = 'Test'
    i_object_name_singular = 'Test'
  TABLES
    t_fields               = t_fields
    t_marked_fields        = t_marked_fields
  EXCEPTIONS
    unvalid_text_length    = 1
    OTHERS                 = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

LOOP AT t_marked_fields.
  WRITE:/  t_marked_fields-scrtext_l.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 19:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556559#M1075689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T19:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556560#M1075690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amardeep. If I want all the fields on the screen to be selectd by default, what do I do, as if now none of these are selected by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 20:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556560#M1075690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T20:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556561#M1075691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the Parameter I_FIELDS_MARKED = 'X' for the FM MC_POPUP_TO_MARK_FIELDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 20:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556561#M1075691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T20:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Popup function module to select some fields on popup screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556562#M1075692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible I don't have the MC_POPUP_TO_MARK_FIELDS function module in an SRM system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 12:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-function-module-to-select-some-fields-on-popup-screen/m-p/4556562#M1075692</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2008-12-19T12:34:38Z</dc:date>
    </item>
  </channel>
</rss>

