cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding custom code (Function Module) in Managed scenario SAP ABAP RAP

AbhishekSharma
Active Contributor

Accepted Solutions (1)

Accepted Solutions (1)

lloydfernandes
Participant

Depending on the functionality of the FM, you should call the FM in either the Interaction phase or the Save phase.

  1. Interaction Phase:
    a. If you've implemented an unmanaged scenario, you could directly add the FM call in the create method.
    b. If it's a managed implementation, you could call the FM in a determination or validation.
  2. Save Phase:
    a. Unmanaged Save
    b. Additional Save

Answers (1)

Answers (1)

SiddharthaR
Advisor
Advisor

Hi Abhishek

Did you checkout the option of additional save, you can then write your logic in save modified method provider your FM is not dependent on the entity and performs additional task such as application log or create transactional document . This is because additional save will be executed before save handler commits the entity.