SAP CACNS_PM_GET_PROJECTS Function Module for NOTRANSL: Suchen von Projekten
CACNS_PM_GET_PROJECTS is a standard cacns pm get projects 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: Suchen von Projekten 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 cacns pm get projects FM, simply by entering the name CACNS_PM_GET_PROJECTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACNS_PROJECTMARKET
Program Name: SAPLCACNS_PROJECTMARKET
Main Program: SAPLCACNS_PROJECTMARKET
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACNS_PM_GET_PROJECTS 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 'CACNS_PM_GET_PROJECTS'"NOTRANSL: Suchen von Projekten.
EXPORTING
* I_START_DATE = "
* I_TITLE = "
* I_CREATOR = "
* I_CREATE_DATE = "
* I_DAYS_NEEDED = "
* I_END_DATE = "
* I_FUNCTION = "
* I_AREA = "
* I_SUBAREA = "
* I_LOCATION = "
* I_COUNTRY = "
* I_CUSID = "
* I_CUSTX = "
IMPORTING
TE_DELETE_ALLOWED = "
TABLES
TE_PROJECTS = "
IMPORTING Parameters details for CACNS_PM_GET_PROJECTS
I_START_DATE -
Data type: CACNS_PM_PROJ-START_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TITLE -
Data type: CACNS_PM_PROJ-DESCRIPTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CREATOR -
Data type: CACNS_PM_PROJ-CREATOROptional: Yes
Call by Reference: No ( called with pass by value option)
I_CREATE_DATE -
Data type: CACNS_PM_PROJ-CREATE_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DAYS_NEEDED -
Data type: CACNS_PM_PROJ-DAYS_NEEDEDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_END_DATE -
Data type: CACNS_PM_PROJ-END_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FUNCTION -
Data type: CACNS_PM_PROJ-FUNCTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AREA -
Data type: CACNS_PM_PROJ-AREAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBAREA -
Data type: CACNS_PM_PROJ-SUBAREAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOCATION -
Data type: CACNS_PM_PROJ-CUSTOWNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COUNTRY -
Data type: CACNS_PM_PROJ-CUSCTRKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CUSID -
Data type: CACNS_PM_PROJ-CUSIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CUSTX -
Data type: CACNS_PM_PROJ-CUSTXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CACNS_PM_GET_PROJECTS
TE_DELETE_ALLOWED -
Data type: CACNS_PM_PROJ-RESERVED3Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CACNS_PM_GET_PROJECTS
TE_PROJECTS -
Data type: CACNS_PM_PROJOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACNS_PM_GET_PROJECTS 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: | ||||
| lt_te_projects | TYPE STANDARD TABLE OF CACNS_PM_PROJ, " | |||
| lv_i_start_date | TYPE CACNS_PM_PROJ-START_DATE, " | |||
| lv_te_delete_allowed | TYPE CACNS_PM_PROJ-RESERVED3, " | |||
| lv_i_title | TYPE CACNS_PM_PROJ-DESCRIPTION, " | |||
| lv_i_creator | TYPE CACNS_PM_PROJ-CREATOR, " | |||
| lv_i_create_date | TYPE CACNS_PM_PROJ-CREATE_DATE, " | |||
| lv_i_days_needed | TYPE CACNS_PM_PROJ-DAYS_NEEDED, " | |||
| lv_i_end_date | TYPE CACNS_PM_PROJ-END_DATE, " | |||
| lv_i_function | TYPE CACNS_PM_PROJ-FUNCTION, " | |||
| lv_i_area | TYPE CACNS_PM_PROJ-AREA, " | |||
| lv_i_subarea | TYPE CACNS_PM_PROJ-SUBAREA, " | |||
| lv_i_location | TYPE CACNS_PM_PROJ-CUSTOWN, " | |||
| lv_i_country | TYPE CACNS_PM_PROJ-CUSCTRKEY, " | |||
| lv_i_cusid | TYPE CACNS_PM_PROJ-CUSID, " | |||
| lv_i_custx | TYPE CACNS_PM_PROJ-CUSTX. " |
|   CALL FUNCTION 'CACNS_PM_GET_PROJECTS' "NOTRANSL: Suchen von Projekten |
| EXPORTING | ||
| I_START_DATE | = lv_i_start_date | |
| I_TITLE | = lv_i_title | |
| I_CREATOR | = lv_i_creator | |
| I_CREATE_DATE | = lv_i_create_date | |
| I_DAYS_NEEDED | = lv_i_days_needed | |
| I_END_DATE | = lv_i_end_date | |
| I_FUNCTION | = lv_i_function | |
| I_AREA | = lv_i_area | |
| I_SUBAREA | = lv_i_subarea | |
| I_LOCATION | = lv_i_location | |
| I_COUNTRY | = lv_i_country | |
| I_CUSID | = lv_i_cusid | |
| I_CUSTX | = lv_i_custx | |
| IMPORTING | ||
| TE_DELETE_ALLOWED | = lv_te_delete_allowed | |
| TABLES | ||
| TE_PROJECTS | = lt_te_projects | |
| . " CACNS_PM_GET_PROJECTS | ||
ABAP code using 7.40 inline data declarations to call FM CACNS_PM_GET_PROJECTS
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 START_DATE FROM CACNS_PM_PROJ INTO @DATA(ld_i_start_date). | ||||
| "SELECT single RESERVED3 FROM CACNS_PM_PROJ INTO @DATA(ld_te_delete_allowed). | ||||
| "SELECT single DESCRIPTION FROM CACNS_PM_PROJ INTO @DATA(ld_i_title). | ||||
| "SELECT single CREATOR FROM CACNS_PM_PROJ INTO @DATA(ld_i_creator). | ||||
| "SELECT single CREATE_DATE FROM CACNS_PM_PROJ INTO @DATA(ld_i_create_date). | ||||
| "SELECT single DAYS_NEEDED FROM CACNS_PM_PROJ INTO @DATA(ld_i_days_needed). | ||||
| "SELECT single END_DATE FROM CACNS_PM_PROJ INTO @DATA(ld_i_end_date). | ||||
| "SELECT single FUNCTION FROM CACNS_PM_PROJ INTO @DATA(ld_i_function). | ||||
| "SELECT single AREA FROM CACNS_PM_PROJ INTO @DATA(ld_i_area). | ||||
| "SELECT single SUBAREA FROM CACNS_PM_PROJ INTO @DATA(ld_i_subarea). | ||||
| "SELECT single CUSTOWN FROM CACNS_PM_PROJ INTO @DATA(ld_i_location). | ||||
| "SELECT single CUSCTRKEY FROM CACNS_PM_PROJ INTO @DATA(ld_i_country). | ||||
| "SELECT single CUSID FROM CACNS_PM_PROJ INTO @DATA(ld_i_cusid). | ||||
| "SELECT single CUSTX FROM CACNS_PM_PROJ INTO @DATA(ld_i_custx). | ||||
Search for further information about these or an SAP related objects