<?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: selection not returned second time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975145#M1339882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Instance it should be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_field(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program = sy-repid&lt;/P&gt;&lt;P&gt;i_dynpro = sy-dynnr&lt;/P&gt;&lt;P&gt;i_fieldname = 'V_PLANT' "here specify your own field which u want to read&lt;/P&gt;&lt;P&gt;i_flg_steploop = ''&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2009 11:16:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-21T11:16:17Z</dc:date>
    <item>
      <title>F4 help: selection not returned second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975144#M1339881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to restrict the values of a domain by building my own value help.&lt;/P&gt;&lt;P&gt;The values are getting restricted and also shown in the pop up.But the problem is that first time the value gets selected and shown on the dynpro screen. But second time if I select a different value, the dynpro field is not getting updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the FM:&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        = 'DOMVALUE_L'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    tabname         = 'ZTCAFI'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    fieldname       = 'CATSPOSI'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;      dynprofield     = 'ZTCAFI-CATSPOSI'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = lt_table&lt;/P&gt;&lt;P&gt;      return_tab      = lt_ret&lt;/P&gt;&lt;P&gt;      field_tab       = lt_field_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt; IF sy-subrc  = 0.&lt;/P&gt;&lt;P&gt;    REFRESH dynfields.&lt;/P&gt;&lt;P&gt;    READ TABLE lt_ret INTO ls_ret INDEX 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      dynfields-fieldname = ls_ret-retfield.&lt;/P&gt;&lt;P&gt;      dynfields-fieldvalue =  ls_ret-fieldval.&lt;/P&gt;&lt;P&gt;      APPEND dynfields.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the dynpro values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        dyname     = sy-cprog&lt;/P&gt;&lt;P&gt;        dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynpfields = dynfields&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS     = 8.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that lt_ret doesnt return any record on second time selection.&lt;/P&gt;&lt;P&gt;Could anyone please tell me why the function module doesnt return any value on selecting second time from the F4 pop up screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975144#M1339881</guid>
      <dc:creator>PriyankaAgarwal</dc:creator>
      <dc:date>2009-08-21T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help: selection not returned second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975145#M1339882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Instance it should be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_field(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program = sy-repid&lt;/P&gt;&lt;P&gt;i_dynpro = sy-dynnr&lt;/P&gt;&lt;P&gt;i_fieldname = 'V_PLANT' "here specify your own field which u want to read&lt;/P&gt;&lt;P&gt;i_flg_steploop = ''&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 11:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975145#M1339882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help: selection not returned second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975146#M1339883</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;It doesnt seem to work.&lt;/P&gt;&lt;P&gt;I have done the following.Did i miss something.&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        = 'KEY'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    tabname         = 'ZTCAFI'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    fieldname       = 'CATSPOSI'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;      dynprofield     = 'ZTCAFI-CATSPOSI'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = lt_value_tab&lt;/P&gt;&lt;P&gt;      return_tab      = lt_ret&lt;/P&gt;&lt;P&gt;      field_tab       = lt_field_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc  = 0.&lt;/P&gt;&lt;P&gt;    DATA : v_field(255) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_program      = sy-repid&lt;/P&gt;&lt;P&gt;        i_dynpro       = sy-dynnr&lt;/P&gt;&lt;P&gt;        i_fieldname    = 'CATSPOSI' "here specify your own field which u want to read&lt;/P&gt;&lt;P&gt;        i_flg_steploop = ''&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        e_value        = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 11:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975146#M1339883</guid>
      <dc:creator>PriyankaAgarwal</dc:creator>
      <dc:date>2009-08-21T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help: selection not returned second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975147#M1339884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ensure you are calling FM &lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt; in POV and don't use &lt;EM&gt;return_tab&lt;/EM&gt; parameter. Instead return picked value directly to screen field.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"screen
PROCESS ON VALUE-REQUEST.
  FIELD connection MODULE pov. "connection is my field here

"program
MODULE pov INPUT.
DATA: PROGNAME LIKE SY-REPID,
           DYNNUM   LIKE SY-DYNNR.

  progname = sy-repid.
  dynnum = sy-dynnr.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD         = 'CONNID'   
            DYNPPROG         = PROGNAME
            DYNPNR           = DYNNUM
            DYNPROFIELD      = 'CONNECTION'   "return directly to screen field
            VALUE_ORG        = 'S'
       TABLES
            VALUE_TAB        = VALUES_TAB.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 11:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975147#M1339884</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-21T11:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help: selection not returned second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975148#M1339885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. It worked :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 03:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-selection-not-returned-second-time/m-p/5975148#M1339885</guid>
      <dc:creator>PriyankaAgarwal</dc:creator>
      <dc:date>2009-08-24T03:20:49Z</dc:date>
    </item>
  </channel>
</rss>

