<?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: cost element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511647#M568044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk the BAPI  ,  BAPI_COSTELEMENTGROUP_GETDETAIL,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 01:20:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T01:20:05Z</dc:date>
    <item>
      <title>cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511643#M568040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing a cost center. where i am extracting cost center and object number from&lt;/P&gt;&lt;P&gt;CSKS table.&lt;/P&gt;&lt;P&gt;Using the Object I am extracting Cost element... &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
  l_tabix = sy-tabix.
  select single kstar ebeln from covp
         into  (covp-kstar , covp-ebeln)
         where kokrs = p_kokrs
         and   objnr = gt_cc-objnr
         and   gjahr = p_fyear
         and   perio in s_period.
  if sy-subrc = 0.
    itab-kstar = covp-kstar.
    itab-ebeln = covp-ebeln.
    modify itab index sy-tabix.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is a object number can have any number of cost elements associated with it.... &lt;/P&gt;&lt;P&gt;this part however is retreiving only 1 cost element... &lt;/P&gt;&lt;P&gt;Please let me know how to fix this problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 23:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511643#M568040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T23:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511644#M568041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have a select single... that will return only one entry.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sorry if i have understood incorrectly... but thats how i have interpreted ur issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 23:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511644#M568041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T23:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511645#M568042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my internal table already has the cost center and object number&lt;/P&gt;&lt;P&gt;I cannot use select for all entries due to performance issue &lt;/P&gt;&lt;P&gt;so i used a select single..&lt;/P&gt;&lt;P&gt;Let me know how to fix this one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 23:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511645#M568042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511646#M568043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No other way,you need to use for all entries option,since select single will get one record at time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 23:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511646#M568043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T23:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511647#M568044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk the BAPI  ,  BAPI_COSTELEMENTGROUP_GETDETAIL,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 01:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511647#M568044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T01:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: cost element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511648#M568045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  as you have multiple entries .. here is the code..&lt;/P&gt;&lt;P&gt;take one two more tables one jtab like itab and another table say ktab  with two fields kstar and ebeln..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  l_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;  select  kstar ebeln from covp&lt;/P&gt;&lt;P&gt;         into  table ktab&lt;/P&gt;&lt;P&gt;         where kokrs = p_kokrs&lt;/P&gt;&lt;P&gt;         and   objnr = gt_cc-objnr&lt;/P&gt;&lt;P&gt;         and   gjahr = p_fyear&lt;/P&gt;&lt;P&gt;         and   perio in s_period.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  loop at ktab.&lt;/P&gt;&lt;P&gt;  jtab = itab.&lt;/P&gt;&lt;P&gt;    jtab-kstar = ktab-kstar.&lt;/P&gt;&lt;P&gt;    jtab-ebeln = ktab-ebeln.&lt;/P&gt;&lt;P&gt;    append jtab.&lt;/P&gt;&lt;P&gt; endloop.&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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 02:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cost-element/m-p/2511648#M568045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T02:47:14Z</dc:date>
    </item>
  </channel>
</rss>

