SAP CUPC_PMSC_ADJOIN_NODE Function Module for
CUPC_PMSC_ADJOIN_NODE is a standard cupc pmsc adjoin node 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 cupc pmsc adjoin node FM, simply by entering the name CUPC_PMSC_ADJOIN_NODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CUPC
Program Name: SAPLCUPC
Main Program: SAPLCUPC
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CUPC_PMSC_ADJOIN_NODE 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 'CUPC_PMSC_ADJOIN_NODE'".
EXPORTING
ANC_NODE_IDX = "Available DN nodes
BINDING_IDXES = "List of variable link objects (idxes)
LIT_IDXES = "List of PMS literals (idxes)
* FORCE_NEW_NODE_FLAG = FALSE "
* OLD_COMPILER_VERSION1 = 0 "
* OLD_COMPILER_VERSION2 = 0 "
IMPORTING
NODE_IDX = "New DN node
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for CUPC_PMSC_ADJOIN_NODE
ANC_NODE_IDX - Available DN nodes
Data type: PMST_IDXOptional: No
Call by Reference: No ( called with pass by value option)
BINDING_IDXES - List of variable link objects (idxes)
Data type: PMST_IDX_TUPLEOptional: No
Call by Reference: No ( called with pass by value option)
LIT_IDXES - List of PMS literals (idxes)
Data type: PMST_IDX_TUPLEOptional: No
Call by Reference: No ( called with pass by value option)
FORCE_NEW_NODE_FLAG -
Data type: PMST_RESULTDefault: FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OLD_COMPILER_VERSION1 -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
OLD_COMPILER_VERSION2 -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CUPC_PMSC_ADJOIN_NODE
NODE_IDX - New DN node
Data type: PMST_IDXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUPC_PMSC_ADJOIN_NODE 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_node_idx | TYPE PMST_IDX, " | |||
| lv_anc_node_idx | TYPE PMST_IDX, " | |||
| lv_internal_error | TYPE PMST_IDX, " | |||
| lv_binding_idxes | TYPE PMST_IDX_TUPLE, " | |||
| lv_lit_idxes | TYPE PMST_IDX_TUPLE, " | |||
| lv_force_new_node_flag | TYPE PMST_RESULT, " FALSE | |||
| lv_old_compiler_version1 | TYPE I, " 0 | |||
| lv_old_compiler_version2 | TYPE I. " 0 |
|   CALL FUNCTION 'CUPC_PMSC_ADJOIN_NODE' " |
| EXPORTING | ||
| ANC_NODE_IDX | = lv_anc_node_idx | |
| BINDING_IDXES | = lv_binding_idxes | |
| LIT_IDXES | = lv_lit_idxes | |
| FORCE_NEW_NODE_FLAG | = lv_force_new_node_flag | |
| OLD_COMPILER_VERSION1 | = lv_old_compiler_version1 | |
| OLD_COMPILER_VERSION2 | = lv_old_compiler_version2 | |
| IMPORTING | ||
| NODE_IDX | = lv_node_idx | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " CUPC_PMSC_ADJOIN_NODE | ||
ABAP code using 7.40 inline data declarations to call FM CUPC_PMSC_ADJOIN_NODE
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_force_new_node_flag) | = FALSE. | |||
Search for further information about these or an SAP related objects