<?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 Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911233#M937788</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;Sorry for typo error. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field AUART is in VBAK table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I did not get my answer. I think UNPACK command is generally used for Numeric type value. The field AUART is having type CHAR(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, UNPACK command will not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I tried using conversion exit. But it is also not helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestion pls....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 09:11:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-06T09:11:56Z</dc:date>
    <item>
      <title>Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911227#M937782</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 have one query. I am trying to fetch the records from VBAK &amp;amp; VBAP table based on some condition as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A&lt;SUB&gt;VBELN A&lt;/SUB&gt;KUNNR B~POSNR &lt;/P&gt;&lt;P&gt;             B&lt;SUB&gt;MATNR B&lt;/SUB&gt;WERKS B~LGORT INTO TABLE ITAB FROM VBAP AS A &lt;/P&gt;&lt;P&gt;INNER JOIN VBAP AS B ON A&lt;SUB&gt;VBELN = B&lt;/SUB&gt;VBELN &lt;/P&gt;&lt;P&gt;WHERE A~VKORG IN S_VKORG &lt;/P&gt;&lt;P&gt;AND A~AUART = 'OR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here I am not getting any value in my internal table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is due to reason that order type AUART having 4 length &amp;amp; I am passing in my select query as 'OR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I tried to pass as '00OR' but still I am not getting value in ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database table having records for this selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion to resolve this issue i.e. What I need to do for order type in where clause??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911227#M937782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911228#M937783</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_field LIKE VBAP-AUART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNPACK 'OR' TO i_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use i_field as a param in the where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911228#M937783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911229#M937784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you mention in your select query as &lt;STRONG&gt;AND A~AUART = 'OR'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and A is denote to VBAP am afraid to say in VBAP doesnt have AUART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you need to write like as &lt;STRONG&gt;AND B~AUART = 'OR'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please mark if solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911229#M937784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911230#M937785</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; there is an internal conversion routine for the data element AUART,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass value "TA" instead of "OR" as it is internally converted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the database table you will get ti easily &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AUART_INPUT  &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AUART_OUTPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull,&lt;/P&gt;&lt;P&gt;Taher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911230#M937785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911231#M937786</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;&lt;/P&gt;&lt;P&gt;Use Function module CONVERSION_EXIT_AUART_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the conversion exit for AUART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards....if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohit Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911231#M937786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911232#M937787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHANGE THE CODE IN THIS WAY U WILL GET IT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT A~VBELN A~KUNNR B~POSNR
B~MATNR B~WERKS B~LGORT INTO TABLE ITAB FROM VBAK AS A
INNER JOIN VBAP AS B ON A~VBELN = B~VBELN
WHERE A~VKORG IN S_VKORG
AND A~AUART = 'OR'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911232#M937787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911233#M937788</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;Sorry for typo error. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field AUART is in VBAK table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I did not get my answer. I think UNPACK command is generally used for Numeric type value. The field AUART is having type CHAR(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, UNPACK command will not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I tried using conversion exit. But it is also not helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestion pls....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911233#M937788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911234#M937789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with '  OR' (2 spaces and then 2 chars), it should work. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Tapas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911234#M937789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911235#M937790</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;Just transfer the values into corresponding fields of table itab and you will get values depending on the condition which matches both VKORG and the hard coded AUART value which is gvien in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try this and u will get the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not, reply me i will try to help u out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911235#M937790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911236#M937791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just test other parts of your query by selecting all records (remove the condition for AUART)....then you can delete the records where AUART NE 'OR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rest is ok...we can go further in finding out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Priyank Jain on Jun 6, 2008 5:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911236#M937791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911237#M937792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please close this thread i think you got sufficient ans regarding same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think might be in your system this query doesn't fetch any data &lt;/P&gt;&lt;P&gt;because may be no DATA is there in particulates field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cant check this to our system because data is useless to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but your query looks fine to us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just now try to find whether data exist or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911237#M937792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911238#M937793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)FIRST CHECK TABLE FIRST WHETHER THEY HAVE DATA OR NOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) YOU GIVEN VBAP TWICE(CORRECT IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIVE VBAP AND VBAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)CHECK WITH THERE IS ANY RECORD MATCHING THESE CONDITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3911238#M937793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T09:53:55Z</dc:date>
    </item>
  </channel>
</rss>

