cancel
Showing results for 
Search instead for 
Did you mean: 

Edit the Purchase order after releasing Flexible workflow

Eknath
Explorer
0 Kudos
283

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?

View Entire Topic
Arthur-
Discoverer

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

Arthur_0-1723815702189.png

3. New Extension Point has been created:

Arthur_1-1723815774345.png

4. Open it and edit 

Arthur_2-1723815845591.png

5. Insert the code you want and test (syntax errors, etc.)

Arthur_3-1723815872068.png

6. After test executed, Save and Publish

Arthur_4-1723815898130.png

7. Now, when you are trying to edit the PO (in Rejected status "08" and in Completed status "05"), you get the nice "error" )

Arthur_0-1723816904106.png

 

ℹ - Information about the statuses you can find here:

Arthur_6-1723816161687.png

ℹ - code on the screens

 

 

IF PurchaseOrder-PURCHASINGPROCESSINGSTATUS = '08'.
isreadonly = abap_true.
ENDIF.

IF PurchaseOrder-PURCHASINGPROCESSINGSTATUS = '05'.
isreadonly = abap_true.
ENDIF.

 

 

Hope this is helpful.

Eric_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos
We helped you to accept the answer, since there were no updates after 7 days. You can unaccept it anytime if you have further questions.
Eknath
Explorer
0 Kudos
Thanks for the update.....it's helpful
Arthur-
Discoverer
0 Kudos
I have just updated my answer.