on 06-27-2015 1:23 PM
Hi Experts,
We have set up the standard Fiori Approve Purchase Orders application and are able to access it from the Launchpad.
I have a question pertaining to the approver determination in the Fiori app - in our case the release strategy is not constant and we are determining the approver users from an exit dynamically on the basis of cost center, material group and total amount of PO.
So we cannot maintain the entries in the table in SPRO -> Materials Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders -> Define Release Procedure for Purchase Orders -> Workflow.
With this, how can we make sure that the corresponding workitems are shown for the approver users when they open the Approve PO Fiori app? Currently even though the approver user has some POs pending in the SAP Inbox, the same are not being fetched and shown in the Approve PO Fiori app - the count of workitems in the app tile is shown as 0.
Regards,
Saurabh
Saurabh
Did you do this step?
Specify the workflow tasks that are relevant for approving purchase orders. You do this in Customizing forMaterials Management
under Purchasing
Purchase Order
Approve Purchase Orders App
Specify Workflow Task IDs for Approve Purchase Orders App
. For more information, see the documentation available in Customizing.
From App Implementation: Approve Purchase Orders - SAP Fiori Apps - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your immediate response Former Member !
I have already maintained the workflow task ID in the ERP system under Customizing forMaterials Management
under Purchasing
Purchase Order
Approve Purchase Orders App
Specify Workflow Task IDs for Approve Purchase Orders App
as shown below.
Also the user has work item corresponding to the same task already in the SAP Inbox.
The OData call that gets executed when I open the Approve Purchase Orders app is as below:
Also as I mentioned in my original post, we have not maintained the values in the Define Release Procedure for Purchase Orders -> Workflow table.
What could be the reason the Fiori app is not fetching the work items even though they are present in the user's SAP Inbox?
Regards,
Saurabh
No, the tile for Approve Purchase Orders on the Launchpad displays the count as 0, even though PO work items do exist in the user's SAP Inbox.
The OData service call that gets called on loading the Launchpad is as shown below.
I am wondering whether in addition to maintaining the workflow task ID in customizing in the ERP system, there is some other configuration that we might be missing.
Regards,
Saurabh
Hi Saurabh,
Please double check that the trusted RFC setting is correct.
You can set external breakpoints in the backend method and can find the root cause.
AP Fiori LL11 - Consultants should know about OData troubleshooting
Regards,
Masa / SAP Technology RIG
Hi Masa,
I would like to add an update:
The OData call that gets executed on login to the Launchpad is
http://<host>:<port>/sap/opu/odata/sap/GBAPP_POAPPROVAL;mo/LaunchPageCollection(SAP__Origin='ECD_120',key='PO_APPROVAL')
When I tested this URL in the gateway client, I got the below response:
<?xml version="1.0" encoding="utf-8" ?>
- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>SY/530</code>
<message xml:lang="en">Method 'GET_ENTITY' not implemented in data provider class.</message>
- <innererror>
<transactionid>558FB8E338BB09C0E10080000A14F229</transactionid>
<timestamp>20150629070257.8152030</timestamp>
- <Error_Resolution>
<SAP_Transaction>Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details</SAP_Transaction>
<SAP_Note>See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)</SAP_Note>
</Error_Resolution>
- <errordetails>
- <errordetail>
<code>/IWBEP/CX_MGW_TECH_EXCEPTION</code>
<message>Method 'GET_ENTITY' not implemented in data provider class.</message>
<propertyref />
<severity>error</severity>
<target />
</errordetail>
</errordetails>
</innererror>
</error>
Could this be the root cause why we don't get work items in the Fiori app? Also what could we do to resolve this?
Regards,
Saurabh
Hi Saurabh,
I guess you do not use the correct software component level. Please double check.
App Implementation: Approve Purchase Orders - SAP Fiori Apps - SAP Library
Regards,
Masa / SAP Technology RIG
Hi Masa,
In one of our internal systems we have the Approve PO Fiori app working. The only difference I see in that system and the current one is that we have not maintained any values in the table in SPRO -> Materials Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders -> Define Release Procedure for Purchase Orders -> Workflow as shown below.
Is it mandatory to maintain the Approver IDs in this table to make the Fiori app pick up the work items and display them in the Fiori app?
Regards,
Saurabh
Hi Masa,
When I open the PO work item in the ECC backend (without Fiori) from transaction SBWP and release it, it flows to the next level approver. I tried releasing it from the 2 subsequent levels (without Fiori from ECC) and the work item got released.
I still suspect if the trusted RFC connection setup on the gateway pointing to the back end ECC system works fine. Can you please let me know how exactly I can check if this is working fine or indeed there is an issue with the trusted RFC connection?
Regards,
Saurabh
Hi Masa,
We had initially configured a system type User in the RFC destination that was created in the gateway system pointing to the ERP back end system. When we changed this to a dialog type user, we are able to see the correct count in the Approve Purchase Orders tile in the Launchpad and also able to open the app and approve the purchase orders from the Fiori app.
But I am not sure whether ideally we are supposed to use dialog user in the RFC destination. If we check the Current User checkbox in the Logon & Security tab in the RFC destination, what should be entered in the password field?
Regards,
Saurabh
Hi Saurabh,
It seems the trusted RFC is not setup correctly.
Please upload a screenshot of SM59 RFC destination.
Regards,
Masa / SAP Technology RIG
Hi Masa,
Below is the screenshot of the RFC Destination's Logon & Security tab from SM59.
When I checked the Current User checkbox and selected Trust Relationship as Yes, I started seeing Error on the Approve PO tile instead of the count on Launchpad and the below error in the /IWFND/ERROR_LOG transaction:
Regards,
Saurabh
Hi Saurabh,
The screenshot shows wrong setting.
It should be a trusted RFC and you should assign authorizations in the backend user.
Please follow the document.
SAP Gateway Foundation (SAP_GWFND) - SAP Library
Regards,
Masa / SAP Technology RIG
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.