Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: Mandatory Credit Card in Sales Order

$
0
0

Andrea,

 

Because SAP doesn't associate Payment Terms with the Payment Card business logic it isn't possible to accomplish this with configuration.  However you can do it with code.

 

I believe I've done this before by adding code to USEREXIT_SAVE_DOCUMENT_PREPARE.  I can't find a sample off-hand, but it is essentially something like this:

 

  • Check if the Payment Terms (VBKD-ZTERM) are equal to your custom credit card payment terms (EX: VBKD-ZTERM = 'CCRD')
  • If the Payment Terms are a credit card payment term then check that VBAK-RPLNR is NOT initial.  In other words, VBAK-RPLNR must have a value.  If it does NOT then a credit card has NOT been entered on the order.

 

At that point you can throw an Error/Warning to the user and require the user to go back and either change the Payment Terms to something else or to enter a credit card.

 

 

Regards,

 

Eric Bushman

www.paymetric.com


Viewing all articles
Browse latest Browse all 9129

Trending Articles



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