<?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: Suppressing an F4 help dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494065#M563094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Are you assigning search help name explicitly for that field in search help attribute of the screen painter,or else is it coming automatically form dictinary search help.If the searchhelp is coming automatically from dictionary then we can't control that dynamically.But for the first case it will definitely work.also make sure that for table control you have to modify the screen attribute inside the LOOP ENDLOOP of the table control in PBO.Can you paste your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT   it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.&lt;/P&gt;&lt;P&gt;    MODULE tc2_get_lines.&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;MODULE tc2_get_lines OUTPUT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'X_MARC-BWTTY'.&lt;/P&gt;&lt;P&gt;If x_marc-pstat = '1'.&lt;/P&gt;&lt;P&gt;        screen-value_help = 1.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;screen-value_help = 0.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  ENDMODULE.                    "TC2_GET_LINES OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 07:04:29 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-07-18T07:04:29Z</dc:date>
    <item>
      <title>Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494061#M563090</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;Is there any way I can suppress an F4 help in a screen based on some validations? I have statically attached a dictionary help to an input field, but do not want it to be displayed always. &lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 12:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494061#M563090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494062#M563091</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;In PBO Module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-name = 'W_LIFNR'.&lt;/P&gt;&lt;P&gt;  if &amp;lt;condition1&amp;gt; = true.&lt;/P&gt;&lt;P&gt;      screen-value_help = 1.&lt;/P&gt;&lt;P&gt;  elseif &amp;lt;condition2&amp;gt; = true.&lt;/P&gt;&lt;P&gt; screen-value_help =0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this you can hide the values after pressing F4 for that particular field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494062#M563091</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-17T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494063#M563092</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;There are two options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One Remove the static search help assignment and use Process-on-Value request module in your flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can check you condition in the module and based on that either show the search help or display message "No input help available".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO module check the condtion and manipulate the SCREEN strucutre as show in the above reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disable using SCREEN-VALUE_HELP = 0. MODIFY SCREEN in a LOOP AT SCREEN and ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;But there is a disadvantage with this option that you cannot tell the user why it is disabled.&amp;lt;/b&amp;gt; In the first option you can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494063#M563092</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-17T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494064#M563093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you both for your answers. I have a static search help assigned to a field in a table control actually. Now in my PBO, I have modified the screen and set value_help = 0. Still, I see the search help is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? Do I need to remove the static assignment and do the assignment itself dynamically after checking the condition? If yes, how do I do a dynamic search help assignment? I do not want to use process on value request, the search help is already available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494064#M563093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494065#M563094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Are you assigning search help name explicitly for that field in search help attribute of the screen painter,or else is it coming automatically form dictinary search help.If the searchhelp is coming automatically from dictionary then we can't control that dynamically.But for the first case it will definitely work.also make sure that for table control you have to modify the screen attribute inside the LOOP ENDLOOP of the table control in PBO.Can you paste your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT   it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.&lt;/P&gt;&lt;P&gt;    MODULE tc2_get_lines.&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;MODULE tc2_get_lines OUTPUT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'X_MARC-BWTTY'.&lt;/P&gt;&lt;P&gt;If x_marc-pstat = '1'.&lt;/P&gt;&lt;P&gt;        screen-value_help = 1.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;screen-value_help = 0.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  ENDMODULE.                    "TC2_GET_LINES OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494065#M563094</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-18T07:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing an F4 help dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494066#M563095</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 changed it to be called after initializing the table control lines and it works fine now. Previously it was before the wizard generated code for the table control and it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppressing-an-f4-help-dynamically/m-p/2494066#M563095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:06:54Z</dc:date>
    </item>
  </channel>
</rss>

