<?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: help me in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199887#M130783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the tricky part is under a company code(bukrs) there can be multiple business areas (bwkey)/plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;understand this hierarchy.&lt;/P&gt;&lt;P&gt;under a plant there can be more than one storage locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u need to giv the business key as this is the primary key in t001k.&lt;/P&gt;&lt;P&gt;otherwise as u say here it will hav multiple plants/bwkeys and it dosent know to which plant it should pick from t001L.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so this condition fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_t001k.&lt;/P&gt;&lt;P&gt;select LGORT LGOBE SPART werks from T001L&lt;/P&gt;&lt;P&gt;into table it_t001l&lt;/P&gt;&lt;P&gt;for all entries in itab_t001k&lt;/P&gt;&lt;P&gt;where WERKS eq itab_t001k-BWKEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and werks eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;for the same modify here as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab_t001k is initial.&lt;/P&gt;&lt;P&gt;loop at itab_t001k.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;select LGORT LGOBE SPART werks from T001L&lt;/P&gt;&lt;P&gt;into table it_t001l&lt;/P&gt;&lt;P&gt;for all entries in itab_t001k&lt;/P&gt;&lt;P&gt;where WERKS eq itab_t001k-BWKEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and werks eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the sy-subrc here .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2006 08:09:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-01T08:09:41Z</dc:date>
    <item>
      <title>help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199883#M130779</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;   Input parameters are comapny code &amp;amp; Plant.&lt;/P&gt;&lt;P&gt;it gives output whenever i am giving both input(comapny code &amp;amp; Plant).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting output whenever i am giving company code alone.Help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs bwkey from T001K into table it_t001k&lt;/P&gt;&lt;P&gt;                where BUKRS eq companycode.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               and BWKEY eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append lines of it_t001k to itab_t001k.&lt;/P&gt;&lt;P&gt;        REFRESH it_t001k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_t001k.&lt;/P&gt;&lt;P&gt;   select LGORT LGOBE SPART werks from T001L&lt;/P&gt;&lt;P&gt;                into table it_t001l&lt;/P&gt;&lt;P&gt;                for all entries in itab_t001k&lt;/P&gt;&lt;P&gt;                where WERKS eq itab_t001k-BWKEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               and werks eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append lines of it_t001l to itab_t001l.&lt;/P&gt;&lt;P&gt; refresh it_t001l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab_t001k.&lt;/P&gt;&lt;P&gt;      output-BUKRS = itab_t001k-BUKRS.&lt;/P&gt;&lt;P&gt;      output-BWKEY = itab_t001k-BWKEY.&lt;/P&gt;&lt;P&gt;  loop at itab_t001l&lt;/P&gt;&lt;P&gt;            where werks eq itab_t001k-bwkey&lt;/P&gt;&lt;P&gt;            and werks eq Plant.&lt;/P&gt;&lt;P&gt;      output-LGORT = itab_t001l-LGORT.&lt;/P&gt;&lt;P&gt;      output-LGOBE = itab_t001l-LGOBE.&lt;/P&gt;&lt;P&gt;      output-SPART = itab_t001l-SPART.&lt;/P&gt;&lt;P&gt;      append output.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 07:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199883#M130779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T07:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199884#M130780</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;try with or:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select bukrs bwkey from T001K into table it_t001k
where ( BUKRS eq companycode
or BWKEY eq Plant ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 07:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199884#M130780</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-03-01T07:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199885#M130781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make both of them as select-options and use no-extensions and no-intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then they will look just like parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason: parameters , if u dont give any value , doenot give any o/p . select-options , if no value is given , gives all the records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 08:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199885#M130781</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-03-01T08:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199886#M130782</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;&lt;/P&gt;&lt;P&gt;Dont't use parameters instead you have to use select-options without intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you have to code two select statements for each parameter. store both the contents in one internal table then delete duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 08:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199886#M130782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T08:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199887#M130783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the tricky part is under a company code(bukrs) there can be multiple business areas (bwkey)/plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;understand this hierarchy.&lt;/P&gt;&lt;P&gt;under a plant there can be more than one storage locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u need to giv the business key as this is the primary key in t001k.&lt;/P&gt;&lt;P&gt;otherwise as u say here it will hav multiple plants/bwkeys and it dosent know to which plant it should pick from t001L.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so this condition fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_t001k.&lt;/P&gt;&lt;P&gt;select LGORT LGOBE SPART werks from T001L&lt;/P&gt;&lt;P&gt;into table it_t001l&lt;/P&gt;&lt;P&gt;for all entries in itab_t001k&lt;/P&gt;&lt;P&gt;where WERKS eq itab_t001k-BWKEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and werks eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;for the same modify here as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab_t001k is initial.&lt;/P&gt;&lt;P&gt;loop at itab_t001k.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;select LGORT LGOBE SPART werks from T001L&lt;/P&gt;&lt;P&gt;into table it_t001l&lt;/P&gt;&lt;P&gt;for all entries in itab_t001k&lt;/P&gt;&lt;P&gt;where WERKS eq itab_t001k-BWKEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and werks eq Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the sy-subrc here .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 08:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199887#M130783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T08:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199888#M130784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Silviya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are u getting data into table it_t001k? Have u defined companycode and PLant as parameter? as BWKEY is key to the table t001k and u r entering only company code u will never have a blank record in t001k. So if u change from parameter to select option then u can code as &lt;/P&gt;&lt;P&gt;select bukrs bwkey from T001K into table it_t001k&lt;/P&gt;&lt;P&gt;where BUKRS in ccode&lt;/P&gt;&lt;P&gt;  and BWKEY in Plant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 08:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199888#M130784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T08:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199889#M130785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi silviya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When we use parameters and =&lt;/P&gt;&lt;P&gt;   in select query,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then the parameters MUST have value&lt;/P&gt;&lt;P&gt;  other wise it will not return any results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There are two things :&lt;/P&gt;&lt;P&gt;   a) either make it obligatory&lt;/P&gt;&lt;P&gt;   b) or use select options (like this)&lt;/P&gt;&lt;P&gt;     and IN , in the sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will GIVE THE LOOK exactly like a parameter&lt;/P&gt;&lt;P&gt;without any MULTIPLE SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : bukrs for t001-bukrs no intervals no-extension..&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 08:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/1199889#M130785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T08:24:07Z</dc:date>
    </item>
  </channel>
</rss>

