<?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: OO ABAP help... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247969#M1383215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hey,
Is it ok now.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2009 03:36:42 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-10-09T03:36:42Z</dc:date>
    <item>
      <title>OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247965#M1383211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the midst of converting some 3.5 update rules to version 7.0 and i'm at a deadlock - lack of the dark art of ABAP... Can someone here please provide me some help for the below codes? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE I_MWBS_ELEMT WITH KEY WBS_ELEMT = SOURCE_FIELDS-POSID TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC IS INITIAL.&lt;/P&gt;&lt;P&gt;RESULT = I_MWBS_ELEMT-RESP_CCTR.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM /BI0/MWBS_ELEMT INTO I_MWBS_ELEMT&lt;/P&gt;&lt;P&gt;WHERE WBS_ELEMT = SOURCE_FIELDS-POSID&lt;/P&gt;&lt;P&gt;AND OBJVERS = 'A'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC IS INITIAL.&lt;/P&gt;&lt;P&gt;APPEND I_MWBS_ELEMT SORTED BY RESP_CCTR. &amp;lt;-- I think the error is coming from here. &lt;/P&gt;&lt;P&gt;RESULT = I_MWBS_ELEMT-RESP_CCTR.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR RESULT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My err. msg is &lt;/P&gt;&lt;P&gt;E:An explicit work area is necessary in the OO context. Use "APPEND wa TO I_MWBS_ELEMT SORTED BY".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247965#M1383211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T02:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247966#M1383212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SCHT, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you try it like this way and see if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;IF SY-SUBRC IS INITIAL.&lt;/P&gt;&lt;P&gt;APPEND I_MWBS_ELEMT. &lt;/P&gt;&lt;P&gt;SORT I_MWBS_ELEMT BY RESP_CCTR. &lt;/P&gt;&lt;P&gt;RESULT = I_MWBS_ELEMT-RESP_CCTR.&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;Sid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sidharth suri on Oct 9, 2009 8:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247966#M1383212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T02:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247967#M1383213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
You need to create work area for internal table instead of having table with header line. In oops it does not allow you.
Try this way.
&amp;lt;li&amp;gt;Define work area 
  &lt;PRE&gt;&lt;CODE&gt;DATA:w_mwbs_elemt LIKE LINE OF i_mwbs_elemt.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Remove header option for i_mwbs_elemt table  and change like below.
  &lt;PRE&gt;&lt;CODE&gt;READ TABLE i_mwbs_elemt INTO w_mwbs_elemt WITH KEY wbs_elemt = source_fields-posid TRANSPORTING NO FIELDS.
  IF sy-subrc IS INITIAL.
    result = w_mwbs_elemt-resp_cctr.
  ELSE.
    SELECT SINGLE * FROM /bi0/mwbs_elemt INTO i_mwbs_elemt
    WHERE wbs_elemt = source_fields-posid
    AND objvers = 'A'.
    IF sy-subrc IS INITIAL.
      APPEND w_mwbs_elemt TO i_mwbs_elemt SORTED BY resp_cctr.
      result = i_mwbs_elemt-resp_cctr.
    ELSE.
      CLEAR result.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247967#M1383213</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T02:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247968#M1383214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SCHT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try declaring an explicit work area for internal table  I_MWBS_ELEMT  and use that work area. Replace ur code with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  wa LIKE LINE OF I_MWBS_ELEMT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE I_MWBS_ELEMT WITH KEY WBS_ELEMT = SOURCE_FIELDS-POSID TRANSPORTING NO FIELDS INTO wa.  &amp;lt;----&lt;/P&gt;&lt;P&gt;IF SY-SUBRC IS INITIAL.&lt;/P&gt;&lt;P&gt;RESULT = wa-RESP_CCTR.   &amp;lt;----&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM /BI0/MWBS_ELEMT INTO wa&lt;/P&gt;&lt;P&gt;WHERE WBS_ELEMT = SOURCE_FIELDS-POSID&lt;/P&gt;&lt;P&gt;AND OBJVERS = 'A'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC IS INITIAL.&lt;/P&gt;&lt;P&gt;APPEND wa  SORTED BY RESP_CCTR. &amp;lt;----&lt;/P&gt;&lt;P&gt;RESULT = wa-RESP_CCTR.   &amp;lt;-----&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR RESULT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247968#M1383214</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-10-09T02:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247969#M1383215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hey,
Is it ok now.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247969#M1383215</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T03:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: OO ABAP help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247970#M1383216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah venket, assigned you full points. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 15:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-abap-help/m-p/6247970#M1383216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T15:01:22Z</dc:date>
    </item>
  </channel>
</rss>

