cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update & COMMIT in the Action without using 'create', 'update' and 'delete' operations

AZHARMCA
Discoverer
0 Kudos
174

Hello Experts,

I am developing an SAP RAP Based Fiori App which has few PO's displayed on the multi-selectable Table. And this table has an Instance Action Button by name 'Send Email'.

When the user selects few PO's and Clicks on the Button 'Send Email' it sending an email to Suppliers.

Note : 'Create', 'Update' and 'Delete' are not at all required in this App, hence not available.

Requirement : After sending an emails to the respective Suppliers, it also has to extend the PO Delivery Data by 2 Days using the Standard Function Module.

Ask here is : How can I acheive the COMMIT statement after PO Delivery Date is extended custom Action Button? Rest of the functionalities are working fine!

View Entire Topic
SagarSPrusty
Associate
Associate
0 Kudos

If it is a new App then the Managed application is recommended without CUD.

You can create an action and create RFC wrapper FM to put code for sending email and PO update FM like BAPI. You can use COMMIT WORK inside that.

Call the FM with DESTINATION 'NONE' which will not break anything in RAP framework.