SAP UJC_API_COPY_CMTS Function Module for BPC: copy comments function module
UJC_API_COPY_CMTS is a standard ujc api copy cmts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BPC: copy comments function module 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 ujc api copy cmts FM, simply by entering the name UJC_API_COPY_CMTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: UJC0
Program Name: SAPLUJC0
Main Program: SAPLUJC0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UJC_API_COPY_CMTS 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 'UJC_API_COPY_CMTS'"BPC: copy comments function module.
EXPORTING
I_APPSET_ID = "SAP BusinessObjects - AppSet ID
* I_CMT_DATE_FROM = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
* I_CMT_DATE_TO = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
I_APPL_ID = "SAP BusinessObjects - Application ID
* IS_USER = "BPC: User Login Info
* I_KEYWORD = "BPC: Description
* IT_PRIORITY = "BPC: Internal Table of Comment Priority Structure
IT_DIM_MEMBERS_MAP = "BPC: copy comments dimension mapping list
* I_KPI = "BPC: Description
* I_MEASURES = "BPC: Description
* I_ORIGINATOR = "BPC: User ID
IMPORTING
E_SUCCESS = "BPC: Generic indicator
IMPORTING Parameters details for UJC_API_COPY_CMTS
I_APPSET_ID - SAP BusinessObjects - AppSet ID
Data type: UJ_APPSET_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_CMT_DATE_FROM - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Data type: TIMESTAMPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CMT_DATE_TO - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Data type: TIMESTAMPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_APPL_ID - SAP BusinessObjects - Application ID
Data type: UJ_APPL_IDOptional: No
Call by Reference: No ( called with pass by value option)
IS_USER - BPC: User Login Info
Data type: UJ0_S_USEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KEYWORD - BPC: Description
Data type: UJ_DESCOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PRIORITY - BPC: Internal Table of Comment Priority Structure
Data type: UJC_T_API_CMT_PRIORITYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_DIM_MEMBERS_MAP - BPC: copy comments dimension mapping list
Data type: UJC_T_COPY_CMTBL_DIMLISTOptional: No
Call by Reference: No ( called with pass by value option)
I_KPI - BPC: Description
Data type: UJ_DESCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MEASURES - BPC: Description
Data type: UJ_DESCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ORIGINATOR - BPC: User ID
Data type: UJ_USER_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for UJC_API_COPY_CMTS
E_SUCCESS - BPC: Generic indicator
Data type: UJ_FLGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for UJC_API_COPY_CMTS 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_success | TYPE UJ_FLG, " | |||
| lv_i_appset_id | TYPE UJ_APPSET_ID, " | |||
| lv_i_cmt_date_from | TYPE TIMESTAMP, " | |||
| lv_i_cmt_date_to | TYPE TIMESTAMP, " | |||
| lv_i_appl_id | TYPE UJ_APPL_ID, " | |||
| lv_is_user | TYPE UJ0_S_USER, " | |||
| lv_i_keyword | TYPE UJ_DESC, " | |||
| lv_it_priority | TYPE UJC_T_API_CMT_PRIORITY, " | |||
| lv_it_dim_members_map | TYPE UJC_T_COPY_CMTBL_DIMLIST, " | |||
| lv_i_kpi | TYPE UJ_DESC, " | |||
| lv_i_measures | TYPE UJ_DESC, " | |||
| lv_i_originator | TYPE UJ_USER_ID. " |
|   CALL FUNCTION 'UJC_API_COPY_CMTS' "BPC: copy comments function module |
| EXPORTING | ||
| I_APPSET_ID | = lv_i_appset_id | |
| I_CMT_DATE_FROM | = lv_i_cmt_date_from | |
| I_CMT_DATE_TO | = lv_i_cmt_date_to | |
| I_APPL_ID | = lv_i_appl_id | |
| IS_USER | = lv_is_user | |
| I_KEYWORD | = lv_i_keyword | |
| IT_PRIORITY | = lv_it_priority | |
| IT_DIM_MEMBERS_MAP | = lv_it_dim_members_map | |
| I_KPI | = lv_i_kpi | |
| I_MEASURES | = lv_i_measures | |
| I_ORIGINATOR | = lv_i_originator | |
| IMPORTING | ||
| E_SUCCESS | = lv_e_success | |
| . " UJC_API_COPY_CMTS | ||
ABAP code using 7.40 inline data declarations to call FM UJC_API_COPY_CMTS
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.Search for further information about these or an SAP related objects