I have used the FM SAP_WAPI_START_WORKFLOW in a BAdI so that it would trigger the workflow WS65400029, which is used in the rejection of a PR. The implementation is such that a popup appears when an approver clicks the reject button in ME54N, so that he/she can enter a reason for the rejection. Once he saves, the workflow is triggered and sends a notification to the inbox of the creator (initiator) of the PR. The notification also contains the reason for the rejection as well.
Now the container of the PR Object is empty, so that , PR number does not appear in the heading of the mail notification e.g. 'Purchase Requisition rejected', instead of 'Purchase Requisition 10000130 rejected'. How can I make the number appear? The text entered by the approver does appear in the notification.
Thanks in Advance,