<?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: Class - logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174338#M1197985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply , I did try out but wasn't able to get to teh solution , and thats the reason I approached here. Kindly please provide some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 03:56:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-18T03:56:36Z</dc:date>
    <item>
      <title>Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174335#M1197982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a class which which will read a ztable (holds pricing tables) cosidering it a list or off list price. this table has the follwoing fields mandt,kappl,kschl,kotabnr and a custom field zprice_type which is numeric and of lenght 2. This custom field is for the price type flag which will be either 0, 1 or 2 (not applicable, list, off list).&lt;/P&gt;&lt;P&gt;This class will determine if condition is active or inactive. Only goes forward with active conditions.&lt;/P&gt;&lt;P&gt;For each item , reads KONV with the condition type , doccond and item number. determine if condition is active (konv-kinak). If active , get the access # (konv-kolnr) . &lt;/P&gt;&lt;P&gt;read table T685 with application = V, condition type from KONV(eg. ZPRL) to get the access sequence name(T685-kozgf). This can ve the same or different from the condition type.&lt;/P&gt;&lt;P&gt;Then Read Table T682I with Application = V, Access Sequence = T685_KOZGF and Access # (KONV-KOLNR) to return the Table # (T682I-KOTABNR).  For example, 901.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the Z* table with Condition Type from KONV and Table # from T682I to determine if the table is 1 (List) or 2 (Off List).  Set flag accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop through the same logic for all conditions for the same item to determine the List or Off List setting of each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of loop, if any of the active records = 2 (Off List), the item is considered Off List.  Else List.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build  a class out of it if someone can please help me out with this . This class I will be using in my report to cerate a pricing compare list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aarav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 21:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174335#M1197982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T21:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174336#M1197983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone please help me with this , I am not able to get it right.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aarav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 03:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174336#M1197983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T03:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174337#M1197984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  A, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y dont u have a look at SAP examples ,check tcode ABAPDOCU or simple program - DEMO_CLASS_COUNTER.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 03:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174337#M1197984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T03:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174338#M1197985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply , I did try out but wasn't able to get to teh solution , and thats the reason I approached here. Kindly please provide some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 03:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174338#M1197985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T03:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174339#M1197986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could I please get some help in over here  with the class builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 16:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174339#M1197986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174340#M1197987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 18:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174340#M1197987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T18:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174341#M1197988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can post the actual ABAP code that you've tried and the exact error messages, then it would be easier to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should break down your first method into little step.  Each step should be its own method.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 09:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174341#M1197988</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-02-19T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174342#M1197989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following is the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method CHECK_LIST_PRICING.
data:  zkotabnr type c length 15,
         zkonv type  konv,
         zkozgf type T685-kozgf,
         zt685 type standard table of t685.



  select * from konv
           into zkonv where kinak = ' ' and knumv eq iv_knumv and kposn eq iv_kposn.
    
      select single kozgf into zkozgf from T685 where kappl = 'V' and kschl = zkonv-kschl.

      if sy-subrc eq 0.

        select single kotabnr into zkotabnr
                              from T682I
                              where kappl = 'V' and kolnr eq zkonv-kolnr
                                    and kozgf eq ( select kozgf
                                                          from T685
                                                          where kappl = 'V' and kschl = zkonv-kschl ).

        if sy-subrc eq 0.

          select single ZPRICE_TYPE into RV_IS_LIST from (zkotabnr) where kschl eq zkonv-kschl.

        endif.
      endif.
 
  endselect.
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 17:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174342#M1197989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T17:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174343#M1197990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 17:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174343#M1197990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T17:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Class - logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174344#M1197991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 16:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-logic/m-p/5174344#M1197991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T16:09:34Z</dc:date>
    </item>
  </channel>
</rss>

