SAP SCPR_CPROF_CT_PROFDATA_CONVERT Function Module for
SCPR_CPROF_CT_PROFDATA_CONVERT is a standard scpr cprof ct profdata convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 scpr cprof ct profdata convert FM, simply by entering the name SCPR_CPROF_CT_PROFDATA_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPRCP
Program Name: SAPLSCPRCP
Main Program: SAPLSCPRCP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPR_CPROF_CT_PROFDATA_CONVERT 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 'SCPR_CPROF_CT_PROFDATA_CONVERT'".
EXPORTING
TABNAME = "
* ONLY_KEY = ' ' "
RECNUMBER = "Data record number
* KEYLEN = "
* UNCOMPLETE = "
* DELETEFLAG = "
* VALUES_IN_INT_FORMAT = "
IMPORTING
RAW_RECORD = "Compressed Data
LINE = "
RAW_XRECORD = "
GENKEYLEN = "
GENKEYFIELD = "
TABLES
PROFVALUES = "
TABLEDESCR = "
IMPORTING Parameters details for SCPR_CPROF_CT_PROFDATA_CONVERT
TABNAME -
Data type: SCPRDATA-TABLENAMEOptional: No
Call by Reference: Yes
ONLY_KEY -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
RECNUMBER - Data record number
Data type: SCPRVALS-RECNUMBEROptional: No
Call by Reference: Yes
KEYLEN -
Data type: IOptional: Yes
Call by Reference: Yes
UNCOMPLETE -
Data type: SCPR_UNCPLOptional: Yes
Call by Reference: Yes
DELETEFLAG -
Data type: SCPR_DELETOptional: Yes
Call by Reference: Yes
VALUES_IN_INT_FORMAT -
Data type: SAP_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCPR_CPROF_CT_PROFDATA_CONVERT
RAW_RECORD - Compressed Data
Data type: SCPR_RAWOptional: No
Call by Reference: Yes
LINE -
Data type:Optional: No
Call by Reference: Yes
RAW_XRECORD -
Data type:Optional: No
Call by Reference: Yes
GENKEYLEN -
Data type: IOptional: No
Call by Reference: Yes
GENKEYFIELD -
Data type: SCPR_FLDOptional: No
Call by Reference: Yes
TABLES Parameters details for SCPR_CPROF_CT_PROFDATA_CONVERT
PROFVALUES -
Data type: SCPRVALSOptional: No
Call by Reference: No ( called with pass by value option)
TABLEDESCR -
Data type: SCPR_FLDDESCRSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCPR_CPROF_CT_PROFDATA_CONVERT 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_tabname | TYPE SCPRDATA-TABLENAME, " | |||
| lt_profvalues | TYPE STANDARD TABLE OF SCPRVALS, " | |||
| lv_raw_record | TYPE SCPR_RAW, " | |||
| lv_line | TYPE SCPR_RAW, " | |||
| lv_only_key | TYPE C, " ' ' | |||
| lt_tabledescr | TYPE STANDARD TABLE OF SCPR_FLDDESCRS, " | |||
| lv_recnumber | TYPE SCPRVALS-RECNUMBER, " | |||
| lv_raw_xrecord | TYPE SCPRVALS, " | |||
| lv_keylen | TYPE I, " | |||
| lv_genkeylen | TYPE I, " | |||
| lv_uncomplete | TYPE SCPR_UNCPL, " | |||
| lv_genkeyfield | TYPE SCPR_FLD, " | |||
| lv_deleteflag | TYPE SCPR_DELET, " | |||
| lv_values_in_int_format | TYPE SAP_BOOL. " |
|   CALL FUNCTION 'SCPR_CPROF_CT_PROFDATA_CONVERT' " |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| ONLY_KEY | = lv_only_key | |
| RECNUMBER | = lv_recnumber | |
| KEYLEN | = lv_keylen | |
| UNCOMPLETE | = lv_uncomplete | |
| DELETEFLAG | = lv_deleteflag | |
| VALUES_IN_INT_FORMAT | = lv_values_in_int_format | |
| IMPORTING | ||
| RAW_RECORD | = lv_raw_record | |
| LINE | = lv_line | |
| RAW_XRECORD | = lv_raw_xrecord | |
| GENKEYLEN | = lv_genkeylen | |
| GENKEYFIELD | = lv_genkeyfield | |
| TABLES | ||
| PROFVALUES | = lt_profvalues | |
| TABLEDESCR | = lt_tabledescr | |
| . " SCPR_CPROF_CT_PROFDATA_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM SCPR_CPROF_CT_PROFDATA_CONVERT
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 TABLENAME FROM SCPRDATA INTO @DATA(ld_tabname). | ||||
| DATA(ld_only_key) | = ' '. | |||
| "SELECT single RECNUMBER FROM SCPRVALS INTO @DATA(ld_recnumber). | ||||
Search for further information about these or an SAP related objects