Ansicht
Dokumentation

SIMG_ICL_BWP_DYN_COL - BAdI: Dynamic Column Determination for Business Workplace

SIMG_ICL_BWP_DYN_COL - BAdI: Dynamic Column Determination for Business Workplace

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

You can implement this BAdI to speed up the display of values in the dynamic columns of the workflow inbox.

The workflow inbox of the Business Workplace (transaction SBWP) displays dynamic columns that you can use to display additional data at runtime. The system normally determines the data at runtime by using the task container. For this purpose, you define which elements of the task container are to be used for determining the data for each task in customizing (transaction SWL1).

To speed up the display, you can implement the BAdI so that the values are determined directly from the application data rather than from the references in the respective task container. However, the BAdI will only determine the data that you defined in Customizing in transaction SWL1. The BAdI is not intended to be used to display any application data in the dynamic columns of the workflow inbox. The BAdI only affects the display in the Business Workplace and not the display in other workflow inboxes or workflow interfaces.

Input Parameter

The method SET_DYNAMIC_COLUMNS uses the following input parameters to determine the values for the dynamic columns:

IM_WI_DYNCOL_CUST

List of work items for whose tasks dynamic columns are defined, and for which the relevant Customizing has been carried out. The list does not contain all work items in the Workflow inbox but only the work items that should currently be displayed.

The table has the following structure:

WI_ID Work item indicator
TASK Task
WI_OBJECT_ID Object Reference of leading object
WI_GROUP_ID Object reference from container element Grouping Character
EXPRCOL1- 6 Expression for the dynamic columns 1 to 6

IM_DYNCOL_CONTEXT

Table with current context. If the current view displays work items with dynamic columns, they are placed in the buffer and transferred as additional information.

The table has the following structure:

WI_ID Work item indictor
DYNCOL1 - 6 Content of dynamic columns 1 to 6
DYNTYP1 - 6 Data type of content
DYNLEN1 - 6 Actual length of content

Output Parameter

In the method, you can set the dynamic columns for all or for selected w work items. You can also define how the current content/buffer is handled. The method provides the following output parameter for this purpose:

EX_WI_DYNCOL_VALUES

Table with work items, content of dynamic columns, and the indicator, which specifies whether the columns for the work item are determined using the BAdI. The indicator is evaluated after the BAdI call. If it is not set, the columns are set in the usual way. Therefore, it is not possible to handle the six columns differently. You can fill either all or none of the columns by using the BAdI. You cannot, for example, fill columns 1 to 3 using the BAdI, and columns 4 to 6 by using the usual method.

To display the contents in the Business Workplace, besides the values, the system also requires the data type and length of the content. The BAdI can set the values of the dynamic columns. The system determines the data type and length of the content by using the task.

The table has the following structure:

WI_ID Work item indicator
DYNCOL1 - 6 Content of the dynamic columns 1 to 6
VALUES_SET Indicator whether the values were set (X = set)

EX_BUFFER_UPDATE

Determines how the buffer for the dynamic columns is handled. There are three options:

  • The buffer is completely replaced by the data from the BAdI. If the BAdI does not provide a data record for each work item, these data records are determined at a later date. This can slow down the rate of display.
  • The buffer is changed. If a work item already has a data record, this is replaced by the data from the BAdI (provided that VALUES_SET is set). If a work item does not yet have a data record, it is added. You usually choose this option.
  • The buffer is not updated. The data that the BAdI gets is ignored.
VALUES_SET

See example implementation in class CL_EXM_IM_WF_BWP_DYN_COLUMN.






Fill RESBD Structure from EBP Component Structure   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 5525 Date: 20240523 Time: 235307     sap01-206 ( 119 ms )