<?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 Need code logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458081#M551274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want the logic for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expense/Repairable flag (Table &amp;#150;MVKE &amp;#150; Field name - MTPOS) filter with VKORG=sales_org_param and VTWEG=dist_channel_param and SPART=divisioin_param&lt;/P&gt;&lt;P&gt;MTPOS conains either ZREP or ZEXP (ZREP=repairable, ZEXP=expensed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 16:57:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T16:57:33Z</dc:date>
    <item>
      <title>Need code logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458081#M551274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want the logic for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expense/Repairable flag (Table &amp;#150;MVKE &amp;#150; Field name - MTPOS) filter with VKORG=sales_org_param and VTWEG=dist_channel_param and SPART=divisioin_param&lt;/P&gt;&lt;P&gt;MTPOS conains either ZREP or ZEXP (ZREP=repairable, ZEXP=expensed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 16:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458081#M551274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need code logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458082#M551275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have  you tried it yourself yet?  This is pretty straight foward, yes?&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, 20 Jun 2007 16:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458082#M551275</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-20T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need code logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458083#M551276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in any case, this should get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .


data: xmvke type mvke.
data: xmara type mara.

data: begin of ima occurs 0,
      matnr type mara-matnr,
      spart type mara-spart,
      vkorg type mvke-vkorg,
      vtweg type mvke-vtweg,
      mtpos type mvke-mtpos,
      end of ima.

parameters: p_spart type mara-spart,
            p_vkorg type mvke-vkorg,
            p_vtweg type mvke-vtweg.

start-of-selection.

select * into corresponding fields of table ima
          from mara
              inner join mvke
                  on mara~matnr = mvke~matnr
                         where mara~spart = p_spart
                           and mvke~vkorg = p_vkorg
                           and mvke~vtweg = p_vtweg
                           and mvke~mtpos in ('ZREP', 'ZEXP').


loop at ima.
  write:/ ima-matnr, ima-spart, ima-vkorg, ima-vtweg, ima-mtpos.
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>Wed, 20 Jun 2007 17:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-code-logic/m-p/2458083#M551276</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-20T17:07:12Z</dc:date>
    </item>
  </channel>
</rss>

