SAP FMCA_SAMPLE_P735 Function Module for Correspondence: Create Confirmation Letter
FMCA_SAMPLE_P735 is a standard fmca sample p735 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Correspondence: Create Confirmation Letter 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 fmca sample p735 FM, simply by entering the name FMCA_SAMPLE_P735 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCA_FPF_CORR
Program Name: SAPLFMCA_FPF_CORR
Main Program: SAPLFMCA_FPF_CORR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCA_SAMPLE_P735 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 'FMCA_SAMPLE_P735'"Correspondence: Create Confirmation Letter.
EXPORTING
IS_DFKKCOH = "Correspondence - Correspondence Header
IS_FMCA_RETURN = "Upload Structure for Process Objects
* IV_TIME_STAMP = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
CHANGING
* C_SUCCESS_NUM = "
TABLES
* T_DFKKCOH = "Correspondence - Correspondence Header
* T_MSG = "Return Parameter
IMPORTING Parameters details for FMCA_SAMPLE_P735
IS_DFKKCOH - Correspondence - Correspondence Header
Data type: DFKKCOHOptional: No
Call by Reference: Yes
IS_FMCA_RETURN - Upload Structure for Process Objects
Data type: FMCA_POBJ_SOptional: No
Call by Reference: Yes
IV_TIME_STAMP - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Data type: TIMESTAMPOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for FMCA_SAMPLE_P735
C_SUCCESS_NUM -
Data type: IOptional: Yes
Call by Reference: Yes
TABLES Parameters details for FMCA_SAMPLE_P735
T_DFKKCOH - Correspondence - Correspondence Header
Data type: DFKKCOHOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MSG - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FMCA_SAMPLE_P735 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: | ||||
| lt_t_dfkkcoh | TYPE STANDARD TABLE OF DFKKCOH, " | |||
| lv_is_dfkkcoh | TYPE DFKKCOH, " | |||
| lv_c_success_num | TYPE I, " | |||
| lt_t_msg | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_is_fmca_return | TYPE FMCA_POBJ_S, " | |||
| lv_iv_time_stamp | TYPE TIMESTAMP. " |
|   CALL FUNCTION 'FMCA_SAMPLE_P735' "Correspondence: Create Confirmation Letter |
| EXPORTING | ||
| IS_DFKKCOH | = lv_is_dfkkcoh | |
| IS_FMCA_RETURN | = lv_is_fmca_return | |
| IV_TIME_STAMP | = lv_iv_time_stamp | |
| CHANGING | ||
| C_SUCCESS_NUM | = lv_c_success_num | |
| TABLES | ||
| T_DFKKCOH | = lt_t_dfkkcoh | |
| T_MSG | = lt_t_msg | |
| . " FMCA_SAMPLE_P735 | ||
ABAP code using 7.40 inline data declarations to call FM FMCA_SAMPLE_P735
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