SAP QC01_CERT_PROFILE_CHAR_TEXT Function Module for Select a short text from the certificate profile
QC01_CERT_PROFILE_CHAR_TEXT is a standard qc01 cert profile char text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select a short text from the certificate profile 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 qc01 cert profile char text FM, simply by entering the name QC01_CERT_PROFILE_CHAR_TEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: QC01
Program Name: SAPLQC01
Main Program: SAPLQC01
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QC01_CERT_PROFILE_CHAR_TEXT 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 'QC01_CERT_PROFILE_CHAR_TEXT'"Select a short text from the certificate profile.
EXPORTING
I_CERTIFICATE_TYPE = "Certificate type
I_PROFILE = "Certificate Profile Number
I_VERSION = "Certificate profile version
I_BLOCKNR = "Number of Characteristic Block
I_CHARNR = "Internal number of charac. for certificate profile
* I_LANGUAGE = SY-LANGU "Language
IMPORTING
E_SHORT_TEXT = "Short Text for Master Inspection Characteristic
EXCEPTIONS
NO_DATA_FOUND = 1
IMPORTING Parameters details for QC01_CERT_PROFILE_CHAR_TEXT
I_CERTIFICATE_TYPE - Certificate type
Data type: QCVK-CTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_PROFILE - Certificate Profile Number
Data type: QCVK-VORLNROptional: No
Call by Reference: No ( called with pass by value option)
I_VERSION - Certificate profile version
Data type: QCVK-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
I_BLOCKNR - Number of Characteristic Block
Data type: QCVM-BLOCKNROptional: No
Call by Reference: No ( called with pass by value option)
I_CHARNR - Internal number of charac. for certificate profile
Data type: QCVM-MERKMALNROptional: No
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QC01_CERT_PROFILE_CHAR_TEXT
E_SHORT_TEXT - Short Text for Master Inspection Characteristic
Data type: QCVMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_FOUND - No short text found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QC01_CERT_PROFILE_CHAR_TEXT 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_e_short_text | TYPE QCVMT-KURZTEXT, " | |||
| lv_no_data_found | TYPE QCVMT, " | |||
| lv_i_certificate_type | TYPE QCVK-CTYP, " | |||
| lv_i_profile | TYPE QCVK-VORLNR, " | |||
| lv_i_version | TYPE QCVK-VERSION, " | |||
| lv_i_blocknr | TYPE QCVM-BLOCKNR, " | |||
| lv_i_charnr | TYPE QCVM-MERKMALNR, " | |||
| lv_i_language | TYPE SY-LANGU. " SY-LANGU |
|   CALL FUNCTION 'QC01_CERT_PROFILE_CHAR_TEXT' "Select a short text from the certificate profile |
| EXPORTING | ||
| I_CERTIFICATE_TYPE | = lv_i_certificate_type | |
| I_PROFILE | = lv_i_profile | |
| I_VERSION | = lv_i_version | |
| I_BLOCKNR | = lv_i_blocknr | |
| I_CHARNR | = lv_i_charnr | |
| I_LANGUAGE | = lv_i_language | |
| IMPORTING | ||
| E_SHORT_TEXT | = lv_e_short_text | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| . " QC01_CERT_PROFILE_CHAR_TEXT | ||
ABAP code using 7.40 inline data declarations to call FM QC01_CERT_PROFILE_CHAR_TEXT
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 KURZTEXT FROM QCVMT INTO @DATA(ld_e_short_text). | ||||
| "SELECT single CTYP FROM QCVK INTO @DATA(ld_i_certificate_type). | ||||
| "SELECT single VORLNR FROM QCVK INTO @DATA(ld_i_profile). | ||||
| "SELECT single VERSION FROM QCVK INTO @DATA(ld_i_version). | ||||
| "SELECT single BLOCKNR FROM QCVM INTO @DATA(ld_i_blocknr). | ||||
| "SELECT single MERKMALNR FROM QCVM INTO @DATA(ld_i_charnr). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects