<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986725#M1341718</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;i tried as u told...&lt;/P&gt;&lt;P&gt;but im not getting values to it_ausp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2009 08:25:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-05T08:25:44Z</dc:date>
    <item>
      <title>problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986719#M1341712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr
           charg
           CUOBJ_BM
      from mch1
      INTO TABLE it_mch1
      FOR ALL ENTRIES IN it_resb
      WHERE matnr = it_resb-matnr
      AND charg = it_resb-charg.

  IF NOT it_mch1 is INITIAL.

    SELECT OBJEK
           ATINN
           ATWRT
      FROM ausp
      INTO TABLE it_ausp
      FOR ALL ENTRIES IN it_mch1
      WHERE objek eq V_OBJNR
      AND   Atinn = 'BIN_LOCATION'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code how i can link between MCH1 and AUSP table....&lt;/P&gt;&lt;P&gt;i tried using OBJEK and  CUOBJ_BM but there lengths are different so it is giving error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body help me to get ATWRT value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 07:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986719#M1341712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T07:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986720#M1341713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

data:ra_objek type range of ausp-objek.
data:wa_objek like line of ra_objek.

wa_objek-sign = 'I'.
wa_objek-sign = 'EQ'.

loop at it_mch1 into wa_mch1.
wa_objek-low = wa_mch1-CUOBJ_BM.
collect wa_objek into ra_objek .
endloop.

    SELECT OBJEK  ATINN  ATWRT  FROM ausp
      INTO TABLE it_ausp
      WHERE objek in    ra_objek
    AND   Atinn = 'BIN_LOCATION'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 07:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986720#M1341713</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-05T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986721#M1341714</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 the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of it_mch1 occurs 0,
        charg like mch1-charg,
        CUOBJ_BM(50) type c,
        end of it_mch1.


SELECT matnr
           charg
           CUOBJ_BM
      from mch1
      INTO TABLE it_mch1
      FOR ALL ENTRIES IN it_resb
      WHERE matnr = it_resb-matnr
      AND charg = it_resb-charg.
 
  IF NOT it_mch1 is INITIAL.
 
    SELECT OBJEK
           ATINN
           ATWRT
      FROM ausp
      INTO TABLE it_ausp
      FOR ALL ENTRIES IN it_mch1
      WHERE objek eq it_mch1-CUOBJ_BM
      AND   Atinn = 'BIN_LOCATION'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 07:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986721#M1341714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T07:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986722#M1341715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi smitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why dont you try in the second query where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJEK=it_MCH-CUOBJ_BM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 07:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986722#M1341715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986723#M1341716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try out LKENZ field in AUSP &amp;amp; LVORM in MCH1..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps...&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;Anupam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 07:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986723#M1341716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986724#M1341717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    If you have Class, Classtype and Object(Matnr), then you can get the values with the below FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLAF_CLASSIFICATION_OF_OBJECTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.	Call the function module CLAF_CLASSIFICATION_OF_OBJECTS with the following input parameters&lt;/P&gt;&lt;P&gt;Class	       =   &lt;/P&gt;&lt;P&gt;Class Type     =   &lt;/P&gt;&lt;P&gt;Object = (Matnr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b.	Read the table T_OBJECTDATA  &lt;/P&gt;&lt;P&gt;Atnam	       = characteristic name as mentioned in the file format&lt;/P&gt;&lt;P&gt;Ausp1	       = read the value and assign the value to the respective field in the output &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bala Krishna on Aug 5, 2009 1:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 08:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986724#M1341717</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-08-05T08:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986725#M1341718</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;i tried as u told...&lt;/P&gt;&lt;P&gt;but im not getting values to it_ausp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 08:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986725#M1341718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T08:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986726#M1341719</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;I checked in my system and its fetching values for ATWRT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_mch1 occurs 0,
        charg like mch1-charg,
        CUOBJ_BM(50) type c,
        end of it_mch1.
 
data: begin of it_ausp occurs 0,
        OBJEK(50) type c,
           ATINN like ausp-atinn,
           ATWRT like ausp-atwrt,
end  of it_ausp.

SELECT matnr
           charg
           CUOBJ_BM
      from mch1
      INTO TABLE it_mch1
      FOR ALL ENTRIES IN it_resb
      WHERE matnr = it_resb-matnr
      AND charg = it_resb-charg.
 
  IF NOT it_mch1 is INITIAL.
 
    SELECT OBJEK
           ATINN
           ATWRT
      FROM ausp
      INTO TABLE it_ausp
      FOR ALL ENTRIES IN it_mch1
      WHERE objek eq it_mch1-CUOBJ_BM
      AND   Atinn = 'BIN_LOCATION'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define both OBJEK and CUOBJ_BM as char of length 50 in the internal tables.&lt;/P&gt;&lt;P&gt;Even then if it_ausp is not getting populated, then the other where condition must not been satisfied. Try this and check if valid values are there in the database for Atinn = 'BIN_LOCATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 09:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986726#M1341719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986727#M1341720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but i want to know that if our structure is declared with type then what will be the solution for such problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reply me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/5986727#M1341720</guid>
      <dc:creator>former_member199306</dc:creator>
      <dc:date>2015-03-19T15:21:54Z</dc:date>
    </item>
  </channel>
</rss>

