<?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 for select-options. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options/m-p/8182825#M1624419</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;The fucntion module 'DYNP_VALUES_UPDATE' should be used only for updating the screen field values. In your case you are updating the internal table using this function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 10:45:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-19T10:45:13Z</dc:date>
    <item>
      <title>F4 Help for select-options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options/m-p/8182824#M1624418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use F4 help for a select - options field from a particular table.I have written the below code and it worked well.&lt;/P&gt;&lt;P&gt;FORM sub_show_help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bukrs&lt;/P&gt;&lt;P&gt;   FROM zfica_accurate&lt;/P&gt;&lt;P&gt;    INTO TABLE gt_accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    delete ADJACENT DUPLICATES FROM gt_accurate.&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        = 'BUKRS'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'S_CMCODE'&lt;/P&gt;&lt;P&gt;      window_title    = 'COMPANY CODE'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;      multiple_choice = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = gt_accurate&lt;/P&gt;&lt;P&gt;      return_tab      = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_cmcode-sign    = 'I'.&lt;/P&gt;&lt;P&gt;  s_cmcode-option  = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_return INTO gw_return .&lt;/P&gt;&lt;P&gt;    s_cmcode-low = gw_return-fieldval.&lt;/P&gt;&lt;P&gt;    APPEND s_cmcode.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE s_cmcode INDEX 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    gw_dynpread-fieldname  = text-018.&lt;/P&gt;&lt;P&gt;    gw_dynpread-fieldvalue = s_cmcode-low.&lt;/P&gt;&lt;P&gt;    APPEND gw_dynpread TO gt_dynpread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; UPDATE THE SCREEN FIELD 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-repid&lt;/P&gt;&lt;P&gt;        dynumb               = sy-dynnr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynpfields           = gt_dynpread&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;        invalid_request      = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;        undefind_error       = 7&lt;/P&gt;&lt;P&gt;        OTHERS               = 8.&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i003.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is , I need to create a new type for s_cmcode(select-option ) field with the same structure as the select-option and the code is as below. I have created an internal table gt_sfield similar to s_cmcode . I have replaced s_cmcode with gt_sfield but the below code is not working. Its the same as the above program but its not showing up the values in the field.Could anyone please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fORM SUB_SHOW_HELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT BUKRS&lt;/P&gt;&lt;P&gt;   FROM ZFICA_ACCURATE&lt;/P&gt;&lt;P&gt;    INTO TABLE GT_ACCURATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_sfield[] = s_cmcode[].&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        = 'BUKRS'&lt;/P&gt;&lt;P&gt;      DYNPPROG        = SY-REPID&lt;/P&gt;&lt;P&gt;      DYNPNR          = SY-DYNNR&lt;/P&gt;&lt;P&gt;      WINDOW_TITLE    = 'COMPANY CODE'&lt;/P&gt;&lt;P&gt;      VALUE_ORG       = 'S'&lt;/P&gt;&lt;P&gt;      MULTIPLE_CHOICE = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB       = GT_ACCURATE&lt;/P&gt;&lt;P&gt;      RETURN_TAB      = GT_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT GT_RETURN INTO gw_return.&lt;/P&gt;&lt;P&gt;      gw_sfield-SIGN    = 'I'.&lt;/P&gt;&lt;P&gt;      gw_sfield-OPTION  = 'EQ'.&lt;/P&gt;&lt;P&gt;    MOve gw_return-fieldval to gw_sfield-low.&lt;/P&gt;&lt;P&gt;    APPEND gw_sfield to gt_sfield.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE gt_sfield INDEX 1 INTO gw_sfield .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    gw_dynpread-fieldname = 'S_CMCODE'.&lt;/P&gt;&lt;P&gt;    move  gw_sfield-low to gw_dynpread-fieldvalue.&lt;/P&gt;&lt;P&gt;    APPEND GW_DYNPREAD TO GT_DYNPREAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; UPDATE THE SCREEN FIELD 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-REPID&lt;/P&gt;&lt;P&gt;        DYNUMB               = SY-DYNNR&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DYNPFIELDS           = GT_DYNPREAD&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        INVALID_ABAPWORKAREA = 1&lt;/P&gt;&lt;P&gt;        INVALID_DYNPROFIELD  = 2&lt;/P&gt;&lt;P&gt;        INVALID_DYNPRONAME   = 3&lt;/P&gt;&lt;P&gt;        INVALID_DYNPRONUMMER = 4&lt;/P&gt;&lt;P&gt;        INVALID_REQUEST      = 5&lt;/P&gt;&lt;P&gt;        NO_FIELDDESCRIPTION  = 6&lt;/P&gt;&lt;P&gt;        UNDEFIND_ERROR       = 7&lt;/P&gt;&lt;P&gt;        OTHERS               = 8.&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE I003.&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;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 10:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options/m-p/8182824#M1624418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T10:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help for select-options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options/m-p/8182825#M1624419</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;The fucntion module 'DYNP_VALUES_UPDATE' should be used only for updating the screen field values. In your case you are updating the internal table using this function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 10:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options/m-p/8182825#M1624419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T10:45:13Z</dc:date>
    </item>
  </channel>
</rss>

