<?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 BW Routine for Sub Item assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-routine-for-sub-item-assignment/m-p/3082153#M730953</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 dont have ABAP knowledge please help me in this regard.&lt;/P&gt;&lt;P&gt;My scenario is like this. I have muliple records in one Cube. As per client request i need to select some accounts with movement types to ODS and i must assign Subitems to this items. In Cube there is subitem assignment. Subitem is having master data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a ODS and done the datamart from the Cube. now i am confused how to select some accounts to ODS if i done in selection in the infopackage its a lot. Hence i need to create a routine on subitem info object in the update rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCS_ITEM is the item InfoObject 0MOVE_TYPE is the movement type InfoObject, ZCS_ITEM is the subitem InfoObject. Now i need a code that if 0CS_ITEM = 440000 and 0MOVE_TYPE = 100 then ZCS_ITEM = KL001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 0CS_ITEM = '44000' &amp;amp;&amp;amp; 0MOVE_TYPE = '100'&lt;/P&gt;&lt;P&gt;comm_structure-ZCS_ITEM = 'BS1000'.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i write a code its complaining about the Data Statement.&lt;/P&gt;&lt;P&gt;E:Field "0CS_ITEM" is unknown. It is neither in one of the specified&lt;/P&gt;&lt;P&gt;tables nor defined by a "DATA" statement. "DATA" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist me to complete this code. otherwise please suggest me how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2007 15:21:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-19T15:21:58Z</dc:date>
    <item>
      <title>BW Routine for Sub Item assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-routine-for-sub-item-assignment/m-p/3082153#M730953</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 dont have ABAP knowledge please help me in this regard.&lt;/P&gt;&lt;P&gt;My scenario is like this. I have muliple records in one Cube. As per client request i need to select some accounts with movement types to ODS and i must assign Subitems to this items. In Cube there is subitem assignment. Subitem is having master data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a ODS and done the datamart from the Cube. now i am confused how to select some accounts to ODS if i done in selection in the infopackage its a lot. Hence i need to create a routine on subitem info object in the update rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCS_ITEM is the item InfoObject 0MOVE_TYPE is the movement type InfoObject, ZCS_ITEM is the subitem InfoObject. Now i need a code that if 0CS_ITEM = 440000 and 0MOVE_TYPE = 100 then ZCS_ITEM = KL001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 0CS_ITEM = '44000' &amp;amp;&amp;amp; 0MOVE_TYPE = '100'&lt;/P&gt;&lt;P&gt;comm_structure-ZCS_ITEM = 'BS1000'.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i write a code its complaining about the Data Statement.&lt;/P&gt;&lt;P&gt;E:Field "0CS_ITEM" is unknown. It is neither in one of the specified&lt;/P&gt;&lt;P&gt;tables nor defined by a "DATA" statement. "DATA" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist me to complete this code. otherwise please suggest me how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 15:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bw-routine-for-sub-item-assignment/m-p/3082153#M730953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: BW Routine for Sub Item assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-routine-for-sub-item-assignment/m-p/3082154#M730954</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;The fields 0CS_ITEM &amp;amp; 0MOVE_TYPE must be refering of some Cumminication Structure fields. So, use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Comm.Structure&amp;gt;-0CS_ITEM&lt;/P&gt;&lt;P&gt;&amp;lt;Comm.Structure&amp;gt;-0MOVE_TYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your problem will get resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 15:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bw-routine-for-sub-item-assignment/m-p/3082154#M730954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T15:32:30Z</dc:date>
    </item>
  </channel>
</rss>

