SAP FSCD_CPH_PROCESS Function Module for Perform Policyholder Change









FSCD_CPH_PROCESS is a standard fscd cph process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Perform Policyholder Change 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 fscd cph process FM, simply by entering the name FSCD_CPH_PROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: FSCD_CPH
Program Name: SAPLFSCD_CPH
Main Program: SAPLFSCD_CPH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FSCD_CPH_PROCESS 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 'FSCD_CPH_PROCESS'"Perform Policyholder Change
EXPORTING
* IV_VTREF = "Contract
* IX_COMMIT = 'X' "
* IV_VTREF_EXT = "
* IV_GPART_OLD = "
* IV_GPART_OLD_EXT = "
* IV_GPART_NEW = "
* IV_GPART_NEW_EXT = "
IV_VALDT = "
* IX_TRANSFER_OI = 'X' "Transfer Open Items
* IX_SIMU = ' ' "Activate Simulation Mode

TABLES
ET_MESSAGES = "Confirmations
.



IMPORTING Parameters details for FSCD_CPH_PROCESS

IV_VTREF - Contract

Data type: VTREF_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

IX_COMMIT -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VTREF_EXT -

Data type: VTREF_EXT_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GPART_OLD -

Data type: GPART_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GPART_OLD_EXT -

Data type: BU_BPEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GPART_NEW -

Data type: GPART_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GPART_NEW_EXT -

Data type: BU_BPEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VALDT -

Data type: VALDT_CPH_VK
Optional: No
Call by Reference: No ( called with pass by value option)

IX_TRANSFER_OI - Transfer Open Items

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IX_SIMU - Activate Simulation Mode

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FSCD_CPH_PROCESS

ET_MESSAGES - Confirmations

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FSCD_CPH_PROCESS 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_iv_vtref  TYPE VTREF_KK, "   
lt_et_messages  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_ix_commit  TYPE XFELD, "   'X'
lv_iv_vtref_ext  TYPE VTREF_EXT_KK, "   
lv_iv_gpart_old  TYPE GPART_KK, "   
lv_iv_gpart_old_ext  TYPE BU_BPEXT, "   
lv_iv_gpart_new  TYPE GPART_KK, "   
lv_iv_gpart_new_ext  TYPE BU_BPEXT, "   
lv_iv_valdt  TYPE VALDT_CPH_VK, "   
lv_ix_transfer_oi  TYPE XFELD, "   'X'
lv_ix_simu  TYPE XFELD. "   SPACE

  CALL FUNCTION 'FSCD_CPH_PROCESS'  "Perform Policyholder Change
    EXPORTING
         IV_VTREF = lv_iv_vtref
         IX_COMMIT = lv_ix_commit
         IV_VTREF_EXT = lv_iv_vtref_ext
         IV_GPART_OLD = lv_iv_gpart_old
         IV_GPART_OLD_EXT = lv_iv_gpart_old_ext
         IV_GPART_NEW = lv_iv_gpart_new
         IV_GPART_NEW_EXT = lv_iv_gpart_new_ext
         IV_VALDT = lv_iv_valdt
         IX_TRANSFER_OI = lv_ix_transfer_oi
         IX_SIMU = lv_ix_simu
    TABLES
         ET_MESSAGES = lt_et_messages
. " FSCD_CPH_PROCESS




ABAP code using 7.40 inline data declarations to call FM FSCD_CPH_PROCESS

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_ix_commit) = 'X'.
 
 
 
 
 
 
 
DATA(ld_ix_transfer_oi) = 'X'.
 
DATA(ld_ix_simu) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!