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

Function FMCA_SAMPLE_P354 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_P354'"Snapshot Determination Sample.
EXPORTING
IV_RETURN_GUID = "Technical Key of Carrying Object
IV_TRANSACTION = "Business Transaction
IS_RETURN = "Upload Structure for Process Objects
* IV_CALLER = 'FMCA_WDY_RETURN' "ABAP System Field: Current Transaction Code
IMPORTING
EV_CREATE_SNAPSHOT = "
EV_SNAPSHOT_TYPE = "Snapshot Type
IMPORTING Parameters details for FMCA_SAMPLE_P354
IV_RETURN_GUID - Technical Key of Carrying Object
Data type: FMCA_RETURN_GUIDOptional: No
Call by Reference: Yes
IV_TRANSACTION - Business Transaction
Data type: J_VORGANGOptional: No
Call by Reference: Yes
IS_RETURN - Upload Structure for Process Objects
Data type: FMCA_POBJ_SOptional: No
Call by Reference: Yes
IV_CALLER - ABAP System Field: Current Transaction Code
Data type: SY-TCODEDefault: 'FMCA_WDY_RETURN'
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for FMCA_SAMPLE_P354
EV_CREATE_SNAPSHOT -
Data type: ABAP_BOOLOptional: No
Call by Reference: Yes
EV_SNAPSHOT_TYPE - Snapshot Type
Data type: FMCA_TTF_SNAPSHOT_TYPEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMCA_SAMPLE_P354 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_guid | TYPE FMCA_RETURN_GUID, " | |||
| lv_ev_create_snapshot | TYPE ABAP_BOOL, " | |||
| lv_iv_transaction | TYPE J_VORGANG, " | |||
| lv_ev_snapshot_type | TYPE FMCA_TTF_SNAPSHOT_TYPE, " | |||
| lv_is_return | TYPE FMCA_POBJ_S, " | |||
| lv_iv_caller | TYPE SY-TCODE. " 'FMCA_WDY_RETURN' |
|   CALL FUNCTION 'FMCA_SAMPLE_P354' "Snapshot Determination Sample |
| EXPORTING | ||
| IV_RETURN_GUID | = lv_iv_return_guid | |
| IV_TRANSACTION | = lv_iv_transaction | |
| IS_RETURN | = lv_is_return | |
| IV_CALLER | = lv_iv_caller | |
| IMPORTING | ||
| EV_CREATE_SNAPSHOT | = lv_ev_create_snapshot | |
| EV_SNAPSHOT_TYPE | = lv_ev_snapshot_type | |
| . " FMCA_SAMPLE_P354 | ||
ABAP code using 7.40 inline data declarations to call FM FMCA_SAMPLE_P354
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 TCODE FROM SY INTO @DATA(ld_iv_caller). | ||||
| DATA(ld_iv_caller) | = 'FMCA_WDY_RETURN'. | |||
Search for further information about these or an SAP related objects