<?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 request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924827#M940079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check this it may help you out.&lt;/P&gt;&lt;P&gt;Use the function module 'DYNP_VALUES_READ' to get the value of the first search help. Then retrieve the values of the 2nd search help using the above value selected by a select query.&lt;/P&gt;&lt;P&gt;Use this function module "F4IF_INT_TABLE_VALUE_REQUEST"&lt;/P&gt;&lt;P&gt;to create the 2nd search help.&lt;/P&gt;&lt;P&gt; Write the above logic in at selection-screen on value request for the field of 2nd search help field.&lt;/P&gt;&lt;P&gt;&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;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 06:44:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T06:44:47Z</dc:date>
    <item>
      <title>F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924825#M940077</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 having 4 fields..In 1st field when i select the value,based on tht only second field search help want to display values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we select the value in the search help of the second field it want to display the value which we selected in the list and other 2 fields values also want to display automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd and 4th field does not have search help.It is only a text box.When we select the 2nd field this value also want to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me the sample code for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924825#M940077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924826#M940078</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;&lt;/P&gt;&lt;P&gt;are u using module pool or normal report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924826#M940078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924827#M940079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check this it may help you out.&lt;/P&gt;&lt;P&gt;Use the function module 'DYNP_VALUES_READ' to get the value of the first search help. Then retrieve the values of the 2nd search help using the above value selected by a select query.&lt;/P&gt;&lt;P&gt;Use this function module "F4IF_INT_TABLE_VALUE_REQUEST"&lt;/P&gt;&lt;P&gt;to create the 2nd search help.&lt;/P&gt;&lt;P&gt; Write the above logic in at selection-screen on value request for the field of 2nd search help field.&lt;/P&gt;&lt;P&gt;&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;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924827#M940079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924828#M940080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;module pool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924828#M940080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924829#M940081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me try that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R u using standard table's fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 07:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924829#M940081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924830#M940082</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;     Use the below function modules for your requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DYNP_VALUES_READ&lt;/P&gt;&lt;P&gt;2) F4IF_INT_TABLE_VALUE_REQUEST and&lt;/P&gt;&lt;P&gt;3) DYNP_VALUES_UPDATE &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;&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 07:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924830#M940082</guid>
      <dc:creator>former_member182354</dc:creator>
      <dc:date>2008-05-30T07:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924831#M940083</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;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : matnr LIKE mseg-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_mat ,&lt;/P&gt;&lt;P&gt;          mblnr LIKE mseg-mblnr,&lt;/P&gt;&lt;P&gt;        END OF ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  dyfields LIKE dynpread OCCURS 1 WITH HEADER LINE ,&lt;/P&gt;&lt;P&gt;        itab2 TYPE TABLE OF ty_mat WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_tab2 TYPE ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : value_tab LIKE wa_tab2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       field_tab LIKE dfies OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : yr LIKE mseg-mjahr,&lt;/P&gt;&lt;P&gt;       tp LIKE mseg-bwart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare this data in TOP module...&lt;/P&gt;&lt;P&gt;Here i am entering Material firts...&lt;/P&gt;&lt;P&gt;Then pressing enter and click on F4 help icon in secong field material doc (mblnr) , so only related doc will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select one from them and press enter....year and movement type will come automatically...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my screen fields are ( I/O fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;ITAB2-MBLNR&lt;/P&gt;&lt;P&gt;YR&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now make one module in PAI...&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;PROCESS ON VALUE-REQUEST.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;FIELD itab2-mblnr MODULE matdoc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE matdoc INPUT.&lt;/STRONG&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;  SELECT mblnr FROM mseg INTO CORRESPONDING FIELDS OF TABLE itab2 WHERE matnr = matnr.&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SORT itab2 BY mblnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DELETE ADJACENT DUPLICATES FROM itab2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : value_tab,field_tab,return_tab.&lt;/P&gt;&lt;P&gt;  REFRESH : value_tab,field_tab,return_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field_tab-fieldname = 'MBLNR'.&lt;/P&gt;&lt;P&gt;  field_tab-tabname = 'MSEG'.&lt;/P&gt;&lt;P&gt;  APPEND field_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab2 .&lt;/P&gt;&lt;P&gt;    value_tab-mblnr = itab2-mblnr.&lt;/P&gt;&lt;P&gt;    APPEND value_tab.&lt;/P&gt;&lt;P&gt;    CLEAR value_tab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&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;P&gt;      retfield               = field_tab-fieldname&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = value_tab&lt;/P&gt;&lt;P&gt;      field_tab              = field_tab&lt;/P&gt;&lt;P&gt;      return_tab             = return_tab&lt;/P&gt;&lt;UL&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 = 0.&lt;/P&gt;&lt;P&gt;    CLEAR : yr,tp.&lt;/P&gt;&lt;P&gt;    itab2-mblnr = return_tab-fieldval.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE mjahr INTO yr FROM mseg WHERE mblnr = itab2-mblnr.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE bwart INTO tp FROM mseg WHERE mblnr = itab2-mblnr.&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;&lt;STRONG&gt;ENDMODULE.                 " matdoc  INPUT&lt;/STRONG&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 08:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924831#M940083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T08:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: F4 request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924832#M940084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iam assuming  that u r calling a screen and  not doing the changes on default selection screen 1000 as iam not sure the follwing things can be done selection screen 1000 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the screen layout draw input/ output fileds and text field( for display)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click the input/outpurt field and in the screen properties give the field name and make it as list box, give some value in the FCT code say z_hlp.&lt;/P&gt;&lt;P&gt;do it for both the fields where u want to having diff screen field name and different FCT code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave the layout and come to pbo module.&lt;/P&gt;&lt;P&gt;if search help has to be populated  for a field before any&lt;/P&gt;&lt;P&gt;input by the user it should be done in PBO module of the screen,&lt;/P&gt;&lt;P&gt; by using the fucntion module&lt;/P&gt;&lt;P&gt;vrm_set_values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first populate the internal table  with ur search help values .&lt;/P&gt;&lt;P&gt;and then use the above mentioned function module , give the screen name where u want search help(screen name of fileds have already been given by you) and internal tabel ( where  the data for search help is already populated.) as parameters of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if u wnt to give search help in the second field based on the selected parameter in the first filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write code in  pai module &lt;/P&gt;&lt;P&gt;if sy-ucomm = fct code of the first field ( fct code is given by u , while making the first field on screen as listbox in screen properties of the field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again fill the internal table and on bases of  value of the first parameter  which u can retrive by mentioning the fieldname &lt;/P&gt;&lt;P&gt;select from custom tabel&lt;/P&gt;&lt;P&gt;into intrnal table&lt;/P&gt;&lt;P&gt;where abc = zdm-abc ( screen name of the field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;agin use the fucntion module vrm_set_values... and give the screen name( of second field) and intenal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saurabh on Jun 2, 2008 7:18 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saurabh on Jun 2, 2008 7:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 05:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-request/m-p/3924832#M940084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T05:16:08Z</dc:date>
    </item>
  </channel>
</rss>

