SAP Function Modules

SAMPLE_INTERFACE_00501015 SAP Function module







SAMPLE_INTERFACE_00501015 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SAMPLE_INTERFACE_00501015 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V50P
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SAMPLE_INTERFACE_00501015 - SAMPLE INTERFACE 00501015





CALL FUNCTION 'SAMPLE_INTERFACE_00501015' "
* TABLES
*   xlikp =                     " likpvb        Reference Structure for XLIKP/YLIKP
*   ylikp =                     " likp          Reference Structure for XLIKP/YLIKP
*   xlips =                     " lipsvb        Reference Structure for XLIPS/YLIPS
*   ylips =                     " lipsvb        Reference Structure for XLIPS/YLIPS
*   xvbuk =                     " vbukvb        Reference structure for XVBUK/YVBUK
*   yvbuk =                     " vbukvb        Reference structure for XVBUK/YVBUK
*   xvbup =                     " vbupvb        Reference Structure for XVBUP/YVBUP
*   yvbup =                     " vbupvb        Reference Structure for XVBUP/YVBUP
*   xvbpa =                     " vbpavb        Reference structure for XVBPA/YVBPA
*   yvbpa =                     " vbpavb        Reference structure for XVBPA/YVBPA
*   xvbfa =                     " vbfavb        Reference Structure for XVBFA/YVBFA
*   yvbfa =                     " vbfavb        Reference Structure for XVBFA/YVBFA
*   tkomv =                     " komv          Price Determination Communications-Condition Record
*   xtvpod =                    " tvpodvb       Reference Structure for XTVPOD/YTVPOD
    .  "  SAMPLE_INTERFACE_00501015

ABAP code example for Function Module SAMPLE_INTERFACE_00501015





The ABAP code below is a full code listing to execute function module SAMPLE_INTERFACE_00501015 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_xlikp  TYPE STANDARD TABLE OF LIKPVB,"TABLES PARAM
wa_xlikp  LIKE LINE OF it_xlikp ,
it_ylikp  TYPE STANDARD TABLE OF LIKP,"TABLES PARAM
wa_ylikp  LIKE LINE OF it_ylikp ,
it_xlips  TYPE STANDARD TABLE OF LIPSVB,"TABLES PARAM
wa_xlips  LIKE LINE OF it_xlips ,
it_ylips  TYPE STANDARD TABLE OF LIPSVB,"TABLES PARAM
wa_ylips  LIKE LINE OF it_ylips ,
it_xvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_xvbuk  LIKE LINE OF it_xvbuk ,
it_yvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_yvbuk  LIKE LINE OF it_yvbuk ,
it_xvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_xvbup  LIKE LINE OF it_xvbup ,
it_yvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_yvbup  LIKE LINE OF it_yvbup ,
it_xvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_xvbpa  LIKE LINE OF it_xvbpa ,
it_yvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_yvbpa  LIKE LINE OF it_yvbpa ,
it_xvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_xvbfa  LIKE LINE OF it_xvbfa ,
it_yvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_yvbfa  LIKE LINE OF it_yvbfa ,
it_tkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_tkomv  LIKE LINE OF it_tkomv ,
it_xtvpod  TYPE STANDARD TABLE OF TVPODVB,"TABLES PARAM
wa_xtvpod  LIKE LINE OF it_xtvpod .


"populate fields of struture and append to itab
append wa_xlikp to it_xlikp.

"populate fields of struture and append to itab
append wa_ylikp to it_ylikp.

"populate fields of struture and append to itab
append wa_xlips to it_xlips.

"populate fields of struture and append to itab
append wa_ylips to it_ylips.

"populate fields of struture and append to itab
append wa_xvbuk to it_xvbuk.

"populate fields of struture and append to itab
append wa_yvbuk to it_yvbuk.

"populate fields of struture and append to itab
append wa_xvbup to it_xvbup.

"populate fields of struture and append to itab
append wa_yvbup to it_yvbup.

"populate fields of struture and append to itab
append wa_xvbpa to it_xvbpa.

"populate fields of struture and append to itab
append wa_yvbpa to it_yvbpa.

"populate fields of struture and append to itab
append wa_xvbfa to it_xvbfa.

"populate fields of struture and append to itab
append wa_yvbfa to it_yvbfa.

"populate fields of struture and append to itab
append wa_tkomv to it_tkomv.

"populate fields of struture and append to itab
append wa_xtvpod to it_xtvpod. . CALL FUNCTION 'SAMPLE_INTERFACE_00501015' * TABLES * xlikp = it_xlikp * ylikp = it_ylikp * xlips = it_xlips * ylips = it_ylips * xvbuk = it_xvbuk * yvbuk = it_yvbuk * xvbup = it_xvbup * yvbup = it_yvbup * xvbpa = it_xvbpa * yvbpa = it_yvbpa * xvbfa = it_xvbfa * yvbfa = it_yvbfa * tkomv = it_tkomv * xtvpod = it_xtvpod . " SAMPLE_INTERFACE_00501015
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_xlikp  TYPE STANDARD TABLE OF LIKPVB ,
wa_xlikp  LIKE LINE OF it_xlikp,
it_ylikp  TYPE STANDARD TABLE OF LIKP ,
wa_ylikp  LIKE LINE OF it_ylikp,
it_xlips  TYPE STANDARD TABLE OF LIPSVB ,
wa_xlips  LIKE LINE OF it_xlips,
it_ylips  TYPE STANDARD TABLE OF LIPSVB ,
wa_ylips  LIKE LINE OF it_ylips,
it_xvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_xvbuk  LIKE LINE OF it_xvbuk,
it_yvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_yvbuk  LIKE LINE OF it_yvbuk,
it_xvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_xvbup  LIKE LINE OF it_xvbup,
it_yvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_yvbup  LIKE LINE OF it_yvbup,
it_xvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_xvbpa  LIKE LINE OF it_xvbpa,
it_yvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_yvbpa  LIKE LINE OF it_yvbpa,
it_xvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_xvbfa  LIKE LINE OF it_xvbfa,
it_yvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_yvbfa  LIKE LINE OF it_yvbfa,
it_tkomv  TYPE STANDARD TABLE OF KOMV ,
wa_tkomv  LIKE LINE OF it_tkomv,
it_xtvpod  TYPE STANDARD TABLE OF TVPODVB ,
wa_xtvpod  LIKE LINE OF it_xtvpod.


"populate fields of struture and append to itab
append wa_xlikp to it_xlikp.

"populate fields of struture and append to itab
append wa_ylikp to it_ylikp.

"populate fields of struture and append to itab
append wa_xlips to it_xlips.

"populate fields of struture and append to itab
append wa_ylips to it_ylips.

"populate fields of struture and append to itab
append wa_xvbuk to it_xvbuk.

"populate fields of struture and append to itab
append wa_yvbuk to it_yvbuk.

"populate fields of struture and append to itab
append wa_xvbup to it_xvbup.

"populate fields of struture and append to itab
append wa_yvbup to it_yvbup.

"populate fields of struture and append to itab
append wa_xvbpa to it_xvbpa.

"populate fields of struture and append to itab
append wa_yvbpa to it_yvbpa.

"populate fields of struture and append to itab
append wa_xvbfa to it_xvbfa.

"populate fields of struture and append to itab
append wa_yvbfa to it_yvbfa.

"populate fields of struture and append to itab
append wa_tkomv to it_tkomv.

"populate fields of struture and append to itab
append wa_xtvpod to it_xtvpod.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SAMPLE_INTERFACE_00501015 or its description.