Quantcast
Viewing all articles
Browse latest Browse all 3548

Re: CRMCMP_IC_FRAME & EH_ONFORWARD Call don't want to save all the transaction

Hi Sanjana,

 

I think you can achieve this using save badi exit. Create a custom implementation or use any existing custom implementation and do the steps as follows,

1. Create static variable type boolean flag in any of your custom global class, or you can use eh_onforward event impl class itself.

2. You can set this value in eh_onforward button and then use this value in save badi implementation. You can identify the process type using guid in badi and use this global variable to filter only in case of forward button event.

3. If the document type is compliant you can call raise do not save.

 

     if lr_transaction->check_save_possible( ) eq abap_true."when this line executes system will trigger save badi implementation, if the save is not possible then you can revert the only that particular transaction in else part of the check.




Regards,

Dharmakasi.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>