<?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: selection option help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661856#M614086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with Fm's like F4IF_INT_TABLE_VALUE_REQUEST, F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.&lt;/P&gt;&lt;P&gt;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.&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 = field from int table whose value will be returned&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = internal table whose values will be shown.&lt;/P&gt;&lt;P&gt;RETURN_TAB = internal table of type DDSHRETVAL&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;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Babu Aluri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 04:24:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T04:24:59Z</dc:date>
    <item>
      <title>selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661852#M614082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my declaration for input of company code  is like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_bukrs FOR t001-bukrs OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now its allowing me to enter manually the company code or &lt;/P&gt;&lt;P&gt;i can choose from the F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is that, user shopuld not be allowed to &lt;/P&gt;&lt;P&gt;manually enter the compcode, &lt;/P&gt;&lt;P&gt;but he should be allowed to choose from the F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;had any oe face this situation earlier.&lt;/P&gt;&lt;P&gt;plz help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 02:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661852#M614082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T02:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661853#M614083</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 Validation on the Select options.. I dont think you can get this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select-options : s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single * from mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 03:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661853#M614083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T03:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661854#M614084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do validation for the company code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 03:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661854#M614084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T03:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661855#M614085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana,   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement needs to be slightly changed and you need to check if the value entered exists in database. What I mean to say is that if the user manually enters the value, it needs to be checked for existence in the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can do this validation (check) in the even AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Here at this event the value is checked for the existence in dB and then is allowed to go further else an error can be thrown back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Here goes the code to help you.   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data declaration.&lt;/P&gt;&lt;P&gt;v_bukrslow type knvv-bukrs.&lt;/P&gt;&lt;P&gt;v_bukrshigh type knvv-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_bukrs-low IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE bukrs&lt;/P&gt;&lt;P&gt;            FROM knvv&lt;/P&gt;&lt;P&gt;            INTO v_bukrslow&lt;/P&gt;&lt;P&gt;            WHERE bukrs = s_bukrs-low.&lt;/P&gt;&lt;P&gt;    IF v_bukrslow IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Low Value doesnot exist' TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF s_bukrs-high IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE bukrs&lt;/P&gt;&lt;P&gt;            FROM knvv&lt;/P&gt;&lt;P&gt;            INTO v_bukrshigh&lt;/P&gt;&lt;P&gt;            WHERE bukrs = s_bukrs-high.&lt;/P&gt;&lt;P&gt;    IF v_bukrshigh IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE 'High Value doesnot exist' TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;This should solve your query and set you sail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 04:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661855#M614085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T04:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661856#M614086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with Fm's like F4IF_INT_TABLE_VALUE_REQUEST, F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.&lt;/P&gt;&lt;P&gt;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.&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 = field from int table whose value will be returned&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = internal table whose values will be shown.&lt;/P&gt;&lt;P&gt;RETURN_TAB = internal table of type DDSHRETVAL&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;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Babu Aluri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 04:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661856#M614086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T04:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661857#M614087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjana,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS s_burkst001-bukrs &lt;/P&gt;&lt;P&gt;  FOR &amp;lt;f&amp;gt; MATCHCODE OBJECT &amp;lt;search_help&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I hope thhe following code would help your problem.&lt;/P&gt;&lt;P&gt; Have a check with this code.&lt;/P&gt;&lt;P&gt; Reply Back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661857#M614087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: selection option help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661858#M614088</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 don't think what you require is possible. There are two options which you can implement:&lt;/P&gt;&lt;P&gt;1. You can let the user enter any value and then run a validation code whether the company code exists or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use F4 help for the field. This will save you of validation codes also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 06:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-help/m-p/2661858#M614088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T06:31:25Z</dc:date>
    </item>
  </channel>
</rss>

