<?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: Parameter not working at Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248101#M1527217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please first press &lt;STRONG&gt;F1 on Select-options&lt;/STRONG&gt; and read its properties.&lt;/P&gt;&lt;P&gt;Basically Select-options will fetch all vlaues from table if nothing is entered in Selection screen.&lt;/P&gt;&lt;P&gt;But for Parameters, when nothing is entered in Selection screen, it will consider space as a value for fetching values from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2010 09:59:14 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2010-09-15T09:59:14Z</dc:date>
    <item>
      <title>Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248096#M1527212</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 there are Parameters.There is a &lt;STRONG&gt;Parameter&lt;/STRONG&gt; when im executing the report it is not working.When i execute the report it gives me all the data instead of given me the selected data which is being define in parameters.Following are tho code for parametrs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTION
s_submi FOR ekko-submi,


FORM get_data .

    SELECT DISTINCT submi BSTYP ebeln lifnr
     FROM ekko
     INTO CORRESPONDING FIELDS OF TABLE gi_ekko
     WHERE   ekorg  eq p_ekorg
      AND    ebeln  IN s_ebeln
     AND     ekko~lifnr  IN s_lifnr
     AND     submi  in s_submi
     AND     spras = 'E'.
ENDFORM.

FORM orgdata.  
READ TABLE gi_ekko WITH KEY ebeln = gi_ekko-ebeln.
  MOVE gi_ekko-ebeln to gi_main-ebeln.
  MOVE gi_ekko-ekorg to gi_main-ekorg.
  MOVE gi_ekko-BSTYP to gi_main-BSTYP.
  MOVE gi_ekko-submi to gi_main-submi.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248096#M1527212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T09:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248097#M1527213</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;Its very tough to find out here without knowing the input your select query is trying to hit EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to cross verify if the select query is returning correct values, just go to EKKO table &amp;amp; input the values you are passing in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248097#M1527213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248098#M1527214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Are you sure that data you are entering into parameters has value in Database table EKKO.To check this go to SE11 enter table name as EKKO ,pass EKORG(Purchase Org) and check you have any entries for the entered EKORG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248098#M1527214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248099#M1527215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also post how you declare your p_ekorg parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in your read statement "READ TABLE gi_ekko WITH KEY ebeln = gi_ekko-ebeln.", notice that you're reading table gi_ekko using that same table as your where condition (gi_ekko-ebeln). Do some debugging first in yor coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248099#M1527215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T09:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248100#M1527216</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;First check whether the data you are inputing through the selection screen is perfectly storing in that parameter by putting break-point in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is filling correctly in all the input fields  then You should cosider the conversion routines before fetching the data from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. Ebeln Field is having a conversion routine - ALPHA (Check the domain).&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;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248100#M1527216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248101#M1527217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please first press &lt;STRONG&gt;F1 on Select-options&lt;/STRONG&gt; and read its properties.&lt;/P&gt;&lt;P&gt;Basically Select-options will fetch all vlaues from table if nothing is entered in Selection screen.&lt;/P&gt;&lt;P&gt;But for Parameters, when nothing is entered in Selection screen, it will consider space as a value for fetching values from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248101#M1527217</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-09-15T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248102#M1527218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types : begin of w_ekko ,&lt;/P&gt;&lt;P&gt;            SUBMI type ekko-submi ,&lt;/P&gt;&lt;P&gt;           bstyp type ekko-bstyp ,&lt;/P&gt;&lt;P&gt;           ebeln  type ekko-ebeln  ,&lt;/P&gt;&lt;P&gt;          lifnr type ekko-lifnr  ,&lt;/P&gt;&lt;P&gt;         end of w_ekko .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_ekko type standard table of w_ekko with header line  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : p_ekorg  type  ekko-ekorg   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_lifnr for ekko-lifnr  ,&lt;/P&gt;&lt;P&gt;                          s_ebeln for ekko-ebeln  ,&lt;/P&gt;&lt;P&gt;                          s_submi for ekko-submi  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln submi lifnr  bstyp &lt;/P&gt;&lt;P&gt; from ekko into corresponding fields of table it_ekko .&lt;/P&gt;&lt;P&gt;where  lifnr   in s_lifnr &lt;/P&gt;&lt;P&gt;and      ebeln in s_ebeln  .&lt;/P&gt;&lt;P&gt;and     submi  in s_submi &lt;/P&gt;&lt;P&gt;and ekorg  = p_ekorg &lt;/P&gt;&lt;P&gt; AND     spras = 'EN'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But see that when you are using  EQ in where condition   , value should be passed otherwise no data will be selected &lt;/P&gt;&lt;P&gt;now you can use this  and filter data according to your requirment  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;allways use naming conventions  which can be understood easily  .&lt;/P&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;Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepak Dhamat on Sep 15, 2010 12:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 10:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248102#M1527218</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-09-15T10:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248103#M1527219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;As you are selecting  distinct values, so may be possible for your conditions there is no data in table EKKO.&lt;/P&gt;&lt;P&gt;So First check in debiggung if you are getting the data in GI_EKKO table or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Form orgdata.&lt;/P&gt;&lt;P&gt;always check your table is initial or not before reading the table and use binary search in READ Table statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you hae defined your table with headerline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Instead of EKKO~lifnr you can write only lifnr.&lt;/P&gt;&lt;P&gt;2. write SPRAS = 'EN', instead of E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248103#M1527219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248104#M1527220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepak,&lt;/P&gt;&lt;P&gt;i have tried ur coding which you have sent me but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you hjave any other suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 10:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248104#M1527220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T10:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248105#M1527221</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; First tell me &lt;/P&gt;&lt;P&gt;1) how you have declared your parameter   .&lt;/P&gt;&lt;P&gt;2)  what you want  from ekko  &lt;/P&gt;&lt;P&gt;3)  what you want to do using that  ekko table   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste Complete Code  " but see that there is limitaion to paste code in SDN  "  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so tell your probelm Preciesly  and clearly  .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 11:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248105#M1527221</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-09-15T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter not working at Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248106#M1527222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;This is my coding for EKKO table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT submi BSTYP ebeln lifnr  MAX( bedat )
     FROM    ekko
     INTO CORRESPONDING FIELDS OF TABLE   gi_ekko
     WHERE   ekorg  eq p_ekorg
     AND     ebeln  IN s_ebeln
     AND     submi  in s_submi
     and     ekorg  eq p_ekorg
     AND     spras = 'E'
     GROUP BY submi BSTYP ebeln lifnr bedat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for Parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_ekorg  type   ekko-ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS:
s_ebeln FOR ekko-ebeln,
s_submi FOR ekko-submi,
s_lifnr FOR ekko-lifnr,
s_anfnr FOR ekpo-anfnr,
s_matnr FOR ekpo-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using EKKO table because i want to display &lt;STRONG&gt;EBELN&lt;/STRONG&gt;, &lt;STRONG&gt;LIFNR&lt;/STRONG&gt; only frm &lt;STRONG&gt;EKKO&lt;/STRONG&gt; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sapabappk on Sep 18, 2010 1:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Sep 2010 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-not-working-at-report/m-p/7248106#M1527222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-18T10:43:08Z</dc:date>
    </item>
  </channel>
</rss>

