<?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: Syntax-check of code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042935#M1172505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the bellow fm. But you will get the message like in ABAP editor. It may be useful for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : isource(255) occurs 0 with header line,
       icorrect(255) occurs 0 with header line,
       iwarning like RSLINLMSG occurs 0 with header line,
       ierror like RSLINLMSG occurs 0 with header line.

read report 'Your prog name in CAPS' into isource.



CALL FUNCTION 'EDITOR_SYNTAX_CHECK'
  EXPORTING
*   I_GLOBAL_CHECK         = ' '
*   I_GLOBAL_PROGRAM       = ' '
    i_program              = 'Your prog name in CAPS'
*   I_R2_CHECK             = ' '
*   I_R2_DESTINATION       = ' '
*   I_TRDIR                = ' '
*   I_CORRWARN             = ' '
   ALL_ERRORS             = 'X'
* IMPORTING
*   O_ERROR_INCLUDE        =
*   O_ERROR_LINE           =
*   O_ERROR_MESSAGE        =
*   O_ERROR_OFFSET         =
*   O_ERROR_SUBRC          =
  tables
    i_source               = isource
   O_CORRECTION_TAB       = icorrect
   O_WARNINGS_TAB         = iwarning
   O_ERROR_TAB            = ierror
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2009 11:14:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-09T11:14:12Z</dc:date>
    <item>
      <title>Syntax-check of code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042932#M1172502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am passing certain code in table itab and then doing a syntax check using SYNTAX-CHECK FOR itab MESSAGE mess LINE lin WORD wrd .The problem with this method is it check the code line by line and assign mess with the first error msg  but I want to trap all the error message of the code in itab at once in another table.&lt;/P&gt;&lt;P&gt;Is it possible to trap all the error msg at once in a internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 09:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042932#M1172502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T09:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax-check of code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042933#M1172503</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;Your file w_physical_file will contain all your error messages, but it won't be enough to correct errors in your input file. For each record in w_physical_file, you need some sort of indicator to tell which record is in error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 10:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042933#M1172503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T10:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax-check of code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042934#M1172504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I dont have to correct it I just want to trap all the error messages.Where would I get access to this file w_physical_file...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 10:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042934#M1172504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax-check of code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042935#M1172505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the bellow fm. But you will get the message like in ABAP editor. It may be useful for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : isource(255) occurs 0 with header line,
       icorrect(255) occurs 0 with header line,
       iwarning like RSLINLMSG occurs 0 with header line,
       ierror like RSLINLMSG occurs 0 with header line.

read report 'Your prog name in CAPS' into isource.



CALL FUNCTION 'EDITOR_SYNTAX_CHECK'
  EXPORTING
*   I_GLOBAL_CHECK         = ' '
*   I_GLOBAL_PROGRAM       = ' '
    i_program              = 'Your prog name in CAPS'
*   I_R2_CHECK             = ' '
*   I_R2_DESTINATION       = ' '
*   I_TRDIR                = ' '
*   I_CORRWARN             = ' '
   ALL_ERRORS             = 'X'
* IMPORTING
*   O_ERROR_INCLUDE        =
*   O_ERROR_LINE           =
*   O_ERROR_MESSAGE        =
*   O_ERROR_OFFSET         =
*   O_ERROR_SUBRC          =
  tables
    i_source               = isource
   O_CORRECTION_TAB       = icorrect
   O_WARNINGS_TAB         = iwarning
   O_ERROR_TAB            = ierror
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-check-of-code/m-p/5042935#M1172505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:14:12Z</dc:date>
    </item>
  </channel>
</rss>

