I need help regarding BBP_PDH_WFL_APPROVAL_SIMULATE
While creating shopping cart this FM gives exception WORKFLOW_NOT_FOUND (as seen in debug mode)
Whereas if it is run from se37 for already existing shopping carts, it does not give the exception.
Could you please help me to know why it raises the workflow_not_found exeption at the time if SC creation ?
thank you in advance
I think you have the exception "WF not found" during shopping cart creation because neither the workflow nor the shopping are instanciated at this time, they are just buffered.
You should look for a way to retrieve the buffered workflow key and task and call the function approval_simulate with this values in case of shopping cart creation or modification.