<?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 program is giving dump now in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837860#M1472635</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;i got syntax error like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing the formal parameter "SUBRC" to the fields SY-SUBRC is not appropriate since&lt;/P&gt;&lt;P&gt;SY-SUBRC is set by statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM view_sap_locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_num_locks LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;gclient = sy-mandt&lt;/P&gt;&lt;P&gt;gname = c_order&lt;/P&gt;&lt;P&gt;guname = space&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number = l_num_locks&lt;/P&gt;&lt;P&gt;subrc = sy-subrc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;enq = t_saplocks&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how to proceed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 12:03:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-20T12:03:41Z</dc:date>
    <item>
      <title>program is giving dump now</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837860#M1472635</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;i got syntax error like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing the formal parameter "SUBRC" to the fields SY-SUBRC is not appropriate since&lt;/P&gt;&lt;P&gt;SY-SUBRC is set by statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM view_sap_locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_num_locks LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;gclient = sy-mandt&lt;/P&gt;&lt;P&gt;gname = c_order&lt;/P&gt;&lt;P&gt;guname = space&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number = l_num_locks&lt;/P&gt;&lt;P&gt;subrc = sy-subrc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;enq = t_saplocks&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how to proceed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837860#M1472635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T12:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: program is giving dump now</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837861#M1472636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dump analysis states the reason clearly. You have to define an auxiliary variable V_SUBRC &amp;amp; pass to the FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_subrc TYPE sy-subrc.

CALL FUNCTION 'ENQUEUE_READ'
EXPORTING
gclient = sy-mandt
gname = c_order
guname = space
IMPORTING
number = l_num_locks
subrc = v_subrc "Use v_subrc here
TABLES
enq = t_saplocks
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837861#M1472636</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-20T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: program is giving dump now</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837862#M1472637</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;Declare SY-SUBRC into Local variable like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_SUBRC type SY_SUBRC and pass the L_SUBRC in the function module instead of SY_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837862#M1472637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: program is giving dump now</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837863#M1472638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_num_locks LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lv_RC type sy-subrc.----&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;Add this line to your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;gclient = sy-mandt&lt;/P&gt;&lt;P&gt;gname = c_order&lt;/P&gt;&lt;P&gt;guname = space&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number = l_num_locks&lt;/P&gt;&lt;P&gt;subrc = lv_rc----&lt;/P&gt;&lt;HR originaltext="-------------------------------" /&gt;&lt;P&gt;change sy-subrc to lv_rc &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;enq = t_saplocks&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and test.... I hope you will be able to proceed.....:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viahaal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-giving-dump-now/m-p/6837863#M1472638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T12:13:25Z</dc:date>
    </item>
  </channel>
</rss>

