SAP FMCA_TRM_ADD_NOTE Function Module for Add Note to SAPScript
FMCA_TRM_ADD_NOTE is a standard fmca trm add note SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Add Note to SAPScript 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 trm add note FM, simply by entering the name FMCA_TRM_ADD_NOTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCA_TRM_TP
Program Name: SAPLFMCA_TRM_TP
Main Program: SAPLFMCA_TRM_TP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCA_TRM_ADD_NOTE 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_TRM_ADD_NOTE'"Add Note to SAPScript.
EXPORTING
IV_RETURN_ID = "Technical Case Key (Case GUID)
IV_RCODE = "Processing Reason
* IV_INVOICE = ' ' "Checkbox
* IV_OBSOLETE = ' ' "Checkbox
* IS_NOTE_ATT = "
IV_NOTE_STRING = "
EXCEPTIONS
RETURN_NOT_FOUND = 1 NO_AUTH = 2 FOREIGN_LOCK = 3 NOTE_UPDATE_ERROR = 4 RETURN_UPDATE_ERROR = 5
IMPORTING Parameters details for FMCA_TRM_ADD_NOTE
IV_RETURN_ID - Technical Case Key (Case GUID)
Data type: SCMG_CASE_GUIDOptional: No
Call by Reference: Yes
IV_RCODE - Processing Reason
Data type: RCODE_PSOptional: No
Call by Reference: Yes
IV_INVOICE - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_OBSOLETE - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_NOTE_ATT -
Data type: DFMCA_NOTE_ATTOptional: Yes
Call by Reference: Yes
IV_NOTE_STRING -
Data type: STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
RETURN_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTE_UPDATE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RETURN_UPDATE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FMCA_TRM_ADD_NOTE 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_return_id | TYPE SCMG_CASE_GUID, " | |||
| lv_return_not_found | TYPE SCMG_CASE_GUID, " | |||
| lv_no_auth | TYPE SCMG_CASE_GUID, " | |||
| lv_iv_rcode | TYPE RCODE_PS, " | |||
| lv_iv_invoice | TYPE XFELD, " SPACE | |||
| lv_foreign_lock | TYPE XFELD, " | |||
| lv_iv_obsolete | TYPE XFELD, " SPACE | |||
| lv_note_update_error | TYPE XFELD, " | |||
| lv_is_note_att | TYPE DFMCA_NOTE_ATT, " | |||
| lv_return_update_error | TYPE DFMCA_NOTE_ATT, " | |||
| lv_iv_note_string | TYPE STRING. " |
|   CALL FUNCTION 'FMCA_TRM_ADD_NOTE' "Add Note to SAPScript |
| EXPORTING | ||
| IV_RETURN_ID | = lv_iv_return_id | |
| IV_RCODE | = lv_iv_rcode | |
| IV_INVOICE | = lv_iv_invoice | |
| IV_OBSOLETE | = lv_iv_obsolete | |
| IS_NOTE_ATT | = lv_is_note_att | |
| IV_NOTE_STRING | = lv_iv_note_string | |
| EXCEPTIONS | ||
| RETURN_NOT_FOUND = 1 | ||
| NO_AUTH = 2 | ||
| FOREIGN_LOCK = 3 | ||
| NOTE_UPDATE_ERROR = 4 | ||
| RETURN_UPDATE_ERROR = 5 | ||
| . " FMCA_TRM_ADD_NOTE | ||
ABAP code using 7.40 inline data declarations to call FM FMCA_TRM_ADD_NOTE
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_iv_invoice) | = ' '. | |||
| DATA(ld_iv_obsolete) | = ' '. | |||
Search for further information about these or an SAP related objects