Fonction SAP BAPI_CREDITCARD_CHECK - Credit card check

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CREDITCARD_NUMBER BAPICCARD-CC_NUMBER C 25 Credit card number
CREDITCARD_TYPE BAPICCARD-CC_TYPE C 4 Credit card type
CUSTOMER_NUMBER BAPI1007-CUSTOMER C 10 X Customer number
VALID_TO BAPI_FIELD-DATE C 10 X Input valid-to date

Paramètre Reférence Type Long. Description
VALID_TO_EX BAPI_KEY_DATE-KEY_DATE D 8 Export valid-to date
VALID_TO_EXTERNAL BAPI_FIELD-DATE C 10 External display of valid-to date

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Messages Table

Functionality
The function module checks whether:

  • The card type is valid

  • The card number is correct

  • Data carried over from customer master data is correct

  • Date is correct
  • Notes
    The BAPI returns the following error messages, among others:
    1. E V/ 041 Payment card is blocked
    2. W V/ 121 Card &1 &2 has not been assigned to customer &3
    3. E V/ 005 Payment card &1 &2 is already assigned to customer &3
    4. E V/ 107 Enter the expiration date of the payment card
    5. E V/ 114 The payment card has expired
    6. E V/ 101 Payment card type XXX is not defined
    7. E V/ 102 The card number is not valid
    8. E V/ 200 Internal error - Routine: & Reason: &

    Meaning
    The export parameter returns the converted expiration date from datetype DATS.
    For example: 31.12.1999

    Meaning
    The export parameter returns the converted expiration date from datetype CHAR.
    For example: 12.1999

    Description
    Credit card number

    Description
    Credit card type
    For example: MC, VISA, AMEX

    Value range
    Permitted payment card types are defined in table TVCIN.

    Meaning
    You can enter the customer number in this parameter.

    Description
    Enter the credit card's expiration date in this parameter.
    Enter the data according to your Customizing settings for the paymetcard type.
    Example: 122000 = Expiration date 31.12.2000

    Description
    The return codes for the function module are returned to this table.
    The table is structured according to structure BAPIRET2.

    Value range
    If no errors occur, the return parameter is blank. Otherwise, thesystem displays the short text of the relevant error message.

414058CHECKLISTSD: differences in online and BAPI processing