<?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 Getting user input for F4 help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072045#M1355671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I've a question, I'm sure it's something stupid but I can't get it right. &lt;/P&gt;&lt;P&gt;In a report, I use the event :at selection-screen on value-request for a parameter P_APPID. To get a value help for the parameter p_appid.&lt;/P&gt;&lt;P&gt;I'd like  to use the value of another parameter in this event. But the parameter is always empty before I go to the start-of-selection. What do I have to do to get what the user type in the first parameter P_PER_CE before the start-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;P_PER_CE(5) type C&lt;/P&gt;&lt;P&gt;P_APPID(5) type C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for P_APPID.&lt;/P&gt;&lt;P&gt;select * from mytable where per_ce = P_PER_CE // Even if the user entered something in P_PER_CE the value of P_PER_CE is still initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;// here I can use P_PER_CE, it has a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rest of the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 15:21:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-26T15:21:46Z</dc:date>
    <item>
      <title>Getting user input for F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072045#M1355671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I've a question, I'm sure it's something stupid but I can't get it right. &lt;/P&gt;&lt;P&gt;In a report, I use the event :at selection-screen on value-request for a parameter P_APPID. To get a value help for the parameter p_appid.&lt;/P&gt;&lt;P&gt;I'd like  to use the value of another parameter in this event. But the parameter is always empty before I go to the start-of-selection. What do I have to do to get what the user type in the first parameter P_PER_CE before the start-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;P_PER_CE(5) type C&lt;/P&gt;&lt;P&gt;P_APPID(5) type C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for P_APPID.&lt;/P&gt;&lt;P&gt;select * from mytable where per_ce = P_PER_CE // Even if the user entered something in P_PER_CE the value of P_PER_CE is still initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;// here I can use P_PER_CE, it has a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rest of the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 15:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072045#M1355671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting user input for F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072046#M1355672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are right. You will get this field empty and all the others. This is becasue in POV event (at selection-screen on value reuqest for ...) there is no automatic transport of screen fields to their corresponding parameters/select-options variables.&lt;/P&gt;&lt;P&gt;You have to use FM &lt;STRONG&gt;DYNP_VALUES_READ&lt;/STRONG&gt; in this POV event to read them explicitly.&lt;/P&gt;&lt;P&gt;There are plenty of examples for this, so you will easily find how to call it. [Example link|http://sap.niraj.tripod.com/id27.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Futhermore if you want to update some screen field in the same POV event, you must use &lt;STRONG&gt;DYNP_VALUES_UPDATE&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;This will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072046#M1355672</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-26T18:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting user input for F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072047#M1355673</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 need to use the FM 'DYNP_VALUES_UPDATE' to get the values entered in the previous selection screen variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-abap/running-into-f4-help-issue-at-selection-screen-2370073" target="test_blank"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-abap/running-into-f4-help-issue-at-selection-screen-2370073&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072047#M1355673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T18:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting user input for F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072048#M1355674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Clarke,
Try this way.
&lt;PRE&gt;&lt;CODE&gt; REPORT ztest_notepad.

 DATA: BEGIN OF it_marc OCCURS 0,
         matnr TYPE marc-matnr,
         werks TYPE marc-werks,
       END OF it_marc.
 DATA:it_dynpread TYPE TABLE OF dynpread,
      wa_dynpread LIKE LINE OF it_dynpread.
 DATA: it_return_tab TYPE ddshretval OCCURS 0,
       wa_return LIKE LINE OF it_return_tab.
 PARAMETERS:
         p_werks TYPE marc-werks,
         p_matnr TYPE marc-matnr.

 AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.

   wa_dynpread-fieldname = 'P_WERKS'.
   APPEND wa_dynpread TO it_dynpread.
   CLEAR  wa_dynpread.
  "DYNP_VALUES_READ read screen 
   CALL FUNCTION 'DYNP_VALUES_READ'
     EXPORTING
       dyname     = sy-repid
       dynumb     = sy-dynnr
     TABLES
       dynpfields = it_dynpread.
   READ TABLE it_dynpread INTO wa_dynpread INDEX 1.
   p_werks = wa_dynpread-fieldvalue.
   IF it_marc[] IS INITIAL.
     SELECT * FROM marc INTO CORRESPONDING FIELDS OF TABLE it_marc WHERE werks = p_werks.
   ENDIF.
   "F4 help F4IF_INT_TABLE_VALUE_REQUEST
   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
     EXPORTING
       retfield    = 'MATNR'
       dynpprog    = sy-repid
       dynpnr      = sy-dynnr
       dynprofield = 'P_MATNR'
       value_org   = 'S'
     TABLES
       value_tab   = it_marc
       return_tab  = it_return_tab.
   IF sy-subrc EQ 0.
     READ TABLE it_return_tab INTO wa_return INDEX 1.
     IF sy-subrc EQ 0.
       p_matnr = wa_return-fieldval.
     ENDIF.
   ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 03:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072048#M1355674</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-08-27T03:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting user input for F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072049#M1355675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys for your help.&lt;/P&gt;&lt;P&gt;It works great. Thanks for the code extract I just had to copy it and change the parameters and works.&lt;/P&gt;&lt;P&gt;You made my day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 11:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-user-input-for-f4-help/m-p/6072049#M1355675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T11:33:31Z</dc:date>
    </item>
  </channel>
</rss>

