<?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 select statement not working properly.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136984#M113384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a problem....this is in an interface... i'll download the data from SAP to a flat file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the code like this...it is not working properly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_md occurs 0,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       component like stpo-idnrk,&lt;/P&gt;&lt;P&gt;       mguide like stpo-idnrk,&lt;/P&gt;&lt;P&gt;       ...................&lt;/P&gt;&lt;P&gt;      end of i_md.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_md2 occurs 0,&lt;/P&gt;&lt;P&gt;       idnrk like stpo-idnrk,&lt;/P&gt;&lt;P&gt;      end of i_md2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str1(2) type c value 'O',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'OP',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'M',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'MP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   .......................................&lt;/P&gt;&lt;P&gt;    ....................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform get_component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt; ..............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_component.                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not i_md[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     select d~idnrk into i_md2-idnrk&lt;/P&gt;&lt;P&gt;            from stpo as d&lt;/P&gt;&lt;P&gt;           inner join stko as c&lt;/P&gt;&lt;P&gt;                 on d&lt;SUB&gt;stlnr = c&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;           inner join mast as b&lt;/P&gt;&lt;P&gt;                 on c&lt;SUB&gt;stlnr = b&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;           inner join mara as a&lt;/P&gt;&lt;P&gt;                 on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;           for all entries IN i_md&lt;/P&gt;&lt;P&gt;               where a~matnr = i_mdata-matnr&lt;/P&gt;&lt;P&gt;                     and ( a~matkl = 'OST' or&lt;/P&gt;&lt;P&gt;                           a~matkl = 'OSP' )&lt;/P&gt;&lt;P&gt;                     and ( a~mtart = 'FERT' or&lt;/P&gt;&lt;P&gt;                           a~mtart = 'HAWA' )&lt;/P&gt;&lt;P&gt;                     and c~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;     endselect.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if ( i_md2-idnrk cs str1 ) or ( i_md2-idnrk cs str2 ).&lt;/P&gt;&lt;P&gt;           write i_md2-idnrk to i_md-component&lt;/P&gt;&lt;P&gt;                                     no-zero left-justified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    elseif ( i_md2-idnrk cs str3 ) or ( i_md2 cs str4 ).&lt;/P&gt;&lt;P&gt;           write i_md2-idnrk to i_md-mguide&lt;/P&gt;&lt;P&gt;                                     no-zero left-justified.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               "get_component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ...................................&lt;/P&gt;&lt;P&gt;   ......................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; transfer i_md to file1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ........................&lt;/P&gt;&lt;P&gt;         .....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is: when i debug the program for the form     &amp;lt;b&amp;gt;"get_component"&amp;lt;/b&amp;gt;, i could able to see the material numbers, but there is nothing coming up for the fields : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_md-component and i_md-mguide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you plz tell me wt is the problem.?&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, 25 Jan 2006 20:57:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-25T20:57:27Z</dc:date>
    <item>
      <title>select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136984#M113384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a problem....this is in an interface... i'll download the data from SAP to a flat file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the code like this...it is not working properly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_md occurs 0,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       component like stpo-idnrk,&lt;/P&gt;&lt;P&gt;       mguide like stpo-idnrk,&lt;/P&gt;&lt;P&gt;       ...................&lt;/P&gt;&lt;P&gt;      end of i_md.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_md2 occurs 0,&lt;/P&gt;&lt;P&gt;       idnrk like stpo-idnrk,&lt;/P&gt;&lt;P&gt;      end of i_md2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str1(2) type c value 'O',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'OP',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'M',&lt;/P&gt;&lt;P&gt;      str1(2) type c value 'MP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   .......................................&lt;/P&gt;&lt;P&gt;    ....................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform get_component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt; ..............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_component.                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not i_md[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     select d~idnrk into i_md2-idnrk&lt;/P&gt;&lt;P&gt;            from stpo as d&lt;/P&gt;&lt;P&gt;           inner join stko as c&lt;/P&gt;&lt;P&gt;                 on d&lt;SUB&gt;stlnr = c&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;           inner join mast as b&lt;/P&gt;&lt;P&gt;                 on c&lt;SUB&gt;stlnr = b&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;           inner join mara as a&lt;/P&gt;&lt;P&gt;                 on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;           for all entries IN i_md&lt;/P&gt;&lt;P&gt;               where a~matnr = i_mdata-matnr&lt;/P&gt;&lt;P&gt;                     and ( a~matkl = 'OST' or&lt;/P&gt;&lt;P&gt;                           a~matkl = 'OSP' )&lt;/P&gt;&lt;P&gt;                     and ( a~mtart = 'FERT' or&lt;/P&gt;&lt;P&gt;                           a~mtart = 'HAWA' )&lt;/P&gt;&lt;P&gt;                     and c~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;     endselect.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if ( i_md2-idnrk cs str1 ) or ( i_md2-idnrk cs str2 ).&lt;/P&gt;&lt;P&gt;           write i_md2-idnrk to i_md-component&lt;/P&gt;&lt;P&gt;                                     no-zero left-justified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    elseif ( i_md2-idnrk cs str3 ) or ( i_md2 cs str4 ).&lt;/P&gt;&lt;P&gt;           write i_md2-idnrk to i_md-mguide&lt;/P&gt;&lt;P&gt;                                     no-zero left-justified.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               "get_component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ...................................&lt;/P&gt;&lt;P&gt;   ......................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; transfer i_md to file1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ........................&lt;/P&gt;&lt;P&gt;         .....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is: when i debug the program for the form     &amp;lt;b&amp;gt;"get_component"&amp;lt;/b&amp;gt;, i could able to see the material numbers, but there is nothing coming up for the fields : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_md-component and i_md-mguide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you plz tell me wt is the problem.?&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, 25 Jan 2006 20:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136984#M113384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136985#M113385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That form really doesn't make any sense to me.  You are doing a SELECT ENDSELECT and putting value into I_MD2-IDNRK..   But you are also using FOR ALL ENTRIES in I_MD.  Do you want to get a single component, mulitple? what?&lt;/P&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>Wed, 25 Jan 2006 21:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136985#M113385</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-25T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136986#M113386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When you are using for all entries for table i_md&lt;/P&gt;&lt;P&gt;then your where condition should have that table field..&lt;/P&gt;&lt;P&gt;change as&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where a~matnr = i_md-matnr&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR change your select as..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select stpo~idnrk&lt;/P&gt;&lt;P&gt;   into i_md2-idnrk&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;inner join stko&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;stlnr = stko&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mast&lt;/P&gt;&lt;P&gt;on stko&lt;SUB&gt;stlnr = mast&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara&lt;/P&gt;&lt;P&gt;on mast&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where mara~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and  mara~matkl in ('OST', 'OSP')&lt;/P&gt;&lt;P&gt;and  mara~mtart in ('FERT', 'HAWA')&lt;/P&gt;&lt;P&gt;and stko~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Phani Kiran Nudurupati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136986#M113386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136987#M113387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani..&lt;/P&gt;&lt;P&gt;thnx...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually it is &amp;lt;b&amp;gt;"for all entries IN i_md&lt;/P&gt;&lt;P&gt;                where a!matnr = i_md-matnr"&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i have written wrongly in the mail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me...even if it is like that also..it is not coming....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136987#M113387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136988#M113388</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 the select like below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select stpo~idnrk&lt;/P&gt;&lt;P&gt;   into i_md2-idnrk&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;inner join stko&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;stlnr = stko&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mast&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;stlnr = mast&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;idnrk = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where mara~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and  mara~matkl in ('OST', 'OSP')&lt;/P&gt;&lt;P&gt;and  mara~mtart in ('FERT', 'HAWA')&lt;/P&gt;&lt;P&gt;and stko~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136988#M113388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136989#M113389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Rich mentioned What you need a single record or all records.&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;select d~idnrk &lt;/P&gt;&lt;P&gt; into table  i_md2&lt;/P&gt;&lt;P&gt;from stpo as d&lt;/P&gt;&lt;P&gt;inner join stko as c&lt;/P&gt;&lt;P&gt;on d&lt;SUB&gt;stlnr = c&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mast as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;stlnr = b&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara as a&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where a~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and ( a~matkl = 'OST' or&lt;/P&gt;&lt;P&gt;a~matkl = 'OSP' )&lt;/P&gt;&lt;P&gt;and ( a~mtart = 'FERT' or&lt;/P&gt;&lt;P&gt;a~mtart = 'HAWA' )&lt;/P&gt;&lt;P&gt;and c~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code fill internal table i_md2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136989#M113389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136990#M113390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;still it is not showing up anything for those 2 fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me is ther anything other wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;I have to get multiple values....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136990#M113390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136991#M113391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get multiple values .....the thing is i have to use the material number of the I_MD internal table only for retrieving the components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz let me know if anything's not clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136991#M113391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136992#M113392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select stpo~idnrk&lt;/P&gt;&lt;P&gt;   into table i_md2&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;inner join stko&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;stlnr = stko&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;*inner join mast&lt;/P&gt;&lt;P&gt;*on stpo&lt;SUB&gt;stlnr = mast&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara&lt;/P&gt;&lt;P&gt;on stpo&lt;SUB&gt;idnrk = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where mara~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and  mara~matkl in ('OST', 'OSP')&lt;/P&gt;&lt;P&gt;and  mara~mtart in ('FERT', 'HAWA')&lt;/P&gt;&lt;P&gt;and stko~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136992#M113392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136993#M113393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select atatement attached by me (earlier) is working fine for me. It is populating multiple entries in I_MD2 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that the &amp;lt;u&amp;gt;materials&amp;lt;/u&amp;gt; in internal table I_MD &amp;lt;u&amp;gt;contains BOM&amp;lt;/u&amp;gt;. Means Entries in STKO and STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select d~idnrk &lt;/P&gt;&lt;P&gt;into table i_md2&lt;/P&gt;&lt;P&gt;from stpo as d&lt;/P&gt;&lt;P&gt;inner join stko as c&lt;/P&gt;&lt;P&gt;on d&lt;SUB&gt;stlnr = c&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mast as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;stlnr = b&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara as a&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where a~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and ( a~matkl = 'OST' or&lt;/P&gt;&lt;P&gt;a~matkl = 'OSP' )&lt;/P&gt;&lt;P&gt;and ( a~mtart = 'FERT' or&lt;/P&gt;&lt;P&gt;a~mtart = 'HAWA' )&lt;/P&gt;&lt;P&gt;and c~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 21:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136993#M113393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T21:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136994#M113394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi phani,&lt;/P&gt;&lt;P&gt;its still coming like that only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the select statement wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 22:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136994#M113394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: select statement not working properly....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136995#M113395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select atatement attached by me (earlier) is working fine for me. It is populating multiple entries in I_MD2 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that the materials in internal table I_MD contains BOM. Means Entries in STKO and STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select d~idnrk &lt;/P&gt;&lt;P&gt;into table i_md2&lt;/P&gt;&lt;P&gt;from stpo as d&lt;/P&gt;&lt;P&gt;inner join stko as c&lt;/P&gt;&lt;P&gt;on d&lt;SUB&gt;stlnr = c&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mast as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;stlnr = b&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;inner join mara as a&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;for all entries IN i_md&lt;/P&gt;&lt;P&gt;where a~matnr = i_md-matnr&lt;/P&gt;&lt;P&gt;and ( a~matkl = 'OST' or&lt;/P&gt;&lt;P&gt;a~matkl = 'OSP' )&lt;/P&gt;&lt;P&gt;and ( a~mtart = 'FERT' or&lt;/P&gt;&lt;P&gt;a~mtart = 'HAWA' )&lt;/P&gt;&lt;P&gt;and c~stktx = 'UNRESTRICTED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 23:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working-properly/m-p/1136995#M113395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T23:33:14Z</dc:date>
    </item>
  </channel>
</rss>

