Ansicht
Dokumentation

SWP_WORKFLOW_LOG_READ - WFM(friends): Protokollsätze einer Workflow-Instanz lesen und aufbereiten

SWP_WORKFLOW_LOG_READ - WFM(friends): Protokollsätze einer Workflow-Instanz lesen und aufbereiten

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Addresses (Business Address Services)  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

This function module returns all log records of a workflow instance with the given id in table WF_LOG. This table is based on structure SWP_LOGTAB and is sorted by log date and time. It contains all fields which are necessary to display the technical step log.

If the specified workflow does not exist, the exception WORKFLOW_DOES_NOT_EXIST is raised and a messages is prepared in the sy-msg fields.

The names and meaning of the fields of structure SWP_LOGTAB are as follows:

NODE_CLASS: Describes the content of the log record:
  • 'W': Workitem (including sub-workflows, waiting steps, batch items, dialog workitems etc.)

  • 'N': nodes in workflow definition without a workitem (CASE, IF, ENDIF, FORK, JOIN, CONTAINER OPERATION, FLOW CONTROL, EVENT TRIGGER, NO OPs,..)

  • 'E': log record contains a error message, info or warning. Messages type: see field ERRORTYPE.

NODE_ID:
node id of corresponding workflow definition, if log record is not a message.
NODE_TEXT
W: text of workflow step definition; N: text explaining the flow control element; E: message id and no. of message
LOG_DATE, LOG_TIME, LOG_COUNT:
Date, time when the log record was written. LOG_COUNT distinguishes multiple steps and nodes that are logged with the same timestamp. Note: Messages with the same timestamp as a node or a step can be inserted out of this sort order, since they have no LOG_COUNTer.
WI_ID:
Only W: Workitem Id
WI_AAGENT
Only W: Last agent which completed the Workitem
WI_EVENT:
Only W: 'Deadline', if log record indicates a deadline callback of a workitem; 'Rejected' if workitem execution was rejected by user; 'Compensate!' if workitem was cancelled AFTER it was executed and completed.
WI_STAT
Only W: Current workitem status (from table swwstatext/ fct. 'SWW_WI_STATUS_TEXT_GET')
RETURNCODE
Only W: Returncode of method; OK and TRUE, FALSE are used instead their internal 4 digit code (0000 etc.).
PRED_WI_ID
Only W: Id of predecessor workitem
PRED_NODE
not used
WORKAREA, MESSAGE, ERRORTYPE, VARIABLE1, VARIABLE2, VARIABLE3, VARIABLE4
'E': paramters of message; 'N': some explaining text in form of a message with parameters, e.g. with details of the processed flow control element. Example: IF, CASE: Condition that was evaluated and result. JOIN: number of expected, necessary and actually completed parallel paths.

Beispiel

Hinweise

WF_LOG contains up to now all fields that are used in the technical step log. It contains not all fields which are displayed in the end user's step log.

WF_LOG contains a line with NODE_ID = 1 representing the whole workflow.

Note that table WF_LOG could contain more than one entry for a workitem: one for each callback to the workflow manager (at wi completion, deadline callback(s), error callback(s)). If a workitem is completed, the log record written at WI creation time is deleted already from the WF_LOG.

Weiterführende Informationen





Parameter

ARCHIVE_DATA
ARCHIVE_MODE
EXPAND_SUBFLOWS
FLOWITEM
LANGUAGE
NESTING_LEVEL
TOP_LEVEL_WF
WF_ID
WF_LOG
WITH_BLOCKENDS
WITH_MESSAGES
WITH_NODES

Ausnahmen

WORKFLOW_DOES_NOT_EXIST

Funktionsgruppe

SWPL

General Data in Customer Master   rdisp/max_wprun_time - Maximum work process run time  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 4152 Date: 20240523 Time: 091214     sap01-206 ( 76 ms )