on 2023 Jun 30 10:18 AM
错误信息说的很明白了
你的method没申明是为了哪个cds
method要加上这 for table function ZTF_PURORDERITEMNOTE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BY DATABASE
FUNCTION FOR HDB LANGUAGE
SQLSCRIPT OPTIONS READ-ONLY
CHANGE PROCEDURE TO FUNCTION
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@EndUserText.label: 'AMDP_TEST01'
define table function ZAMDP_TEST01
with parameters
@Environment.systemField: #CLIENT
p_clnt : abap.clnt
returns
{
mandt : abap.clnt;
EBELN : ebeln;
EBELP : ebelp;
ERNAM : ernam;
MATNR : matnr;
LIFNR : lifnr;
}
implemented by method
zcl_amdp_test01=>get_mm_ekpo;
CLASS zcl_amdp_test01 DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_amdp_marker_hdb .
CLASS-METHODS:get_mm_ekpo FOR TABLE FUNCTION zamdp_test01.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_amdp_test01 IMPLEMENTATION.
METHOD get_mm_ekpo BY DATABASE
FUNCTION FOR HDB LANGUAGE
SQLSCRIPT OPTIONS READ-ONLY
USING ekko ekpo .
RETURN
SELECT DISTINCT
a.mandt,
a.ebeln,
b.ebelp,
a.ernam ,
b.matnr,
a.lifnr
from ekko as a
left join ekpo as b on a.mandt = b.mandt and a.ebeln = b.ebeln
where a.bukrs = '1000'
AND a.mandt = p_clnt;
ENDMETHOD.
ENDCLASS.
User | Count |
---|---|
93 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.