<?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: Query problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138638#M989602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the length difference is there.&lt;/P&gt;&lt;P&gt;i mean P_KOSTL is just 6 characters only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you are passing this into kostl which is 10 characters length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so definitely it will fail. check in the table CSKS also&lt;/P&gt;&lt;P&gt;like whether data is there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both the fields are of same lenght and type then you will get the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 17:32:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T17:32:23Z</dc:date>
    <item>
      <title>Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138635#M989599</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;&lt;/P&gt;&lt;P&gt;I want to get three data from csks table: like below&lt;/P&gt;&lt;P&gt;        TELFX, TELTX, TELX1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put in selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: P_KOKRS like COBK-KOKRS.&lt;/P&gt;&lt;P&gt;parameters: P_KOSTL like coej-objnr+10(6) obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i create internal table like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF I_CSKS,&lt;/P&gt;&lt;P&gt;        TELFX like CSKS-TELFX,&lt;/P&gt;&lt;P&gt;        TELTX like CSKS-TELTX,&lt;/P&gt;&lt;P&gt;        TELX1 like CSKS-TELX1,&lt;/P&gt;&lt;P&gt;      END OF I_CSKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: W_CSKS TYPE STANDARD TABLE OF I_CSKS  WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my query like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select TELFX  TELTX TELX1 from csks INTO TABLE w_CSKS&lt;/P&gt;&lt;P&gt;  WHERE KOKRS = P_KOKRS&lt;/P&gt;&lt;P&gt;   and kostl = P_KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run the program everytime its fail.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138635#M989599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138636#M989600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Change it like this:&lt;/P&gt;&lt;P&gt;parameters: P_KOSTL like coej-objnr obligatory.&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 TELFX TELTX TELX1 from csks INTO TABLE w_CSKS&lt;/P&gt;&lt;P&gt;WHERE KOKRS = P_KOKRS&lt;/P&gt;&lt;P&gt;and kostl = P_KOSTL+10(6).&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138636#M989600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138637#M989601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that for the parameter combination you enter on the selection screen there is at least one entry in the underlying table (check with SE16). If you leave the first parameter empty (P_KOKRS) it will select only those entries from the table where this field is empty as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138637#M989601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138638#M989602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the length difference is there.&lt;/P&gt;&lt;P&gt;i mean P_KOSTL is just 6 characters only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you are passing this into kostl which is 10 characters length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so definitely it will fail. check in the table CSKS also&lt;/P&gt;&lt;P&gt;like whether data is there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both the fields are of same lenght and type then you will get the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138638#M989602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138639#M989603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your parameters shoub be in the same type as in CSKS table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I your particular case, P_KOSTL has to have lenght 10, because KOSTK is Char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had wroten the code it would looj like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_KOKRS like CSKS-KOKRS,&lt;/P&gt;&lt;P&gt;                         P_KOSTL like CSKS-KOSTL OBLIGATORY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138639#M989603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138640#M989604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks solvd problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/4138640#M989604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T17:52:35Z</dc:date>
    </item>
  </channel>
</rss>

