<?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 in Dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908803#M378534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id27.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id27.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;F4IF_INT_TABLE_VALUE_REQUEST
       This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. 
       If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
 
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD           = field from int table whose value will be returned 
            DYNPPROG        = SY-CPROG
            DYNPNR             = SY-DYNNR
            DYNPROFIELD    = 'screen field'
            VALUE_ORG       = 'S'
       TABLES
            VALUE_TAB        = internal table whose values will be shown.
            RETURN_TAB      = internal table of type DDSHRETVAL  
       EXCEPTIONS
            parameter_error    = 1
            no_values_found   = 2
            others                  = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_bukrs(4) type c,
            p_butxt(50) type c.

data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.

at selection-screen on value-request for p_bukrs.

  call function 'F4IF_FIELD_VALUE_REQUEST'
       exporting
            tabname           = 'T001'
            fieldname         = 'BUKRS'
            dynpprog          = sy-cprog
            dynpnr            = sy-dynnr
            dynprofield       = 'P_BUKRS'
       tables
            return_tab        = return
       exceptions
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            others            = 5.

  read table return with key fieldname = 'P_BUKRS'.

* Add it back to the dynpro.
  dynfields-fieldname = return-retfield.
  dynfields-fieldvalue =  return-fieldval.
  append dynfields.

* Get the company code from db and add to dynpro
  dynfields-fieldname = 'P_BUTXT'.
  select single butxt into dynfields-fieldvalue
          from t001
                where bukrs = return-fieldval.
  append dynfields.

* Update the dynpro values.
  call function 'DYNP_VALUES_UPDATE'
       exporting
            dyname     = sy-cprog
            dynumb     = sy-dynnr
       tables
            dynpfields = dynfields
       exceptions
            others     = 8.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 10:37:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T10:37:22Z</dc:date>
    <item>
      <title>F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908801#M378532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have a screen which I am trying to change. Basically there is a field that has input help associated to it currently using foreign key releationship and I debugged the program to find out that FM DD_SHLP_CALL_FROM_DYNP used, that is the standard method is used. Now the requirement is to add new input help with few extra fields to be taken in account. SO i guess I will have to use 'F4IF_INT_TABLE_VALUE_REQUEST', but the issue is what is the event in my dynpro that will trigger this FM, do I have to write a different event or its a part of PBO, or Process ON Value has to be implemented?&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908801#M378532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908802#M378533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Search Help in DynPro... Many techniques are available...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can Create Search Help (USING SE11)and attach with it in SCREEN... If u see property of your field in SCREEN PAINTER &amp;gt;&amp;gt; SCREEN PAINTER ATTRIBUTES ...You will find search help field at the bottom. Write Search Help name there.&lt;/P&gt;&lt;P&gt;2. Create Domain With Value table... or VAlue range it will become search help for the field containing that domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908802#M378533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908803#M378534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id27.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id27.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;F4IF_INT_TABLE_VALUE_REQUEST
       This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. 
       If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
 
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD           = field from int table whose value will be returned 
            DYNPPROG        = SY-CPROG
            DYNPNR             = SY-DYNNR
            DYNPROFIELD    = 'screen field'
            VALUE_ORG       = 'S'
       TABLES
            VALUE_TAB        = internal table whose values will be shown.
            RETURN_TAB      = internal table of type DDSHRETVAL  
       EXCEPTIONS
            parameter_error    = 1
            no_values_found   = 2
            others                  = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_bukrs(4) type c,
            p_butxt(50) type c.

data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.

at selection-screen on value-request for p_bukrs.

  call function 'F4IF_FIELD_VALUE_REQUEST'
       exporting
            tabname           = 'T001'
            fieldname         = 'BUKRS'
            dynpprog          = sy-cprog
            dynpnr            = sy-dynnr
            dynprofield       = 'P_BUKRS'
       tables
            return_tab        = return
       exceptions
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            others            = 5.

  read table return with key fieldname = 'P_BUKRS'.

* Add it back to the dynpro.
  dynfields-fieldname = return-retfield.
  dynfields-fieldvalue =  return-fieldval.
  append dynfields.

* Get the company code from db and add to dynpro
  dynfields-fieldname = 'P_BUTXT'.
  select single butxt into dynfields-fieldvalue
          from t001
                where bukrs = return-fieldval.
  append dynfields.

* Update the dynpro values.
  call function 'DYNP_VALUES_UPDATE'
       exporting
            dyname     = sy-cprog
            dynumb     = sy-dynnr
       tables
            dynpfields = dynfields
       exceptions
            others     = 8.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908803#M378534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908804#M378535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Darshan and Judith for your help again,&lt;/P&gt;&lt;P&gt;but let me be more specific; may be you can understand me better than, basically I am having a field subty, that has input help associated to it, what i want is that now a new field subty1 has come into action, hence I want to change the help request and manually code it such as it would give me only values I select using my query. hence I feel that 'F4IF_INT_TABLE_VALUE_REQUEST' would be enuf. what do u suggest?&lt;/P&gt;&lt;P&gt;thansk and regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908804#M378535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908805#M378536</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;I think this will be an event in your PAI and not PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunmit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908805#M378536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908806#M378537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    As per your question, the better solution would be if you can create a search help for the field  ( considering other fields in SE11 ) and then attach this seacrh help directly in the dynpro field . I hope this will solve your purpose as if you want to use the function module ( the ones suggested ) you can only get values for one field and the other fields can not be taken into consideration but in case of search helps the other fields also can be considered .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz revert back for further clarification if needed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908806#M378537</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-02-28T06:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908807#M378538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks ranjita,&lt;/P&gt;&lt;P&gt;But I guess I will continue with coding rather than implementing search help the reason being,&lt;/P&gt;&lt;P&gt;Current scenario is : A user gets all the entries for scheme type when presses input help F4. This is implemented using Search Help, It fetches 3 different fields from 3 tables.&lt;/P&gt;&lt;P&gt;NeW requirement : I need to check what is the subtype entered by user, if user enter subytpe A, then only few values of scheme type that match a condition need to come as input options from the same three tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any sugggestions?&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908807#M378538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908808#M378539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gourav, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   If you are aware of search help exits , then I suggest you to use that as in that case you can still refine your selection and according to the schemes selected you can have a particular input help available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-dynpro/m-p/1908808#M378539</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-02-28T10:16:23Z</dc:date>
    </item>
  </channel>
</rss>

