AMDP Methods for creating SQL Programming language
CLASS ZTEST_CALLS DEFINITION public.
simpel amdp program we feths the records for mata table
PUBLIC SECTION.
types : tt_mara type table of mara.
interfaces : if_amdp_marker_hdb.
methods : my_method
importing value(im_matnr) type mara-matnr
exporting value(et_mara) type tt_mara.
ENDCLASS.
CLASS ZTEST_CALLS IMPLEMENTATION.
method my_method by database procedure for HDB
language sqlscript options read-only using MARA.
et_mara=SELECT * from MARA where MATNR= IM_MATNR;
endmethod.
ENDCLASS.
simpel amdp program we feths the records for mata table
PUBLIC SECTION.
types : tt_mara type table of mara.
interfaces : if_amdp_marker_hdb.
methods : my_method
importing value(im_matnr) type mara-matnr
exporting value(et_mara) type tt_mara.
ENDCLASS.
CLASS ZTEST_CALLS IMPLEMENTATION.
method my_method by database procedure for HDB
language sqlscript options read-only using MARA.
et_mara=SELECT * from MARA where MATNR= IM_MATNR;
endmethod.
ENDCLASS.
Comments
Post a Comment