on 2024 Aug 13 9:57 AM
Hi Experts,
SAP S4/HANA is allowing to edit the Purchase order even after releasing it through flexible workflow. Is there a way to control it?
Dear Eknath,
I am also looking for the solution of the issue.
Please look at this topic Purchase order is editable while in Approval
UPD.
Dear Eknath,
I have reached the solution (on premise) by these steps:
1. Open Fiori launchpad → Custom logic app → Create
2. Then search for MM_PUR_S4_PO_OPEN
3. New Extension Point has been created:
4. Open it and edit
5. Insert the code you want and test (syntax errors, etc.)
6. After test executed, Save and Publish
7. Now, when you are trying to edit the PO (in Rejected status "08" and in Completed status "05"), you get the nice "error" )
ℹ - Information about the statuses you can find here:
ℹ - code on the screens
IF PurchaseOrder-PURCHASINGPROCESSINGSTATUS = '08'.
isreadonly = abap_true.
ENDIF.
IF PurchaseOrder-PURCHASINGPROCESSINGSTATUS = '05'.
isreadonly = abap_true.
ENDIF.
Hope this is helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
109 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.