Professional Documents
Culture Documents
How To Create AMDP With Out Parameters in ABAP Perspective - SAP Blogs
How To Create AMDP With Out Parameters in ABAP Perspective - SAP Blogs
Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner About
About
Ask a Question Write a Blog Post Login
Former Member
ABAP AMDP
share
0 share tweet share
Follow
ABAP Managed Database Procedures are a new feature in AS ABAP allowing developers to
write database procedures directly in ABAP. You can think of a Database Procedure as a
function stored and executed in the database. The implementation language varies from one
database system to another. In SAP HANA it is SQL Script. Using AMDP allows developers to
create and execute those database procedures in the ABAP environment using ABAP methods
and ABAP data types.
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 1/6
9/30/2018 How To Create AMDP With Out Parameters In ABAP Perspective | SAP Blogs
PUBLIC SECTION.
INTERFACES IF_AMDP_MARKER_HDB. //Marker Interface for HANA DB//
ENDCLASS.
METHODS process
// Write ABAP source code here//
…
ENDMETHOD
Lets Take one Example: Creating AMDP with Input, Output Parameters
Windows->Perspective->Open Perspective->ABAP ( )
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 2/6
9/30/2018 How To Create AMDP With Out Parameters In ABAP Perspective | SAP Blogs
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 3/6
9/30/2018 How To Create AMDP With Out Parameters In ABAP Perspective | SAP Blogs
Save It(Control+S)
Click on Display
Click on create
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 4/6
9/30/2018 How To Create AMDP With Out Parameters In ABAP Perspective | SAP Blogs
REPORT ZCL_AMDP_DEMO_REP.
DATA : r_amdp TYPE REF TO zcl_amdp_demo,
et_mara TYPE TABLE OF mara,
r_salv TYPE REF TO cl_salv_table.
CREATE OBJECT r_amdp.
r_amdp->my_method(
IMPORTING et_mara = et_mara ).
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = r_salv
CHANGING
t_table = et_mara
.
CATCH cx_salv_msg .
ENDTRY.
r_salv->display( ).
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 5/6
9/30/2018 How To Create AMDP With Out Parameters In ABAP Perspective | SAP Blogs
Alert Moderator
Sitemap Newsletter
https://blogs.sap.com/2017/06/08/how-to-create-amdp-with-out-parameters-in-abap-perspective/ 6/6