<?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: Debug a program generated through a subroutine pool in a background process? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669038#M29409</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not using generate to run subroutine pools but when I'm using perform I can debug the subroutines. if I'm running it in background, im just editting the SY-BATCH = 'X' to debug it.&lt;/P&gt;&lt;P&gt;so my program is like this .. &lt;/P&gt;&lt;P&gt;*put break-point in perform*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PERFORM FORM_NAME_IN_SUBROUTINEPOOL(PROGRAM_NAME) 
   USING INTERNAL_TABLE1(TABLE TO IMPORT IN SUBROUTINE)
CHANGING INTERNAL_TABLE2(TABLE TO EXPORT FROM SUBROUTINE).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will give you some idea.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 10:43:15 GMT</pubDate>
    <dc:creator>tan_michael</dc:creator>
    <dc:date>2018-10-30T10:43:15Z</dc:date>
    <item>
      <title>Debug a program generated through a subroutine pool in a background process?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669036#M29407</link>
      <description>&lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; I am generating a program using subroutine pool. And all this i am doing in a program which will be launched as a background process.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;So it's like:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Program1{&lt;/P&gt;
  &lt;P&gt;* some code&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;internalTable = {"Program2"}.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;GENERATE SUBROUTINE POOL internalTable NAME DATA(prog). &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If there is any way to access this program2 and debug it then please help me with the same.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669036#M29407</guid>
      <dc:creator>former_member579349</dc:creator>
      <dc:date>2018-10-30T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debug a program generated through a subroutine pool in a background process?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669037#M29408</link>
      <description>&lt;P&gt;Yes when the program will be called, you will be able to go through it in debug mode, even if it has been generated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt; you will not be able to do so if it is executed in the background.&lt;/P&gt;&lt;P&gt;So for the development process, I recommend to execute it in the foreground, then when it works you can switch to background.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669037#M29408</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2018-10-30T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debug a program generated through a subroutine pool in a background process?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669038#M29409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not using generate to run subroutine pools but when I'm using perform I can debug the subroutines. if I'm running it in background, im just editting the SY-BATCH = 'X' to debug it.&lt;/P&gt;&lt;P&gt;so my program is like this .. &lt;/P&gt;&lt;P&gt;*put break-point in perform*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PERFORM FORM_NAME_IN_SUBROUTINEPOOL(PROGRAM_NAME) 
   USING INTERNAL_TABLE1(TABLE TO IMPORT IN SUBROUTINE)
CHANGING INTERNAL_TABLE2(TABLE TO EXPORT FROM SUBROUTINE).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will give you some idea.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669038#M29409</guid>
      <dc:creator>tan_michael</dc:creator>
      <dc:date>2018-10-30T10:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debug a program generated through a subroutine pool in a background process?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669039#M29410</link>
      <description>&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Go to SE38 and open and display the program2 and mark a breakpoint.&lt;/P&gt;&lt;P&gt;then run the program1&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669039#M29410</guid>
      <dc:creator>tan_michael</dc:creator>
      <dc:date>2018-10-30T10:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debug a program generated through a subroutine pool in a background process?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669040#M29411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to start debug from background job you can try this approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1. Place a session debug break-point in your code &lt;/P&gt;&lt;P&gt;2. Go to SM37-&amp;gt;Enter job name-&amp;gt;Execute &lt;/P&gt;&lt;P&gt;3. Enter JDBG(no / before JDBG) in command field and place the cursor on the job name. &lt;/P&gt;&lt;P&gt;4. Now press ENTER button. It takes you to debug mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-a-program-generated-through-a-subroutine-pool-in-a-background-process/m-p/669040#M29411</guid>
      <dc:creator>natiele_bohn</dc:creator>
      <dc:date>2018-10-30T13:06:42Z</dc:date>
    </item>
  </channel>
</rss>

