HI Team,
Thank you for your suggestion. I implemented the solution exactly as recommended using both extension points:
SWF_WORKFLOW_CONDITION_DEFSWF_WORKFLOW_CONDITION_EVALThe custom workflow condition is successfully displayed in Manage Workflows for Purchase Requisitions.
However, I am facing an issue while trying to provide F4 Value Help for the custom parameter.
1. Without OData configuration
Parameter contains only:
Result
2. Using a Custom CDS View (Scenario = Value Help)
I created a custom CDS View based on I_PurchaseRequisitionType and published it successfully.
Configured in SWF_WORKFLOW_CONDITION_DEF:
service_path
entity
property
Result
3. Using SAP Standard Workflow Value Help
Instead of the custom CDS, I used the standard workflow service:
S_MMPURWORKFLOWVH_CDSC_PurReqnTypeForWorkflowPurchasingDocumentTypeI verified from the $metadata that:
However, after assigning the property in the parameter definition, the workflow UI no longer displays the input field.
| id + name + mandatory | Input field displayed |
| + ddic_type | Input field displayed |
| + service_path | Input field displayed |
| + entity | Input field displayed |
| + property | Input field disappears completely |
It appears that the Workflow framework rejects the parameter once the property is specified.
Has anyone successfully implemented an F4 Value Help for a custom workflow condition parameter in SWF_WORKFLOW_CONDITION_DEF?
If yes, could you please share:
Any guidance would be greatly appreciated.
Thank you!
Request clarification before answering.
Hello!
F4 value help for custom workflow condition parameters is supported in Public Cloud. This is not a framework limitation. Multiple working implementations exist, including SAP KBA 3754591, which provides a complete, working template using the same six parameter fields.
Resolution steps:
service_path = '/sap/opu/odata/sap/S_MMPURWORKFLOWVH_CDS'
entity = '<EntitySet name from $metadata>'
property = '<property from that EntitySet>'
xsd_type = if_swf_flex_ifs_condition_def=>cs_xstype-string
mandatory = abap_true
Answers to the questions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.