<?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: Select Query : Weird Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337903#M1229740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go for SELECT..END SELECT and sue upto 1 rows clause in selct, it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 13:24:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T13:24:55Z</dc:date>
    <item>
      <title>Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337899#M1229736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting one weird issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I'm trying to fetch the data from one table based on non-primary key. I wanted only to select single field from that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In frontend if I try to see the data in table say T1. But in debugging mode I'm getting sy-subrc as 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample query is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE: T1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required Field: F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local variable: lv_var&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non-primary key = Fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For value : seg_value-f2. This field is same as type of T1-Fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select F1 from T1 into lv_var where Fn = seg_value-f2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337899#M1229736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337900#M1229737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use conversion routine to convert the value of field "seg_value-f2'  . &lt;/P&gt;&lt;P&gt;You can refer to table definition  of T1-&amp;gt; Field Fn-&amp;gt; Data Element-&amp;gt;Domain-&amp;gt;Conversion Routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is data type mismatch so row is not selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337900#M1229737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337901#M1229738</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;is lv_var is of type F1 of the table T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337901#M1229738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337902#M1229739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has to be internal converison problem , an example to this is the partners in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the table VBPA for different partners like sold to , ship to etc ...SH, WE , RE etc becomes different values internally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This difference you can notice in SE11 itself, while displaying the table entries you notice the value and when you double click on one record ,in the next screen you will see the internal value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mention the fieldname you are having problems , then you will get the converison function modules also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337902#M1229739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337903#M1229740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go for SELECT..END SELECT and sue upto 1 rows clause in selct, it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337903#M1229740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337904#M1229741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use converiosn routine for non-primary key Fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the conversion routine by checkind the domain of field Fn in table T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337904#M1229741</guid>
      <dc:creator>vishal_sharda2</dc:creator>
      <dc:date>2009-03-12T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query : Weird Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337905#M1229742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use conversion routine for that field 'seg_value-f2' before writing it into where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to domain of the field 'seg_value-f2'. And you can seeconv routine. Double click on it. And use the listed FM to convert the 'seg_value-f2' field to acceptable format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. for material (MATNR), we use conv routine as CONVERSION_EXIT_MATN1_INPUT. Here we pass matnr as input and get conerted matnr as output and then we can use it ion select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-weird-issue/m-p/5337905#M1229742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:33:42Z</dc:date>
    </item>
  </channel>
</rss>

