The body of an error document for HTTP logon errors is usually in HTML or XML format. However, some tags have a special meaning.
<NO_TRANSLATION>...</NO_TRANSLATION>: The text between the tags consists of technical code that is not translated.
There are also the following tags with the format <%=...%>. These tags are replaced at runtime. You can use these tags to register an application-specific error text that is displayed when errors occur. The following information can then be added to the general error message to make the problem easier to identify and solve:
System-Specific Data
● <%=SYUNAME%>: User name
● <%=SYMANDT%>: Client
● <%=SYLANGU%>: Language
● <%=SYHOST%> : Server name
● <%=SYSYSID%>: System name
● <%=SYOPSYS%>: Operating system
● <%=SYDBSYS%>: Database type
● <%=SYSAPRL%>: System release
● <%=SYDATUM%>: Date
● <%=SYUZEIT%>: Time
● <%=SYDYNNR%>: Screen number
● <%=SYREPID%>: Report ID
● <%=SYECODE%>: ICF error code
● <%=SYXPROG%>: Name of ABAP program
● <%=SYTCODE%>: Transaction code
● <%=SYETEXT%>: Error text (system)
● <%=SYMSGID%>: System message ID
● <%=SYMSGTY%>: Message type
● <%=SYMSGNO%>: Message number
● <%=SYMSGV1%>: Placeholder for message #1
● <%=SYMSGV2%>: Placeholder for message #2
● <%=SYMSGV3%>: Placeholder for message #3
● <%=SYMSGV4%>: Placeholder for message #4
Request-Specific Data
● <%=PATHTRANS%> : ICF search path within URL
● <%=FORMFIELD%> : All form fields of document (in text format)
● <%=FORMFIELD_B64%>: All form fields of document (in Base64 format)
● <%=MESSAGE%> : Short text of error message
● <%=ABAPCALLSTACK%>: ABAP call stack
● <%=ERRORCODE%> : Name of ABAP runtime error
Example Program: Error Document
An example program in the ABAP Application Server shows you how you can use error documents. Procedure:
...
1. Call transaction SICF.
2. In the directory tree, choose the following path: default_host/sap/bc/error/template.
3. Double-click the templateservice.
4. Choose Error Pages and then Change Under Body , choose Display/Change, to display the program code.
<html> <body> <H1><NO_TRANSLATION> 500 SAP Internal Server Error</NO_TRANSLATION></H1> <B>Error message:</B><%=MESSAGE%><BR /> <B>Additional information on the termination:</B> <BR /> <B>Type of termination:</B><%=SYETEXT%> <BR /> <B>System:</B><%=SYSYSID%> <BR /> <B>Server:</B><%=SYHOST%> <BR /> <B>Programm:</B><%=SYXPROG%> <BR /> <B>Path:</B><%=PATHTRANS%> <BR /> <B>Date:</B><%=SYDATUM%> <BR /> <B>Time:</B><%=SYUZEIT%> <BR /> <B>Message:</B></B><%=SYMSGTY%><%=SYMSGNO%>(<%=SYMSGID%>) <BR /> <B>Error Code:</B><%=ERRORCODE%> <BR /> </body> </html>
|