<?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 Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956670#M393695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello niranjan&lt;/P&gt;&lt;P&gt;I had the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After call function module for f1 u just read table t_return and set value of variable f1 = t_return-field_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then for f2 u can use this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 14:01:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T14:01:21Z</dc:date>
    <item>
      <title>Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956662#M393687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN,&lt;/P&gt;&lt;P&gt; I have two fields in my selection screen in Module pool.&lt;/P&gt;&lt;P&gt;F1&lt;/P&gt;&lt;P&gt;F2&lt;/P&gt;&lt;P&gt;I have a F4 help to the field F2.I want to restrict the output of F4 help of the F2 with the values entered in F1.How to do this?&lt;/P&gt;&lt;P&gt;I have written my help request for field F2 in PROCESS ON VALUE-REQUEST. &lt;/P&gt;&lt;P&gt;I am not able to get the value of the field F1 in my PROCESS ON VALUE-REQUEST for F2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956662#M393687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956663#M393688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Niranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use function module DYNP_VALUES_READ to get the value of F1, in the event PROCESS ON VALUE-REQUEST for F2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: BEGIN OF DYNPFIELDS OCCURS 3.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF DYNPFIELDS.
  DATA:  G_DYNNR LIKE SY-DYNNR,
         DYNAME LIKE  D020S-PROG.
  G_DYNNR = SY-DYNNR.
  DYNAME = SY-REPID.
  MOVE 'SEL_TAB-LOW' TO DYNPFIELDS-FIELDNAME.
  APPEND DYNPFIELDS.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME               = DYNAME  "G_REPID
            DYNUMB               = G_DYNNR
       TABLES
            DYNPFIELDS           = DYNPFIELDS
       EXCEPTIONS
            INVALID_ABAPWORKAREA = 1
            INVALID_DYNPROFIELD  = 2
            INVALID_DYNPRONAME   = 3
            INVALID_DYNPRONUMMER = 4
            INVALID_REQUEST      = 5
            NO_FIELDDESCRIPTION  = 6
            INVALID_PARAMETER    = 7
            UNDEFIND_ERROR       = 8. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956663#M393688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956664#M393689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use field chain on these fields in PAI and as the first statement in process on value request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field F1 value would be available after you use field statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956664#M393689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956665#M393690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first put the required data(data gainst F1) into an ITAB consist of only one field (F2) and pass into FM as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module create_dropdown_box input.&lt;/P&gt;&lt;P&gt;SELECT werks FROM t001w iNTO table itab_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    retfield               = 'ZGKPF-PLANT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPPROG               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPNR                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPROFIELD            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    VALUE_ORG              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    value_tab              = itab_plant&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN_TAB             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " create_dropdown_box  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956665#M393690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956666#M393691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am using a select query inside my Process on value-request for the field F2.In this query i am using the value of F1 in where clause.I am not getting the value of f1.How to get the value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956666#M393691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956667#M393692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan,&lt;/P&gt;&lt;P&gt;   Check the following code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameter: p_1 type c,
                p_2 type c.
At selection-screen on p_1.
     p_2 = 'TEST'.
* or you can write the select statement
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956667#M393692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956668#M393693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Niranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the following logic in event PROCESS ON VALUE-REQUEST for F2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF DYNPFIELDS OCCURS 3.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF DYNPFIELDS.
  DATA:  G_DYNNR LIKE SY-DYNNR,
         DYNAME LIKE  D020S-PROG.
  G_DYNNR = SY-DYNNR.
  DYNAME = SY-REPID.
  DYNPFIELDS-FIELDNAME = 'F1'.
  APPEND DYNPFIELDS.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME               = DYNAME  "G_REPID
            DYNUMB               = G_DYNNR
       TABLES
            DYNPFIELDS           = DYNPFIELDS
       EXCEPTIONS
            INVALID_ABAPWORKAREA = 1
            INVALID_DYNPROFIELD  = 2
            INVALID_DYNPRONAME   = 3
            INVALID_DYNPRONUMMER = 4
            INVALID_REQUEST      = 5
            NO_FIELDDESCRIPTION  = 6
            INVALID_PARAMETER    = 7
            UNDEFIND_ERROR       = 8.

read table dynpfields index 1.
select &amp;lt;field&amp;gt; from &amp;lt;table name&amp;gt; into itab_F2 where 
&amp;lt;field&amp;gt; = dynfields-fieldvalue.

" use the internal table itab_F2 to populate F4 
" for field F2, using fm "F4IF_INT_TABLE_VALUE_REQUEST
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956668#M393693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956669#M393694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan,&lt;/P&gt;&lt;P&gt;1) Create a&amp;lt;b&amp;gt; SEARCH HELP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;2) In the search help put both of your fields in &amp;lt;b&amp;gt;Search Help Parameter&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;    Put the Field F1 as Importing and Field F2 as Exporting help parameter.&lt;/P&gt;&lt;P&gt;3) Write a &amp;lt;b&amp;gt;SEARCH HELP EXIT&amp;lt;/b&amp;gt; function module which selects the vale for &lt;/P&gt;&lt;P&gt;    Field F2 based on import help parameter F1.&lt;/P&gt;&lt;P&gt;4) Attach this search help to the Dataelement of F2 Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above steps is useful only when you have field F2's dataelement as Customer Made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956669#M393694</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2007-02-26T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956670#M393695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello niranjan&lt;/P&gt;&lt;P&gt;I had the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After call function module for f1 u just read table t_return and set value of variable f1 = t_return-field_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then for f2 u can use this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 14:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/1956670#M393695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T14:01:21Z</dc:date>
    </item>
  </channel>
</rss>

