<?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: Pop up button in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150130#M1514431</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;try this Function Module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'HELP_VALUES_GET'
      EXPORTING
        fieldname    = 'MATNR'
        tabname      = 'MARA'
      IMPORTING
        select_value = w_mchb_matnr.

"Or try this..

  CALL FUNCTION 'POPUP_TO_GET_VALUE'
    EXPORTING
      fieldname = 'MATNR'
      tabname   = 'MARA'
      titel     = 'Enter material Number'
      valuein   = w_mchb_matnr
    IMPORTING
      answer    = p_answer
      valueout  = w_mchb_matnr.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

"or try this to select whole row..
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 10:52:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-18T10:52:18Z</dc:date>
    <item>
      <title>Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150128#M1514429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across a requirement in which i need to design a button and when user clicks on tht button he should get a pop up window in which he enter's the matrial displayed in the list on the screen and the material entered by the user should be sorted on top of the list.&lt;/P&gt;&lt;P&gt;I used function module POPUP_GET_VALUES but its not working..can anyone let me know what is the function module and what export and import parameters to be used.&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;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150128#M1514429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150129#M1514430</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;call the FM for the popup under the function code of the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sirisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150129#M1514430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150130#M1514431</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;try this Function Module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'HELP_VALUES_GET'
      EXPORTING
        fieldname    = 'MATNR'
        tabname      = 'MARA'
      IMPORTING
        select_value = w_mchb_matnr.

"Or try this..

  CALL FUNCTION 'POPUP_TO_GET_VALUE'
    EXPORTING
      fieldname = 'MATNR'
      tabname   = 'MARA'
      titel     = 'Enter material Number'
      valuein   = w_mchb_matnr
    IMPORTING
      answer    = p_answer
      valueout  = w_mchb_matnr.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

"or try this to select whole row..
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150130#M1514431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150131#M1514432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply now i able to get pop up and enter component in that.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_GET_VALUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      fieldname = 'IDNRK'    "BOM COMPONENT&lt;/P&gt;&lt;P&gt;      tabname   = 'STPOX'  " BOM ITEMS TABLE&lt;/P&gt;&lt;P&gt;      titel     = 'Enter Component'&lt;/P&gt;&lt;P&gt;      valuein   = I_500-IDNRK  " INTERNAL TABLE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      answer    = p_answer&lt;/P&gt;&lt;P&gt;      valueout  = I_500-IDNRK.&lt;/P&gt;&lt;P&gt;  IF sy-subrc  EQ 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "USER_COMMAND_0500 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is like when i click on button ,pop up should come and in that pop i will type the component displayed on the screen from the list of components..so, that component should be sorted on top of the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 05:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150131#M1514432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T05:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150132#M1514433</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;Check the below thread&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="8830060"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For your info the Code is available here also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;You need to implement amodal screen for this and a Find button above the table control.
or you can use POPUP_GET_VALUES FM
after you enter a value in the POP up screen.
" You need to put some effort to implement this, wish you to implement it successfully as this is possible
READ TABLE ITAB WITH KEY VBELN = FIND_VBELN. " FIND_VBELN is the field on your find screen.
if sy-subrc = 0.
tc-top_line = sy-tabix. " this makes the record visible in the First position
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
  LOOP AT itab.
    MODULE find.
  ENDLOOP.
 
In Program
 
MODULE find INPUT.
  DATA : tab TYPE STANDARD TABLE OF sval WITH HEADER LINE.
  REFRESH tab.
  CASE ok_code.
    WHEN 'FIND'.
      clear ok_code.
      tab-tabname = 'VBAK'.
      tab-fieldname = 'VBELN'.
      APPEND tab.
      CALL FUNCTION 'POPUP_GET_VALUES'
        EXPORTING
*   NO_VALUE_CHECK        = ' '
          popup_title           = 'Find Sales Order'
   start_column          = '5'
   start_row             = '5'
* IMPORTING
*   RETURNCODE            =
        TABLES
          fields                = tab
 EXCEPTIONS
   error_in_fields       = 1
   OTHERS                = 2
                .
      IF sy-subrc = 0.
        READ TABLE itab WITH KEY vbeln = tab-value.
        IF sy-subrc = 0.
          tc-top_line = sy-tabix.
        ENDIF.
      ENDIF.
  ENDCASE.
ENDMODULE.                 " find  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 05:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150132#M1514433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150133#M1514434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion i have used to code which you suggested me..every thning is working fine which i checked in debugging also but still the component is not sorted on to top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : tab TYPE STANDARD TABLE OF sval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  REFRESH tab.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'SORT'.&lt;/P&gt;&lt;P&gt;      clear ok_code.&lt;/P&gt;&lt;P&gt;      tab-tabname = 'STPOX'.&lt;/P&gt;&lt;P&gt;      tab-fieldname = 'IDNRK'.&lt;/P&gt;&lt;P&gt;      APPEND tab.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUE_CHECK        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          popup_title           = 'Enter Component'&lt;/P&gt;&lt;P&gt;   start_column          = '5'&lt;/P&gt;&lt;P&gt;   start_row             = '5'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURNCODE            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          fields                = tab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   error_in_fields       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                = 2&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        READ TABLE i_sb3 WITH KEY idnrk = tab-value. " in debuggin tab-value is coming the component which i selected to sort.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.  " here sy-subrc is 0&lt;/P&gt;&lt;P&gt;          tc-top_line = sy-tabix. &lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "USER_COMMAND_0500 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process After Input:&lt;/P&gt;&lt;P&gt;*code which i added&lt;/P&gt;&lt;P&gt;loop at i_sb3.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0500. "module for button sort&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*code which was written prev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module exit at exit-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_500.&lt;/P&gt;&lt;P&gt;    field: i_500-ind module checkind on input.&lt;/P&gt;&lt;P&gt;    chain.&lt;/P&gt;&lt;P&gt;      field: i_500-ind,&lt;/P&gt;&lt;P&gt;             i_500-adj.&lt;/P&gt;&lt;P&gt;      module bal_calc on chain-input.&lt;/P&gt;&lt;P&gt;    endchain.&lt;/P&gt;&lt;P&gt;    module gbal.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;    module save_data_fnlcomp.&lt;/P&gt;&lt;P&gt;  loop at i_sb3.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  module escreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting error message like &lt;/P&gt;&lt;P&gt;Invalid field assignment: Field "I_500-IND" is assigned to another loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 05:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150133#M1514434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T05:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150134#M1514435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Code must be within LOOP and ENDLOOP of PAI not MODULE USERCOMMAND_0500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
  LOOP AT itab. " When Some one gives a response check it properly since it is very difficult to find where you went wrong
    MODULE find. " This has already resolved the issue of two other guys
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 06:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150134#M1514435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150135#M1514436</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 have written your code in between loop at end loop of PAI only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debugging i have found that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        READ TABLE i_sb3 WITH KEY idnrk = tab-value.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          tc-top_line = sy-tabix.  " here tc-top_line is coming as 1 and sy-tabix as 17 in debgugging and when debugging comes out of that statment. tc_top_line value is coming as 17&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 06:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-button-in-module-pool/m-p/7150135#M1514436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T06:21:45Z</dc:date>
    </item>
  </channel>
</rss>

