Dear Experts,
One of our customers request for development to send a mail behind the Forward button in purchase orders/purchase requisitions. As you know, in the standard application, the following screen is displayed behind the forward button.
In this case, I want to share with you how to develop approval buttons (e.g. Approve/Reject/Forward) in Purchase Orders Approval. In case of need, you can switch the buttons off / on or interfere with back operations.
First, we copy the standard application and upload it to WEBIDE.
Next step, we add the code below to the top of “onInit”. (the all of code is shared below) In this case, the Approve, Reject and Forward buttons will be manually generated below. At the same time, we can remove the wanted button. Now we can develop for these buttons.
Next step, Instead of the “handleForward” function used by the Forward button, we write the “sentMail“ function and we use the “sentMail“ function below.
We are developing to open mail screen in “sendMail” function and add PO number as text.
I definitely recommend cleaning the cache in the Fiori system after the process is completed and deployed. I share methods to clear cache.
Now we can send PO number using Forward button.
You can get the complete code from the link below
SAP Business Application Studio (BAS) is an SAP Business Technology Platform (SAP BTP) service that provides a modern development environment, easily...
In the SAP Integrated Business Planning (IBP) platform, one of the powerful tools for improving data management and planning processes is the Copy...
Simplify data copying and optimize planning in SAP IBP. Discover key features, usage steps, and how it improves scenario and time period...