How to obtain the Credit Card Number from Concur IBCP Token
This technical article is about SAP Concur Integration with SAP ERP. We will show how to change the Financial Document Posting and obtain the Credit Card Number from IBCP Token, that in standars form, it’s a encrypted number. It is commom for Costumers to Need this data for Account Consolidation and if the user has two Credit Card associated to Concur, in this the case the costumer need to match the Financial Document with the correct Credit Card used. So, If you need to obtain the credit card number for any purpose in financial posting, this article will help you to configure and develop it.
For changing the Financial Document Posting and obtain the Credit Card Number, follow the steps below:
1. Configure IBCP Credit Card Certificate
1.1 In the transaction CTE_SETUP -> Integration Actives -> Check IBCP Credit Card
1.2 In the transaction CTE_SETUP -> Financial Posting -> Change Import -> Expense – Posting Settings -> Check IBCP Credit Card
2. In Financial Posting process you can implement the BADI_CTE_FIN_POST_ADJUST_DOC for adjustments in the Financial document and if you need the credit card number, follow the steps above:
2.1 In the badi parameter IS_DOCUMENT_DATA you need to get the field ENTRY-CARD_ACCOUNT_ID
2.2 Use the Class/Method CL_CTE_FIN_POST_CCARD_SERVICES->GET_CCARD_NR_FROM_TOKEN to obtain the Concur IBCP Token credit card
Move the BADI parameter IS_DOCUMENT_DATA-ENTRY-CARD_ACCOUNT_ID to Class Exporting Parameter IT_CCARD_TOKENS-TOKEN
Run the Class/Method CL_CTE_FIN_POST_CCARD_SERVICES->GET_CCARD_NR_FROM_TOKEN
The Credit Card Number is in the Importing parameter ET_TOKEN_CARDNR, field CARDNR
As we said earlier, the credit card number is integrated into SAP ERP from Concur with the encrypted number. It is common that it is necessary to obtain the real number for account consolidation issues and if the user has two credit cards associated with Concur. With this technical article we will try to show in a simple and logical way how to achieve this goal.