SAP CCARD_ENHANCE_FROM_MASTERDATA Function Module for NOTRANSL: Zahlungskarten: Anreicherung aus Stammdaten - mit Prüfung
CCARD_ENHANCE_FROM_MASTERDATA is a standard ccard enhance from masterdata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zahlungskarten: Anreicherung aus Stammdaten - mit Prüfung processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ccard enhance from masterdata FM, simply by entering the name CCARD_ENHANCE_FROM_MASTERDATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: V21F
Program Name: SAPLV21F
Main Program: SAPLV21F
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CCARD_ENHANCE_FROM_MASTERDATA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CCARD_ENHANCE_FROM_MASTERDATA'"NOTRANSL: Zahlungskarten: Anreicherung aus Stammdaten - mit Prüfung.
EXPORTING
CCINS_I = "Card Type
CCNUM_I = "Card Number
* KUNNR_I = "Customer
* IV_CALLED_BY_LORD = ' ' "General Indicator
IMPORTING
VCNUM_E = "Card Data
VCKUN_E = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
CC_NOT_FOUND = 1 CC_LOCKED = 2 CC_NOT_ASSIGNED_TO_CUSTOMER = 3
IMPORTING Parameters details for CCARD_ENHANCE_FROM_MASTERDATA
CCINS_I - Card Type
Data type: VCNUM-CCINSOptional: No
Call by Reference: No ( called with pass by value option)
CCNUM_I - Card Number
Data type: VCNUM-CCNUMOptional: No
Call by Reference: No ( called with pass by value option)
KUNNR_I - Customer
Data type: VCKUN-KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CALLED_BY_LORD - General Indicator
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CCARD_ENHANCE_FROM_MASTERDATA
VCNUM_E - Card Data
Data type: VCNUMOptional: No
Call by Reference: Yes
VCKUN_E - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VCKUNOptional: No
Call by Reference: Yes
EXCEPTIONS details
CC_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CC_LOCKED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CC_NOT_ASSIGNED_TO_CUSTOMER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CCARD_ENHANCE_FROM_MASTERDATA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_ccins_i | TYPE VCNUM-CCINS, " | |||
lv_vcnum_e | TYPE VCNUM, " | |||
lv_cc_not_found | TYPE VCNUM, " | |||
lv_ccnum_i | TYPE VCNUM-CCNUM, " | |||
lv_vckun_e | TYPE VCKUN, " | |||
lv_cc_locked | TYPE VCKUN, " | |||
lv_kunnr_i | TYPE VCKUN-KUNNR, " | |||
lv_cc_not_assigned_to_customer | TYPE VCKUN, " | |||
lv_iv_called_by_lord | TYPE FLAG. " SPACE |
  CALL FUNCTION 'CCARD_ENHANCE_FROM_MASTERDATA' "NOTRANSL: Zahlungskarten: Anreicherung aus Stammdaten - mit Prüfung |
EXPORTING | ||
CCINS_I | = lv_ccins_i | |
CCNUM_I | = lv_ccnum_i | |
KUNNR_I | = lv_kunnr_i | |
IV_CALLED_BY_LORD | = lv_iv_called_by_lord | |
IMPORTING | ||
VCNUM_E | = lv_vcnum_e | |
VCKUN_E | = lv_vckun_e | |
EXCEPTIONS | ||
CC_NOT_FOUND = 1 | ||
CC_LOCKED = 2 | ||
CC_NOT_ASSIGNED_TO_CUSTOMER = 3 | ||
. " CCARD_ENHANCE_FROM_MASTERDATA |
ABAP code using 7.40 inline data declarations to call FM CCARD_ENHANCE_FROM_MASTERDATA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single CCINS FROM VCNUM INTO @DATA(ld_ccins_i). | ||||
"SELECT single CCNUM FROM VCNUM INTO @DATA(ld_ccnum_i). | ||||
"SELECT single KUNNR FROM VCKUN INTO @DATA(ld_kunnr_i). | ||||
DATA(ld_iv_called_by_lord) | = ' '. | |||
Search for further information about these or an SAP related objects