SAP SAMPLE_PROCESS_00005010 Function Module for NOTRANSL: Beschreibung der Prozeß-Schnittstelle 00005010
SAMPLE_PROCESS_00005010 is a standard sample process 00005010 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Beschreibung der Prozeß-Schnittstelle 00005010 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 sample process 00005010 FM, simply by entering the name SAMPLE_PROCESS_00005010 into the relevant SAP transaction such as SE37 or SE38.
Function Group: BFFMSMPL2
Program Name: SAPLBFFMSMPL2
Main Program: SAPLBFFMSMPL2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SAMPLE_PROCESS_00005010 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_00005010'"NOTRANSL: Beschreibung der Prozeß-Schnittstelle 00005010.
EXPORTING
I_CHGTYPE = "
* I_WHERE_AUGDT = '10000101' "Clearing Date
* I_WHERE_AUGBL = '!' "Document Number of the Clearing Document
* I_WHERE_ZUONR = '!' "Assignment Number
* I_WHERE_GJAHR = 0000 "Fiscal Year
* I_WHERE_BELNR = '!' "Accounting Document Number
* I_WHERE_BUZEI = 000 "Line Item Number Within the Accounting Document
I_ORIGIN = "Data Source (Program Form Routine)
I_TABNAME = "Table Name
* I_STRUCTURE = "
* I_WHERE_BUKRS = ' ' "Company Code
* I_WHERE_KUNNR = '!' "Customer Number
* I_WHERE_LIFNR = '!' "Account Number of Vendor
* I_WHERE_UMSKS = '!' "Special G/L Transaction Type
* I_WHERE_UMSKZ = '!' "Special G/L Indicator
TABLES
* T_STRUCTURE = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for SAMPLE_PROCESS_00005010
I_CHGTYPE -
Data type:Optional: No
Call by Reference: Yes
I_WHERE_AUGDT - Clearing Date
Data type: BSEG-AUGDTDefault: '10000101'
Optional: Yes
Call by Reference: Yes
I_WHERE_AUGBL - Document Number of the Clearing Document
Data type: BSEG-AUGBLDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_ZUONR - Assignment Number
Data type: BSEG-ZUONRDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_GJAHR - Fiscal Year
Data type: BSEG-GJAHRDefault: 0000
Optional: Yes
Call by Reference: Yes
I_WHERE_BELNR - Accounting Document Number
Data type: BSEG-BELNRDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_BUZEI - Line Item Number Within the Accounting Document
Data type: BSEG-BUZEIDefault: 000
Optional: Yes
Call by Reference: Yes
I_ORIGIN - Data Source (Program Form Routine)
Data type: RSDSWHERE-LINEOptional: No
Call by Reference: Yes
I_TABNAME - Table Name
Data type: DNTAB-TABNAMEOptional: No
Call by Reference: Yes
I_STRUCTURE -
Data type:Optional: Yes
Call by Reference: Yes
I_WHERE_BUKRS - Company Code
Data type: BSEG-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_WHERE_KUNNR - Customer Number
Data type: BSEG-KUNNRDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_LIFNR - Account Number of Vendor
Data type: BSEG-LIFNRDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_UMSKS - Special G/L Transaction Type
Data type: BSEG-UMSKSDefault: '!'
Optional: Yes
Call by Reference: Yes
I_WHERE_UMSKZ - Special G/L Indicator
Data type: BSEG-UMSKZDefault: '!'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for SAMPLE_PROCESS_00005010
T_STRUCTURE -
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SAMPLE_PROCESS_00005010 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_error | TYPE STRING, " | |||
| lv_i_chgtype | TYPE STRING, " | |||
| lt_t_structure | TYPE STANDARD TABLE OF STRING, " | |||
| lv_i_where_augdt | TYPE BSEG-AUGDT, " '10000101' | |||
| lv_i_where_augbl | TYPE BSEG-AUGBL, " '!' | |||
| lv_i_where_zuonr | TYPE BSEG-ZUONR, " '!' | |||
| lv_i_where_gjahr | TYPE BSEG-GJAHR, " 0000 | |||
| lv_i_where_belnr | TYPE BSEG-BELNR, " '!' | |||
| lv_i_where_buzei | TYPE BSEG-BUZEI, " 000 | |||
| lv_i_origin | TYPE RSDSWHERE-LINE, " | |||
| lv_i_tabname | TYPE DNTAB-TABNAME, " | |||
| lv_i_structure | TYPE DNTAB, " | |||
| lv_i_where_bukrs | TYPE BSEG-BUKRS, " SPACE | |||
| lv_i_where_kunnr | TYPE BSEG-KUNNR, " '!' | |||
| lv_i_where_lifnr | TYPE BSEG-LIFNR, " '!' | |||
| lv_i_where_umsks | TYPE BSEG-UMSKS, " '!' | |||
| lv_i_where_umskz | TYPE BSEG-UMSKZ. " '!' |
|   CALL FUNCTION 'SAMPLE_PROCESS_00005010' "NOTRANSL: Beschreibung der Prozeß-Schnittstelle 00005010 |
| EXPORTING | ||
| I_CHGTYPE | = lv_i_chgtype | |
| I_WHERE_AUGDT | = lv_i_where_augdt | |
| I_WHERE_AUGBL | = lv_i_where_augbl | |
| I_WHERE_ZUONR | = lv_i_where_zuonr | |
| I_WHERE_GJAHR | = lv_i_where_gjahr | |
| I_WHERE_BELNR | = lv_i_where_belnr | |
| I_WHERE_BUZEI | = lv_i_where_buzei | |
| I_ORIGIN | = lv_i_origin | |
| I_TABNAME | = lv_i_tabname | |
| I_STRUCTURE | = lv_i_structure | |
| I_WHERE_BUKRS | = lv_i_where_bukrs | |
| I_WHERE_KUNNR | = lv_i_where_kunnr | |
| I_WHERE_LIFNR | = lv_i_where_lifnr | |
| I_WHERE_UMSKS | = lv_i_where_umsks | |
| I_WHERE_UMSKZ | = lv_i_where_umskz | |
| TABLES | ||
| T_STRUCTURE | = lt_t_structure | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " SAMPLE_PROCESS_00005010 | ||
ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_00005010
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 AUGDT FROM BSEG INTO @DATA(ld_i_where_augdt). | ||||
| DATA(ld_i_where_augdt) | = '10000101'. | |||
| "SELECT single AUGBL FROM BSEG INTO @DATA(ld_i_where_augbl). | ||||
| DATA(ld_i_where_augbl) | = '!'. | |||
| "SELECT single ZUONR FROM BSEG INTO @DATA(ld_i_where_zuonr). | ||||
| DATA(ld_i_where_zuonr) | = '!'. | |||
| "SELECT single GJAHR FROM BSEG INTO @DATA(ld_i_where_gjahr). | ||||
| DATA(ld_i_where_gjahr) | = 0000. | |||
| "SELECT single BELNR FROM BSEG INTO @DATA(ld_i_where_belnr). | ||||
| DATA(ld_i_where_belnr) | = '!'. | |||
| "SELECT single BUZEI FROM BSEG INTO @DATA(ld_i_where_buzei). | ||||
| DATA(ld_i_where_buzei) | = 000. | |||
| "SELECT single LINE FROM RSDSWHERE INTO @DATA(ld_i_origin). | ||||
| "SELECT single TABNAME FROM DNTAB INTO @DATA(ld_i_tabname). | ||||
| "SELECT single BUKRS FROM BSEG INTO @DATA(ld_i_where_bukrs). | ||||
| DATA(ld_i_where_bukrs) | = ' '. | |||
| "SELECT single KUNNR FROM BSEG INTO @DATA(ld_i_where_kunnr). | ||||
| DATA(ld_i_where_kunnr) | = '!'. | |||
| "SELECT single LIFNR FROM BSEG INTO @DATA(ld_i_where_lifnr). | ||||
| DATA(ld_i_where_lifnr) | = '!'. | |||
| "SELECT single UMSKS FROM BSEG INTO @DATA(ld_i_where_umsks). | ||||
| DATA(ld_i_where_umsks) | = '!'. | |||
| "SELECT single UMSKZ FROM BSEG INTO @DATA(ld_i_where_umskz). | ||||
| DATA(ld_i_where_umskz) | = '!'. | |||
Search for further information about these or an SAP related objects