<?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: Function module to get the details from table COEP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442874#M546946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try the fun module&lt;/P&gt;&lt;P&gt;K_CO_OBJECT_BALANCE_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample select statement for COEP&lt;/P&gt;&lt;P&gt;clear cobrb_tab.&lt;/P&gt;&lt;P&gt;  refresh cobrb_tab.&lt;/P&gt;&lt;P&gt;  select objnr            " Object No&lt;/P&gt;&lt;P&gt;         rec_objnr1       " Ref Object No&lt;/P&gt;&lt;P&gt;         bureg            " Dostribution Rule&lt;/P&gt;&lt;P&gt;         lfdnr            " Sequence No&lt;/P&gt;&lt;P&gt;         perbz            " Settlement Rule&lt;/P&gt;&lt;P&gt;         konty            " Acct Assign Category&lt;/P&gt;&lt;P&gt;         bukrs            " Company Code&lt;/P&gt;&lt;P&gt;         kostl            " Cost Center&lt;/P&gt;&lt;P&gt;     into table cobrb_tab&lt;/P&gt;&lt;P&gt;     from cobrb&lt;/P&gt;&lt;P&gt;     where kostl in rn_kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort cobrb_tab by objnr rec_objnr1.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from cobrb_tab comparing objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Settlement Costs from COEP Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_set_tab.&lt;/P&gt;&lt;P&gt;  refresh it_set_tab.&lt;/P&gt;&lt;P&gt;  if not cobrb_tab[] is initial.&lt;/P&gt;&lt;P&gt;    select kokrs            " Controlling Area&lt;/P&gt;&lt;P&gt;           belnr            " Acc Document&lt;/P&gt;&lt;P&gt;           buzei            " Line Item&lt;/P&gt;&lt;P&gt;           perio            " Period Block&lt;/P&gt;&lt;P&gt;           wkgbtr           " Value in CO Curr&lt;/P&gt;&lt;P&gt;           lednr            " Ledger No&lt;/P&gt;&lt;P&gt;           objnr            " Object No&lt;/P&gt;&lt;P&gt;           gjahr            " Fiscal Year&lt;/P&gt;&lt;P&gt;           wrttp            " Actuals&lt;/P&gt;&lt;P&gt;           versn            " Version&lt;/P&gt;&lt;P&gt;           kstar            " Cost Element&lt;/P&gt;&lt;P&gt;           beknz            " Dr/Cr Indicator&lt;/P&gt;&lt;P&gt;           parob1           " Partner Object&lt;/P&gt;&lt;P&gt;       into table it_set_tab&lt;/P&gt;&lt;P&gt;       from coep&lt;/P&gt;&lt;P&gt;       for all entries in cobrb_tab&lt;/P&gt;&lt;P&gt;       where lednr = c_lednr  and&lt;/P&gt;&lt;P&gt;             wrttp = c_wrttp2 and&lt;/P&gt;&lt;P&gt;             versn = c_versn  and&lt;/P&gt;&lt;P&gt;             gjahr = p_gjahr  and&lt;/P&gt;&lt;P&gt;             objnr = cobrb_tab-objnr and&lt;/P&gt;&lt;P&gt;             parob1 = cobrb_tab-rec_objnr1 and&lt;/P&gt;&lt;P&gt;             beknz in (c_o, c_a).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 06:04:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T06:04:09Z</dc:date>
    <item>
      <title>Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442873#M546945</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;&lt;/P&gt;&lt;P&gt;I have to select the data from COEP table based on OBJNR.i don't have  any other key information.so i have to select the data based on OBJNR only.&lt;/P&gt;&lt;P&gt;can any one please tell me is there any function to get the data from this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 05:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442873#M546945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T05:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442874#M546946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try the fun module&lt;/P&gt;&lt;P&gt;K_CO_OBJECT_BALANCE_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample select statement for COEP&lt;/P&gt;&lt;P&gt;clear cobrb_tab.&lt;/P&gt;&lt;P&gt;  refresh cobrb_tab.&lt;/P&gt;&lt;P&gt;  select objnr            " Object No&lt;/P&gt;&lt;P&gt;         rec_objnr1       " Ref Object No&lt;/P&gt;&lt;P&gt;         bureg            " Dostribution Rule&lt;/P&gt;&lt;P&gt;         lfdnr            " Sequence No&lt;/P&gt;&lt;P&gt;         perbz            " Settlement Rule&lt;/P&gt;&lt;P&gt;         konty            " Acct Assign Category&lt;/P&gt;&lt;P&gt;         bukrs            " Company Code&lt;/P&gt;&lt;P&gt;         kostl            " Cost Center&lt;/P&gt;&lt;P&gt;     into table cobrb_tab&lt;/P&gt;&lt;P&gt;     from cobrb&lt;/P&gt;&lt;P&gt;     where kostl in rn_kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort cobrb_tab by objnr rec_objnr1.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from cobrb_tab comparing objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Settlement Costs from COEP Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_set_tab.&lt;/P&gt;&lt;P&gt;  refresh it_set_tab.&lt;/P&gt;&lt;P&gt;  if not cobrb_tab[] is initial.&lt;/P&gt;&lt;P&gt;    select kokrs            " Controlling Area&lt;/P&gt;&lt;P&gt;           belnr            " Acc Document&lt;/P&gt;&lt;P&gt;           buzei            " Line Item&lt;/P&gt;&lt;P&gt;           perio            " Period Block&lt;/P&gt;&lt;P&gt;           wkgbtr           " Value in CO Curr&lt;/P&gt;&lt;P&gt;           lednr            " Ledger No&lt;/P&gt;&lt;P&gt;           objnr            " Object No&lt;/P&gt;&lt;P&gt;           gjahr            " Fiscal Year&lt;/P&gt;&lt;P&gt;           wrttp            " Actuals&lt;/P&gt;&lt;P&gt;           versn            " Version&lt;/P&gt;&lt;P&gt;           kstar            " Cost Element&lt;/P&gt;&lt;P&gt;           beknz            " Dr/Cr Indicator&lt;/P&gt;&lt;P&gt;           parob1           " Partner Object&lt;/P&gt;&lt;P&gt;       into table it_set_tab&lt;/P&gt;&lt;P&gt;       from coep&lt;/P&gt;&lt;P&gt;       for all entries in cobrb_tab&lt;/P&gt;&lt;P&gt;       where lednr = c_lednr  and&lt;/P&gt;&lt;P&gt;             wrttp = c_wrttp2 and&lt;/P&gt;&lt;P&gt;             versn = c_versn  and&lt;/P&gt;&lt;P&gt;             gjahr = p_gjahr  and&lt;/P&gt;&lt;P&gt;             objnr = cobrb_tab-objnr and&lt;/P&gt;&lt;P&gt;             parob1 = cobrb_tab-rec_objnr1 and&lt;/P&gt;&lt;P&gt;             beknz in (c_o, c_a).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 06:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442874#M546946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442875#M546947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several function modules available that have the COEP within their names: However, I am not sure if these function modules are the right ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the methods of class &amp;lt;b&amp;gt;CL_REEX_COEP&amp;lt;/b&amp;gt; are most suitable for your purposes. For example, using the static method &amp;lt;b&amp;gt;GET_LIST_BY_OBJNR&amp;lt;/b&amp;gt; returns all COEP entries for a given OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 06:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442875#M546947</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-26T06:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442876#M546948</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;Thank You for your replys.&lt;/P&gt;&lt;P&gt;problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        CS Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 06:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442876#M546948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T06:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442877#M546949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calling methods always use the &amp;lt;b&amp;gt;pattern&amp;lt;/b&amp;gt; button (Option &amp;lt;i&amp;gt;Pattern for ABAP Objects&amp;lt;/i&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zus_sdn_read_coep.


DATA:
  gt_list    TYPE re_t_coep.


PARAMETERS:
  p_kokrs    TYPE kokrs,
  p_objnr    TYPE j_objnr.




START-OF-SELECTION.

  CALL METHOD cl_reex_coep=&amp;gt;get_list_by_objnr
    EXPORTING
      id_kokrs            = p_kokrs
      id_objnr            = p_objnr
*      IF_BYPASSING_BUFFER =
*      IF_RESET_BUFFER     =
*      ID_MAX_BUFFER_SIZE  = 1000
    IMPORTING
      et_list             = gt_list.


END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 06:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442877#M546949</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-26T06:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get the details from table COEP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442878#M546950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 10:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-details-from-table-coep/m-p/2442878#M546950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T10:14:17Z</dc:date>
    </item>
  </channel>
</rss>

