cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction should not save if Credit card authorization fails-CRM

Former Member
0 Kudos

Hi all,

In CRM 4.0, we have a requirement where for the payment card authorization if fails the transaction should not get saved.

Is it possible, if yes how?

Would appreciate a response.

thanks in advance,

mdv.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi mdv,

First of all you need to define Checking group and then assign the checking group to transaction. This is done in transaction SPRO, CRM->Basic functions->Payment cards.

Once you define and assign the system would automatically give a warning message if the checking fails. But it will still allow the user to save the transaction with warning.

For stopping transaction from being saved if the card authorization fails, then you need to implement BADI for transaction and call the FM COM_PAYCARD_AUTH and if the result of this FM call is failed card authorization, then raise DO_NOT_SAVE exception in the BAdI.

Reward points if I answered the query,

Jash

Answers (1)

Answers (1)

reda_bouarich
Discoverer
0 Kudos

Hi mdv,

You can use the BADI ORDER_SAVE, method CHECK_BEFORE_SAVE. There, yuo will just have to raise the exception DO_NOT_SAVE (=1) in the case the payment card authorization has failed.

Hope this will help.

Reda

Former Member
0 Kudos

Hi Jashwant and Reda,

Thanks a lot for your valuable inputs.

I've awarded points to both of you toooo.

Regards,

DV.