<?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: data not showing when not defining PARAMETER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299736#M1533939</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;Reason is with parameter in select query.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER:
    S_ZUJHR LIKE ANLA-ZUJHR.   " Entered input is *SPACE*

 SELECT anlc~bukrs anlc~anln1 ANLC~ANLN2 ANLA~ZUJHR kansw nafaG PSTEND ANSWL ANLKL AKTIV
    INTO CORRESPONDING FIELDS OF TABLE gi_main
    FROM
    ANLC
    INNER JOIN ANLA ON
    anlc~bukrs = anla~bukrs AND
    anlc~anln1 = anla~anln1 AND
    ANLC~ANLN2 = ANLA~ANLN2
   WHERE ANLC~AFABE eq '01'
    AND ANLA~ZUJHR EQ S_ZUJHR        "  Only records having *ZUJHR* as space will be selected.
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Probably ur table ANLA is having no records with &lt;STRONG&gt;ZUJHR&lt;/STRONG&gt; as initial or space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 06:47:29 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2010-09-30T06:47:29Z</dc:date>
    <item>
      <title>data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299733#M1533936</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;i have created a report in which  i have define two Parametres i-e &lt;STRONG&gt;S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790'&lt;/STRONG&gt; and&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_ZUJHR LIKE ANLA-ZUJHR*.When i execute it by giving year &lt;STRONG&gt;2005&lt;/STRONG&gt;, &lt;STRONG&gt;2006&lt;/STRONG&gt;,&lt;STRONG&gt;2007&lt;/STRONG&gt; or &lt;STRONG&gt;2010&lt;/STRONG&gt;, it gives me data but when i execute it without defining any year it does'nt show me any data.Eventhough i have check in the table that there data when execute at table level.Could anybody identified my mistake.Following are the code for report:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;include zalsd_alv_incl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Define Tables
TABLES:ANEP,ANLA,ANLC.


SELECT-OPTIONS:
    S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790'.

PARAMETER:
    S_ZUJHR LIKE ANLA-ZUJHR.

DATA:BEGIN OF gi_anla OCCURS 0,
     bukrs  LIKE anla-bukrs,
     ANLN1  LIKE anla-ANLN1,
     ANLN2  LIKE anla-ANLN2,
     ZUJHR  LIKE anla-ZUJHR,"Fiscal Year
     AKTIV  LIKE ANLA-AKTIV,"Asset capitalization date
     ANLKL  LIKE ANLA-ANLKL,"Asset Class
     END OF gi_anla,


     BEGIN OF GI_ANLC OCCURS 0,
      bukrs  LIKE anlc-bukrs,
      NAFAP  LIKE anlc-nafag,"Posted Depreciation
      kansw  LIKE anlc-kansw,"Asset Acquisation Value
      ANLN2  LIKE anlc-anln2,"Asset Subnumber
      ANLN1  LIKE anlc-ANLN1,"Main Asset Number
      AFABE  LIKE ANLC-AFABE,"Real depreciation area
      ANSWL  LIKE ANLC-ANSWL,"Transactions for the year
     END OF GI_ANLC,

    BEGIN OF gi_main OCCURS 0,
     sno    type   i,       "S.No
     bukrs  LIKE anla-bukrs,"Company code
     ANLN1  LIKE anlc-ANLN1,"Main Asset Number
     anln2  LIKE anlc-anln2,"Asset Subnumber
     AKTIV  LIKE ANLA-AKTIV,"Asset capitalization date
     ANLKL  LIKE ANLA-ANLKL,"Asset Class
     ZUJHR  LIKE anla-ZUJHR,"Fiscal Year
     NAFAG  LIKE anlc-nafag,"Ordinary Depreciation Posted
     kansw  LIKE anlc-kansw,"Asset Acquisation Value
     PSTEND LIKE anlc-PSTEND,"Posting depreciation up to period
     AFABE  LIKE ANLC-AFABE,"Real depreciation area
     ANSWL  LIKE ANLC-ANSWL,"Transactions for the year
       END OF gi_main.

DATA: date_from TYPE d,
      date_to   TYPE d.

START-OF-SELECTION.
     PERFORM get_data.
     PERFORM organize_data.
     PERFORM f_display_report.
  END-OF-SELECTION.


form get_data.

  Data:
        lv_year(4) type n,
        lv_prvyear(4) type n,
        lv_datefrom type d,
        lv_dateto type d.

    move s_ZUJHR to lv_year.
    lv_prvyear = lv_year - 1.

    concatenate lv_prvyear '10' '01' into lv_datefrom.
    concatenate lv_year '09' '30' into lv_dateto.

  SELECT anlc~bukrs anlc~anln1 ANLC~ANLN2 ANLA~ZUJHR kansw nafaG PSTEND ANSWL ANLKL AKTIV
    INTO CORRESPONDING FIELDS OF TABLE gi_main
    FROM
    ANLC
    INNER JOIN ANLA ON
    anlc~bukrs = anla~bukrs AND
    anlc~anln1 = anla~anln1 AND
    ANLC~ANLN2 = ANLA~ANLN2
   WHERE ANLC~AFABE eq '01'
    AND ANLA~ZUJHR EQ S_ZUJHR
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.

    ENDFORM.

  FORM organize_data.

  data: lv_index type sy-tabix.


  LOOP at gi_anla.
  move sy-tabix to gi_main-sno.
    READ TABLE gi_anla WITH KEY bukrs = gi_anla-bukrs
                                anln1 = gi_anla-anln1
                                anln2 = gi_anla-anln2.
    MOVE-CORRESPONDING gi_anla to gi_main.

    READ TABLE gi_anlc WITH KEY bukrs = gi_anlc-bukrs
                                anln1 = gi_anlc-anln1
                                anln2 = gi_anlc-anln2.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING gi_anlc to gi_main.
    ENDIF.

    CLEAR gi_main.
 ENDLOOP.
    ENDFORM.

    form f_display_report.

  perform fill_fieldcat using 'SNO'       5    'S.No.' 'gi_main'.
  perform fill_fieldcat using 'ANLKL'     20   'Asset Class' 'gi_main'.
  perform fill_fieldcat using 'ANLN1'     20   'Asset Number' 'gi_main'.
  perform fill_fieldcat using 'ANLN2'     20   'Asset Subnumber' 'gi_main'.
  perform fill_fieldcat using 'AKTIV'     20   'Asset Capitalization Date' 'gi_main'.
  perform fill_fieldcat using 'KANSW'     20   'Asset Acquisation Value' 'gi_main'.
  perform fill_fieldcat using 'NAFAG'     20   'Posted Depreciation' 'gi_main'.
  perform fill_fieldcat using 'PSTEND'    20   'Posting depreciation up to period' 'gi_main'.
  perform fill_fieldcat using 'ANSWL'     20   'Transactions for the year' 'gi_main'.
  perform add_heading_alv using c_alv_head_header '' 'Ghulam Farooq Group'.
  perform display_alv using gi_main[].

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299733#M1533936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T06:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299734#M1533937</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;U have declare it as a parameter, that is why data is not coming. Declare it as select option for getting that o/p without giving value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_ZUJHR FOR ANLA-ZUJHR NO-EXTENSION NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitava&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amitava De on Sep 30, 2010 12:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299734#M1533937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T06:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299735#M1533938</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;This is FAQ. You've used this statement in the WHERE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ANLA~ZUJHR EQ S_ZUJHR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you don't pass any value to S_ZUJHR, the table is queried for &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ANLA~ZUJHR = space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &amp;amp; hence you don't get any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try defining the variable as a SELECT-OPTION:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: S_ZUJHR FOR ANLA-ZUJHR NO INTERVALS NO-EXTENSION.&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>Thu, 30 Sep 2010 06:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299735#M1533938</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-30T06:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299736#M1533939</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;Reason is with parameter in select query.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER:
    S_ZUJHR LIKE ANLA-ZUJHR.   " Entered input is *SPACE*

 SELECT anlc~bukrs anlc~anln1 ANLC~ANLN2 ANLA~ZUJHR kansw nafaG PSTEND ANSWL ANLKL AKTIV
    INTO CORRESPONDING FIELDS OF TABLE gi_main
    FROM
    ANLC
    INNER JOIN ANLA ON
    anlc~bukrs = anla~bukrs AND
    anlc~anln1 = anla~anln1 AND
    ANLC~ANLN2 = ANLA~ANLN2
   WHERE ANLC~AFABE eq '01'
    AND ANLA~ZUJHR EQ S_ZUJHR        "  Only records having *ZUJHR* as space will be selected.
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Probably ur table ANLA is having no records with &lt;STRONG&gt;ZUJHR&lt;/STRONG&gt; as initial or space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299736#M1533939</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-09-30T06:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299737#M1533940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change PARAMETER to SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: S_ZUJHR FOR ANLA-ZUJHR NO-EXTENSION NO INTERVALS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, change your select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT anlc~bukrs anlc~anln1 ANLC~ANLN2 ANLA~ZUJHR kansw nafaG PSTEND ANSWL ANLKL AKTIV
    INTO CORRESPONDING FIELDS OF TABLE gi_main
    FROM
    ANLC
    INNER JOIN ANLA ON
    anlc~bukrs = anla~bukrs AND
    anlc~anln1 = anla~anln1 AND
    ANLC~ANLN2 = ANLA~ANLN2
   WHERE ANLC~AFABE eq '01'
    AND ANLA~ZUJHR IN S_ZUJHR   "changed from EQ to IN
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299737#M1533940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T06:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299738#M1533941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amitava De,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with &lt;STRONG&gt;S_ZUJHR FOR ANLA-ZUJHR&lt;/STRONG&gt; but still the data is not coming and the interval which im defining as a DEFAULT value &lt;STRONG&gt;1100&lt;/STRONG&gt; to &lt;STRONG&gt;2790&lt;/STRONG&gt; is my requirement and i also check it in SE11 table with the same interval it has data.Even though i also check the data wtihout defining any &lt;STRONG&gt;SELECTION-OPTION&lt;/STRONG&gt; (when i'm using my PARAMETER as a SELECTION-OPTION) but still it does'nt show me any data.Kindly check and tell any other possibility for not getting data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;abapfk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299738#M1533941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T06:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299739#M1533942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapGenin,&lt;/P&gt;&lt;P&gt;i have used my &lt;STRONG&gt;PARAMETER&lt;/STRONG&gt; as &lt;STRONG&gt;SELECTION-OPTION&lt;/STRONG&gt; as under:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS:
    S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790',
    S_ZUJHR FOR ANLA-ZUJHR NO INTERVALS NO-EXTENSION.	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also used &lt;STRONG&gt;IN&lt;/STRONG&gt; expression insetead of &lt;STRONG&gt;EQ&lt;/STRONG&gt; in ANLA~ZUJHR IN s_zujhr as under&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT anlc~bukrs anlc~anln1 ANLC~ANLN2 ANLA~ZUJHR kansw nafaG PSTEND ANSWL ANLKL AKTIV
    INTO CORRESPONDING FIELDS OF TABLE gi_main
    FROM
    ANLC
    INNER JOIN ANLA ON
    anlc~bukrs = anla~bukrs AND
    anlc~anln1 = anla~anln1 AND
    ANLC~ANLN2 = ANLA~ANLN2
   WHERE  ANLC~AFABE eq '01'
    AND   ANLA~ZUJHR IN s_zujhr
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but still data is not coming.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;abapfk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299739#M1533942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299740#M1533943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any body tell me any other possibilites of not getting error.Even though also used &lt;STRONG&gt;SPACE&lt;/STRONG&gt; as under:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ANLA~ZUJHR eq space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;abapfk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299740#M1533943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299741#M1533944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Assuming everything else is correct the following is the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;    S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field ANLA-ANLKL is of type CHAR8. So the actual data in the tables would be something like '00001100' and '00002790'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value you are providing is 4 characters long ('1100' and '2790'). This is caussing the SELECT query to fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution: While defaulting the Selection Option (S_ANLKL) you should add 4 zeros as the prefix to the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Barada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299741#M1533944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: data not showing when not defining PARAMETER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299742#M1533945</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;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AND   ANLA~ZUJHR IN s_zujhr
    AND   ANLA~ANLKL in S_ANLKL
    AND   ANLA~AKTIV between lv_datefrom and lv_dateto.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the values in &lt;STRONG&gt;lv_datefrom&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;lv_dateto&lt;/STRONG&gt;? Are you sure there are entries available in ANLA based on the Search Query you're providing in the SELECT statement?&lt;/P&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>Thu, 30 Sep 2010 07:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-showing-when-not-defining-parameter/m-p/7299742#M1533945</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-30T07:46:52Z</dc:date>
    </item>
  </channel>
</rss>

