<?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: Material Number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416691#M1408631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the materials for a sales org and distribution channel via table MVKE. you can then check those enries against the division on the material master, and against the sales office on TVKBZ (by sales org, dist channel and division).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could create a whopping great join to do this in one statement,  but it may be kind of slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2009 14:20:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-18T14:20:00Z</dc:date>
    <item>
      <title>Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416685#M1408625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one requirement where if i give input sales org, distrubution chanel , division and sales office input&lt;/P&gt;&lt;P&gt;,it should give me all material in that sales org, distrubutibution and office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one transaction V/ ld , in that transaction maintained material for sales org, dist chanel and sales office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i see the material which stored in the structure KOMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i retrive that. how can i find structure KOMG relation to the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Zubera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416685#M1408625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416686#M1408626</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;Exuse me, what transaction again? I'm afraid u have typed a bit wrong code randomly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416686#M1408626</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-11-18T12:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416687#M1408627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;transaction code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V/LD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416687#M1408627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416688#M1408628</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;For finding out the material use table VBAK when you give sales org distribution channel and division it will give you the sales order no(vbeln).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in VBAP you can see for that VBELN all the MATNR(Material nos).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416688#M1408628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416689#M1408629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to find all materials for a sales org, Division?  If so, I'd start with MVKE.    KOMG looks like the possible fields for establishing routines in VOFM?  Sometimes, the underlying tables for conditions are named like 'Annn'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416689#M1408629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T12:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416690#M1408630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to retrive material from sales org, distrubution chanel,division and sales office.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 12:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416690#M1408630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T12:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416691#M1408631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the materials for a sales org and distribution channel via table MVKE. you can then check those enries against the division on the material master, and against the sales office on TVKBZ (by sales org, dist channel and division).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could create a whopping great join to do this in one statement,  but it may be kind of slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416691#M1408631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416692#M1408632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;division which table i have to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416692#M1408632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416693#M1408633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mara-spart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 15:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416693#M1408633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416694#M1408634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a short example. it is not fully tested, and you should use AT YOUR OWN RISK.&lt;/P&gt;&lt;P&gt;i just rattled it off and did a quick check, but it appears to do what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  ydk_test1
            no standard page heading
            line-size  80
            line-count 65.

tables: mvke, mara, tvkbz.

types: begin of _material,
         matnr type matnr,
         vkorg type mvke-vkorg,
         vtweg type mvke-vtweg,
         spart type mara-spart,
         vkbur type tvkbz-vkbur,
       end of _material.
data: materials type standard table of _material,
      material type _material.

select-options:
  smatnr for mvke-matnr,
  svkorg for mvke-vkorg,
  svtweg for mvke-vtweg,
  sspart for mara-spart,
  svkbur for tvkbz-vkbur.

start-of-selection.
  select mvke~matnr mvke~vkorg mvke~vtweg mara~spart
         tvkbz~vkbur
    into table materials
    from mvke
      inner join mara
        on mara~matnr = mvke~matnr
      inner join tvkbz
        on tvkbz~vkorg = mvke~vkorg
       and tvkbz~vtweg = mvke~vtweg
       and tvkbz~spart = mara~spart
    where mvke~matnr in smatnr
      and mvke~vkorg in svkorg
      and mvke~vtweg in svtweg
      and mara~spart in sspart
      and tvkbz~vkbur in svkbur.

  break-point.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 15:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416694#M1408634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Material Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416695#M1408635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks david for your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 15:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-number/m-p/6416695#M1408635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T15:47:36Z</dc:date>
    </item>
  </channel>
</rss>

