<?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: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846670#M1957850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreekanth N,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_USER_GET_DETAIL is slow as every SAP function but not too slow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;As you do an RFC call, is it a remote system? If so, make sure the RFC connection is not estsablished for each and every SAP call. SAP will keep the RFC session in memory is the next call to and from the same system comes within a certain time (don't know eyactly but probably enough in your case).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Check your program if there is any call to functions &lt;/SPAN&gt; RFC_CONNECTION_CANCEL or&lt;/P&gt;&lt;P&gt;RFC_CONNECTION_CLOSE. This should be avoided as it enforces reload of the program(s) which is performance-robbing,.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Also you can always try to make use of&lt;A href="http://Easily implement parallel processing in online and batch processing/"&gt;&lt;STRONG&gt; parallel processing&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; t&lt;/STRONG&gt;o speed up the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Clemens&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2016 16:41:43 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2016-08-01T16:41:43Z</dc:date>
    <item>
      <title>Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846668#M1957848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have internal table having 20,000 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp; This internal table is looped and for every record the following BAPI is used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'BAPI_USER_GET_DETAIL' DESTINATION lv_dest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since this BAPI is being called for every record, it is taking 30 mins to come out from the loop.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; IF this BAPI is commented then it takes only 2 sec but need user details hence cannot skip this BAPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please let me know solution to overcome this performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 10:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846668#M1957848</guid>
      <dc:creator>sreekanth_n2</dc:creator>
      <dc:date>2016-08-01T10:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846669#M1957849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can increase the performance using these 2 methods (can be combined) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1) as you use RFC, avoid doing 20000 RFC calls, instead do only 1 call to a custom RFC-enabled function module, which calls the BAPI 20000 times locally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;EDIT :&lt;/P&gt;&lt;P&gt;As I read my answer a few days later, I realize that proposition "1" above is incorrect because it's not the purpose of RFC of doing mass processing as its execution is time-limited and should be short. So I propose another way:&lt;/P&gt;&lt;P&gt;1) Avoid doing 20000 RFC calls (RFC adds non-neglictible overhead) ; instead, you may run a background job on the RFCremote server, and query it from time to time until it's over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) BAPIs are great except when it's about mass processing and if the performance is bad. In this case, there are 2 ways to improve the performance :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;either using directly SELECT instead of calling BAPIs,&lt;/LI&gt;&lt;LI&gt;or maybe you may keep your BAPIs, and add preliminary SELECT so that the database stores the whole data into memory, then the BAPIs will access these data more quickly,&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 12:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846669#M1957849</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-08-01T12:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846670#M1957850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreekanth N,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_USER_GET_DETAIL is slow as every SAP function but not too slow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;As you do an RFC call, is it a remote system? If so, make sure the RFC connection is not estsablished for each and every SAP call. SAP will keep the RFC session in memory is the next call to and from the same system comes within a certain time (don't know eyactly but probably enough in your case).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Check your program if there is any call to functions &lt;/SPAN&gt; RFC_CONNECTION_CANCEL or&lt;/P&gt;&lt;P&gt;RFC_CONNECTION_CLOSE. This should be avoided as it enforces reload of the program(s) which is performance-robbing,.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Also you can always try to make use of&lt;A href="http://Easily implement parallel processing in online and batch processing/"&gt;&lt;STRONG&gt; parallel processing&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; t&lt;/STRONG&gt;o speed up the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Clemens&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 16:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846670#M1957850</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-08-01T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846671#M1957851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreekanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Based on the large number of destinations and information in ABAP Help, I suspect that &lt;STRONG&gt;'STARTING NEW TASK IN GROUP'&lt;/STRONG&gt; for 2000 records would be a better solution for &lt;STRONG&gt;Parallel processing &lt;/STRONG&gt;as Clemens suggested. Please provide all the parameters required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;A href="https://scn.sap.com/thread/3518253"&gt;https://scn.sap.com/thread/3518253&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Hiran&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 18:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846671#M1957851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-01T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846672#M1957852</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;This FM may ultimately get values from tables i.e. USR* or US*. So you may also think of calling RFC_READ_TABLE in single call for 1 table at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 12:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846672#M1957852</guid>
      <dc:creator>Ashokv</dc:creator>
      <dc:date>2016-08-02T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846673#M1957853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ashok,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can u share sample code on how to fetch user data for 20,000 users in single stretch with fm suggested by you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846673#M1957853</guid>
      <dc:creator>sreekanth_n2</dc:creator>
      <dc:date>2016-08-03T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with 'BAPI_USER_GET_DETAIL' DESTINATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846674#M1957854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Improved the performance by implementing parallel processor techinque.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ealier it took 40 minutes to execute, post changes it took only 2 minutes to execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 10:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bapi-user-get-detail-destination/m-p/11846674#M1957854</guid>
      <dc:creator>sreekanth_n2</dc:creator>
      <dc:date>2016-08-24T10:32:23Z</dc:date>
    </item>
  </channel>
</rss>

