SAP CMPROJECT_DATA_READ Function Module for Read Category management project data
CMPROJECT_DATA_READ is a standard cmproject data read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Category management project data 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 cmproject data read FM, simply by entering the name CMPROJECT_DATA_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CM_WF01
Program Name: SAPLCM_WF01
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CMPROJECT_DATA_READ 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 'CMPROJECT_DATA_READ'"Read Category management project data.
EXPORTING
CMPROJECT = "Category Management: Project
* READ_WCMP = 'X' "Single-character flag
* READ_WCMPT = 'X' "Einstelliges Kennzeichen
* READ_WCMPS = 'X' "Single-character flag
* READ_WCMPSD = 'X' "Single-character flag
* READ_WCMPUSER = 'X' "Single-character flag
* SPRAS = SY-LANGU "Language key
IMPORTING
E_WCMP = "Category Management: Project
TABLES
* TAB_WCMPT = "CM Projektpflege: Beschreibung
* TAB_WCMPS = "TWCMPS
* TAB_WCMPSD = "Details for Category Management Step
* TAB_WCMPUSER = "Category Management: Assignment User to role
IMPORTING Parameters details for CMPROJECT_DATA_READ
CMPROJECT - Category Management: Project
Data type: CMPROJECTOptional: No
Call by Reference: No ( called with pass by value option)
READ_WCMP - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_WCMPT - Einstelliges Kennzeichen
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_WCMPS - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_WCMPSD - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_WCMPUSER - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPRAS - Language key
Data type: LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMPROJECT_DATA_READ
E_WCMP - Category Management: Project
Data type: WCMPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CMPROJECT_DATA_READ
TAB_WCMPT - CM Projektpflege: Beschreibung
Data type: WCMPTOptional: Yes
Call by Reference: Yes
TAB_WCMPS - TWCMPS
Data type: WCMPSOptional: Yes
Call by Reference: Yes
TAB_WCMPSD - Details for Category Management Step
Data type: WCMPSDOptional: Yes
Call by Reference: Yes
TAB_WCMPUSER - Category Management: Assignment User to role
Data type: WCMPUSEROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CMPROJECT_DATA_READ 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_wcmp | TYPE WCMP, " | |||
| lv_cmproject | TYPE CMPROJECT, " | |||
| lt_tab_wcmpt | TYPE STANDARD TABLE OF WCMPT, " | |||
| lv_read_wcmp | TYPE CHAR1, " 'X' | |||
| lt_tab_wcmps | TYPE STANDARD TABLE OF WCMPS, " | |||
| lv_read_wcmpt | TYPE CHAR1, " 'X' | |||
| lt_tab_wcmpsd | TYPE STANDARD TABLE OF WCMPSD, " | |||
| lv_read_wcmps | TYPE CHAR1, " 'X' | |||
| lt_tab_wcmpuser | TYPE STANDARD TABLE OF WCMPUSER, " | |||
| lv_read_wcmpsd | TYPE CHAR1, " 'X' | |||
| lv_read_wcmpuser | TYPE CHAR1, " 'X' | |||
| lv_spras | TYPE LANGU. " SY-LANGU |
|   CALL FUNCTION 'CMPROJECT_DATA_READ' "Read Category management project data |
| EXPORTING | ||
| CMPROJECT | = lv_cmproject | |
| READ_WCMP | = lv_read_wcmp | |
| READ_WCMPT | = lv_read_wcmpt | |
| READ_WCMPS | = lv_read_wcmps | |
| READ_WCMPSD | = lv_read_wcmpsd | |
| READ_WCMPUSER | = lv_read_wcmpuser | |
| SPRAS | = lv_spras | |
| IMPORTING | ||
| E_WCMP | = lv_e_wcmp | |
| TABLES | ||
| TAB_WCMPT | = lt_tab_wcmpt | |
| TAB_WCMPS | = lt_tab_wcmps | |
| TAB_WCMPSD | = lt_tab_wcmpsd | |
| TAB_WCMPUSER | = lt_tab_wcmpuser | |
| . " CMPROJECT_DATA_READ | ||
ABAP code using 7.40 inline data declarations to call FM CMPROJECT_DATA_READ
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.| DATA(ld_read_wcmp) | = 'X'. | |||
| DATA(ld_read_wcmpt) | = 'X'. | |||
| DATA(ld_read_wcmps) | = 'X'. | |||
| DATA(ld_read_wcmpsd) | = 'X'. | |||
| DATA(ld_read_wcmpuser) | = 'X'. | |||
| DATA(ld_spras) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects