My Inbox Fiori App
My Inbox Fiori App
Introduction:
In this blog I am going to explain how to configure the My Inbox Open Task Configuration using
Transaction SWFVMD1.
Steps to follow:
For Example, If the user's want to navigate 'FBV3' application, Check the Fiori apps library to get the
respective Semantic Object, Semantic Action and Parameter-Value.
And then to pass the dynamic values to query, use the task binding parameters as like below.
Sample Output :
Summary:
In this blog, I have explained how to achieve navigation using SWFVMD1 Transactions for standard
Fiori Applications.
Please feel free to update this document and share your example for SWFVISU configuration.
Function:
As you know there is the button "Open Task" in My Inbox if you use desktop PC or laptop PC.
If there is no configuration in the SWFVISU table, SAPGUI for HTML windows is opened in a separate
tab.
The URL is generated in the ERP backend.
http ://<host>.<domain>:<port>/sap/bc/gui/sap/its/webgui/?
~transaction=SWNWIEX&P_WI_ID=000001122380&P_APPL=NOTIF&P_ACTION=EXECUTE&~OKCODE
=ONLI&sap-ui-theme=sap_bluecrystal&sap-client=800&sap-language=EN
Please note that the "Open Task" button is not available in mobile and tablet devices because
SAPGUI for HTML or WebDynpro application which is opened does not fit in mobile and tablet screen
size.
By controlling URL generation with SWFVISU configuration, you can open existing application via
http. It helps for reducing app development workload if you use many different type of workflow
scenarios. You can use existing application for transition period until you develop custom Fiori app
for a dedicated object.
SWFVISU configuration has been used for long time in the Portal UWL and SAP Business
Client(NWBC). For example, when you execute a workitem in the Portal UWL, WebDynpro screen
comes up for executing an action.
The URL generation logic is in the class "CL_SWF_UTL_URL_GENERATE"
SWFVISU configuration:
BASIS Notes:
This table shows list of Visualization Type and flag for supported by My Inbox.
My Inbox
Visualization Type Notes
Supported
BSP BluePrint
Java WebDynpro
UI5 based on BSP X 2056158 - URL generation for UI5 applications (BSP)
My Inbox
Visualization Type Notes
Supported
My Inbox Generic
X 2178368 - URL generation for any application (My Inbox)
Application
Parameters:
A challenge is that you need to know the parameters to pass a dynamic value. Please share your
examples, when you have implemented.
Dynamic value:
Generi
c
SCHEME X sapui5
Applic
ation
Generi
c APPLICATIO
X /sap/opu/odata/sap
Applic N_PATH
ation
Generi
c COMPONEN
X cross.fnd.fiori.inbox.annotationBasedTaskUI
Applic T_NAME
ation
Generi
c QUERY_PAR data=/sap/opu/odata/sap/CB_PURCHASE_ORDER_SRV;o=sid({SYSTEM}.
Applic AM00 {CLIENT})/PurchaseOrders(PurchaseOrder='{OBJKEY})'
ation
Generi
c QUERY_PAR annotations=/sap/bc/bsp/sap/bscnbon_anf_mm/
Applica AM01 bscbn_purchaseorder_anno.xml
tion
Generi
c QUERY_PAR
Max number of parameter is 09
Applica AM##
tion
To extend My Inbox and add custom code in the Task Gateway Service, you can use the following
Business Add-Ins:
BAdIs in the Back-End System
The BAdI below is only relevant if you are implementing the My Inbox app for your SAP Business
Workflow.
You can use BAdI /IWWRK/BADI_WF_BEFORE_UPD_IB to handle decision runtime in the following
cases:
o You want to execute an action before the work item is updated with the user
decision.
For more information, see SAP Help Portal at http://help.sap.com under Technology Platform SAP
Gateway SAP Gateway 2.0 Content Information Content Guide SAP Gateway Content Guide SAP
Gateway Supported OData Channel Scenarios Workflow Services Workflow Task Service: Central
Hub Deployment with IW_BEP Backend Installation Workflow User Exits.
To provide the custom attributes definition and data, an enhancement spot is provided on
the IW_BEP add-on (to be implemented on the backend system on which the IW_BEP add-on
is deployed). You can provide implementations filtered by the Task Definition ID. For this, you
must provide an implementation to the /IWWRK/BADI_TGW_CUSTOM_ATTR BAdI in the
/IWWRK/ES_TGW_CUSTOM_ATTRIBUTE enhancement spot. After implementing the BAdI,
you can consume the custom attribute as follows: Use navigation property
CustomAttributeDefinitionData in entity TaskDefinition to navigate to the
CustomAttributeDefinition collection.
You can use this BAdI to change the task title for all items on the list screen.
You can use this BAdI to change the task title or task description on the detail screen.
You can use this BAdI to change the user details on the detail screen.
For more information, see SAP Help Portal at http://help.sap.com under Technology Platform SAP
Gateway SAP Gateway 2.0 Content Information Content Guide SAP Gateway Content Guide SAP
Gateway Supported OData Channel Scenarios Workflow Services Workflow Task Service: Central
Hub Deployment with IW_BEP Backend Installation Workflow User Exits.
Define Custom Attributes (Dynamic Columns) for SAP Business Workflow Tasks
With custom attributes, you can define business-related properties and assign them to user tasks,
such as project ID or project name. You can expose custom attributes to My Inbox.
Use
Note
In such a case only the custom attributes defined in the /IWWRK/BADI_TGW_CUSTOM_ATTR BAdI
will be displayed in My Inbox and those configured using the RSWD_MAINTAIN_USER_ATTR report
will not be shown.
Note
In case you use a central hub deployment, the configurations should be applied in the SAP Business
Suite backend.
Procedure
2. Go to transaction SWL1
c. Printout: Container element name by prefixing and suffixing ‘&’ character. Ensure
that the container element name is taken from the relevant task type, for example
'&NAME&'
6. Choose Save
7. Go to transaction SE38
9. Enter 'WF_INBOX_DC' in field Scenario Filter, and choose Execute, or press F8 key
12. Choose No within displayed pop-up windows to ensure the existing entries are not
overwritten
13. If predefined names are required instead of automatically generated custom attribute names
(IDs), perform the following steps:
b. Choose Duplicate Entry, which creates duplicate rows with editable column Name
c. Change value in column Name
15. If custom attribute changes need to be seen for existing task instances, perform the following
steps:
Note
Please, note that this feature is disabled in My Inbox by default. To enable it, the Administrator has to
configure an additional parameter showAdditionalAttributes=true in the Tile configuration of My
Inbox.
Result
As a result, you will be able to see the key-value pairs in the Details tab of the standard task UI of My
Inbox.
Note
If you are using a custom UI of My Inbox, the custom attributes will be visible as columns only if you
are using the Expert View of My Inbox.
I guess in order to get your new association into the model you had to check the "selected"
checkbox of your association under C_PurchaseOrderFs. I didn't manage to do this using a
"redefinition" of the project (or a modification). So probably you have to create a completely
new project in SEGW with the same SADL-data source?
I assume the facet annotation in the CDS view has no effect / is overwritten by the definition
in the MPC_EXT-class.
Perhaps something like the following coding could help (without guarantee):
...
"Label
"Target
lo_property_value3->create_simple_value( )-
>set_annotation_path( 'to_PurchaseOrderApproval/@UI.LineItem' ) ##NO_TEXT.
Please also note :
If you create your own custom PO service as a copy from the standard, check the DPC-EXT class
adaptations! There are redefinitions in the class CL_C_PURCHASEORDER_FS_DPC_EXT which you
have to handle on your own when copying. Therefore a redefinition would always be the better
option - in case you solve point 1.
https://www.slideshare.net/slideshow/purchase-order-release-in-fiori/89156101