<?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 Regarding Select without Where clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190568#M1625189</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;we have below code for F4HELP on invoice input field.&lt;/P&gt;&lt;P&gt;you can see Select statement used without Where condition to fetch records from Ztable.&lt;/P&gt;&lt;P&gt;and deleting the duplicating records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCI error says,"Large table : it has no where condition. /No field of a table index in WHERE condition.&lt;/P&gt;&lt;P&gt;Is this potential problem?&lt;/P&gt;&lt;P&gt;How to handle this generally? does where condtion is must to use in Select statement.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ZIVCNO-LOW.

* Search help setting of uFF62Invoice numberuFF63
  PERFORM F_F4HELP_RSTYP CHANGING S_ZIVCNO-LOW.


FORM F_F4HELP_RSTYP  CHANGING C_V_INVCNO TYPE ZGTSDE_ZIVCNO."Invoice number

  DATA:
*   Work area for Return the selected value
    WL_F4RETURN  TYPE DDSHRETVAL,
*   Internal table for Return the selected value
    TL_F4RETURN  TYPE STANDARD TABLE OF DDSHRETVAL,
*   Internal table for Processing result
    TL_INVOICE   TYPE TABLE OF TYP_INVOICE.

  SELECT ZIVCNO
  FROM   ZGTSDT01
  INTO   TABLE TL_INVOICE.

  CHECK TL_INVOICE[] IS NOT INITIAL.
  DELETE ADJACENT DUPLICATES FROM TL_INVOICE.


*  Search help is started
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD        = CG_FIELD_INVCNO   " Packing No
      VALUE_ORG       = CG_VALUE_S       " Value return
    TABLES
      VALUE_TAB       = TL_INVOICE       " Table of values
      RETURN_TAB      = TL_F4RETURN      " Return the selected value
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS          = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 08:37:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-05T08:37:53Z</dc:date>
    <item>
      <title>Regarding Select without Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190568#M1625189</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;we have below code for F4HELP on invoice input field.&lt;/P&gt;&lt;P&gt;you can see Select statement used without Where condition to fetch records from Ztable.&lt;/P&gt;&lt;P&gt;and deleting the duplicating records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCI error says,"Large table : it has no where condition. /No field of a table index in WHERE condition.&lt;/P&gt;&lt;P&gt;Is this potential problem?&lt;/P&gt;&lt;P&gt;How to handle this generally? does where condtion is must to use in Select statement.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ZIVCNO-LOW.

* Search help setting of uFF62Invoice numberuFF63
  PERFORM F_F4HELP_RSTYP CHANGING S_ZIVCNO-LOW.


FORM F_F4HELP_RSTYP  CHANGING C_V_INVCNO TYPE ZGTSDE_ZIVCNO."Invoice number

  DATA:
*   Work area for Return the selected value
    WL_F4RETURN  TYPE DDSHRETVAL,
*   Internal table for Return the selected value
    TL_F4RETURN  TYPE STANDARD TABLE OF DDSHRETVAL,
*   Internal table for Processing result
    TL_INVOICE   TYPE TABLE OF TYP_INVOICE.

  SELECT ZIVCNO
  FROM   ZGTSDT01
  INTO   TABLE TL_INVOICE.

  CHECK TL_INVOICE[] IS NOT INITIAL.
  DELETE ADJACENT DUPLICATES FROM TL_INVOICE.


*  Search help is started
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD        = CG_FIELD_INVCNO   " Packing No
      VALUE_ORG       = CG_VALUE_S       " Value return
    TABLES
      VALUE_TAB       = TL_INVOICE       " Table of values
      RETURN_TAB      = TL_F4RETURN      " Return the selected value
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS          = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 08:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190568#M1625189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-05T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select without Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190569#M1625190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SCi indiacates this error when there is no where clause. If your need is to eliminate this the n create a search help in SE11 and call it in your program.  Check with your concerned person about this ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 08:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190569#M1625190</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-05T08:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select without Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190570#M1625191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your F4 help on your selection-screen is independent, create a custom search help as suggested by Keshav. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a suggestion Instead of,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ZIVCNO
  FROM   ZGTSDT01
  INTO   TABLE TL_INVOICE.
 
  CHECK TL_INVOICE[] IS NOT INITIAL.
  DELETE ADJACENT DUPLICATES FROM TL_INVOICE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT(ZIVCNO)
  FROM   ZGTSDT01
  INTO   TABLE TL_INVOICE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 09:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-without-where-clause/m-p/8190570#M1625191</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-05T09:18:36Z</dc:date>
    </item>
  </channel>
</rss>

