<?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: Possible Values List for Database Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134286#M112629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_DYNAMIC  NO STANDARD PAGE HEADING                         .


PARAMETERS: TABL TYPE DD03L-TABNAME,
            FLD TYPE DD03L-FIELDNAME.

DATA: BEGIN OF ITAB OCCURS 0,
       CHAR(20),
      END OF ITAB.
DATA: CHECKTABLE LIKE DD03L-CHECKTABLE,
      DOMNAME LIKE DD03L-DOMNAME.

START-OF-SELECTION.
  SELECT SINGLE CHECKTABLE
               INTO CHECKTABLE
               FROM DD03L
               WHERE TABNAME = TABL
                AND FIELDNAME = FLD.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    SELECT SINGLE DOMNAME
                  INTO DOMNAME
                 FROM DD03L
          WHERE TABNAME = TABL
                AND FIELDNAME = FLD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      SELECT (FLD)
           INTO TABLE ITAB
           FROM (TABL).
      IF SY-SUBRC = 0.

      ENDIF.
    ELSE.
      "get the check table value
      "select the data from check table
    ENDIF.
  ELSE.
    "call this FM get domain values DDUT_DOMVALUES_GET
  ENDIF.

END-OF-SELECTION.
"now based on data availability you show the data of checktable/domain fixed values/table&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2006 10:40:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-24T10:40:48Z</dc:date>
    <item>
      <title>Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134279#M112622</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 have a requirement where on the selection screen, I give a Table(Infotype) name and Field name.&lt;/P&gt;&lt;P&gt;The report has to show the list of all Possible values for this particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Value List should be similar to the list available with F4 in SE16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could debug the FMs, "DD_SHLP_CALL_FROM_DYNP", "HELP_START" etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, therez a lot of standard code. &lt;/P&gt;&lt;P&gt;I just wanted to check out if there is a simple method of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suryakiran D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 07:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134279#M112622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T07:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134280#M112623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sample code is given below...the FM u have to use is F4IF_INT_TABLE_VALUE_REQUEST.. First select data using proper query into your internal table and then paass this internal table along with selection-screen field name to FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT EXIDV FROM VEKP AS A&lt;/P&gt;&lt;P&gt;               INNER JOIN VEPO AS B ON A&lt;SUB&gt;VENUM EQ B&lt;/SUB&gt;VENUM&lt;/P&gt;&lt;P&gt;               INTO TABLE IT_EXIDV&lt;/P&gt;&lt;P&gt;               WHERE B~VBELN EQ L_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM IT_EXIDV.&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    = 'EXIDV'&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 = 'EXIDV-LOW'&lt;/P&gt;&lt;P&gt;            VALUE_ORG   = 'S'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            VALUE_TAB   = IT_EXIDV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your selection-screen field is non Data-dictionary Field then logic of getting F4 help for it goes follwing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;FORM get_input_help USING ret_val CHANGING s_status_value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab_values OCCURS 0, &lt;/P&gt;&lt;P&gt;      key TYPE tdhyphenat, &lt;/P&gt;&lt;P&gt;      value TYPE tdobject, &lt;/P&gt;&lt;P&gt;      END OF itab_values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'a'  TO itab_values-key, &lt;/P&gt;&lt;P&gt;         'Drive' TO itab_values-value. &lt;/P&gt;&lt;P&gt;  APPEND itab_values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'b' TO itab_values-key, &lt;/P&gt;&lt;P&gt;        'Stop' TO itab_values-value. &lt;/P&gt;&lt;P&gt;  APPEND itab_values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'c' TO itab_values-key, &lt;/P&gt;&lt;P&gt;  'Accelarate' TO itab_values-value. &lt;/P&gt;&lt;P&gt;  APPEND itab_values. &lt;/P&gt;&lt;P&gt;&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   = ret_val &lt;/P&gt;&lt;P&gt;      value_org  = 'S' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      value_tab  = itab_values &lt;/P&gt;&lt;P&gt;      return_tab = itab_return. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;    READ TABLE itab_return INDEX 1. &lt;/P&gt;&lt;P&gt;    READ TABLE itab_values WITH KEY value = itab_return-fieldval. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    s_status_value = itab_values-key. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR itab_values. &lt;/P&gt;&lt;P&gt;  REFRESH itab_values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_input_help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: kaushal malavia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 07:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134280#M112623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134281#M112624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suryakrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ur report, if the field already has a search help available then u can code it as&lt;/P&gt;&lt;P&gt;select-options &amp;lt;sass&amp;gt; matchcode object &amp;lt;mobj&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u don't have search help then u can code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screen on value-request for &amp;lt;abc&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 08:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134281#M112624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T08:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134282#M112625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code check it..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_DYNAMIC  no standard page heading                         .


parameters: tabl type DD03L-tabname,
            fld type dd03l-FIELDNAME.

data: begin of itab occurs 0,
       char(20),
      end of itab.

start-of-selection.

         select (fld)
              into table itab
              from (tabl).
              if sy-subrc = 0.

              endif.
end-of-selection.
write: tabl.
write:/ fld.
loop at itab.

write: / ITAB-char.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 08:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134282#M112625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134283#M112626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I say, Table: PA0000, Field: STAT2, I get the List of Possible Values from the Check Table T529U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not necessary that PA0000 has all the values of STAT2 in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some Cases, I have to get the List of Possible values from the Value Table in the Domains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some cases, I have to get from the Search Helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, I have no entries in PA0000,&lt;/P&gt;&lt;P&gt;Even then, if I go to SE16 and do an F4 on Stat2 field, I get a list of Possible Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this list to be displayed on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suryakiran D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 08:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134283#M112626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T08:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134284#M112627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if u press F4 on stat2 field in SE16 of PA0000 and the table is blank then also u will get the values from T529U only. As u said u were debugging the program when F4 is pressed, if u just do it again and when u reach HELP_START line 56 &lt;/P&gt;&lt;P&gt;if help_infos-call = 'T' or  "Alle Arten von Prüftabellen&lt;/P&gt;&lt;P&gt;help_infos-call = 'M' or     "Matchcode-Hilfe&lt;/P&gt;&lt;P&gt;help_infos-call = 'V'.       "Festwerte (Domäne oder VALUES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it takes T which is indicating check table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if ur req is something other than accessing this check table I would suggest u write ur own code in AT selection-screen on value-request for stat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 09:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134284#M112627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134285#M112628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its not just STA2. The decision on the Source of Possible List is not fixed. It depends on the Field requested. And, HELP_START shows a dialog in between. I dont want a dialog, I just need a List of all the possible values, say in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, HELP_START is not working for P0181-ADID1. Please suggest what extra information to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suryakiran D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 09:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134285#M112628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T09:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values List for Database Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134286#M112629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_DYNAMIC  NO STANDARD PAGE HEADING                         .


PARAMETERS: TABL TYPE DD03L-TABNAME,
            FLD TYPE DD03L-FIELDNAME.

DATA: BEGIN OF ITAB OCCURS 0,
       CHAR(20),
      END OF ITAB.
DATA: CHECKTABLE LIKE DD03L-CHECKTABLE,
      DOMNAME LIKE DD03L-DOMNAME.

START-OF-SELECTION.
  SELECT SINGLE CHECKTABLE
               INTO CHECKTABLE
               FROM DD03L
               WHERE TABNAME = TABL
                AND FIELDNAME = FLD.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    SELECT SINGLE DOMNAME
                  INTO DOMNAME
                 FROM DD03L
          WHERE TABNAME = TABL
                AND FIELDNAME = FLD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      SELECT (FLD)
           INTO TABLE ITAB
           FROM (TABL).
      IF SY-SUBRC = 0.

      ENDIF.
    ELSE.
      "get the check table value
      "select the data from check table
    ENDIF.
  ELSE.
    "call this FM get domain values DDUT_DOMVALUES_GET
  ENDIF.

END-OF-SELECTION.
"now based on data availability you show the data of checktable/domain fixed values/table&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 10:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-values-list-for-database-fields/m-p/1134286#M112629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T10:40:48Z</dc:date>
    </item>
  </channel>
</rss>

