<?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 Understanding the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829604#M1471290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, following code is in a pricing requirement, can some one explain me what is this doing as i do not understand clearly and pricing condition is not applied saying the following requirement is not fulfilled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_mara type mara.
  sy-subrc = 4.
   if komk-auart is initial.
      
    check: komk-fkart eq 'IV' or komk-bsart ne ' '.
    endif.
                        
    check: komk-auart ne 'cc' and komk-auart ne 're'.
    check: komk-auart_sd ne 'CC' and komk-auart_sd ne 'RE'.
   sy-subrc = 0.*
   select single * from mara into v_mara where matnr = komp-matnr.
   if sy-subrc = 0.

      sy-subrc = 4.
       check:  v_mara-mtart ne 'LEER' and v_mara-mtart ne 'ZPRE' and v_mara-mtart ne 'VEN'.
     sy-subrc = 0.

     if komk-auart_sd eq 'OR' or komk-auart_sd eq ' '.
       komp-zprodh3 = v_mara-prdha(3).
     endif.
   endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Gopio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naga Gopathi on Apr 13, 2010 11:58 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Apr 20, 2010 7:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 21:54:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-13T21:54:36Z</dc:date>
    <item>
      <title>Understanding the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829604#M1471290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, following code is in a pricing requirement, can some one explain me what is this doing as i do not understand clearly and pricing condition is not applied saying the following requirement is not fulfilled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_mara type mara.
  sy-subrc = 4.
   if komk-auart is initial.
      
    check: komk-fkart eq 'IV' or komk-bsart ne ' '.
    endif.
                        
    check: komk-auart ne 'cc' and komk-auart ne 're'.
    check: komk-auart_sd ne 'CC' and komk-auart_sd ne 'RE'.
   sy-subrc = 0.*
   select single * from mara into v_mara where matnr = komp-matnr.
   if sy-subrc = 0.

      sy-subrc = 4.
       check:  v_mara-mtart ne 'LEER' and v_mara-mtart ne 'ZPRE' and v_mara-mtart ne 'VEN'.
     sy-subrc = 0.

     if komk-auart_sd eq 'OR' or komk-auart_sd eq ' '.
       komp-zprodh3 = v_mara-prdha(3).
     endif.
   endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Gopio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naga Gopathi on Apr 13, 2010 11:58 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Apr 20, 2010 7:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 21:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829604#M1471290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829605#M1471291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In certain conditions (needs a good cleanup, I think), sets a customer field equal to the first three characters of the material product hierarchy value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 22:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829605#M1471291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T22:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829606#M1471292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 04:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-the-code/m-p/6829606#M1471292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T04:13:19Z</dc:date>
    </item>
  </channel>
</rss>

