SAP SAMPLE_PROCESS_00003410 Function Module for
SAMPLE_PROCESS_00003410 is a standard sample process 00003410 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 00003410 FM, simply by entering the name SAMPLE_PROCESS_00003410 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_00003410 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_00003410'".
EXPORTING
I_MLDLA = "Country Key
I_MLDEM = "External Reporting: Report Recipient
I_MLZLA = "Country Key
* I_SPRAS = SY-LANGU "Language Key
I_TABNAME = "Table Name
I_RECORD = "
CHANGING
C_INTCA = "Country ISO Code
C_LANDA = "Alternative country key
* C_LKVRZ = "Short name for foreign trade statistics
* C_LANDX = "Country Name
* C_LANDX50 = "Country Name (Max. 50 Characters)
* C_IDTYP = "Identification Type for Alternative Country Code
EXCEPTIONS
ERROR_COUNTRY_CODE = 1 NOTHING_ACTIVE = 2
IMPORTING Parameters details for SAMPLE_PROCESS_00003410
I_MLDLA - Country Key
Data type: MLDPARAM-MLDLAOptional: No
Call by Reference: No ( called with pass by value option)
I_MLDEM - External Reporting: Report Recipient
Data type: MLDPARAM-MLDEMOptional: No
Call by Reference: No ( called with pass by value option)
I_MLZLA - Country Key
Data type: MLDPARAM-MLZLAOptional: No
Call by Reference: No ( called with pass by value option)
I_SPRAS - Language Key
Data type: T002-SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TABNAME - Table Name
Data type: DFIES-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_RECORD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SAMPLE_PROCESS_00003410
C_INTCA - Country ISO Code
Data type: T005-INTCAOptional: No
Call by Reference: No ( called with pass by value option)
C_LANDA - Alternative country key
Data type: T005-LANDAOptional: No
Call by Reference: No ( called with pass by value option)
C_LKVRZ - Short name for foreign trade statistics
Data type: T005-LKVRZOptional: Yes
Call by Reference: No ( called with pass by value option)
C_LANDX - Country Name
Data type: T005T-LANDXOptional: Yes
Call by Reference: No ( called with pass by value option)
C_LANDX50 - Country Name (Max. 50 Characters)
Data type: MLDPARAM-LANDX50Optional: Yes
Call by Reference: No ( called with pass by value option)
C_IDTYP - Identification Type for Alternative Country Code
Data type: MLDPARAM-IDTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_COUNTRY_CODE -
Data type:Optional: No
Call by Reference: Yes
NOTHING_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SAMPLE_PROCESS_00003410 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_c_intca | TYPE T005-INTCA, " | |||
| lv_i_mldla | TYPE MLDPARAM-MLDLA, " | |||
| lv_error_country_code | TYPE MLDPARAM, " | |||
| lv_c_landa | TYPE T005-LANDA, " | |||
| lv_i_mldem | TYPE MLDPARAM-MLDEM, " | |||
| lv_nothing_active | TYPE MLDPARAM, " | |||
| lv_c_lkvrz | TYPE T005-LKVRZ, " | |||
| lv_i_mlzla | TYPE MLDPARAM-MLZLA, " | |||
| lv_c_landx | TYPE T005T-LANDX, " | |||
| lv_i_spras | TYPE T002-SPRAS, " SY-LANGU | |||
| lv_c_landx50 | TYPE MLDPARAM-LANDX50, " | |||
| lv_i_tabname | TYPE DFIES-TABNAME, " | |||
| lv_c_idtyp | TYPE MLDPARAM-IDTYP, " | |||
| lv_i_record | TYPE MLDPARAM. " |
|   CALL FUNCTION 'SAMPLE_PROCESS_00003410' " |
| EXPORTING | ||
| I_MLDLA | = lv_i_mldla | |
| I_MLDEM | = lv_i_mldem | |
| I_MLZLA | = lv_i_mlzla | |
| I_SPRAS | = lv_i_spras | |
| I_TABNAME | = lv_i_tabname | |
| I_RECORD | = lv_i_record | |
| CHANGING | ||
| C_INTCA | = lv_c_intca | |
| C_LANDA | = lv_c_landa | |
| C_LKVRZ | = lv_c_lkvrz | |
| C_LANDX | = lv_c_landx | |
| C_LANDX50 | = lv_c_landx50 | |
| C_IDTYP | = lv_c_idtyp | |
| EXCEPTIONS | ||
| ERROR_COUNTRY_CODE = 1 | ||
| NOTHING_ACTIVE = 2 | ||
| . " SAMPLE_PROCESS_00003410 | ||
ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_00003410
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 INTCA FROM T005 INTO @DATA(ld_c_intca). | ||||
| "SELECT single MLDLA FROM MLDPARAM INTO @DATA(ld_i_mldla). | ||||
| "SELECT single LANDA FROM T005 INTO @DATA(ld_c_landa). | ||||
| "SELECT single MLDEM FROM MLDPARAM INTO @DATA(ld_i_mldem). | ||||
| "SELECT single LKVRZ FROM T005 INTO @DATA(ld_c_lkvrz). | ||||
| "SELECT single MLZLA FROM MLDPARAM INTO @DATA(ld_i_mlzla). | ||||
| "SELECT single LANDX FROM T005T INTO @DATA(ld_c_landx). | ||||
| "SELECT single SPRAS FROM T002 INTO @DATA(ld_i_spras). | ||||
| DATA(ld_i_spras) | = SY-LANGU. | |||
| "SELECT single LANDX50 FROM MLDPARAM INTO @DATA(ld_c_landx50). | ||||
| "SELECT single TABNAME FROM DFIES INTO @DATA(ld_i_tabname). | ||||
| "SELECT single IDTYP FROM MLDPARAM INTO @DATA(ld_c_idtyp). | ||||
Search for further information about these or an SAP related objects