SAP /ACCGO/CSDP_READ_SAVE_TEXT Function Module for Save Internal and External Comments









/ACCGO/CSDP_READ_SAVE_TEXT is a standard /accgo/csdp read save text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save Internal and External Comments 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 /accgo/csdp read save text FM, simply by entering the name /ACCGO/CSDP_READ_SAVE_TEXT into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/CSDP_TEXT
Program Name: /ACCGO/SAPLCSDP_TEXT
Main Program: /ACCGO/SAPLCSDP_TEXT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /ACCGO/CSDP_READ_SAVE_TEXT 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 '/ACCGO/CSDP_READ_SAVE_TEXT'"Save Internal and External Comments
EXPORTING
IM_V_TKONN = "Trading Contract: Trading Contract Number
IM_V_TPOSN = "Trading Contract: Item Number
* IM_V_TPOSN_SUB = "Trading Contract: Sub-Item Number
IM_V_CMNT = "Type Of Comment (I=Internal/E=External)
IM_V_TYPE = "R = Read/S = Save
* IM_V_INSERT = "Indicator: Text is new
* IM_V_SAVEMODE_DIRECT = "Indicator: Save text immediately
* IMT_LINES = "Text Lines

IMPORTING
EX_V_STATUS = "Save status
EX_S_HEADER = "Text header
EXT_LINES = "Text Lines

EXCEPTIONS
ID = 1 LANGUAGE = 2 NAME = 3 NOT_FOUND = 4 OBJECT = 5 REFERENCE_CHECK = 6 WRONG_ACCESS_TO_ARCHIVE = 7 INVALID_INPUT = 8
.



IMPORTING Parameters details for /ACCGO/CSDP_READ_SAVE_TEXT

IM_V_TKONN - Trading Contract: Trading Contract Number

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

IM_V_TPOSN - Trading Contract: Item Number

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

IM_V_TPOSN_SUB - Trading Contract: Sub-Item Number

Data type: TPOSN_SUB
Optional: Yes
Call by Reference: Yes

IM_V_CMNT - Type Of Comment (I=Internal/E=External)

Data type: /ACCGO/E_TYPCOM
Optional: No
Call by Reference: Yes

IM_V_TYPE - R = Read/S = Save

Data type: /ACCGO/E_RDSV
Optional: No
Call by Reference: Yes

IM_V_INSERT - Indicator: Text is new

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

IM_V_SAVEMODE_DIRECT - Indicator: Save text immediately

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

IMT_LINES - Text Lines

Data type: TLINE_T
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /ACCGO/CSDP_READ_SAVE_TEXT

EX_V_STATUS - Save status

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

EX_S_HEADER - Text header

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

EXT_LINES - Text Lines

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

EXCEPTIONS details

ID - Text ID in text header invalid

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

LANGUAGE - Language in text header invalid

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

NAME - Text name in text header invalid

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

NOT_FOUND - Reference text not found

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

OBJECT - Text object in text header invalid

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

REFERENCE_CHECK - Reference chain interrupted

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

WRONG_ACCESS_TO_ARCHIVE - Archive handle invalid for access

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

INVALID_INPUT - Invalid Input

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

Copy and paste ABAP code example for /ACCGO/CSDP_READ_SAVE_TEXT 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_id  TYPE STRING, "   
lv_im_v_tkonn  TYPE TKONN, "   
lv_ex_v_status  TYPE CHAR1, "   
lv_language  TYPE CHAR1, "   
lv_im_v_tposn  TYPE TPOSN, "   
lv_ex_s_header  TYPE THEAD, "   
lv_name  TYPE THEAD, "   
lv_ext_lines  TYPE TLINE_T, "   
lv_im_v_tposn_sub  TYPE TPOSN_SUB, "   
lv_im_v_cmnt  TYPE /ACCGO/E_TYPCOM, "   
lv_not_found  TYPE /ACCGO/E_TYPCOM, "   
lv_object  TYPE /ACCGO/E_TYPCOM, "   
lv_im_v_type  TYPE /ACCGO/E_RDSV, "   
lv_im_v_insert  TYPE CHAR1, "   
lv_reference_check  TYPE CHAR1, "   
lv_im_v_savemode_direct  TYPE CHAR1, "   
lv_wrong_access_to_archive  TYPE CHAR1, "   
lv_imt_lines  TYPE TLINE_T, "   
lv_invalid_input  TYPE TLINE_T. "   

  CALL FUNCTION '/ACCGO/CSDP_READ_SAVE_TEXT'  "Save Internal and External Comments
    EXPORTING
         IM_V_TKONN = lv_im_v_tkonn
         IM_V_TPOSN = lv_im_v_tposn
         IM_V_TPOSN_SUB = lv_im_v_tposn_sub
         IM_V_CMNT = lv_im_v_cmnt
         IM_V_TYPE = lv_im_v_type
         IM_V_INSERT = lv_im_v_insert
         IM_V_SAVEMODE_DIRECT = lv_im_v_savemode_direct
         IMT_LINES = lv_imt_lines
    IMPORTING
         EX_V_STATUS = lv_ex_v_status
         EX_S_HEADER = lv_ex_s_header
         EXT_LINES = lv_ext_lines
    EXCEPTIONS
        ID = 1
        LANGUAGE = 2
        NAME = 3
        NOT_FOUND = 4
        OBJECT = 5
        REFERENCE_CHECK = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        INVALID_INPUT = 8
. " /ACCGO/CSDP_READ_SAVE_TEXT




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CSDP_READ_SAVE_TEXT

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



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!