<?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: Customer exit and optimization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547222#M1936412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giovanni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned DataSource and data package in your message, so I am assuming this is BW related.&lt;BR /&gt;However, it is not clear as to which DataSource user exit you are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumptions: (1) the data structure already has OBJNR in it.&lt;/P&gt;&lt;P&gt;(2) redundant OBJNR values will exist in the data package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;define an internal table just like the C_T_DATA structure and call it t_objnr.&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;define another internal table for two fields: aufk-objnr and cobrb-kostl. and call it t_kostl&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_objnr[] = c_t_data[].&lt;/P&gt;&lt;P&gt;SORT t_objnr BY objnr.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM t_objnr COMPARING objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT objnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kostl&lt;/P&gt;&lt;P&gt;INTO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE t_kostl&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; cobrb&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL ENTRIES IN t_objnr&lt;/P&gt;&lt;P&gt;WHERE objnr = t_objnr-objnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp; perbz = 'PER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_kostl by OBJNR.&lt;/P&gt;&lt;P&gt;FREE t_objnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 16:04:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-17T16:04:00Z</dc:date>
    <item>
      <title>Customer exit and optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547219#M1936409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;In the Customer Exit (tcode cmod in R/3) for a specific DataSource I have an access to a table, as in this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kostl UP TO 1 ROWS FROM cobrb INTO c_opa_6-zzbiocosts&lt;/P&gt;&lt;P&gt;WHERE objnr = aufk-objnr&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND perbz = 'PER'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance reasons I want to access to this table outside of the datapackage loop and to use FOR ALL ENTRIES option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I implement this possible solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or simple example will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547219#M1936409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-17T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customer exit and optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547220#M1936410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you gave the enhancement name and function module you are looking at because there might then be another exit (such as a BTE etc) that does what you want,&amp;nbsp; but not knowing what exit you are using we can't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp; I hope you're not using SELECT-ENDSELECT blocks....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547220#M1936410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-17T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customer exit and optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547221#M1936411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customer exits EXIT_SAPLRSAP_001 and EXIT_SAPLRSAP_002 receive a batch of records by package, so yes you could use a FOR ALL ENTRIES IN it_data or ct_data. Only exceptions would come from buffered tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in you example you read data related to an InfoObject (Order), not from the actual document (0CO_OM_OPA_6 actual cost in delta mode?) so shouldn't this data be appended to an attribute 0COORDER filled with&amp;nbsp; 0COORDER_ATTR, then used in some attributes of the final Info Provider. In your solution what will happen if order is modified after extraction of those costs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547221#M1936411</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-17T15:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Customer exit and optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547222#M1936412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giovanni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned DataSource and data package in your message, so I am assuming this is BW related.&lt;BR /&gt;However, it is not clear as to which DataSource user exit you are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumptions: (1) the data structure already has OBJNR in it.&lt;/P&gt;&lt;P&gt;(2) redundant OBJNR values will exist in the data package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;define an internal table just like the C_T_DATA structure and call it t_objnr.&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;define another internal table for two fields: aufk-objnr and cobrb-kostl. and call it t_kostl&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_objnr[] = c_t_data[].&lt;/P&gt;&lt;P&gt;SORT t_objnr BY objnr.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM t_objnr COMPARING objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT objnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kostl&lt;/P&gt;&lt;P&gt;INTO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE t_kostl&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; cobrb&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL ENTRIES IN t_objnr&lt;/P&gt;&lt;P&gt;WHERE objnr = t_objnr-objnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp; perbz = 'PER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_kostl by OBJNR.&lt;/P&gt;&lt;P&gt;FREE t_objnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-exit-and-optimization/m-p/11547222#M1936412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-17T16:04:00Z</dc:date>
    </item>
  </channel>
</rss>

