SAP CP_TX_PROCESSING Function Module for Long text processing in routing
CP_TX_PROCESSING is a standard cp tx processing SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Long text processing in routing 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 cp tx processing FM, simply by entering the name CP_TX_PROCESSING into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPTX
Program Name: SAPLCPTX
Main Program: SAPLCPTX
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CP_TX_PROCESSING 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 'CP_TX_PROCESSING'"Long text processing in routing.
EXPORTING
AKTYP = "Activity category
* FLG_EDIT = 'X' "Indicator: editor is highlighted
* KTSCH_OLD = ' ' "Standard text key of old operation
OBJECT = "Current task list object
PLNAW_IMP = "Task list usage
RC27I_NEW = "Current index string of task list
RC27I_OLD = "Old index string of task list
* STTAG = '00000000' "Key date
* AENNR = "
IMPORTING
ACTION = "Processing result (changed, delete ...)
MLSTD_EXP = "
PLFLD_EXP = "Updated sequence record
PLKOD_EXP = "Updated header record
PLPOD_EXP = "Updated operation record
PLTXD_EXP = "Updated info text record
EXCEPTIONS
NO_SUBMISSION = 1
IMPORTING Parameters details for CP_TX_PROCESSING
AKTYP - Activity category
Data type: RC27S-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
FLG_EDIT - Indicator: editor is highlighted
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KTSCH_OLD - Standard text key of old operation
Data type: PLPOD-KTSCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT - Current task list object
Data type: RC27X-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
PLNAW_IMP - Task list usage
Data type: TCA01-PLNAWOptional: No
Call by Reference: No ( called with pass by value option)
RC27I_NEW - Current index string of task list
Data type: RC27IOptional: No
Call by Reference: No ( called with pass by value option)
RC27I_OLD - Old index string of task list
Data type: RC27IOptional: No
Call by Reference: No ( called with pass by value option)
STTAG - Key date
Data type: RC27S-STTAGDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AENNR -
Data type: RC27S-AENNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CP_TX_PROCESSING
ACTION - Processing result (changed, delete ...)
Data type: TTXCT-FUNCTIONOptional: No
Call by Reference: No ( called with pass by value option)
MLSTD_EXP -
Data type: MLSTDOptional: No
Call by Reference: No ( called with pass by value option)
PLFLD_EXP - Updated sequence record
Data type: PLFLDOptional: No
Call by Reference: No ( called with pass by value option)
PLKOD_EXP - Updated header record
Data type: PLKODOptional: No
Call by Reference: No ( called with pass by value option)
PLPOD_EXP - Updated operation record
Data type: PLPODOptional: No
Call by Reference: No ( called with pass by value option)
PLTXD_EXP - Updated info text record
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SUBMISSION - Reference not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CP_TX_PROCESSING 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_aktyp | TYPE RC27S-AKTYP, " | |||
| lv_action | TYPE TTXCT-FUNCTION, " | |||
| lv_no_submission | TYPE TTXCT, " | |||
| lv_flg_edit | TYPE TTXCT, " 'X' | |||
| lv_mlstd_exp | TYPE MLSTD, " | |||
| lv_ktsch_old | TYPE PLPOD-KTSCH, " SPACE | |||
| lv_plfld_exp | TYPE PLFLD, " | |||
| lv_object | TYPE RC27X-OBJECT, " | |||
| lv_plkod_exp | TYPE PLKOD, " | |||
| lv_plnaw_imp | TYPE TCA01-PLNAW, " | |||
| lv_plpod_exp | TYPE PLPOD, " | |||
| lv_pltxd_exp | TYPE PLPOD, " | |||
| lv_rc27i_new | TYPE RC27I, " | |||
| lv_rc27i_old | TYPE RC27I, " | |||
| lv_sttag | TYPE RC27S-STTAG, " '00000000' | |||
| lv_aennr | TYPE RC27S-AENNR. " |
|   CALL FUNCTION 'CP_TX_PROCESSING' "Long text processing in routing |
| EXPORTING | ||
| AKTYP | = lv_aktyp | |
| FLG_EDIT | = lv_flg_edit | |
| KTSCH_OLD | = lv_ktsch_old | |
| OBJECT | = lv_object | |
| PLNAW_IMP | = lv_plnaw_imp | |
| RC27I_NEW | = lv_rc27i_new | |
| RC27I_OLD | = lv_rc27i_old | |
| STTAG | = lv_sttag | |
| AENNR | = lv_aennr | |
| IMPORTING | ||
| ACTION | = lv_action | |
| MLSTD_EXP | = lv_mlstd_exp | |
| PLFLD_EXP | = lv_plfld_exp | |
| PLKOD_EXP | = lv_plkod_exp | |
| PLPOD_EXP | = lv_plpod_exp | |
| PLTXD_EXP | = lv_pltxd_exp | |
| EXCEPTIONS | ||
| NO_SUBMISSION = 1 | ||
| . " CP_TX_PROCESSING | ||
ABAP code using 7.40 inline data declarations to call FM CP_TX_PROCESSING
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 AKTYP FROM RC27S INTO @DATA(ld_aktyp). | ||||
| "SELECT single FUNCTION FROM TTXCT INTO @DATA(ld_action). | ||||
| DATA(ld_flg_edit) | = 'X'. | |||
| "SELECT single KTSCH FROM PLPOD INTO @DATA(ld_ktsch_old). | ||||
| DATA(ld_ktsch_old) | = ' '. | |||
| "SELECT single OBJECT FROM RC27X INTO @DATA(ld_object). | ||||
| "SELECT single PLNAW FROM TCA01 INTO @DATA(ld_plnaw_imp). | ||||
| "SELECT single STTAG FROM RC27S INTO @DATA(ld_sttag). | ||||
| DATA(ld_sttag) | = '00000000'. | |||
| "SELECT single AENNR FROM RC27S INTO @DATA(ld_aennr). | ||||
Search for further information about these or an SAP related objects