SAP SAMPLE_INTERFACE_00103010 Function Module for Function for Writing Interface File for AVVISO
SAMPLE_INTERFACE_00103010 is a standard sample interface 00103010 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function for Writing Interface File for AVVISO 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 interface 00103010 FM, simply by entering the name SAMPLE_INTERFACE_00103010 into the relevant SAP transaction such as SE37 or SE38.
Function Group: KWMH
Program Name: SAPLKWMH
Main Program: SAPLKWMH
Appliation area: F
Release date: 29-Jul-2002
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SAMPLE_INTERFACE_00103010 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_INTERFACE_00103010'"Function for Writing Interface File for AVVISO.
EXPORTING
I_DATEINAME = "
* I_PC = 'X' "PC Download
TABLES
T_T001 = "Company codes
T_T047A = "Account level dunning control
T_T047B = "Dunning Level Control
T_BKPF = "Accounting document header
T_BSID = "Accounting: Secondary index for customers
T_BSAD = "Accounting: Secondary index for customers (cleared items)
T_BSEC = "One-time account data document segment
* T_LFA1 = "Vendor Master (General Section)
* T_LFB1 = "Vendor Master (Company Code)
* T_PSOLF = "Saving Changed Vendors for Execution
* T_LFB5 = "Vendor Master (Dunning Data)
T_KNA1 = "General data in customer master
* T_LFBK = "Vendor Master (Bank Details)
* T_BSIK = "Accounting: Secondary index for vendors
* T_BSAK = "Accounting: Secondary Index for Vendors (Cleared Items)
T_KNB1 = "Customer master (company code)
T_PSOKN = "Saving Changed Customers for Execution
T_KNB5 = "Customer master (dunning data)
T_KNBK = "Customer master (bank details)
T_PSKW4 = "Additional Data Funds Management for Dunning Procedure
T_PSO04 = "Revenue Types
T_PSO05 = "Revenue Types
IMPORTING Parameters details for SAMPLE_INTERFACE_00103010
I_DATEINAME -
Data type: RLGRAP-FILENAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_PC - PC Download
Data type: RFPDO1-FEBPCDWLDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SAMPLE_INTERFACE_00103010
T_T001 - Company codes
Data type: T001Optional: No
Call by Reference: No ( called with pass by value option)
T_T047A - Account level dunning control
Data type: T047AOptional: No
Call by Reference: No ( called with pass by value option)
T_T047B - Dunning Level Control
Data type: T047BOptional: No
Call by Reference: No ( called with pass by value option)
T_BKPF - Accounting document header
Data type: BKPFOptional: No
Call by Reference: No ( called with pass by value option)
T_BSID - Accounting: Secondary index for customers
Data type: BSIDOptional: No
Call by Reference: No ( called with pass by value option)
T_BSAD - Accounting: Secondary index for customers (cleared items)
Data type: BSADOptional: No
Call by Reference: No ( called with pass by value option)
T_BSEC - One-time account data document segment
Data type: BSECOptional: No
Call by Reference: No ( called with pass by value option)
T_LFA1 - Vendor Master (General Section)
Data type: LFA1Optional: Yes
Call by Reference: Yes
T_LFB1 - Vendor Master (Company Code)
Data type: LFB1Optional: Yes
Call by Reference: Yes
T_PSOLF - Saving Changed Vendors for Execution
Data type: PSOLFOptional: Yes
Call by Reference: Yes
T_LFB5 - Vendor Master (Dunning Data)
Data type: LFB5Optional: Yes
Call by Reference: Yes
T_KNA1 - General data in customer master
Data type: KNA1Optional: No
Call by Reference: No ( called with pass by value option)
T_LFBK - Vendor Master (Bank Details)
Data type: LFBKOptional: Yes
Call by Reference: Yes
T_BSIK - Accounting: Secondary index for vendors
Data type: BSIKOptional: Yes
Call by Reference: Yes
T_BSAK - Accounting: Secondary Index for Vendors (Cleared Items)
Data type: BSAKOptional: Yes
Call by Reference: Yes
T_KNB1 - Customer master (company code)
Data type: KNB1Optional: No
Call by Reference: No ( called with pass by value option)
T_PSOKN - Saving Changed Customers for Execution
Data type: PSOKNOptional: No
Call by Reference: No ( called with pass by value option)
T_KNB5 - Customer master (dunning data)
Data type: KNB5Optional: No
Call by Reference: No ( called with pass by value option)
T_KNBK - Customer master (bank details)
Data type: KNBKOptional: No
Call by Reference: No ( called with pass by value option)
T_PSKW4 - Additional Data Funds Management for Dunning Procedure
Data type: PSKW4Optional: No
Call by Reference: No ( called with pass by value option)
T_PSO04 - Revenue Types
Data type: PSO04Optional: No
Call by Reference: No ( called with pass by value option)
T_PSO05 - Revenue Types
Data type: PSO05Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SAMPLE_INTERFACE_00103010 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: | ||||
| lt_t_t001 | TYPE STANDARD TABLE OF T001, " | |||
| lv_i_dateiname | TYPE RLGRAP-FILENAME, " | |||
| lt_t_t047a | TYPE STANDARD TABLE OF T047A, " | |||
| lt_t_t047b | TYPE STANDARD TABLE OF T047B, " | |||
| lt_t_bkpf | TYPE STANDARD TABLE OF BKPF, " | |||
| lt_t_bsid | TYPE STANDARD TABLE OF BSID, " | |||
| lt_t_bsad | TYPE STANDARD TABLE OF BSAD, " | |||
| lt_t_bsec | TYPE STANDARD TABLE OF BSEC, " | |||
| lt_t_lfa1 | TYPE STANDARD TABLE OF LFA1, " | |||
| lt_t_lfb1 | TYPE STANDARD TABLE OF LFB1, " | |||
| lt_t_psolf | TYPE STANDARD TABLE OF PSOLF, " | |||
| lt_t_lfb5 | TYPE STANDARD TABLE OF LFB5, " | |||
| lv_i_pc | TYPE RFPDO1-FEBPCDWLD, " 'X' | |||
| lt_t_kna1 | TYPE STANDARD TABLE OF KNA1, " | |||
| lt_t_lfbk | TYPE STANDARD TABLE OF LFBK, " | |||
| lt_t_bsik | TYPE STANDARD TABLE OF BSIK, " | |||
| lt_t_bsak | TYPE STANDARD TABLE OF BSAK, " | |||
| lt_t_knb1 | TYPE STANDARD TABLE OF KNB1, " | |||
| lt_t_psokn | TYPE STANDARD TABLE OF PSOKN, " | |||
| lt_t_knb5 | TYPE STANDARD TABLE OF KNB5, " | |||
| lt_t_knbk | TYPE STANDARD TABLE OF KNBK, " | |||
| lt_t_pskw4 | TYPE STANDARD TABLE OF PSKW4, " | |||
| lt_t_pso04 | TYPE STANDARD TABLE OF PSO04, " | |||
| lt_t_pso05 | TYPE STANDARD TABLE OF PSO05. " |
|   CALL FUNCTION 'SAMPLE_INTERFACE_00103010' "Function for Writing Interface File for AVVISO |
| EXPORTING | ||
| I_DATEINAME | = lv_i_dateiname | |
| I_PC | = lv_i_pc | |
| TABLES | ||
| T_T001 | = lt_t_t001 | |
| T_T047A | = lt_t_t047a | |
| T_T047B | = lt_t_t047b | |
| T_BKPF | = lt_t_bkpf | |
| T_BSID | = lt_t_bsid | |
| T_BSAD | = lt_t_bsad | |
| T_BSEC | = lt_t_bsec | |
| T_LFA1 | = lt_t_lfa1 | |
| T_LFB1 | = lt_t_lfb1 | |
| T_PSOLF | = lt_t_psolf | |
| T_LFB5 | = lt_t_lfb5 | |
| T_KNA1 | = lt_t_kna1 | |
| T_LFBK | = lt_t_lfbk | |
| T_BSIK | = lt_t_bsik | |
| T_BSAK | = lt_t_bsak | |
| T_KNB1 | = lt_t_knb1 | |
| T_PSOKN | = lt_t_psokn | |
| T_KNB5 | = lt_t_knb5 | |
| T_KNBK | = lt_t_knbk | |
| T_PSKW4 | = lt_t_pskw4 | |
| T_PSO04 | = lt_t_pso04 | |
| T_PSO05 | = lt_t_pso05 | |
| . " SAMPLE_INTERFACE_00103010 | ||
ABAP code using 7.40 inline data declarations to call FM SAMPLE_INTERFACE_00103010
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 FILENAME FROM RLGRAP INTO @DATA(ld_i_dateiname). | ||||
| "SELECT single FEBPCDWLD FROM RFPDO1 INTO @DATA(ld_i_pc). | ||||
| DATA(ld_i_pc) | = 'X'. | |||
Search for further information about these or an SAP related objects