<?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: Optimise PCL4 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441628#M1247939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;use Perform outside the Select statement&lt;/STRONG&gt; as It takes long time Depending upon the records...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2009 05:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-31T05:24:24Z</dc:date>
    <item>
      <title>Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441627#M1247938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help me optimise this piece of code as it runs into a time out dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT client relid srtfd srtf2 histo aedtm uname pgmid versn&lt;/P&gt;&lt;P&gt;               clustr&lt;/P&gt;&lt;P&gt;         FROM pcl4&lt;/P&gt;&lt;P&gt;         INTO (pcl4-client,pcl4-relid,pcl4-srtfd,pcl4-srtf2, pcl4-histo,&lt;/P&gt;&lt;P&gt;               pcl4-aedtm,pcl4-uname,pcl4-pgmid,pcl4-versn,pcl4-clustr)&lt;/P&gt;&lt;P&gt;          WHERE  relid EQ relid&lt;/P&gt;&lt;P&gt;         AND     srtfd LIKE ra_pernrange-low "Represents PCL4 key ra_pernrrange-low EQ 'A&amp;lt;pernr&amp;gt;%'&lt;/P&gt;&lt;P&gt;         AND     srtf2 EQ '00'&lt;/P&gt;&lt;P&gt;         AND     aedtm IN so_datum&lt;/P&gt;&lt;P&gt;         AND     uname IN so_uname.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;end of new select&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;          CHECK pcl4-srtfd IN srtfd_select_range_tab.&lt;/P&gt;&lt;P&gt;                                                            "GG470&lt;/P&gt;&lt;P&gt;          PERFORM add_pcl4 USING '000000' CHANGING dummy.&lt;/P&gt;&lt;P&gt;        ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is similar to d code used in standard report RPUAUd00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441627#M1247938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T05:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441628#M1247939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;use Perform outside the Select statement&lt;/STRONG&gt; as It takes long time Depending upon the records...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441628#M1247939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T05:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441629#M1247940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the perform statement needs to move the contents of pcl4 into lcl4 can u tell me how 2 do it!??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441629#M1247940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T05:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441630#M1247941</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;SELECT.. ENDSELECT often result into serious performance issues. So according to me change your as specified below:&lt;/P&gt;&lt;P&gt;Declare an internal with fields of pcl4 table which are used in select query.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT client relid srtfd srtf2 histo aedtm uname pgmid versn
clustr
FROM pcl4
INTO TABLE lt_pcl4
WHERE relid EQ relid
AND srtfd IN srtfd_select_range_tab " this also needs to be changed
AND srtf2 EQ '00'
AND aedtm IN so_datum
AND uname IN so_uname.

IF sy-subrc EQ 0.
  LOOP AT lt_pcl4.
     PERFORM add_pcl4 USING '000000' CHANGING dummy.
  ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will enhance the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brajvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441630#M1247941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T05:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441631#M1247942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have implemented the suggested solution however in the dev system it doesnt take time but when i migrate my code to test system the code hangs and gives  a run time error ... is der any function dat can help me out to read from cluster pcl4... plz help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 03:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441631#M1247942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise PCL4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441632#M1247943</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;To further optimise performance of PCL4 cluster table, fetch data using IMPORT .... FROM DATABASE statment. For IMPORT statment background refer help&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for reference on HR cluster table:&lt;/P&gt;&lt;P&gt;Cluster Definition &lt;/P&gt;&lt;P&gt;  - The data definition of a work area for PCLn is specified in separate programs which comply with fixed  naming conventions. &lt;/P&gt;&lt;P&gt; -  They are defined as INCLUDE programs (RPCnxxy0). The following naming convention applies: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           n = 1 or 2 (PCL1 or PCL2) &lt;/P&gt;&lt;P&gt;           xx = Relation ID (e.g. RX) &lt;/P&gt;&lt;P&gt;           y = 0 for international clusters or country indicator (T500L) for different country cluster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code has to modified in the manner specified below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: PCLn.

INCLUDE RPCnxxy0. "Cluster definition

* Fill cluster Key
xy-key = &amp;lt;value&amp;gt;.

* Import record

IMPORT table1 FROM DATABASE PCLn(xy) ID xy-KEY.

IF SY-SUBRC EQ 0.
   READ TABLE table1 INTO wa WITH KEY conditions here
   DO further manipulation.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inculde RPC4PR00 can be called in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brajvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 06:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-pcl4/m-p/5441632#M1247943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T06:13:27Z</dc:date>
    </item>
  </channel>
</rss>

