SAP SAMPLE_INTERFACE_01000010 Function Module for Interface for ND Plug-In BTE: Stock









SAMPLE_INTERFACE_01000010 is a standard sample interface 01000010 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Interface for ND Plug-In BTE: Stock 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 01000010 FM, simply by entering the name SAMPLE_INTERFACE_01000010 into the relevant SAP transaction such as SE37 or SE38.

Function Group: BTSI
Program Name: SAPLBTSI
Main Program:
Appliation area:
Release date: 10-Mar-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SAMPLE_INTERFACE_01000010 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_01000010'"Interface for ND Plug-In BTE: Stock
EXPORTING
* BUDAT = SY-DATLO "
* USNAM = SY-UNAME "

TABLES
XMARC = "
XMSPR = "
XMSSA = "
XMSSL = "
XMSSQ = "
XMARD = "
XMCH1 = "
XMCHA = "
XMCHB = "
XMKOL = "
XMSKA = "
XMSKU = "
XMSLB = "
.



IMPORTING Parameters details for SAMPLE_INTERFACE_01000010

BUDAT -

Data type: MKPF-BUDAT
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

USNAM -

Data type: MKPF-USNAM
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SAMPLE_INTERFACE_01000010

XMARC -

Data type: SMARC
Optional: No
Call by Reference: No ( called with pass by value option)

XMSPR -

Data type: SMSPR
Optional: No
Call by Reference: No ( called with pass by value option)

XMSSA -

Data type: SMSSA
Optional: No
Call by Reference: No ( called with pass by value option)

XMSSL -

Data type: SMSSL
Optional: No
Call by Reference: No ( called with pass by value option)

XMSSQ -

Data type: SMSSQ
Optional: No
Call by Reference: No ( called with pass by value option)

XMARD -

Data type: SMARD
Optional: No
Call by Reference: No ( called with pass by value option)

XMCH1 -

Data type: SMCH1
Optional: No
Call by Reference: No ( called with pass by value option)

XMCHA -

Data type: SMCHA
Optional: No
Call by Reference: No ( called with pass by value option)

XMCHB -

Data type: SMCHB
Optional: No
Call by Reference: No ( called with pass by value option)

XMKOL -

Data type: SMKOL
Optional: No
Call by Reference: No ( called with pass by value option)

XMSKA -

Data type: SMSKA
Optional: No
Call by Reference: No ( called with pass by value option)

XMSKU -

Data type: SMSKU
Optional: No
Call by Reference: No ( called with pass by value option)

XMSLB -

Data type: SMSLB
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SAMPLE_INTERFACE_01000010 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_budat  TYPE MKPF-BUDAT, "   SY-DATLO
lt_xmarc  TYPE STANDARD TABLE OF SMARC, "   
lt_xmspr  TYPE STANDARD TABLE OF SMSPR, "   
lt_xmssa  TYPE STANDARD TABLE OF SMSSA, "   
lt_xmssl  TYPE STANDARD TABLE OF SMSSL, "   
lt_xmssq  TYPE STANDARD TABLE OF SMSSQ, "   
lv_usnam  TYPE MKPF-USNAM, "   SY-UNAME
lt_xmard  TYPE STANDARD TABLE OF SMARD, "   
lt_xmch1  TYPE STANDARD TABLE OF SMCH1, "   
lt_xmcha  TYPE STANDARD TABLE OF SMCHA, "   
lt_xmchb  TYPE STANDARD TABLE OF SMCHB, "   
lt_xmkol  TYPE STANDARD TABLE OF SMKOL, "   
lt_xmska  TYPE STANDARD TABLE OF SMSKA, "   
lt_xmsku  TYPE STANDARD TABLE OF SMSKU, "   
lt_xmslb  TYPE STANDARD TABLE OF SMSLB. "   

  CALL FUNCTION 'SAMPLE_INTERFACE_01000010'  "Interface for ND Plug-In BTE: Stock
    EXPORTING
         BUDAT = lv_budat
         USNAM = lv_usnam
    TABLES
         XMARC = lt_xmarc
         XMSPR = lt_xmspr
         XMSSA = lt_xmssa
         XMSSL = lt_xmssl
         XMSSQ = lt_xmssq
         XMARD = lt_xmard
         XMCH1 = lt_xmch1
         XMCHA = lt_xmcha
         XMCHB = lt_xmchb
         XMKOL = lt_xmkol
         XMSKA = lt_xmska
         XMSKU = lt_xmsku
         XMSLB = lt_xmslb
. " SAMPLE_INTERFACE_01000010




ABAP code using 7.40 inline data declarations to call FM SAMPLE_INTERFACE_01000010

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 BUDAT FROM MKPF INTO @DATA(ld_budat).
DATA(ld_budat) = SY-DATLO.
 
 
 
 
 
 
"SELECT single USNAM FROM MKPF INTO @DATA(ld_usnam).
DATA(ld_usnam) = SY-UNAME.
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!