Skip to Content
avatar image
Former Member

What is the procedure to remap the source of CreatorID - FROM Column in UWL?

Hello,

We have an issue in the UWL with only certain tasks for which the "FROM" Column is not show correctly the name of the person that send the workitem, only show in a wrong way the name of the person that created the workflow.

What is the procedure to remap the source of CreatorID - FROM Column in UWL?

Regards

David López

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 14, 2017 at 09:10 AM

    Hi David

    I hope you are keeping well and many thanks for using the SAP Discussion Forums and SAP Communities.

    In relation to your query and the scenario in itself let us break it down together:

    • Issue in the UWL with only certain tasks for which the "FROM" Column is not show correctly the name of the person that send the workitem, only show in a wrong way the name of the person that created the workflow. What is the procedure to remap the source of CreatorID - FROM Column in UWL?

    Ok firstly regarding the scenario in itself and based upon your description above there are two key points of interest here (i) Workflow and (ii) UWL. Surrounding the UWL in itself let us remember how these "certain tasks" appear within the Inbox.

    • The UWL operates based upon two core primary PULL Methods. Firstly tasks are pulled from the backend (via connectors) into the UWL Cache through the first core pull operation. They are then pulled a second time from the cache into the UWL Inbox.

    Secondly regarding the "FROM" Column and the procedure to "Remap" the source CreatorID.

    Using SAP KBA: 1659131 - UWL sorting on the "From" field gives unexpected result as a reference point the Universal Worklist still sorts by userid at the db level. What I would recommend here is performing the following steps as a means of further analysis.

    Try testing from the following location:

    • Content provided by SAP
    • End user
    • Standard Portal users
    • Iviews
    • com.sap.netweaver.bc.uwl.iviews
    • Open the folder
    • Right click on the Universal Worklist
    • Display a preview.

    Here kindly proceed to check the behavior of the FROM Column. If you see that when you click the from column the sort works perfectly this will demonstrate that there is not an issue with the Universal Worklist application, but rather an issue with the sorting defined in your custom xml files, or another issue with customization.

    I believe the From column is pulled from the backend using function module: SAP_WAPI_GET_HEADER. You may want to check to see what is displayed in the backend system for this function module as this is what the true sort from the from column will be on. However, you can display this on the UWL UI to be displayed as userid.

    Kindly update me as per your findings.

    I greatly appreciate your time and patience and I look forward to receiving your reply.

    Kind Regards,

    Troy Cronin - Enterprise Portal Support Engineer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2017 at 07:03 AM

    Hi Troy,

    Thank´s for you attention, the SAP KBA: 1659131 doesn’t apply because the userId is show correctly, The user "307299" Martin Urias Moreno is who created the workflow and should be the user 175319 Juan Jose Corrales Arroniz that is who made the las modification.

    The "From" or "De" column is not pulled from SAP_WAPI_GET_HEADER module function.

    Do you know from that other module function?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2017 at 07:15 AM

    Continue

    I think in another solution is to hide the From column and to implement a new custom attribute that has the correct user, who modified the last workitem, however when I try to implement this new attribute does not show any data, attach the XML file with this configuration.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE UWLConfiguration PUBLIC "-//SAP//UWL1.0//EN" "uwl_configuration.dtd">
    <UWLConfiguration version="1.0">
    <ItemTypes>
    <ItemType name="uwl.task.webflow.TS90000003.UWL_DPP_DEP" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="viewDetail" executionMode="pessimistic">
    <ItemTypeCriteria systemId="UWL_DPP_DEP" externalType="TS90000003" connector="WebFlowConnector"/>
    <CustomAttributes>
    <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="WORKINGWI" cacheValidity="final">
    <Attribute name="CREATEDBYUSER" type="string" displayName="EnviadoPor_BOR"/>
    </CustomAttributeSource>
    <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebFlowContainer" cacheValidity="default">
    <Attribute name="USERWHOCREATEDWORKITEM" type="string" displayName="EnviadoPor_CONTAINER"/>
    </CustomAttributeSource>
    <CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user" cacheValidity="final">
    <Attribute name="lastName" type="string" displayName="Apellidos_UM"/>
    <Attribute name="firstName" type="string" displayName="Nombre_UM"/>
    </CustomAttributeSource>
    </CustomAttributes>
    </ItemType>
    </ItemTypes>
    <Views>
    <View name="DefaultView" selectionMode="NONE" width="98%" supportedItemTypes="uwl.task.webflow.TS90000003" columnOrder="subject, isEscalated, itemTypeIcon, creatorId, firstName, lastName, CREATEDBYUSER, USERWHOCREATEDWORKITEM, createdDate, priority, dueDate, status" sortby="priority:desc, dueDate:asc, createdDate:desc" tableDesign="STANDARD" visibleRowCount="10" headerVisible="no" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom">
    <Descriptions default="Tareas">
    <ShortDescriptions>
    <Description Language="es" Description="Tareas"/>
    </ShortDescriptions>
    </Descriptions>
    <DisplayAttributes>
    <DisplayAttribute name="CREATEDBYUSER" type="string" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
    <Descriptions default="EnviadoPor_BOR"/>
    </DisplayAttribute>
    <DisplayAttribute name="lastName" type="string" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
    <Descriptions default="lastName"/>
    </DisplayAttribute>
    <DisplayAttribute name="USERWHOCREATEDWORKITEM" type="string" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
    <Descriptions default="EnviadoPor_CONTAINER"/>
    </DisplayAttribute>
    <DisplayAttribute name="firstName" type="string" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
    <Descriptions default="firstName"/>
    </DisplayAttribute>
    </DisplayAttributes>
    </View>
    </Views>
    </UWLConfiguration>

    Thank for your help!!!

    David Iván López Oquedo

    Add comment
    10|10000 characters needed characters exceeded