<?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 Set a Break-point at particular word in  Z program programatically. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489377#M16403</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a requirement to set break-point in zprogram at a particular FM or keyword (say "REUSE_ALV_GRID_DISPLAY" in "ZANY_PROGRAM" program)  programatically.&lt;/P&gt;&lt;P&gt;I am aware of below code to set breakpoint in any program at particular line number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  wa_breakpoints-program = sy-repid.
  wa_breakpoints-line    = 3.
  APPEND wa_breakpoints TO breakpoints.
  CALL METHOD cl_abap_debugger=&amp;gt;save_breakpoints
    EXPORTING
      main_program = sy-repid     "Program name
      breakpoints  = breakpoints.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However cannot figure out a way  to get line number from the keyword.&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2017 15:12:08 GMT</pubDate>
    <dc:creator>chetan_shah9</dc:creator>
    <dc:date>2017-06-10T15:12:08Z</dc:date>
    <item>
      <title>Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489377#M16403</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a requirement to set break-point in zprogram at a particular FM or keyword (say "REUSE_ALV_GRID_DISPLAY" in "ZANY_PROGRAM" program)  programatically.&lt;/P&gt;&lt;P&gt;I am aware of below code to set breakpoint in any program at particular line number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  wa_breakpoints-program = sy-repid.
  wa_breakpoints-line    = 3.
  APPEND wa_breakpoints TO breakpoints.
  CALL METHOD cl_abap_debugger=&amp;gt;save_breakpoints
    EXPORTING
      main_program = sy-repid     "Program name
      breakpoints  = breakpoints.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However cannot figure out a way  to get line number from the keyword.&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 15:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489377#M16403</guid>
      <dc:creator>chetan_shah9</dc:creator>
      <dc:date>2017-06-10T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489378#M16404</link>
      <description>&lt;P&gt;You may use the statement &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapread_report.htm"&gt;READ REPORT&lt;/A&gt; to read the source code.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 16:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489378#M16404</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-10T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489379#M16405</link>
      <description>&lt;P&gt;Thank you Sandra. I created below program using Read Report to get the line number of particular string. Hope it helps someone.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  template TYPE          c LENGTH 30,
  source   TYPE TABLE OF string,
  wa       TYPE          source.

template = 'ZRLB_INVOICE'.

READ REPORT template INTO source.
IF sy-subrc &amp;lt;&amp;gt; 0.
  RETURN.
ELSE.
  LOOP AT source INTO wa WHERE table_line CS 'SSF_FUNCTION_MODULE_NAME'.
    WRITE: sy-tabix.
  ENDLOOP.
ENDIF.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 04:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489379#M16405</guid>
      <dc:creator>chetan_shah9</dc:creator>
      <dc:date>2017-06-12T04:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489380#M16406</link>
      <description>&lt;P&gt;Chetan,&lt;/P&gt;&lt;P&gt;May I know the objective of this exercise ?&lt;/P&gt;&lt;P&gt;Just curious &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 04:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489380#M16406</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-06-12T04:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489381#M16407</link>
      <description>&lt;P&gt;Why would you need to do this ?  Perhaps I am thinking too simplistically here,  but you can set break points from other GUI sessions at statemments, procedures,  methods and functions,  you can set watch points on variable values etc etc.  Why would you programatically want to set a break-point ?&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 07:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489381#M16407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-12T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489382#M16408</link>
      <description>&lt;P&gt;In BW you'll see code like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF certain_flag EQ abap_true.&lt;BR /&gt; BREAK-POINT.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is used in some data processing, where you tell the DTP that you want to debug before the start routine begins, for example. The start routine is held in a locally generated program, so isn't readily accessible to place the break-point. (Actually, it is, you just go to the DTP and choose "display generate program", but that's probably too technical for most BW people. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;I imagine the OP is wanting to do something similar.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489382#M16408</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-06-12T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489383#M16409</link>
      <description>&lt;P&gt;Thanks for the explanation Matt.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489383#M16409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-12T08:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489384#M16410</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;Now I understood the funda behind those break-points which I got to see while developing a few routines in BW.Thanks for the info.Would you also let us know what is DTP  (InfoObjects,InforSources....?)&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489384#M16410</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-06-12T08:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489385#M16411</link>
      <description>&lt;P&gt;Data Transfer Process.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489385#M16411</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-06-12T10:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set a Break-point at particular word in  Z program programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489386#M16412</link>
      <description>&lt;P&gt;Hello Kiran,&lt;/P&gt;
  &lt;P&gt;We have multiple print program each triggering multiple smart form in our project. It becomes extremely time consuming at times to find the correct print program triggering the smart form. The above logic might help to set breakpoints in all print program's 'SSF_FUNCTION_MODULE_NAME' thus saving time finding the right program.&lt;/P&gt;
  &lt;P&gt;Thanks and Regards,&lt;/P&gt;
  &lt;P&gt;Chetan Shah&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 06:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-break-point-at-particular-word-in-z-program-programatically/m-p/489386#M16412</guid>
      <dc:creator>chetan_shah9</dc:creator>
      <dc:date>2017-09-01T06:50:14Z</dc:date>
    </item>
  </channel>
</rss>

