<?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 Clear selection screen fields on using value help on another field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741507#M1112337</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 have 3 fields -  reason1, reason2, reason3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to clear fields reason2 and reason 3 when i use value help for reason1.&lt;/P&gt;&lt;P&gt;How do i go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Gaurav Kumar Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2008 12:40:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-06T12:40:33Z</dc:date>
    <item>
      <title>Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741507#M1112337</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 have 3 fields -  reason1, reason2, reason3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to clear fields reason2 and reason 3 when i use value help for reason1.&lt;/P&gt;&lt;P&gt;How do i go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Gaurav Kumar Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 12:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741507#M1112337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741508#M1112338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;  if reason1 = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;    clear: reason2, reason3.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 12:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741508#M1112338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T12:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741509#M1112339</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;PRE&gt;&lt;CODE&gt;INITIALIZATION.
If reason 3 NE space.
Clear: reason1,
         reason2.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 12:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741509#M1112339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741510#M1112340</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 use the function module 'DYNP_VALUES_UPDATE', here is a code extract showing its use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_laufd
*&amp;amp;---------------------------------------------------------------------*
form f4_laufd .

  data: ls_laufk type ilaufk,
        lt_laufk type table of ilaufk.

  ls_laufk-laufk = space.
  ls_laufk-sign  = 'I'.
  append ls_laufk to lt_laufk.

  call function 'F4_ZAHLLAUF'
    exporting
      f1typ = 'D'
      f2nme = 'F110V-LAUFI'
    importing
      laufd = p_laufd
      laufi = p_laufi
    tables
      laufk = lt_laufk.

  perform set_selection using 'P_LAUFI' p_laufi.

endform.                                                    " f4_laufd

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  set_selection
*&amp;amp;---------------------------------------------------------------------*
form set_selection  using    value(i_field)
                             i_value.

  data: ls_dynpfld type dynpread,
        lt_dynpfld type table of dynpread.

  ls_dynpfld-fieldname  = i_field.
  ls_dynpfld-fieldvalue = i_value.
  append ls_dynpfld to lt_dynpfld.

  call function 'DYNP_VALUES_UPDATE'
    exporting
      dyname     = sy-repid
      dynumb     = sy-dynnr
    tables
      dynpfields = lt_dynpfld.

endform.                    " set_selection&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 12:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741510#M1112340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T12:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741511#M1112341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow the values are not clearing from the selection screen.&lt;/P&gt;&lt;P&gt;here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_dynpfld TYPE dynpread,&lt;/P&gt;&lt;P&gt;        lt_dynpfld TYPE STANDARD TABLE OF dynpread,&lt;/P&gt;&lt;P&gt;        lv_repid TYPE sy-repid,&lt;/P&gt;&lt;P&gt;        lv_dynnr TYPE sy-dynnr,&lt;/P&gt;&lt;P&gt;        lv_initial TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_repid = sy-cprog.&lt;/P&gt;&lt;P&gt;  lv_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_dynpfld-fieldname  = 'P_RES2'.&lt;/P&gt;&lt;P&gt;  ls_dynpfld-fieldvalue = lv_initial.&lt;/P&gt;&lt;P&gt;  APPEND ls_dynpfld TO lt_dynpfld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    dyname                    = lv_repid&lt;/P&gt;&lt;P&gt;    dynumb                    = lv_dynnr&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    dynpfields                = lt_dynpfld&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 12:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741511#M1112341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T12:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection screen fields on using value help on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741512#M1112342</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;The issue is resolved.&lt;/P&gt;&lt;P&gt;I used the same FM DYNP_VALUES_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick to use it that i had to pass the parameter on which the POV was written alongwith the parameters i wanted to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i had to pass all 3 reason1, reason2 and reason3 to the FM to change the screen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 14:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-selection-screen-fields-on-using-value-help-on-another-field/m-p/4741512#M1112342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T14:34:30Z</dc:date>
    </item>
  </channel>
</rss>

