SAP SAMPLE_PROCESS_00003220 Function Module for
SAMPLE_PROCESS_00003220 is a standard sample process 00003220 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sample process 00003220 FM, simply by entering the name SAMPLE_PROCESS_00003220 into the relevant SAP transaction such as SE37 or SE38.
Function Group: BFFMSMPL3
Program Name: SAPLBFFMSMPL3
Main Program: SAPLBFFMSMPL3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SAMPLE_PROCESS_00003220 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 'SAMPLE_PROCESS_00003220'".
EXPORTING
* CLIENT = SY-MANDT "Client ID of Current User
DATE = "Current Date of Application Server
FOREIGN_CURRENCY = "
LOCAL_AMOUNT = "
CARRY_FORWARD = "
LOCAL_CURRENCY = "
RATE = "
TYPE_OF_RATE = "
READ_TCURR = "
IMPORTING
EXCHANGE_RATE = "
TOTAL_FOREIGN_AMOUNT = "
FOREIGN_FACTOR = "
LOCAL_FACTOR = "
EXCHANGE_RATEX = "
DERIVED_RATE_TYPE = "Exchange Rate Type
FIXED_RATE = "
EXCEPTIONS
NOTHING_FOUND = 1
IMPORTING Parameters details for SAMPLE_PROCESS_00003220
CLIENT - Client ID of Current User
Data type: SY-MANDTDefault: SY-MANDT
Optional: No
Call by Reference: Yes
DATE - Current Date of Application Server
Data type: SYST-DATUMOptional: No
Call by Reference: Yes
FOREIGN_CURRENCY -
Data type:Optional: No
Call by Reference: Yes
LOCAL_AMOUNT -
Data type:Optional: No
Call by Reference: Yes
CARRY_FORWARD -
Data type:Optional: No
Call by Reference: Yes
LOCAL_CURRENCY -
Data type:Optional: No
Call by Reference: Yes
RATE -
Data type:Optional: No
Call by Reference: Yes
TYPE_OF_RATE -
Data type:Optional: No
Call by Reference: Yes
READ_TCURR -
Data type:Optional: No
Call by Reference: Yes
EXPORTING Parameters details for SAMPLE_PROCESS_00003220
EXCHANGE_RATE -
Data type:Optional: No
Call by Reference: Yes
TOTAL_FOREIGN_AMOUNT -
Data type:Optional: No
Call by Reference: Yes
FOREIGN_FACTOR -
Data type:Optional: No
Call by Reference: Yes
LOCAL_FACTOR -
Data type:Optional: No
Call by Reference: Yes
EXCHANGE_RATEX -
Data type:Optional: No
Call by Reference: Yes
DERIVED_RATE_TYPE - Exchange Rate Type
Data type: TCURR-KURSTOptional: No
Call by Reference: Yes
FIXED_RATE -
Data type:Optional: No
Call by Reference: Yes
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SAMPLE_PROCESS_00003220 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_client | TYPE SY-MANDT, " SY-MANDT | |||
| lv_exchange_rate | TYPE SY, " | |||
| lv_nothing_found | TYPE SY, " | |||
| lv_date | TYPE SYST-DATUM, " | |||
| lv_total_foreign_amount | TYPE SYST, " | |||
| lv_foreign_factor | TYPE SYST, " | |||
| lv_foreign_currency | TYPE SYST, " | |||
| lv_local_amount | TYPE SYST, " | |||
| lv_local_factor | TYPE SYST, " | |||
| lv_carry_forward | TYPE SYST, " | |||
| lv_exchange_ratex | TYPE SYST, " | |||
| lv_local_currency | TYPE SYST, " | |||
| lv_derived_rate_type | TYPE TCURR-KURST, " | |||
| lv_rate | TYPE TCURR, " | |||
| lv_fixed_rate | TYPE TCURR, " | |||
| lv_type_of_rate | TYPE TCURR, " | |||
| lv_read_tcurr | TYPE TCURR. " |
|   CALL FUNCTION 'SAMPLE_PROCESS_00003220' " |
| EXPORTING | ||
| CLIENT | = lv_client | |
| DATE | = lv_date | |
| FOREIGN_CURRENCY | = lv_foreign_currency | |
| LOCAL_AMOUNT | = lv_local_amount | |
| CARRY_FORWARD | = lv_carry_forward | |
| LOCAL_CURRENCY | = lv_local_currency | |
| RATE | = lv_rate | |
| TYPE_OF_RATE | = lv_type_of_rate | |
| READ_TCURR | = lv_read_tcurr | |
| IMPORTING | ||
| EXCHANGE_RATE | = lv_exchange_rate | |
| TOTAL_FOREIGN_AMOUNT | = lv_total_foreign_amount | |
| FOREIGN_FACTOR | = lv_foreign_factor | |
| LOCAL_FACTOR | = lv_local_factor | |
| EXCHANGE_RATEX | = lv_exchange_ratex | |
| DERIVED_RATE_TYPE | = lv_derived_rate_type | |
| FIXED_RATE | = lv_fixed_rate | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| . " SAMPLE_PROCESS_00003220 | ||
ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_00003220
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 MANDT FROM SY INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single DATUM FROM SYST INTO @DATA(ld_date). | ||||
| "SELECT single KURST FROM TCURR INTO @DATA(ld_derived_rate_type). | ||||
Search for further information about these or an SAP related objects