How & where to pass the Credit Card info during SO Creat

Question: Hi. I am trying to pass the Credit card information like the card type, Number, Expiration date and Name on the card and populate the 'Payment Cards' screen in the header of the Sales Order.

This is to be done during the creation of Sales Order via EDI. I've changed the function module IDOC_INPUT_ORDERS to export the corresponding data to memory.

Now I need to know which user exit(one of those MV45AF..) needs to be modified to import this data from memory and then which structure/table fields need to be populated. So far I've found FPLTC, CCDATA, XFPLT etc but may be I am running my code in the wrong INCLUDE.

Any help is greatly appreciated..

Answer:
Try filling structure CCDATA in USEREXIT_MOVE_FIELD_TO_VBAK in MV45AFZZ.

It will depend on timing, of course, but I use that userexit at times to fill in the credit card data when creating documents by reference and it works fine.

Put your code inside an IF-ENDIF statement like this:

DATA: L_RPLNR LIKE VBAK-RPLNR.

IF NOT L_RPLNR IS INITIAL.

L_RPLNR = VBAK-RPLNR.

MOVE-CORRESPONDING [YOUR STRUCTURE] TO CCDATA.

ENDIF.

That will prevent that code from being called over and over again once the Payment Card Billing Plan (VBAK-RPLNR) has been assigned a value - which occurs when credit card data is entered.



Hi. I am trying to pass the Credit card information like the card type, Number, Expiration date and Name on the card and populate the 'Payment Cards' screen in the header of the Sales Order.

This is to be done during the creation of Sales Order via EDI. I've changed the function module IDOC_INPUT_ORDERS to export the corresponding data to memory.

Now I need to know which user exit(one of those MV45AF..) needs to be modified to import this data from memory and then which structure/table fields need to be populated. So far I've found FPLTC, CCDATA, XFPLT etc but may be I am running my code in the wrong INCLUDE.

Any help is greatly appreciated..
_________________
Eric Bushman
Director of SAP Solutions
www.paymetric.com

Answer:
Thank you Eric. Everything got copied but for the field CCNAME. can't figure why? May be because on the payment cards tab, name is not one of the displayed fields. But have to pass it though. Can you please help?

Answer:
Did you try moving the card holder name to CCDATA-CCNAME directly rather than with the MOVE-CORRESPONDING?


Thank you Eric. Everything got copied but for the field CCNAME. can't figure why? May be because on the payment cards tab, name is not one of the displayed fields. But have to pass it though. Can you please help?
_________________
Eric Bushman
Director of SAP Solutions
www.paymetric.com

Answer:
yes I did. still doesn't.

Answer:
The only other thing I can think of is to try filling FPLTC-CCNAME and *FPLTC-CCNAME with the value.



yes I did. still doesn't.
_________________
Eric Bushman
Director of SAP Solutions
www.paymetric.com
Copyright ?2007 - 2008 www.jt77.com