<?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: Breakpoint at database table modification using Script debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448724#M1999301</link>
    <description>&lt;P&gt;You can use RSTPDA_SCRIPT_BP_CHANGE_TAB script or create your own:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911829-rstpda-script-bp-change-tab.png" /&gt;&lt;/P&gt;&lt;P&gt;The tables to debug are listed in the range table range_it, which is filled in init() method &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD init.
    DATA l_cancel TYPE flag.
    CALL FUNCTION 'TPDA_SCRIPT_CALL_SEL_SCREEN'
      EXPORTING
        p_screen   = if_tpda_sel_screens=&amp;gt;c_scr_table
      IMPORTING
        p_range_it = range_it
        p_cancel   = l_cancel.

    IF l_cancel = abap_true.
      MESSAGE s144(tpda) .
      RAISE EXCEPTION TYPE cx_tpda_stop_scripting_request.
    ELSEIF range_it IS INITIAL.
      MESSAGE s144(tpda) .
      RAISE EXCEPTION TYPE cx_tpda_stop_scripting_request.
    ENDIF.
  ENDMETHOD.                    "init
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in your own script tables can be added directly, without a popup window:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;range_it = VALUE #( ( low = 'MKPF' option = 'EQ' sign = 'I' )
                    ( low = 'MSEG' option = 'EQ' sign = 'I' ) ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Apr 2021 13:36:25 GMT</pubDate>
    <dc:creator>touzik_itc</dc:creator>
    <dc:date>2021-04-14T13:36:25Z</dc:date>
    <item>
      <title>Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448721#M1999298</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt; :&lt;/P&gt;
  &lt;P&gt;I have to update MKPF-BKTXT for the goods movement generated by the following function modules :&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;BAPI_PRODORDCONF_CANCEL&lt;/LI&gt; 
   &lt;LI&gt;BAPI_GOODSMVT_CANCEL&lt;/LI&gt; 
   &lt;LI&gt;BAPI_PRODORDCONF_CREATE_TT&lt;/LI&gt; 
   &lt;LI&gt;BAPI_GOODSMVT_CREATE&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;For BAPI_GOODSMVT_CREATE -&amp;gt; no problem because there is a "GOODSMVT_HEADER" structure with my BKTXT field.&lt;/P&gt;
  &lt;P&gt;This is another story for the others because header for MKPF is not available. Each of them creates a some point a goods movement so I tried the badis MB_BAPI_GOODSMVT_CREATE &amp;amp; WORKORDER_GOODSMVT but there is no method with the data i need to update MKPF-BKTXT, or it's not even called by the FMs above.&lt;/P&gt;
  &lt;P&gt;I tried "&lt;STRONG&gt;break point at statement&lt;/STRONG&gt;" : "CALL BADI" and also "CALL CUSTOMER-FUNCTION" but nothing seems to do the job i want.&lt;/P&gt;
  &lt;P&gt;My last hope is to find when &lt;STRONG&gt;MKPF&lt;/STRONG&gt; and &lt;STRONG&gt;MSEG&lt;/STRONG&gt; are updated. Of course when i start my debugger, those tables are not reachable so i can't set a breakpoint on them, but, at one point, they have to be updated, but i don't know when.&lt;/P&gt;
  &lt;P&gt;I ve checked and It seems there is a way using &lt;STRONG&gt;Script&lt;/STRONG&gt; in debbuging mode, but i don't understand how it's working :&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911812-capture-decran-2021-04-14-134706.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;How can i set the break point on MKPF here?&lt;/P&gt;
  &lt;P&gt;Or if you know any other way to do that then I'll take it.&lt;/P&gt;
  &lt;P&gt;Thanks a lot for your time.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Alexandre&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448721#M1999298</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-04-14T11:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448722#M1999299</link>
      <description>&lt;P&gt;The transaction ST05 can be used to find out, where database tables are updated.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 12:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448722#M1999299</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2021-04-14T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448723#M1999300</link>
      <description>&lt;P&gt;Hi   &lt;SPAN class="mention-scrubbed"&gt;touzik_itc&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Yes thanks, i've used SAT tcode and i found the place too work for one of my MF. ST05 should do the same yes.&lt;/P&gt;&lt;P&gt;But still i'm curious to know if it's possible to set this kind of break point directly in the debugger.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 12:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448723#M1999300</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-04-14T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448724#M1999301</link>
      <description>&lt;P&gt;You can use RSTPDA_SCRIPT_BP_CHANGE_TAB script or create your own:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911829-rstpda-script-bp-change-tab.png" /&gt;&lt;/P&gt;&lt;P&gt;The tables to debug are listed in the range table range_it, which is filled in init() method &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD init.
    DATA l_cancel TYPE flag.
    CALL FUNCTION 'TPDA_SCRIPT_CALL_SEL_SCREEN'
      EXPORTING
        p_screen   = if_tpda_sel_screens=&amp;gt;c_scr_table
      IMPORTING
        p_range_it = range_it
        p_cancel   = l_cancel.

    IF l_cancel = abap_true.
      MESSAGE s144(tpda) .
      RAISE EXCEPTION TYPE cx_tpda_stop_scripting_request.
    ELSEIF range_it IS INITIAL.
      MESSAGE s144(tpda) .
      RAISE EXCEPTION TYPE cx_tpda_stop_scripting_request.
    ENDIF.
  ENDMETHOD.                    "init
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in your own script tables can be added directly, without a popup window:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;range_it = VALUE #( ( low = 'MKPF' option = 'EQ' sign = 'I' )
                    ( low = 'MSEG' option = 'EQ' sign = 'I' ) ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 13:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448724#M1999301</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2021-04-14T13:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448725#M1999302</link>
      <description>&lt;P&gt;Note that if the tables are updated in the update task (as often), you must first activate the update debug, then start the script in the update task.&lt;/P&gt;&lt;P&gt;Note that the standard script RSTPDA_SCRIPT_BP_CHANGE_TAB asks for the table names (RANGE_IT) when the script is started, and its method SCRIPT is triggered at each INSERT/MODIFY/UPDATE/DELETE statement (if you look at the script "properties").&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448725#M1999302</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-04-14T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint at database table modification using Script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448726#M1999303</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;touzik_itc&lt;/SPAN&gt; and  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;With both your answer, i have used my first debbuging script ever (even after 10 years of ABAP) ^^&lt;/P&gt;&lt;P&gt;We learn every day!&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breakpoint-at-database-table-modification-using-script-debugging/m-p/12448726#M1999303</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-04-14T16:26:47Z</dc:date>
    </item>
  </channel>
</rss>

