Fonction SAP BAPI_APPLICATIONLOG_GETDETAIL - Read Details of Entries in Application Log

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGUAGE BAPIALA-LANGU C 1 SY-LANGU X Language of text to be displayed
LINKPATTERN BAPITGA-LINKMASK C 255 ' ' X Convert SAPscript Hyperlinks to HTML
TEXTFORMAT BAPIALA-TEXTFORMAT C 3 'ASC' X Format of text to be displayed

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Messages

Paramètre Reférence Long. Facultatif Description
LOGDATA BAPIALG 636 Values in entries in application log
LOGKEYS BAPIALF 26 Entries to be read in application log
MESSAGETEXT BAPIALT 281 X Long text of entries in application log

Functionality
This method reads the details of entries in the application log. In theparameter 'Logkeys' of this method you can specify which entries are tobe read out. The entries in question are identified in the parameter bythe application log number (LOGNUMBER field) and the message numberwithin the application log (MSGNUMBER field).
If only the application log number is given, all the messages from thisapplication log are read out.

Example
1. Message number 7 in application log 98 is to be read out:
LOGNUMBER = 00000000000000000098
MSGNUMBER = 000007
2. All the messages in application log 97 are to be read out:
LOGNUMBER = 00000000000000000097
MSGNUMBER = ''

Notes
Error messages are returned in the parameter 'Return'.
The documentation on this parameter contains the return codes and theirdescriptions.

Description
INCLUDE BAPI_TABLE

Value range
If there is an error the following messages may be displayed:
Type Code Message
E S&115 No relevant application log entries found
E S&021 No parameters transferred
E S&103 Output format & for text is not supported
W S&114 Parameter LINKPATTERN can only be set for text
format HTM

Description
The language in which the texts are to be displayed.
If this parameter does not contain an entry, the logon language isused.

Value range
To display texts in English enter 'EN'.

Description
Specifies how SAPscript hyperlinks are converted. They can only beconverted into HTM textformat
, otherwise a warning is issued in thereturn parameter and thehyperlinks are displayed as text.
If the parameter is set to initial, hyperlinks are converted intonormal text.
The documentation on the data element describesthe syntax of the conversion.

Description
Format of text.

Value range
Possible values:
HTM (Hypertext Markup Language)
RTF (Rich Text Format)
SCR (SAPscript)
ASC (ASCII)

Description
Details of individual entries in the application log.

Description
The entries to be read out from the application log are transferred inthis table.
The entries are identified by the application log number (LOGNUMBERfield) and by the message number in the application log (MSGNUMBERfield).
If only the application log number is transferred, all the messagesfrom this application log are read out.

Example
1. Message number 7 in application log 98 is to be read out:
LOGNUMBER = 00000000000000000098
MSGNUMBER = 000007
2. All the messages in application log 97 are to be read out:
LOGNUMBER = 00000000000000000097
MSGNUMBER = ''

Description
Long text of individual entries in the application log.