<?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: Problem in querying in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963201#M67924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;


data: begin of iresb occurs 100,
posnr like resb-posnr,
end of iresb.


select posnr from resb
          into corresponding fields of table iresb
            where vornr = '0010'
              and aufnr = '007200000100'.      " Conversion needed here
  loop at iresb.
    write: / iresb-posnr.
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2005 15:03:42 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-11T15:03:42Z</dc:date>
    <item>
      <title>Problem in querying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963197#M67920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to fetch all the values of POSNR for given values of AUFNR and VORNR from RESB.&lt;/P&gt;&lt;P&gt;Using databrowser in se11 I can query posnr on above condition and also can see the queried data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to write SQL statements in my report nothing gets fetched. I am wondering the way I am querying is wrong or what ?&lt;/P&gt;&lt;P&gt;(Also I get warning like VORNR may contain null values in where clause but it get activated. I guess this is not the problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZTF1.&lt;/P&gt;&lt;P&gt;TABLES: RESB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IRESB OCCURS 100,&lt;/P&gt;&lt;P&gt;      W_POSNR LIKE RESB-POSNR,&lt;/P&gt;&lt;P&gt;      END OF IRESB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT POSNR from RESB INTO IRESB-W_POSNR where VORNR = 0010 and AUFNR = 7200000100.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IRESB.&lt;/P&gt;&lt;P&gt;WRITE: / IRESB-W_POSNR.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2005 14:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963197#M67920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-11T14:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in querying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963198#M67921</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;The select is failing because there is a convertion exit for both these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For VORNR it is NUMCV and for AUFNR it is ALPHA. &lt;/P&gt;&lt;P&gt;You can get the corresponding function module by checking in SE37 ( &lt;STRONG&gt;NUMCV&lt;/STRONG&gt; and &lt;STRONG&gt;ALPHA&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the selection convert the values. The function modules are &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_NUMCV_INPUT &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2005 14:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963198#M67921</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-11T14:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in querying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963199#M67922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your SELECT you select only record for record and you put the result into the header line of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT posnr&lt;/P&gt;&lt;P&gt;      FROM RESB&lt;/P&gt;&lt;P&gt;      INTO TABLE IRESB&lt;/P&gt;&lt;P&gt;     WHERE VORNR = '0010'&lt;/P&gt;&lt;P&gt;       AND AUFNR = '720000100'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can loop over your internal table!.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963199#M67922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-11T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in querying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963200#M67923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT POSNR from RESB INTO IRESB-W_POSNR where VORNR = '0010' and AUFNR = '007200000100'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use FM 'CONVERSION_EXIT_ALPHA_OUTPUT' to convert AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetliin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963200#M67923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-11T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in querying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963201#M67924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;


data: begin of iresb occurs 100,
posnr like resb-posnr,
end of iresb.


select posnr from resb
          into corresponding fields of table iresb
            where vornr = '0010'
              and aufnr = '007200000100'.      " Conversion needed here
  loop at iresb.
    write: / iresb-posnr.
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-querying/m-p/963201#M67924</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-11T15:03:42Z</dc:date>
    </item>
  </channel>
</rss>

