<?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: F4 help on module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277069#M1723574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Mohanarangan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;When you use FM&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt;&lt;/SPAN&gt; there is an EXPORTING field DYNPROFIELD ,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;this field is the dynpro field which is to be populated with the value clicked by the user from the hit list popped up.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;So you can see that it can be provided with only one value(i.e you first field for which you have written POH).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Now to solve your query I can suggest you with doing IMPLICIT ENHANCEMENT on the program&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LSDSDF01 &lt;/STRONG&gt;&lt;/SPAN&gt;( Which is an INCLUDE program inside SAPLSDSD ).&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;This program comes into action as soon as the user clicks the value from the hit list proposed.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Now add code in LSDSDF01 at below shown point .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/181331" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And append one more row in table dynpfields for the SECOND field.&lt;/P&gt;&lt;P&gt;You can try the same in debugger mode , its works fine in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/181332" width="450" /&gt;&lt;/P&gt;&lt;P&gt;While appending row provide the value FIELDNAME as that of Second Field and FIELDVALUE you need to fetch according to First field and provide it here.&lt;/P&gt;&lt;P&gt;This may help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Feb 2013 08:52:32 GMT</pubDate>
    <dc:creator>Sijin_Chandran</dc:creator>
    <dc:date>2013-02-03T08:52:32Z</dc:date>
    <item>
      <title>F4 help on module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277066#M1723571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a module pool program. i have two fields in the screen and need to have F4 help only for the first field.&lt;/P&gt;&lt;P&gt;the hitlist of the F4 help will have two fields(the fields which are in the screen). when the user selects the data&lt;/P&gt;&lt;P&gt;from hitlist then the first field of hitlist should be populated to the first field of the screen and second field of the &lt;/P&gt;&lt;P&gt;hitlist should be populated to the second field of the screen. I can use the function module&lt;/P&gt;&lt;P&gt; "F4IF_INT_TABLE_VALUE_REQUEST" to display the hitlist( hitlist containing both the fields in the screen) &lt;/P&gt;&lt;P&gt;of the first field and populate the first field, but how can i automatically populate the second field with the data from &lt;/P&gt;&lt;P&gt;the hitlist of the 1st fields F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Mohanarangan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 13:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277066#M1723571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-02T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277067#M1723572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider you have two fields field1 and field2 in the screen.&lt;/P&gt;&lt;P&gt;On F4 of field1 you have a pop up having two fields which u got using &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"F4IF_INT_TABLE_VALUE_REQUEST" &lt;/SPAN&gt; function module.&lt;/P&gt;&lt;P&gt;you must have passed data using some internal table&amp;nbsp; into the&amp;nbsp; VALUE_TAB of the below code.&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;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETFIELD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE_TAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = it_f4_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;Lets name the internal table as it_F4_values which has two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_F4_values internal table:&lt;/P&gt;&lt;P&gt;Field1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field2&lt;/P&gt;&lt;P&gt;AU&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Australia&lt;/P&gt;&lt;P&gt;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; India&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now write in ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;SCREEN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;SCREEN-NAME &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'FIELD1'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_field1_value = FIELD1.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;" if the internal table contains unique values go for read statement...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_f4_values &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;wa_f4_values &lt;SPAN class="L0S52"&gt;with &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;key &lt;/SPAN&gt;field1 = lv_field1_value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD2 = wa_f4_values-field2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODIFY &lt;/SPAN&gt;SCREEN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the output if you select AU in field1 then australia will come in field2 automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let us know if this solution is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Bharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 16:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277067#M1723572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-02T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277068#M1723573</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;you have to create 2 elementary search help in se11. both search help are same structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in these 2 search helps, 2 fields are present which is your module pool input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jst example, one is matnr and another is mtart. these 2 fields are also present in module pool screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZS1-&amp;gt; search help where matnr is only export parameter.&lt;/P&gt;&lt;P&gt;ZS2-&amp;gt; search help where mtart is only export parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module pool, double click on matnr (Screen field). open a pop up where you assign ZS1 in search help field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on mtart (Screen field). open a pop up where you assign ZS2 in search help field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your problem will be solved......follow this. if any problem then let me know.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 19:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277068#M1723573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-02T19:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277069#M1723574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Mohanarangan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;When you use FM&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt;&lt;/SPAN&gt; there is an EXPORTING field DYNPROFIELD ,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;this field is the dynpro field which is to be populated with the value clicked by the user from the hit list popped up.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;So you can see that it can be provided with only one value(i.e you first field for which you have written POH).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Now to solve your query I can suggest you with doing IMPLICIT ENHANCEMENT on the program&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LSDSDF01 &lt;/STRONG&gt;&lt;/SPAN&gt;( Which is an INCLUDE program inside SAPLSDSD ).&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;This program comes into action as soon as the user clicks the value from the hit list proposed.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Now add code in LSDSDF01 at below shown point .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/181331" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And append one more row in table dynpfields for the SECOND field.&lt;/P&gt;&lt;P&gt;You can try the same in debugger mode , its works fine in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/181332" width="450" /&gt;&lt;/P&gt;&lt;P&gt;While appending row provide the value FIELDNAME as that of Second Field and FIELDVALUE you need to fetch according to First field and provide it here.&lt;/P&gt;&lt;P&gt;This may help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2013 08:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-module-pool/m-p/9277069#M1723574</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2013-02-03T08:52:32Z</dc:date>
    </item>
  </channel>
</rss>

