<?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: abap code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922470#M383152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both options given in previous answer are perfact. Please close the forum and reward point to him &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 14:26:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T14:26:59Z</dc:date>
    <item>
      <title>abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922468#M383150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me how to write the code for .....I have one custom table called zxyz haveing matnr(model no:1) and having zmatnr(model no:2)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I need to write code for total items should not exceed 06....the combination must like matnr = 1 zmatnr =5&lt;/P&gt;&lt;P&gt;              matnr = 2 zmatnr =4&lt;/P&gt;&lt;P&gt;              matnr = 3 zmatnr =3&lt;/P&gt;&lt;P&gt;              matnr = 4 zmatnr =2&lt;/P&gt;&lt;P&gt;              matnr = 5 zmatnr =1&lt;/P&gt;&lt;P&gt;              matnr = 6 zmatnr =0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build this logic in code......i have fields in my table are........matnr, zmatnr, combination and quantity........and I need to relate with xvbap in mv45afzz and this table.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922468#M383150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T14:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922469#M383151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;   From the information you provide, it looks like you cannot filter at the select statement level.&lt;/P&gt;&lt;P&gt;YOu have to process at the internal table level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr zmatnr into table itab where...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;v_total = itab-matnr + itab-zmatnr.&lt;/P&gt;&lt;P&gt;if v_total &amp;lt;&amp;gt; 6.&lt;/P&gt;&lt;P&gt;delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2)&lt;/P&gt;&lt;P&gt;Have a field total in the z table.&lt;/P&gt;&lt;P&gt;This total should hold the total of the matnr and zmatnr at the time of saving the data to this table.&lt;/P&gt;&lt;P&gt;then you can simpley write a select statement based on this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zabc into table itab where total = 06.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922469#M383151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922470#M383152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both options given in previous answer are perfact. Please close the forum and reward point to him &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1922470#M383152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T14:26:59Z</dc:date>
    </item>
  </channel>
</rss>

