<?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: Error in class while executing in SE24 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684647#M30591</link>
    <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;The steps I took to discover this are as follows:&lt;/P&gt;&lt;OL&gt;
 
&lt;LI&gt;I tried to execute the class Test Environment by click F8 when inside the class.&lt;/LI&gt; 
&lt;LI&gt;I got a popup: "&lt;STRONG&gt;Syntax error in test. Display generated test environment?&lt;/STRONG&gt;" I clicked "&lt;STRONG&gt;Yes&lt;/STRONG&gt;".&lt;/LI&gt; 
&lt;LI&gt;I got a status-bar error message: "&lt;STRONG&gt;Test frame could not be generated&lt;/STRONG&gt;". I double-clicked it and discovered it is &lt;STRONG&gt;message OO751&lt;/STRONG&gt; (ID 'OO', number 751).&lt;/LI&gt; 
&lt;LI&gt;I navigated there using the Technical Information button (also possible by going to SE91 of course), and clicked &lt;STRONG&gt;Where-used&lt;/STRONG&gt;.&lt;/LI&gt; 
&lt;LI&gt;I set a break-point in every usage. The one that turned out to be relevant was in function &lt;STRONG&gt;SETS_GN_CLASS_FRAME_GENERATE&lt;/STRONG&gt;, line 76.&lt;BR /&gt;
&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232962-debugger-change-l-subrc-skip-line.png" /&gt;&lt;/P&gt;&lt;/LI&gt; 
&lt;LI&gt;I executed the class again, entered the debugger, cleared the value of &lt;STRONG&gt;L_SUBRC&lt;/STRONG&gt;, skipped the MESSAGE statement and resumed the operation. I got the same popup as before, clicked "Yes", entered the debugger again, cleared L_SUBRC and skipped the MESSAGE statement again, then I ended up in the generated report &lt;STRONG&gt;%_JJ_TESTFRAME_CLASS&lt;/STRONG&gt;.&lt;/LI&gt; 
&lt;LI&gt;I tried to execute (F8) this report, but it jumped to a problematic line of code, with a red text below it saying '&lt;STRONG&gt;LINE_TOO_LONG&lt;/STRONG&gt;':&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232963-line-too-long.png" /&gt;&lt;/LI&gt; 
&lt;LI&gt;I went back to my class, clicked on '&lt;STRONG&gt;Source-code Based&lt;/STRONG&gt;' (Ctrl+Shift+0) and entered the source-code view of the whole class.&lt;/LI&gt; 
&lt;LI&gt;I edited this code and made sure no line of code exceeds &lt;STRONG&gt;115 characters&lt;/STRONG&gt;, which appears to be the maximum line length in a class that allows the generation of the Test Environment.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;So, in summary:&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;
 
&lt;LI&gt;Go to message class 'OO' number 751.&lt;/LI&gt; 
&lt;LI&gt;Click Where-used.&lt;/LI&gt; 
&lt;LI&gt;Put a break-point in every usage.&lt;/LI&gt; 
&lt;LI&gt;Debug, clear L_SUBRC and skip the MESSAGE statements.&lt;/LI&gt; 
&lt;LI&gt;Find out what is wrong with the code of the generated test environment.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 14:27:26 GMT</pubDate>
    <dc:creator>cuky</dc:creator>
    <dc:date>2023-12-19T14:27:26Z</dc:date>
    <item>
      <title>Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684641#M30585</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I have created a global class in SE24 and when i am trying to execute that class in direct SE24 its giving some error "Syntax error in test Display generated test environment?" but when i am calling into program and executing its working fine and when i am checking syntax check there no error. Anybody can help me on this.&lt;/P&gt;
  &lt;P&gt;Referred below link but couldn't understand.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/525480" target="test_blank"&gt;https://archive.sap.com/discussions/thread/525480&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 06:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684641#M30585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-26T06:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684642#M30586</link>
      <description>&lt;P&gt;Did you try to perform a syntax check?&lt;/P&gt;&lt;P&gt;Maybe in your report you invoke a method not afflicted by the error, but something is going wrong somewhere else.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684642#M30586</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2018-11-26T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684643#M30587</link>
      <description>&lt;P&gt;Issue resolved...&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 10:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684643#M30587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-26T10:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684644#M30588</link>
      <description>&lt;P&gt;And it was.... ?&lt;/P&gt;&lt;P&gt;If the issue is resolved, please, share the answer and close the question so other people stumbling on it will get an help.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 11:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684644#M30588</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2018-11-26T11:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684645#M30589</link>
      <description>&lt;P&gt;I had the same error and discovered that the cause was a line in my class code that was too long. I declared some local types, and some of the parameters in my methods were defined of that type, so that the whole line of code looked something like this: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS-METHODS do_something
IMPORTING iv_parameter_name TYPE zcl_my_long_class_name=&amp;gt;ts_my_structure_type-field_in_structure.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This line of code was too long. I've changed the parameter's type to a dictionary type, made sure that there were no other long lines of code in the class, tried to re-generate the test class environment, and it worked.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 16:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684645#M30589</guid>
      <dc:creator>cuky</dc:creator>
      <dc:date>2023-12-17T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684646#M30590</link>
      <description>&lt;P&gt;Probably there are other possible syntax errors (as I could see by searching the SAP notes), would you recommend a place where to add a break-point in the standard code of SE37 to know which exact syntax error it is? Maybe adding a break-point at statement SYNTAX-CHECK, INSERT REPORT or something like that could be sufficient?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 22:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684646#M30590</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-12-17T22:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class while executing in SE24</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684647#M30591</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;The steps I took to discover this are as follows:&lt;/P&gt;&lt;OL&gt;
 
&lt;LI&gt;I tried to execute the class Test Environment by click F8 when inside the class.&lt;/LI&gt; 
&lt;LI&gt;I got a popup: "&lt;STRONG&gt;Syntax error in test. Display generated test environment?&lt;/STRONG&gt;" I clicked "&lt;STRONG&gt;Yes&lt;/STRONG&gt;".&lt;/LI&gt; 
&lt;LI&gt;I got a status-bar error message: "&lt;STRONG&gt;Test frame could not be generated&lt;/STRONG&gt;". I double-clicked it and discovered it is &lt;STRONG&gt;message OO751&lt;/STRONG&gt; (ID 'OO', number 751).&lt;/LI&gt; 
&lt;LI&gt;I navigated there using the Technical Information button (also possible by going to SE91 of course), and clicked &lt;STRONG&gt;Where-used&lt;/STRONG&gt;.&lt;/LI&gt; 
&lt;LI&gt;I set a break-point in every usage. The one that turned out to be relevant was in function &lt;STRONG&gt;SETS_GN_CLASS_FRAME_GENERATE&lt;/STRONG&gt;, line 76.&lt;BR /&gt;
&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232962-debugger-change-l-subrc-skip-line.png" /&gt;&lt;/P&gt;&lt;/LI&gt; 
&lt;LI&gt;I executed the class again, entered the debugger, cleared the value of &lt;STRONG&gt;L_SUBRC&lt;/STRONG&gt;, skipped the MESSAGE statement and resumed the operation. I got the same popup as before, clicked "Yes", entered the debugger again, cleared L_SUBRC and skipped the MESSAGE statement again, then I ended up in the generated report &lt;STRONG&gt;%_JJ_TESTFRAME_CLASS&lt;/STRONG&gt;.&lt;/LI&gt; 
&lt;LI&gt;I tried to execute (F8) this report, but it jumped to a problematic line of code, with a red text below it saying '&lt;STRONG&gt;LINE_TOO_LONG&lt;/STRONG&gt;':&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232963-line-too-long.png" /&gt;&lt;/LI&gt; 
&lt;LI&gt;I went back to my class, clicked on '&lt;STRONG&gt;Source-code Based&lt;/STRONG&gt;' (Ctrl+Shift+0) and entered the source-code view of the whole class.&lt;/LI&gt; 
&lt;LI&gt;I edited this code and made sure no line of code exceeds &lt;STRONG&gt;115 characters&lt;/STRONG&gt;, which appears to be the maximum line length in a class that allows the generation of the Test Environment.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;So, in summary:&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;
 
&lt;LI&gt;Go to message class 'OO' number 751.&lt;/LI&gt; 
&lt;LI&gt;Click Where-used.&lt;/LI&gt; 
&lt;LI&gt;Put a break-point in every usage.&lt;/LI&gt; 
&lt;LI&gt;Debug, clear L_SUBRC and skip the MESSAGE statements.&lt;/LI&gt; 
&lt;LI&gt;Find out what is wrong with the code of the generated test environment.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-while-executing-in-se24/m-p/684647#M30591</guid>
      <dc:creator>cuky</dc:creator>
      <dc:date>2023-12-19T14:27:26Z</dc:date>
    </item>
  </channel>
</rss>

