<?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: Api to get error analysis in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162370#M1978143</link>
    <description>&lt;P&gt;I would suggest rethinking the solution. Especially from the security point of view. Surely the logic executed by the 3rd party application cannot be so dynamic, that you're not able to prepare the code in API beforehand (together with error handling).&lt;/P&gt;&lt;P&gt;I would also advise you to create some sort of a log of API calls, if you decide to stick with the current dynamic solution. Just so that you have logs of what has been executed through the API.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 14:14:52 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2020-05-14T14:14:52Z</dc:date>
    <item>
      <title>Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162362#M1978135</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt; I am giving an api to customer to write thier own code and we execute it. So not to interpret the normal flow we called that in try endtry. Now the customer want him to show the error analysis on dump of thier code. As that is not registered in st22. Is there any api to get the text of the analysis like what happened ? Where dump caused, call stack ,. What came be done etc&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 08:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162362#M1978135</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2020-05-14T08:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162363#M1978136</link>
      <description>&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;If you generate the code and that fails, you can show the error message(s) of the generation. If the code fails while executing, you can only return what the code of your customer returns as messages. if there's a dump you can suggest ST22. If some exception occurs you can catch this in your own catch coding, and format something based on that using the information the exception provides. use routines like get_text or get_source_position. These are methods of cx_root so you can look up the proper name and API there.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 09:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162363#M1978136</guid>
      <dc:creator>former_member147723</dc:creator>
      <dc:date>2020-05-14T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162364#M1978137</link>
      <description>&lt;P&gt;Wow! I hope it's not free source code! (nice vulnerability! Your system is ready for attacks!)&lt;/P&gt;&lt;P&gt;(but if it's not free source code, then it would mean the short dump is caused by your own API, so I'm afraid that your system is vulnerable)&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162364#M1978137</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-14T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162365#M1978138</link>
      <description>&lt;P&gt;Hi Hesen,&lt;/P&gt;&lt;P&gt;     Thanks for considering.  thing is i already done that i mean used cx_root and provided details from get_text and get_source_position. but they want complete details like in case of duplicate dump they are not knowing in through which table dump caused. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kiran rachamalla.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162365#M1978138</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2020-05-14T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162366#M1978139</link>
      <description>&lt;P&gt;Hi sandra Rossi,&lt;/P&gt;&lt;P&gt;           No its not free source code. thing is i have few programs which i call dynamically and execute. but if there is a dump in those its really hard to find exactly where the error is. so they are asking for something like st22 error analysis.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162366#M1978139</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2020-05-14T12:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162367#M1978140</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;kiran.rachamalla&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;If I understand it correctly, you're creating an API for some 3rd application. In these cases it's normal to have some return parameter in the function(s) which will return information about the result of the executed action. This could be a simple integer field or, to be more precise in error reporting, some more complex structure or set of fields.&lt;/P&gt;&lt;P&gt;Now, as I see it, your API should not return SAP errors directly. It should first try to handle these errors and "fix" them, whenever possible. It should also try to avoid any errors beforehand, if that's possible. &lt;/P&gt;&lt;P&gt;In case error is not avoidable and not fixable you should return information to the 3rd party application, but also process it before returning - make it standardized, maybe add some descriptive text to the error message (some SAP errors are not clear at all). Make it in a way, that 3rd party application knows what has happened and why. However, do not return the SAP error directly without processing it first.&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Mateusz&lt;/P&gt;&lt;P&gt;Edit: also, as I just noticed what you're doing with the API - allowing 3rd party to execute ABAP code in your system, I would &lt;STRONG&gt;strongly&lt;/STRONG&gt; advise &lt;STRONG&gt;against&lt;/STRONG&gt; that kind of solution. Not mentioning the obvious worst case scenario, where 3rd party application can simply delete data from SAP, the other issues could be: incorrect records in DB if inserted directly, performance issues related to not optimized code, lack of possibility to buffer or streamline the logic.&lt;BR /&gt;API should allow for certain operations within the system, but the operations should be clearly defined and programmed inside of the API itself. Not dynamically defined by the 3rd party software.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162367#M1978140</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-14T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162368#M1978141</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 13:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162368#M1978141</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-14T13:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162369#M1978142</link>
      <description>&lt;P&gt;I don't understand how people who don't have access to the SAP system could understand the short dump better than the SAP people.&lt;/P&gt;&lt;P&gt;Note that they don't just receive nothing when there's a short dump, they should be able to receive at least the name of the runtime error (like SYNTAX_ERROR, CONVT_NO_NUMBER, etc.) + very short description&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 13:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162369#M1978142</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-14T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Api to get error analysis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162370#M1978143</link>
      <description>&lt;P&gt;I would suggest rethinking the solution. Especially from the security point of view. Surely the logic executed by the 3rd party application cannot be so dynamic, that you're not able to prepare the code in API beforehand (together with error handling).&lt;/P&gt;&lt;P&gt;I would also advise you to create some sort of a log of API calls, if you decide to stick with the current dynamic solution. Just so that you have logs of what has been executed through the API.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 14:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-to-get-error-analysis/m-p/12162370#M1978143</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-14T14:14:52Z</dc:date>
    </item>
  </channel>
</rss>

